blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 7 139 | content_id stringlengths 40 40 | detected_licenses listlengths 0 16 | license_type stringclasses 2
values | repo_name stringlengths 7 55 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringclasses 6
values | visit_date int64 1,471B 1,694B | revision_date int64 1,378B 1,694B | committer_date int64 1,378B 1,694B | github_id float64 1.33M 604M ⌀ | star_events_count int64 0 43.5k | fork_events_count int64 0 1.5k | gha_license_id stringclasses 6
values | gha_event_created_at int64 1,402B 1,695B ⌀ | gha_created_at int64 1,359B 1,637B ⌀ | gha_language stringclasses 19
values | src_encoding stringclasses 2
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 1
class | length_bytes int64 3 6.4M | extension stringclasses 4
values | content stringlengths 3 6.12M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a89d8ac0a9514a4c69256451c86fa85000bc9e43 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/group/fundamental_domain.lean | 1f5b9a0fbb8cfa46a1a86f7f733ec7bd6013476f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 17,346 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import measure_theory.group.action
import measure_theory.group.pointwise
import measure_theory.integral.set_integral
/-!
# Fundamental domain of a group acti... |
68fce6bb936b9087000d1450ec6c049eb00913ec | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/trace.lean | ddc990b3906895a9a541d47a6a0b2a899e837c2d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,399 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen, Antoine Labelle
-/
import linear_algebra.matrix.to_lin
import linear_algebra.matrix.trace
import linear_algebra.contraction
im... |
e94769b7d318cdfa2b57ec965e659cf580f6de09 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/valuation/valuation_ring.lean | e52900b6e6bfa319963d07acc4bbbce3f6b7a498 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 17,210 | lean | /-
Copyright (c) 2022 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import ring_theory.valuation.integers
import ring_theory.ideal.local_ring
import ring_theory.localization.fraction_ring
import ring_theory.localization.integer
import ring_th... |
0d76dcda348214ad6ae3a4f07b09bafacf5b4816 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/list_monad1.lean | 47b708eb9b0deb238ad48dbdacd05ad71734f456 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 170 | lean | vm_eval
(do {
a : nat ← [1, 2, 3, 4],
b : nat ← [4, 5, 6],
(guard $ 2 * a ≥ b : list unit),
(guard $ b < 6 : list unit),
return (a, b) } : list (nat × nat) )
|
8d76385ceff05ca16b83c1ca577eef6e18f566e7 | 96338d06deb5f54f351493a71d6ecf6c546089a2 | /priv/Lean/Functor.lean | 2820eaf860e03d09b7277797fb8462d86a29dbf9 | [] | no_license | silky/exe | 5f9e4eea772d74852a1a2fac57d8d20588282d2b | e81690d6e16f2a83c105cce446011af6ae905b81 | refs/heads/master | 1,609,385,766,412 | 1,472,164,223,000 | 1,472,164,223,000 | 66,610,224 | 1 | 0 | null | 1,472,178,919,000 | 1,472,178,919,000 | null | UTF-8 | Lean | false | false | 13,931 | lean | /- Functor -/
import Setoid
import Cat
import Mor
set_option pp.universes true
set_option pp.metavar_args false
namespace EXE
/-
- The category of functors
-/
namespace Functor
-- axioms of functor
section withOnHom
variables (C D : CatType) (onOb : Π(c : C), D)
variables (onHom : Π{X Y :... |
421b21334e803b6760587467073e2f8f0f4cfb67 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/ring_theory/noetherian.lean | 1a3a71e5d60ea17869750e927d56fdb849a4e11e | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 21,454 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import linear_algebra.finsupp
import ring_theory.ideal_operations
import ring_theory.subring
import linear_algebra.basis
open set
... |
81e79a268f6765f888c1c194f38a8026f4ad83de | 4727251e0cd73359b15b664c3170e5d754078599 | /test/matrix.lean | 84343f9a2bf2410348f4bc55efd73c852bcf9a43 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,614 | lean | import data.matrix.notation
import linear_algebra.matrix.determinant
import group_theory.perm.fin
import tactic.norm_swap
variables {α β : Type} [semiring α] [ring β]
namespace matrix
open_locale matrix
example {a a' b b' c c' d d' : α} :
![![a, b], ![c, d]] + ![![a', b'], ![c', d']] = ![![a + a', b + b'], ![c + ... |
efb42ac99d53cf9f2dcbf3aae8d1570b3d009b3d | 9dc8cecdf3c4634764a18254e94d43da07142918 | /test/to_additive.lean | ca99623d2f5bf75a3e373f86edb1ec6f096dea04 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 3,656 | lean | import algebra.group.to_additive
import algebra.group.units
import tactic
-- work in a namespace so that it doesn't matter if names clash
namespace test
@[to_additive bar0]
def foo0 {α} [has_mul α] [has_one α] (x y : α) : α := x * y * 1
class {u v} my_has_pow (α : Type u) (β : Type v) :=
(pow : α → β → α)
class my_h... |
c7f471d4fc9de2f7bf10ec744a0db0509e3feb9c | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/zsqrtd/basic.lean | 42d3164085d0a0a346573d6a653d34073ef439a7 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 26,831 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.basic algebra.associated data.nat.gcd
/-- The ring of integers adjoined with a square root of `d`.
These have the form `a + b √d` where `a b : ℤ`. ... |
cb5195e1ff5b99b65daeb01336e5592bb8e97a67 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/subgroup/pointwise.lean | 210cb0ae7059d3f6be43acabb2f3b5731d1dfd36 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,832 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.subgroup.basic
import group_theory.submonoid.pointwise
/-! # Pointwise instances on `subgroup` and `add_subgroup`s
This file provides the actions
* `... |
60cca3f9d646389db745c3b21fbaad40f3689328 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/data/nat/default.lean | 00050a942365f91266ba55e6c48766c6b9270a5f | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 267 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.nat.basic init.data.nat.div init.data.nat.lemmas
init.data.nat.bitwise
|
01ad575e682caa20e5fee2f4c858e3a07154423a | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Data/Lsp/TextSync.lean | 04ef80c83b8dda829099ea4ff2b3bd9d87c86900 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,633 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.Lsp.Basic
/-! Section "Text Document Synchronization" of the LSP spec. -/
namespace Lean
namespace Lsp
ope... |
1414497a6dd9fde86bd5d8ed2861ff98ae1d565f | 40ad357bbd0d327dd1e3e7f7beb868bd4e5b0a9d | /test/benchmark.lean | 715644ca4c93fef3d7aec7d8d707867ad877eca9 | [] | no_license | unitb/temporal-logic | 9966424f015976d5997a9ffa30cbd77cc3a9cb1c | accec04d1b09ca841be065511c9e206b725b16e9 | refs/heads/master | 1,633,868,382,769 | 1,541,072,223,000 | 1,541,072,223,000 | 114,790,987 | 5 | 3 | null | null | null | null | UTF-8 | Lean | false | false | 689 | lean |
import temporal_logic
set_option profiler true
open temporal predicate
variables Γ : cpred
variables P Q R S : ℕ → cpred
include P Q R S
example : Γ ⊢ True :=
begin [temporal]
iterate 100
{ have : ∀∀ x, P x ⟶ Q x ⟶ R x ⟶ S x,
{ intros,
guard_target S x,
admit },
clear this },
trivial
end
... |
91450cd3ce2cb8254118d2c1d3f18bc3430bddc8 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/category/monad/cont.lean | f325da1743c1e317d6c5bc525e3eb1c0b0835a35 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 8,762 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Monad encapsulating continuation passing programming style, similar to
Haskell's `Cont`, `ContT` and `MonadCont`:
http://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Mon... |
840207a874934d119e734d2e10638244787d352e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/liminf_limsup.lean | ff6dd40b3ec183990eb97d6fe5450e9b3b961fa8 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 41,643 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johannes Hölzl, Rémy Degenne
-/
import order.filter.cofinite
import order.hom.complete_lattice
/-!
# liminfs and limsups of functions and filters
Defines the Li... |
a5b1469552a4c8e79244ae550757d2068c87eaac | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/finset/sort.lean | 9727fe08bb25c2128c91b8e7cbdcc73e952ff4bd | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 10,498 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.fintype.basic
import data.multiset.sort
import data.list.nodup_equiv_fin
/-!
# Construct a sorted list from a finset.
-/
namespace finset
open multiset... |
21eb63591bcc49533380df55645ec79f3f08a372 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/euclidean/angle/oriented/basic.lean | b5de68815a179ff0eaf5ca04c4067cccdf2f2d21 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 48,443 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Heather Macbeth
-/
import analysis.inner_product_space.two_dim
import geometry.euclidean.angle.unoriented.basic
/-!
# Oriented angles.
> THIS FILE IS SYNCHRONIZED WITH MA... |
889d386bde6f6ce0e5ac4991125c73407aba6cf9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Mon/colimits_auto.lean | 6ee30278e4b4b93c4690aa5cc16ca7bba8912953 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,475 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.Mon.basic
import Mathlib.category_theory.limits.limits
import Mathlib.cate... |
3c0608ff5e1231cf6fb5e55c188f69c73d86ca7c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/group/inj_surj.lean | e26c1fe0f031d2ea5ca56481b109ee5f288363e4 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,298 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.order.group.defs
import algebra.order.monoid.basic
import algebra.order.group.instances
/-!
# Pull ba... |
a4b8d2c332c2fce5e6248484479bb301b0684543 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/nat/parity.lean | ada084b20aea1ed0f74f1b19ffdc9938430bf868 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,984 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Benjamin Davidson
-/
import data.nat.modeq
/-!
# Parity of natural numbers
This file contains theorems about the `even` and `odd` predicates on the natural numbers.
##... |
1fb87beab15191a6986f8fbe21d476b532071273 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/prime.lean | 277c6e3743e4ed7d3fd192f2d38ccc7c9c2a9cfb | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,037 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker, Anne Baanen
-/
import algebra.associated
import data.list.big_operators.lemmas
import data.list.perm
/-!
# Products of lists of prime elements.
This ... |
2569bbfff392f9d4e64db676ce9f4c642691f988 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/adjunction/mates.lean | 9e261a837a06e934a958697b61abfab59b8fbd89 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 11,217 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.adjunction.basic
import category_theory.conj
/-!
# Mate of natural transformations
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
ed8a8358a48ed27cf2a4a02a874a9a4bb4fc9ab0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/types/coyoneda.lean | 9d1b1fa6ae7dbe78188274e54f5456f2705784fe | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,532 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison
-/
import category_theory.monoidal.types.basic
import category_theory.monoidal.coherence_lemmas
/-!
# `(𝟙_ C ⟶ -)` is a lax monoidal functor to `... |
0c2e7b342f554d90534f7bfbc525718292e74fbc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/basic_auto.lean | f3a1cf26e92f2ba649ed21c5f82042d0e4054edb | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,816 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Extends the theory on functors, applicatives and monads.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.PostPort
universes u v u_1 u_2 u... |
79d0b5b5dae88cbfe7b2dc1a1a6aee25513d3a64 | 799b5de27cebaa6eaa49ff982110d59bbd6c6693 | /mechanized/theorems.lean | 36de657188a7b1d8ab464aa022063f7c535a3c35 | [
"MIT"
] | permissive | philnguyen/soft-contract | 263efdbc9ca2f35234b03f0d99233a66accda78b | 13e7d99e061509f0a45605508dd1a27a51f4648e | refs/heads/master | 1,625,975,131,435 | 1,617,775,585,000 | 1,617,775,704,000 | 17,326,137 | 33 | 7 | MIT | 1,613,722,535,000 | 1,393,714,126,000 | Racket | UTF-8 | Lean | false | false | 3,116 | lean | import definitions lemmas
lemma reduction_preserves_approximation
-- Symbolic state `s₁'`, in 0+ steps,
-- continues to approximate the next step of any state `s₁` it currently approximates
{s₁ s₂ s₁' : s}
(s₁'_wellformed: s_wellformed s₁')
(concrete_reduction: s₁ ~> s₂ )
(approximation : s₁ ⊑ s₁'):
∃ s... |
909113be53a4259670e45fc03ee7ae5afe824c0c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/pkg/prv/lakefile.lean | b43c239bc39093491ba04634356b2e1156535ca6 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 77 | lean | import Lake
open System Lake DSL
package prv
@[default_target] lean_lib Prv
|
b30359594dac89ebfcf01fcdfc76ddfeb27663bb | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/tactic/reassoc_axiom.lean | 9dc5418ad51ad79e83a1d1cced620764c0bc4725 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 8,050 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import category_theory.category
/-!
# Tools to reformulate category-theoretic axioms in a more associativity-friendly way
## The `reassoc` attribute
The `reassoc` attr... |
dfd8e22909e636c3e9367188e9cdae90b4a29e15 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/PrettyPrinter.lean | d44e3f4393ac4b533bd89f166a1177643172dd9e | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,359 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Delaborator
import Lean.PrettyPrinter.Parenthesizer
import Lean.PrettyPrinter.Formatter
import Lean.Parser.Module
import Lean.ParserCompiler
namesp... |
cf66bdf474d2655e42373b80a9a80a1825b6239f | 5ca7b1b12d14c4742e29366312ba2c2ef8201b21 | /src/game/world10/level6.lean | b2ab8338a40dfdf71830dfff2496b1723e548ec2 | [
"Apache-2.0"
] | permissive | MatthiasHu/natural_number_game | 2e464482ef3001863430b0336133b6697b275ba3 | 2d764f72669ae30861f6a1057fce0257f3e466c4 | refs/heads/master | 1,609,719,110,419 | 1,576,345,737,000 | 1,576,345,737,000 | 240,296,314 | 0 | 0 | Apache-2.0 | 1,581,608,357,000 | 1,581,608,356,000 | null | UTF-8 | Lean | false | false | 844 | lean | import game.world10.level5 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 6: `le_antisymm`
In Advanced Addition World you proved
`eq_zero_of_add_right_eq_self (a b : mynat) : a + b = a → b = 0`.
This might be useful in this level.
-/
/- Lemma
≤ is antisymmetric. In other words, if a ≤ b and b ≤... |
6b9278d53a2eea4b1c284345decbe17093e2a04d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eq20.lean | 390eff2273718646a34e4551d1f1309022e0e62a | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 775 | lean | import data.list
open nat list
section
parameter {A : Type}
parameter (p : A → Prop)
parameter [H : decidable_pred p]
include H
definition filter : list A → list A
| filter nil := nil
| filter (a :: l) := if p a then a :: filter l else filter l
theorem filter_nil : filter nil = nil :=
rfl
t... |
9e2a74a264dee630500c5e9fa48059607347d5c0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/polynomial/cyclotomic/basic.lean | 1aea80bb1b45f8d661f93b37a5bb540838d79cb5 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 48,104 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import algebra.polynomial.big_operators
import analysis.complex.roots_of_unity
import data.polynomial.lifts
import field_theory.separable
import field_theory.split... |
d7b53c8e8634b4b2700bbad0e6a39e07858b24a1 | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /data/list/perm.lean | 28a76ebfee53e218395cac9d01c654112a6b0472 | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 39,426 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
List permutations.
-/
import .basic .comb .set
-- TODO(Jeremy): Here is a common idiom: after simplifying, we have a goal 1 + t = nat.succ t
-... |
a724672aa4a00ed81ac5435bcd40206f8b7e8ecd | 90edd5cdcf93124fe15627f7304069fdce3442dd | /tests/lean/run/aesop_tactic_config.lean | a9df71f8f640b98f62781457c3fc0dd3a64cb8ee | [
"Apache-2.0"
] | permissive | JLimperg/lean4-aesop | 8a9d9cd3ee484a8e67fda2dd9822d76708098712 | 5c4b9a3e05c32f69a4357c3047c274f4b94f9c71 | refs/heads/master | 1,689,415,944,104 | 1,627,383,284,000 | 1,627,383,284,000 | 377,536,770 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,067 | lean | /-
Copyright (c) 2021 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
-- TODO clean up this test case
import Lean.Aesop
inductive Even : Nat → Prop
| zero : Even Nat.zero
| plus_two {n} : Even n → Even (Nat.succ (Nat.succ n))
induct... |
e0a781e6674ffa8644eb4f3d44e17b4d04124488 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/laurent_series.lean | b91618ab7b928818a80d65eff4c5dc0cb0781058 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 6,536 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import ring_theory.hahn_series
import ring_theory.localization
/-!
# Laurent Series
## Main Definitions
* Defines `laurent_series` as an abbreviation for `hahn_seri... |
063ab25d861ac606283546f2f8b8791b0a8799dd | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean/Parser/Level.lean | 39aac716476d6ebd4189c52c73ccb754bfe9a0ae | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,448 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Parser.Parser
namespace Lean
namespace Parser
@[init mkBuiltinParsingTablesRef]
constant builtinLevelParsingTa... |
17be43a3e854cf5e93a8022458776351082c5a08 | 0003047346476c031128723dfd16fe273c6bc605 | /src/analysis/normed_space/operator_norm.lean | 346e6e6d7efcbfa0b15eebd3437d2be747c5e088 | [
"Apache-2.0"
] | permissive | ChandanKSingh/mathlib | d2bf4724ccc670bf24915c12c475748281d3fb73 | d60d1616958787ccb9842dc943534f90ea0bab64 | refs/heads/master | 1,588,238,823,679 | 1,552,867,469,000 | 1,552,867,469,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,816 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow
The space of bounded linear maps
Define the set of bounded linear maps between normed spaces and show basic facts about it. In
particular
(*) define a set L(E,F... |
6450d4d6b462f1e923f8878f9de6bad401f421d0 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/group_theory/solvable.lean | 70a58348d303378c069fa5736b2ab72e6e53481a | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,085 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning, Patrick Lutz
-/
import group_theory.abelianization
import data.bracket
/-!
# Solvable Groups
In this file we introduce th... |
d4592814daa337e8941268e697d8f7715e3a5d26 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/algebra/pi_instances.lean | bf2ab51b841a1b1ae3cc52f5bbd855f13e0916df | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 18,424 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.module
import ring_theory.subring
import ring_theory.prod
open_locale big_operators
/-!
# Pi instances for algebraic structures
-/
namespa... |
7df8da0307ca094c37de7ae3a68987ea66818195 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/1639.lean | 333023544b63f7082be1762a35536fc139c67a73 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 605 | lean | def some_lets : ℕ → ℕ → ℕ
| 0 v := v
| (nat.succ n) v := let k := some_lets n v + some_lets n v in some_lets n k
def some_unfolded_lets (n : ℕ) : Σ' v : ℕ , v = some_lets 5 n :=
begin
econstructor; dunfold some_lets; econstructor
end
meta def foo : tactic unit :=
do [g] <- tactic.get_goals,
tactic... |
3f78bc2dfbc69d49db0df37f3acee7767aa6cd9c | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eq11.lean | c1f123f56c6b61b3edd470930c6da5bd30cedc18 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 896 | lean | inductive day :=
monday, tuesday, wednesday, thursday, friday, saturday, sunday
open day
definition next_weekday : day → day,
next_weekday monday := tuesday,
next_weekday tuesday := wednesday,
next_weekday wednesday := thursday,
next_weekday thursday := friday,
next_weekday _ := monday
theorem next_wee... |
8c9f12c27e322fdc584b7dc056e4a23e19964e88 | fe84e287c662151bb313504482b218a503b972f3 | /src/data/rat_extra.lean | 05af3efa47dc0869a9a6e131ac0657271939ec7f | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,156 | lean | import data.rat
namespace rat
lemma mk_with_one_eq_cast (n : ℤ) : mk n 1 = n :=
by {rw[← of_int_eq_mk n,← coe_int_eq_of_int],}
lemma mk_nat_with_one_eq_cast (n : ℤ) : mk_nat n 1 = n :=
calc mk_nat n 1 = mk n (int.of_nat 1) : rfl
... = n : mk_with_one_eq_cast n
lemma mk_pnat_with_one_eq_cast (n : ℤ) : mk_pna... |
703822c3eae706cb37dd2da7b86d294b106025d7 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/coe11.lean | 095b41d7ce87d557d60c6028fc0d76090c5c3a0a | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 958 | lean | import algebra.category.basic
open category
inductive my_functor {obC obD : Type} (C : category obC) (D : category obD) : Type :=
mk : Π (obF : obC → obD) (homF : Π{A B : obC}, hom A B → hom (obF A) (obF B)),
(Π {A : obC}, homF (ID A) = ID (obF A)) →
(Π {A B C : obC} {f : hom A B} {g : hom B C}, homF (g ∘ f) =... |
ef5e2f6e0605a79aef8fbb61fa40bc91c8a5c67d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/parsePrelude.lean | 4fb3588542302f83eda27e87c1623891ea35a148 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 341 | lean | import Lean.Parser
def test : IO Unit :=
if System.Platform.isWindows then
pure () -- TODO investigate why the following doesn't work on Windows
else do
let env ← Lean.mkEmptyEnvironment;
discard <| Lean.Parser.testParseFile env (System.mkFilePath ["..", "..", "..", "src", "Init", "Prelude.lean"]);
IO.println ... |
60e606ff662a7f673d8e734bcd3276cfd47d20f1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/probability/variance.lean | cb59ffa0df42e5cd41ea2a6e738dc1089c1a5bc7 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 10,749 | lean | /-
Copyright (c) 2022 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import probability.notation
import probability.integration
/-!
# Variance of random variables
We define the variance of a real-valued random variable as `Var[... |
90fc79138aadd9e084b81dcc90c3773bb959fc6e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/continuous_on.lean | 8af2282f3e25d2f78e421e00e548abddf1cae724 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 55,893 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
* `nhds_within` of `nhds`
* `co... |
5c85f569121979393d9d6a5471032a01174bd799 | c5b07d17b3c9fb19e4b302465d237fd1d988c14f | /src/data/emb.lean | 41ecfef852988bb509ba534923d137026988c4fa | [
"MIT"
] | permissive | skaslev/papers | acaec61602b28c33d6115e53913b2002136aa29b | f15b379f3c43bbd0a37ac7bb75f4278f7e901389 | refs/heads/master | 1,665,505,770,318 | 1,660,378,602,000 | 1,660,378,602,000 | 14,101,547 | 0 | 1 | MIT | 1,595,414,522,000 | 1,383,542,702,000 | Lean | UTF-8 | Lean | false | false | 135 | lean | structure {u v} emb (A : Sort u) (B : Sort v) :=
(f : A → B) (g : B → A) (gf : Π x, g (f x) = x)
notation a ` ≲ ` b := emb a b
|
f5b35568862cb2322d80bf241f0007b005ca011b | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/subpp.lean | c584ea780bdcfbbc8bdad480695cc8629c167c80 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 65 | lean | -- import data.subtype
open nat subtype
check {x : nat| x > 0 }
|
b4de4b04a4a64f5b4f7a1a505220fdb8a3d83462 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/order/filter/ultrafilter.lean | 6faf3a83386fbb52261b44d8b5790f051d03b2e2 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 16,730 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.cofinite
import order.zorn
/-!
# Ultrafilters
An ultrafilter is a minimal (maximal in the set order) proper filt... |
a3380fff23cdf814cb90066df42950bbe58cdea4 | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/for_mathlib/topology.lean | 67d62233d43a8fdfafc5ac042125b02ac0fd3fe5 | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,735 | lean | import topology.separation
import topology.subset_properties
variables {X Y : Type*} [topological_space X] [topological_space Y]
lemma is_totally_disconnected_of_totally_disconnected_space
[totally_disconnected_space X] (s : set X) :
is_totally_disconnected s :=
λ t hts ht,
totally_disconnected_space.is_totally_d... |
afd136b50d357b79ca04a1b9f495bd929e3ccb08 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/tactic/default.lean | 5634b77de9754dd399c6de69d980e07f1723da2e | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 876 | lean | /-
This file imports many useful tactics ("the kitchen sink").
You can use `import tactic` at the beginning of your file to get everything.
(Although you may want to strip things down when you're polishing.)
Because this file imports some complicated tactics, it has many transitive dependencies
(which of course may n... |
a766536f64b9bc5da7341723e6c40f231ea3319d | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/tactic/monotonicity/basic.lean | 3e23bd4e22f1fdb7b0ee6ed2bef8c17be9c54c7b | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 5,469 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import algebra.order_functions
namespace tactic.interactive
open tactic list
open lean lean.parser interactive
open interactive.types
@[derive inhabited]
structure mono_cf... |
158a4ae4e7187870e925b82b4a006d95b790425b | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/euclidean_domain.lean | 2a65a7e94117f5f85697524c7511b7cf0bcdfc9a | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 2,126 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
-/
import ring_theory.coprime
import ring_theory.ideals
noncomputable theory
open_locale classical
open euclidean_domain set ideal
theorem span_gcd {α} [e... |
59d3a3de0ef9770d03a3946ef2b35bbeb8a2142b | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /stage0/src/Lean/Hygiene.lean | 97c2d835a45a878fec0f620b96fadce49f3a1a46 | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,616 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Data.Name
import Lean.Data.Options
import Lean.Data.Format
namespace Lean
/- Remark: `MonadQuotation` class is part of the `Init` package and l... |
795ea8341cddbb8526fb65cdf29f070749fc3705 | 2385ce0e3b60d8dbea33dd439902a2070cca7a24 | /tests/lean/run/with_cases1.lean | 9a5a4da4171c696f955d70cee73af7b084dda38c | [
"Apache-2.0"
] | permissive | TehMillhouse/lean | 68d6fdd2fb11a6c65bc28dec308d70f04dad38b4 | 6bbf2fbd8912617e5a973575bab8c383c9c268a1 | refs/heads/master | 1,620,830,893,339 | 1,515,592,479,000 | 1,515,592,997,000 | 116,964,828 | 0 | 0 | null | 1,515,592,734,000 | 1,515,592,734,000 | null | UTF-8 | Lean | false | false | 1,402 | lean | example (n : nat) (m : nat) : n > m → m < n :=
begin
with_cases { revert m, induction n },
case nat.zero : m' { show 0 > m' → m' < 0, sorry },
case nat.succ : n' ih m' { show nat.succ n' > m' → m' < nat.succ n', sorry }
end
example (n : nat) (m : nat) : n > m → m < n :=
begin
with_cases { revert m, induction n... |
9912754255a9aa746e222d28e54a7934edcf5f36 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/system/io.lean | 0775e0127476e772cdef8f131bac2ea686cb4d78 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 7,192 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch and Leonardo de Moura
-/
import data.buffer
inductive io.error
| other : string → io.error
| sys : nat → io.error
structure io.terminal (m ... |
c10d3caac431bd15b156ac9c8fe7091557ded131 | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /int/preterm.lean | 599d0a6156290473d18b5dd32aa3086c512dedec | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,451 | lean | import ..int ..simp_omega ..term ..logic
namespace int
@[derive has_reflect]
inductive preterm : Type
| cst : int → preterm
| var : int → nat → preterm
| add : preterm → preterm → preterm
notation `&` k := preterm.cst k
infix `**` : 300 := preterm.var
notation t `+*` s := preterm.add t s
-- | (& i) := sorry
-- ... |
6006d5803999dc96b8de961234a9a6c8082e2237 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Data/KVMap.lean | 70377c82308dee1b7a55636233ae28921ce9ace8 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,014 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.Name
namespace Lean
inductive DataValue where
| ofString (v : String)
| ofBool (v : Bool)
| ofName (v : Name)
| ofNat (v :... |
ee091364cb60e1310fa93b5b0cbc467d7e919bca | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/multiset/basic.lean | 7a67071d9e2d36275faf9089220937ffe55b717b | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 94,494 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.bool.all_any
import data.list.perm
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
## Notation
We define the glob... |
7f19c6599aa17a02771240653f65e344c9e8f7ed | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/symplectic_group.lean | 3e04c91cdebded7b4f45fa0e64139fd95fa771a7 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,330 | lean | /-
Copyright (c) 2022 Matej Penciak. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Matej Penciak, Moritz Doll, Fabien Clery
-/
import linear_algebra.matrix.nonsingular_inverse
/-!
# The Symplectic Group
This file defines the symplectic group and proves elementary p... |
14330553edfe7f64ffb8fd368a547e080ca324eb | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/nat/enat.lean | 210a865ca809bb35a1cb533ee32ca0a23083c42b | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,033 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.pfun
import tactic.norm_num
import data.equiv.mul_add
/-!
# Natural numbers with infinity
The natural numbers and an extra `top` element `⊤`.
## Main defin... |
ac85c60078f77fb781651ae17dcfbc7bd8e7435c | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/padics/padic_numbers.lean | 0601a7efe26a655bb82ec520322b7b9db35a16fa | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 32,419 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.padics.padic_norm
import analysis.normed_space.basic
/-!
# p-adic numbers
This file defines the p-adic numbers (rationals) ℚ_p as the completion of ℚ... |
bf1d1d0a6df4da896e07ea1731478d6a8debc7af | e1da55f4222dac91b940ca052928eaace09762da | /src/mathlib.lean | b7d8821740a3d8874dce53e756b2a45cfa98b2c6 | [] | no_license | b-mehta/regularity-lemma | c5826e22c280d0b073a4e62dba731f4dd3d1b69f | cf26082b0c88fa54276e6fdc3338c15e607c52c6 | refs/heads/master | 1,658,209,524,267 | 1,644,406,456,000 | 1,644,406,456,000 | 457,327,371 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,761 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.special_functions.log
import combinatorics.simple_graph.degree_sum
import combinatorics.pigeonhole
import data.set.equitable
i... |
634edec11291b5115f3e573004ebc4d254b3d458 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/category_theory/triangulated/basic.lean | 055cd606fda222c9b5e1a3627444028f0ef5a41c | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,115 | lean | /-
Copyright (c) 2021 Luke Kershaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Kershaw
-/
import category_theory.additive.basic
import category_theory.shift
import category_theory.preadditive.additive_functor
/-!
# Triangles
This file contains the definition... |
e47d00bf40f324bd6455b50c7650fae5b683085f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/slow_error.lean | a760e3e97e8bfcd7a8e19a2912599b097891b154 | [
"Apache-2.0"
] | permissive | leanprover-community/lean | 12b87f69d92e614daea8bcc9d4de9a9ace089d0e | cce7990ea86a78bdb383e38ed7f9b5ba93c60ce0 | refs/heads/master | 1,687,508,156,644 | 1,684,951,104,000 | 1,684,951,104,000 | 169,960,991 | 457 | 107 | Apache-2.0 | 1,686,744,372,000 | 1,549,790,268,000 | C++ | UTF-8 | Lean | false | false | 69 | lean | variable a : user_attribute string
variable b : string
#check a = b
|
5babe61104c5a1c4752de7bfaf360c007360b722 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/quotient.lean | ed577b27c5b0d303c7f47cbbe10a898101b20691 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,132 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import category_theory.natural_isomorphism
import category_theory.eq_to_hom
/-!
# Quotient category
Constructs the quotient of a category by an arbitrary family of relation... |
b32b06b60b48838b01a3ef89b451ab54120fc94d | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/def8.lean | 5be2803e1ee30d0c2498b63474e97d943ed54ed3 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 937 | lean |
def g : List Nat → List Nat → Nat
| [], y::ys => y
| [], ys => 0
| x1::x2::xs, ys => g xs ys
| x::xs, y::ys => g xs ys + y
| x::xs, [] => g xs []
universes u v
inductive Imf {α : Type u} {β : Type v} (f : α → β) : β → Type (max u v)
| mk : (a : α) → Imf f (f a)
def h {α β} {f : α... |
97ce49137d592db861c532d51ddf358bf811827a | 0851884047bb567d19e188e8f1ad959c5ae9c5ce | /src/Topology/Material/first_attempts_homeomorphism.lean | 71dd905beb1b02e3314bfd0dbb1ba3f64d1b2855 | [
"Apache-2.0"
] | permissive | yz5216/xena-UROP-2018 | 00d3f71a831324966d40d302544ed2cbbec3fd0f | 5e9da9dc64dc51897677f8b73ab9f94061a8d977 | refs/heads/master | 1,584,922,436,989 | 1,531,487,250,000 | 1,531,487,250,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,641 | lean | import analysis.topology.continuity
import analysis.topology.topological_space
import analysis.topology.infinite_sum
import analysis.topology.topological_structures
import analysis.topology.uniform_space
universes u v w
open set filter lattice classical
def empty_set_topology : topological_space empty :=
{
is_open ... |
3c932a0b71050ad98f53c99e7bb207465f258785 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/monoidal/internal/Module.lean | 2f85876d65dcf95d10f89af2a6e324c6d6f4aa88 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 5,002 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Module.monoidal
import algebra.category.Algebra.basic
import category_theory.monoidal.Mon_
/-!
# `Mon_ (Module R) ≌ Algebra R`
The category... |
b33eef408e00745e38902f932443155c2f2816f4 | 5ca87fb2890eabae94422af0565520bfafd6c4ae | /lean/elf.lean | ae1941d36abe6d253acdfe80e2ba27d4294e7d78 | [
"Apache-2.0"
] | permissive | dagit/reopt-vcg | 5b7e1a0eceaac4736fd8ab8985d861c86ac5cff2 | a80da1c1ff8dbf28d864b30999b166f76e66e231 | refs/heads/master | 1,585,418,433,534 | 1,541,806,437,000 | 1,541,806,437,000 | 148,844,174 | 0 | 0 | null | 1,536,960,966,000 | 1,536,960,966,000 | null | UTF-8 | Lean | false | false | 14,468 | lean | /-
This file contains the start of an Elf parser for Lean. It currently has facilities for parsing
Elf
-/
import system.io
import init.category.reader
def repeat {α : Type} {m : Type → Type} [applicative m] : ℕ → m α → m (list α)
| 0 m := pure []
| (nat.succ n) m := list.cons <$> m <*> repeat n m
def forM' {m : Typ... |
53c8542263b573ee7830cbe21a198ef54e8ed3fa | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/field_theory/tower.lean | c1bfff5697175cda4dad488bbc43b2664a94617b | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 5,538 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import ring_theory.algebra_tower
import linear_algebra.matrix.finite_dimensional
import linear_algebra.matrix.to_lin
/-!
# Tower of field extensions
In this file we prove th... |
12d6d31935242892d08ae8d3be618f2562be5ad9 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /06_Inductive_Types.org.13.lean | f96a9bb812f14ec92333f4c3a15c25505967b0fb | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 250 | lean | /- page 81 -/
import standard
import data.prod
open prod
namespace hide
-- BEGIN
definition pr1 {A B : Type} (p : A × B) : A :=
prod.rec_on p (λ a b, a)
definition pr2 {A B : Type} (p : A × B) : B :=
prod.rec_on p (λ a b, b)
-- END
end hide
|
1b0dae43de3340282512fd25336a905f0e957b63 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/data/mv_polynomial.lean | 5b18abf81a9f87467e46df04f0db428a3c8a29f1 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 46,905 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import algebra.ring
import data.finsupp data.polynomial data.equiv.algebra
/-!
# Multivariate polynomials
This file defines polynom... |
02143a67bc97eb92fbe4bb254626acb126d13ed2 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/num/basic.lean | a36b360ee37f1f1981409b65e8cf1751514633cd | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 17,315 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
Binary representation of integers using inductive types.
Note: Unlike in Coq, where this representation is preferred because of
the reliance ... |
263b93809b4fda1fabf1f15f208661ae19f79919 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/group_action/sum.lean | 12e63af2154b719e0c5dec6052931a04d98b1421 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 2,568 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import group_theory.group_action.defs
/-!
# Sum instances for additive and multiplicative actions
This file defines instances for additive and multiplicative actions on... |
945f7109535a7700889f5ea229346ba2fba88a2b | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /ring_theory/localization.lean | 73ebc610eae50faa4c6777bb8780c2c4fb86b982 | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 10,412 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import tactic.ring data.quot ring_theory.ideals
universe u
namespace localization
variables (α : Type u) [comm_ring α] (S : set α) [is_submonoid α S]
def r : α × S → α × S ... |
7466e13a3ddf272da5c388ae8608382cfd75d734 | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/lean/semantics/air_encoding/final_correctness.lean | bfee87532255c5dc876f0cf3a34c35ac98c45922 | [
"Apache-2.0"
] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 3,858 | lean | /-
This is the final correctenss theorem, stated in terms of the autogenerated constraints.
The statements of theorems only depend on the data and constraints specified in
`constraints_autogenerated.lean` and the machine semantics in `cpu.lean`.
-/
import starkware.cairo.lean.semantics.air_encoding.correctness
import ... |
31c7d904b49b3814a40d47b40d343f6c70a5ccad | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/set/function.lean | c517aaaaa3fe723bfd3a257bfb13ab877662d56c | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 18,238 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov
-/
import data.set.basic
import logic.function.basic
/-!
# Functions over sets
## Main definitions
### Predic... |
52f4cf51eeebb15726891925b57906ea1686ba19 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/choice_ctx.lean | 1b19094ae5a73a3d9b98319c6317dc6f0321c953 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 314 | lean | open nat
open eq
set_option pp.coercions true
namespace foo
theorem trans {a b c : nat} (H1 : a = b) (H2 : b = c) : a = c :=
trans H1 H2
end foo
open foo
theorem tst (a b : nat) (H0 : b = a) (H : b = 0) : a = 0
:= have H1 : a = b, from symm H0,
foo.trans H1 H
definition f (a b : nat) :=
let x := 3 in
a + x
|
416aabfbf494bb213a907b2ce93e2da010179744 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/converter/apply_congr.lean | 4c1ff3f74ea780ba546a8592ea269652f65e637c | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,348 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Scott Morrison
-/
import tactic.interactive
import tactic.converter.interactive
/-!
## Introduce the `apply_congr` conv mode tactic.
`apply_congr` will apply congruence ... |
c886528d5f67937f3839a79bca77559ad7125bae | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /prob.lean | 1cb003902773ae74de4e01fcd71184028491c661 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,242 | lean | import data.real.basic tactic.find
variables {Ω : Type*} {α : Type*}
open set
local attribute [instance] classical.prop_decidable
noncomputable theory
lemma union_diff_eq_union (s t : set α)
: s ∪ (t \ s) = s ∪ t := set.ext $ λ x,
or.by_cases (classical.em (x ∈ s)) (λ h, by simp [h]) (λ h, by simp [h])
@[simp] ... |
b34795c0cb17e41a9cca6e7d4dad88ea448da9c9 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Elab/Declaration.lean | d0aeabf782a343046c232ab89a43f58da002b277 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,804 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Util.CollectLevelParams
import Lean.Elab.DeclUtil
import Lean.Elab.DefView
import Lean.Elab.Inductive
import Lean.Elab.Struct... |
1e302262dc72e0957966d5fdab556b1b9ac2b821 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/field_theory/normal.lean | 096d58cb1702f794ccb162e24207fde654e0fa51 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,329 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Thomas Browning, Patrick Lutz
-/
import field_theory.adjoin
import field_theory.tower
import group_theory.solvable
import ring_theory.power_basis
/-!
# Normal field extensions
... |
cedb8db9bb27eeb376dd80eff807c1e2336694c6 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/category_theory/isomorphism.lean | d160959c50bb37124f26234e795e6468406595ce | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 10,405 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.functor
import tactic.reassoc_axiom
/-!
# Isomorphisms
This file defines isomorphisms between ... |
5f69749d5b5b97520c25c07a19a3b85b51454c96 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/SyntheticMVars.lean | d0bb07faef3a1aec1a60ab84148160a2d2c0e9b4 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 24,591 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Meta.Tactic.Util
import Lean.Util.ForEachExpr
import Lean.Util.OccursCheck
import Lean.Elab.Tactic.Basic
namespace Lean.Elab... |
0ed4b70ac6e4e05890364cdd024b38dab76ea92e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/init/quot.lean | 27ac8b4595a93edfbfdf3de241c5acfc09efe302 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 8,018 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Quotient types.
-/
prelude
import init.sigma init.setoid init.logic
open sigma.ops setoid
constant quot.{l} : Π {A : Type.{l}}, setoid A → Type.{l}
-- Remar... |
440164981cab8eced8e7dfeed411d404917647fb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/CommRing/limits.lean | 41450923623b6007c1b27b4bacd36905da5049e3 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,717 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ring.pi
import Mathlib.algebra.category.CommRing.basic
import Mathlib.algebra.categ... |
c215755611ede35bde260b5ede5740626c7d6f3c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/hit/refl_quotient.hlean | 010a307054db99006d53975fcbb409cd8cf820a7 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 3,101 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Quotient of a reflexive relation
-/
import homotopy.circle cubical.squareover .two_quotient
open eq simple_two_quotient e_closure
namespace refl_quotient
sectio... |
bbbc7b654fb114d3b4b4bef91d8b003e5b52c097 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /counterexamples/phillips.lean | 548429ff4b7f5acf8b8602373f648334efbc4ec9 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 28,989 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.hahn_banach.extension
import measure_theory.measure.lebesgue
/-!
# A counterexample on Pettis integrability
There are several the... |
60b45f78dcefde605e7bd22425451bebf7819215 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/algebra/order/monotone_convergence.lean | f2c2e1bfbb0753248b13ae1bdf55f310fe6558f1 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 13,761 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, Yury Kudryashov
-/
import topology.order.basic
/-!
# Bounded monotone sequences converge
In this file we prove a few theorems of the form “if the range of a monoton... |
3c352487ada7ad3035ca28865a5f61af52cda405 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_2007.lean | 777165bfc46b76a2b197285ae4d6f2455af893e2 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 256 | lean | import algebra.ordered_ring
variables {R : Type*} [ordered_ring R]
variables a b c : R
-- BEGIN
example : a ≤ b → 0 ≤ b - a := sorry
example : 0 ≤ b - a → a ≤ b := sorry
example (h : a ≤ b) (h' : 0 ≤ c) : a * c ≤ b * c := sorry
-- END |
7c9141695b87fe039dc029989aec032a70cd91d3 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/list/as_type.lean | 83ec2cc58cd44b510c97dc8ff99eec9e689a2019 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 481 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.list.as_type
Authors: Leonardo de Moura
-/
import data.list.basic
namespace list
structure as_type {A : Type} (l : list A) : Type :=
(value : A) (is_member : value ∈ l)
names... |
f8c6ef94a99fcc07dc80d2dd45eed175bd0841e5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/lp_equiv.lean | ce69795dbb0442c07bbad41d6ee13ea7593afa56 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 7,243 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import analysis.normed_space.lp_space
import analysis.normed_space.pi_Lp
import topology.continuous_function.bounded
/-!
# Equivalences among $$L^p$$ spaces
In this f... |
da0850cc1e4fe37b789399c54cae31f2ec3a3a99 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/pred_logic/unnamed_744.lean | 01c232103e795c6400ec8aa15a94fe4f17bbb4f0 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 112 | lean | def even (a : ℕ) := ∃ b, a = 2 * b
example (h : 10 = 2 * 5) : even 10 :=
begin
exact exists.intro 5 h
end |
a468526c6c5da7140ed15b1bb93f7944b251d964 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/analysis/special_functions/log.lean | 9f6414056def940b9a6bc3d1165591c1262bae2e | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,305 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne
-/
import analysis.special_functions.exp
/-!
# Real logarithm
In this file we define `real.log` to be the logarithm of a re... |
33693f2c58060e703a73ab0db93136e5a5301bad | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/mk_dec_eq_instance_indices.lean | d7eaf2a492ab0990548f8ae7afa479d4f6f9e72d | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 666 | lean | open tactic
namespace X1
inductive Foo : unit -> Type
| mk : Foo () -> Foo ()
instance (u : unit) : decidable_eq (Foo u) := by mk_dec_eq_instance
end X1
namespace X2
inductive Foo : bool -> bool -> Type
| mk₁ : Foo tt tt
| mk₂ : Foo ff ff -> Foo tt ff
instance (idx₁ idx₂ : bool) : decidable_eq (Foo idx₁ idx₂) :=... |
e2cd151c57d7e763c82a2006464f50a14dc62cab | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/linear/default.lean | ea1e87f9ee9dd1f14aab46bf01cc4ad48d6552fa | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,416 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.preadditive
import algebra.module.linear_map
import algebra.invertible
import linear_algebra.basic
import algebra.algebra.basic
/-!
# Linear c... |
e1258d29f805b8eeb210ef57bb6b2b57465048f7 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/continuous_function/basic.lean | 20ccb6ea930bad75c9b1eaf81f387208c6f96e5f | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 10,628 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import data.set.Union_lift
import topology.homeomorph
/-!
# Continuous bundled maps
In this file we define the type `continuous_map` of continuous bundled maps.
... |
61753d9376d3fe6c809a2191ecba6451256f639d | df561f413cfe0a88b1056655515399c546ff32a5 | /1-tutorial-world/l1.lean | 8d482426ebda60a91459bed3a9651c9f25dd61c6 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 73 | lean | lemma example1 (x y z : mynat) : x * y + z = x * y + z :=
begin
refl,
end |
c431e594afa35c200b2ea66f1b12c5a7f7eddc77 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/locally_convex/continuous_of_bounded.lean | 7245d211bd25b0393859d833ab6c5d7499a43c66 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 7,760 | lean | /-
Copyright (c) 2022 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import analysis.locally_convex.bounded
import data.is_R_or_C.basic
/-!
# Continuity and Von Neumann boundedness
This files proves that for `E` and `F` two topologica... |
1785841531bf8eb1fa30e3501bddd12985ed0d0c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/char_p/exp_char.lean | 4aeb0a2af172eaaf17e248b13d70bc7fc89c8e2a | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 4,065 | lean | /-
Copyright (c) 2021 Jakob Scholbach. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob Scholbach
-/
import algebra.char_p.basic
import data.nat.prime
/-!
# Exponential characteristic
This file defines the exponential characteristic and establishes a few basic re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.