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
97d10a466cf3ca4d00afd95b3ec3c6a0f9c7f0a1
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/data/finsupp/fintype.lean
0f77c4113b1dd6ae240dccb3be55bfb94157515c
[ "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
1,013
lean
/- Copyright (c) 2022 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen, Alex J. Best -/ import data.finsupp.defs import data.fintype.basic /-! # Finiteness and infiniteness of `finsupp` Some lemmas on the combination of `finsupp`, `fintype` an...
cb6c2604bb3246467ef128eaecdabf902db1db40
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/measure_theory/measure/outer_measure.lean
9a68b5f9116db7512aaef5288f0086dd16943244
[ "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
61,936
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, Mario Carneiro -/ import analysis.specific_limits import measure_theory.pi_system import data.fin.vec_notation import topology.algebra.infinite_sum /-! # Outer Measure...
6051fe34514131aa1a152c369ccf352b6d82478f
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/ring_theory/witt_vector/basic.lean
a371abb3895a0889fc26d35f335caa7331cb9873
[]
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
7,638
lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Robert Y. Lewis -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.mv_polynomial.counit import Mathlib.data.mv_polynomial.invertible imp...
b3c81d963cd9c0a25ea6704b4bc9612922a2ee60
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/linear_algebra/free_module/ideal_quotient.lean
feb64f957bec7389d568de04f66500530ae7cf6c
[ "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,631
lean
/- Copyright (c) 2022 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import data.zmod.quotient import linear_algebra.free_module.finite.basic import linear_algebra.free_module.pid import linear_algebra.quotient_pi /-! # Ideals in free modu...
e182d969c88f137b0d7a842e138e3f33ed64fe32
9b9a16fa2cb737daee6b2785474678b6fa91d6d4
/src/category_theory/limits/functor_category.lean
e788e90af10204524cecb1082ebc8a2847b993cc
[ "Apache-2.0" ]
permissive
johoelzl/mathlib
253f46daa30b644d011e8e119025b01ad69735c4
592e3c7a2dfbd5826919b4605559d35d4d75938f
refs/heads/master
1,625,657,216,488
1,551,374,946,000
1,551,374,946,000
98,915,829
0
0
Apache-2.0
1,522,917,267,000
1,501,524,499,000
Lean
UTF-8
Lean
false
false
4,862
lean
-- Copyright (c) 2018 Scott Morrison. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Authors: Scott Morrison import category_theory.products import category_theory.limits.preserves open category_theory category_theory.category namespace category_theory.limits universe...
e5f38ad8064d70111d65609caced30a3ec3501e7
4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d
/stage0/src/Lean/Compiler/IR/EmitC.lean
796c29e61fca9992aab1f7fe2810b5fdae38b0ec
[ "Apache-2.0" ]
permissive
subfish-zhou/leanprover-zh_CN.github.io
30b9fba9bd790720bd95764e61ae796697d2f603
8b2985d4a3d458ceda9361ac454c28168d920d3f
refs/heads/master
1,689,709,967,820
1,632,503,056,000
1,632,503,056,000
409,962,097
1
0
null
null
null
null
UTF-8
Lean
false
false
25,863
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 -/ import Lean.Runtime import Lean.Compiler.NameMangling import Lean.Compiler.ExportAttr import Lean.Compiler.InitAttr import Lean.Compiler.IR.CompilerM import...
1cf46a2185b4176374b52e62799734c5012749f8
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/topology/locally_constant/basic.lean
1148549c6bcd2d4a3eb927a32c5749900a10b592
[ "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
19,425
lean
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import topology.subset_properties import topology.connected import topology.continuous_function.basic import algebra.indicator_function import tactic.tfae import tact...
98c2ad9fa74fbb263cfb12caaae5ad0d34594e7a
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/ring_theory/trace.lean
c5d0ce8bf0fdf9dcf7a461dec9874efe6b52d97c
[ "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
23,613
lean
/- Copyright (c) 2020 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import linear_algebra.matrix.bilinear_form import linear_algebra.matrix.charpoly.minpoly import linear_algebra.determinant import linear_algebra.finite_dimensional import ...
6b2d949c9f14058a334c293bddce053daf634f12
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/extra/rec5.lean
3af93d474707100d95dafde492cbf56a59a4e6d8
[ "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
808
lean
import data.list open nat list set_option pp.implicit true set_option pp.notation false definition filter {A : Type} (p : A → Prop) [H : decidable_pred p] : list A → list A, filter nil := nil, filter (h :: t) := if p h then h :: filter t else filter t open decidable definition decidable_eq_nat : Π (a b : nat),...
10af572821d2a56b74f98f55a87c0331146854c5
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/combinatorics/simple_graph/subgraph.lean
943b22372c0bec1e3f74194c22ab3c32e9fdb53f
[ "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
17,461
lean
/- Copyright (c) 2021 Hunter Monroe. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Hunter Monroe, Kyle Miller, Alena Gusakov -/ import combinatorics.simple_graph.basic /-! # Subgraphs of a simple graph A subgraph of a simple graph consists of subsets of the graph's ...
0ac9e9515900486021a6ce524e97667fd66ccacb
4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d
/src/Lean/Parser/Term.lean
163275cf91c92a8180559720fa4c6346412797d8
[ "Apache-2.0" ]
permissive
subfish-zhou/leanprover-zh_CN.github.io
30b9fba9bd790720bd95764e61ae796697d2f603
8b2985d4a3d458ceda9361ac454c28168d920d3f
refs/heads/master
1,689,709,967,820
1,632,503,056,000
1,632,503,056,000
409,962,097
1
0
null
null
null
null
UTF-8
Lean
false
false
18,676
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 -/ import Lean.Parser.Attr import Lean.Parser.Level namespace Lean namespace Parser namespace Command def commentBody : Parser := { fn := ...
b035137f9ebd465d35cad489fa0791de8d4b22db
f10d66a159ce037d07005bd6021cee6bbd6d5ff0
/poly_over_integral_domain.lean
6a6f833bfe2c8219fe9d3fff320c45d787fe4fa0
[]
no_license
johoelzl/mason-stother
0c78bca183eb729d7f0f93e87ce073bc8cd8808d
573ecfaada288176462c03c87b80ad05bdab4644
refs/heads/master
1,631,751,973,492
1,528,923,934,000
1,528,923,934,000
109,133,224
0
1
null
null
null
null
UTF-8
Lean
false
false
12,271
lean
import .Sup_fin data.finsupp order.lattice data.nat.cast .euclidean_domain unique_factorization_domain import .to_finsupp .to_finset poly associated_quotient universes u v w noncomputable theory open classical set function finsupp lattice local attribute [instance] finsupp.to_comm_semiring local attribute [instance...
839a28a78f6484a006a2b9fb94981bc3316346f5
7b66d83f3b69dae0a3dfb684d7ebe5e9e3f3c913
/src/solutions/thursday/afternoon/linear_algebra.lean
7fd80d36e5746e60f76202f765c72b3580802b99
[]
permissive
dpochekutov/lftcm2020
58a09e10f0e638075b97884d3c2612eb90296adb
cdfbf1ac089f21058e523db73f2476c9c98ed16a
refs/heads/master
1,669,226,265,076
1,594,629,725,000
1,594,629,725,000
279,213,346
1
0
MIT
1,594,622,757,000
1,594,615,843,000
null
UTF-8
Lean
false
false
10,213
lean
import analysis.normed_space.real_inner_product import data.matrix.notation import linear_algebra.bilinear_form import linear_algebra.matrix import tactic universes u v section exercise1 namespace semimodule variables (R M : Type*) [comm_semiring R] [add_comm_monoid M] [semimodule R M] /- - - - - - - - - - - - - -...
cf4b459216488018dd364313b6362557e24e042d
36c7a18fd72e5b57229bd8ba36493daf536a19ce
/library/algebra/field.lean
ed3ded3746c41f62896ff74534fde24f86492937
[ "Apache-2.0" ]
permissive
YHVHvx/lean
732bf0fb7a298cd7fe0f15d82f8e248c11db49e9
038369533e0136dd395dc252084d3c1853accbf2
refs/heads/master
1,610,701,080,210
1,449,128,595,000
1,449,128,595,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
19,997
lean
/- Copyright (c) 2014 Robert Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Lewis Structures with multiplicative and additive components, including division rings and fields. The development is modeled after Isabelle's library. -/ import logic.eq logic.c...
21bd66b8b3aaf02b9843c467b15290ef01dddb8f
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/algebra/continued_fractions/computation/terminates_iff_rat.lean
1e15d9bddc7838d94a62962a444f19ed86d1f28d
[ "Apache-2.0" ]
permissive
waynemunro/mathlib
e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552
065a70810b5480d584033f7bbf8e0409480c2118
refs/heads/master
1,693,417,182,397
1,634,644,781,000
1,634,644,781,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
14,470
lean
/- Copyright (c) 2020 Kevin Kappelmann. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Kappelmann -/ import algebra.continued_fractions.computation.approximations import algebra.continued_fractions.computation.correctness_terminating import data.rat /-! # Termina...
f9b8db576739c40c45ea57f8d3350302e93bf984
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/algebra/geom_sum.lean
39427b1f9dee0ca4584e3ce538b4e0069d0a1246
[]
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
5,407
lean
/- Copyright (c) 2019 Neil Strickland. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Neil Strickland Sums of finite geometric series -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebra.group_with_zero.power import Mathlib.algebra.big...
1c96d280f1339faa3aa2f8ded418eb780c4ec644
1a61aba1b67cddccce19532a9596efe44be4285f
/library/data/real/order.lean
0938738a461ea747fbbb7c881fa936275c2f7c33
[ "Apache-2.0" ]
permissive
eigengrau/lean
07986a0f2548688c13ba36231f6cdbee82abf4c6
f8a773be1112015e2d232661ce616d23f12874d0
refs/heads/master
1,610,939,198,566
1,441,352,386,000
1,441,352,494,000
41,903,576
0
0
null
1,441,352,210,000
1,441,352,210,000
null
UTF-8
Lean
false
false
36,260
lean
/- Copyright (c) 2015 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Robert Y. Lewis The real numbers, constructed as equivalence classes of Cauchy sequences of rationals. This construction follows Bishop and Bridges (1985). To do: o Rename things and...
0bb6e12e3a22bfbc848203ef53f048cb296ccb40
367134ba5a65885e863bdc4507601606690974c1
/src/algebra/group/units_hom.lean
bcab0e0c4de522a9bc1b0ed34c3a0575d2bfc2c9
[ "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,062
lean
/- Copyright (c) 2018 Johan Commelin All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Chris Hughes, Kevin Buzzard -/ import algebra.group.hom /-! # Lift monoid homomorphisms to group homomorphisms of their units subgroups. -/ universes u v w namespace u...
fb0685ce50bc3576cb4f9e6091aa4d130655b692
77c5b91fae1b966ddd1db969ba37b6f0e4901e88
/src/ring_theory/adjoin_root.lean
af384e4770058d222d3d210aee44ca30a1403fc4
[ "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
10,311
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 data.polynomial.field_division import linear_algebra.finite_dimensional import ring_theory.adjoin.basic import ring_theory.power_basis import rin...
47a2be63b19706186e8abdbf1bafb5bab63d5da3
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/kevin.lean
406000b80226e62d69ef393e696441255a8e18c3
[ "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
110
lean
import Lean open Lean macro:10000 x:term "ⁿ" : term => `($x ^ $(mkIdent `n)) #check fun (n : Nat) => nⁿ
af91db36ad1537186506c0a918dc5ae5f1617844
cc62cd292c1acc80a10b1c645915b70d2cdee661
/src/category_theory/yoneda_comparisons.lean
fa6c17b992a2e3c41e92991bb941da0bb55e6b85
[]
no_license
RitaAhmadi/lean-category-theory
4afb881c4b387ee2c8ce706c454fbf9db8897a29
a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e
refs/heads/master
1,651,786,183,402
1,565,604,314,000
1,565,604,314,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,922
lean
import category_theory.yoneda import category_theory.follow_your_nose universes v₁ u₁ open category_theory open opposite -- Unimath, Coq -- https://github.com/UniMath/UniMath/blob/master/UniMath/CategoryTheory/yoneda.v -- Greg O'Keefe, Isabelle -- https://www.isa-afp.org/browser_info/current/AFP/Category/document.pd...
a634973081048cd984853d7686006289a4f7d4b6
f5373ccdc976e6390397d9f4220a74c76f706f4a
/src/lean_gym/interface_m.lean
f24d753955d0a5ef5db6ff6724cdbe7f545db255
[]
no_license
jasonrute/lean_gym_prototype
fcd91fdc454f9e351bbe258c765f50276407547e
ab29624d14e4e069e15afe0b1d90248b5b394b86
refs/heads/master
1,682,628,526,780
1,590,539,315,000
1,590,539,315,000
264,938,525
3
0
null
null
null
null
UTF-8
Lean
false
false
9,989
lean
import tactic.core -- TODO: Remove this but need derive handler for monad import tools.json_server import lean_gym.api import lean_gym.api_instances /- The interface monad is made of three parts - A read-only configuration structure having information on how to communicate with io and the parser as well as othe...
6b5a927037f7eef09aabeb3a00b329e60c30188f
4727251e0cd73359b15b664c3170e5d754078599
/src/category_theory/limits/shapes/reflexive.lean
9415a43050ad7597aa7a990b4e7cd2c4155bcaaa
[ "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
6,147
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.limits.shapes.equalizers import category_theory.limits.shapes.kernel_pair /-! # Reflexive coequalizers We define reflexive pairs as a pair of mor...
c7a8999188d5eb730ace1b08da58101a8991943d
c31182a012eec69da0a1f6c05f42b0f0717d212d
/scripts/print_thm95_axioms.lean
4a658cf6d0f30df94f3ab1f98a6ef2649953dec3
[]
no_license
Ja1941/lean-liquid
fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc
8e80ed0cbdf5145d6814e833a674eaf05a1495c1
refs/heads/master
1,689,437,983,362
1,628,362,719,000
1,628,362,719,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
249
lean
import system.io import liquid -- Surround with unique tokens to be robust against anything in the import that may product output. #print "BEGIN_THM95_AXIOMS" #print axioms first_target #print "END_THM95_AXIOMS" meta def main : io unit := pure ()
c41ab9cc0a8c5f08c6233c557712c63769477125
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/topology/homotopy/fundamental_groupoid.lean
14dc2d0d76f36cdef5298c0dd2ea3b3d295942f0
[ "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
10,174
lean
/- Copyright (c) 2021 Shing Tak Lam. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Shing Tak Lam -/ import topology.homotopy.path import category_theory.groupoid /-! # Fundamental groupoid of a space Given a topological space `X`, we can define the fundamental group...
a5503dc485c1b23e5e813d81861b5997faf90ed7
ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5
/tests/compiler/float.lean
ae2e98122a155422e700897c4ebe7a84346158b0
[ "Apache-2.0" ]
permissive
dupuisf/lean4
d082d13b01243e1de29ae680eefb476961221eef
6a39c65bd28eb0e28c3870188f348c8914502718
refs/heads/master
1,676,948,755,391
1,610,665,114,000
1,610,665,114,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
968
lean
def tst1 : IO Unit := do IO.println (1 : Float); IO.println ((1 : Float) + 2); IO.println ((2 : Float) - 3); IO.println ((3 : Float) * 2); IO.println ((3 : Float) / 2); IO.println (decide ((3 : Float) < 2)); IO.println (decide ((3 : Float) < 4)); IO.println ((3 : Float) == 2); IO.println ((2 : Float) == 2); IO.println...
a94971440277ba1fc8144078234bb596150af49f
32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7
/tests/lean/run/newfrontend5.lean
23185f9d7beca7c4d8c68620aeed33450852e909
[ "Apache-2.0" ]
permissive
walterhu1015/lean4
b2c71b688975177402758924eaa513475ed6ce72
2214d81e84646a905d0b20b032c89caf89c737ad
refs/heads/master
1,671,342,096,906
1,599,695,985,000
1,599,695,985,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,976
lean
def foo {α} (f : forall {β}, β → β) (a : α) : α := f a new_frontend #check_failure let g := id; foo g true -- fails /- Expands to ``` let g : ?γ → ?γ := @id ?γ; @foo ?α (fun (β : Sort ?u) => g) true ``` Unification constraint ``` ?γ → ?γ =?= β → β ``` fails because `β` is not in the scope of `?γ` Error message ca...
b57fc890a1165671cfcc5cf8e1d0cb19907f40f0
b2e508d02500f1512e1618150413e6be69d9db10
/src/category_theory/adjunction/limits.lean
6a64d297605e953aa1d182ca0eceaa0b4f4c2df0
[ "Apache-2.0" ]
permissive
callum-sutton/mathlib
c3788f90216e9cd43eeffcb9f8c9f959b3b01771
afd623825a3ac6bfbcc675a9b023edad3f069e89
refs/heads/master
1,591,371,888,053
1,560,990,690,000
1,560,990,690,000
192,476,045
0
0
Apache-2.0
1,568,941,843,000
1,560,837,965,000
Lean
UTF-8
Lean
false
false
5,076
lean
/- Copyright (c) 2019 Reid Barton. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Reid Barton, Johan Commelin -/ import category_theory.adjunction.basic import category_theory.limits.preserves open opposite namespace category_theory.adjunction open category_theory op...
efd051a39c17f420030b27b582c9007337e8f55e
9dc8cecdf3c4634764a18254e94d43da07142918
/src/data/nat/factorial/basic.lean
5760aa0df81861504bb1dcc5e54e7842d6abf052
[ "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
14,798
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, Floris van Doorn, Yaël Dillies -/ import data.nat.basic import data.nat.pow /-! # Factorial and variants This file defines the factorial, along with the...
9bbc770db2d9d8093b0203cbe6e502852ab529b6
94e33a31faa76775069b071adea97e86e218a8ee
/src/topology/metric_space/emetric_paracompact.lean
e98eeb0e4256ee29372b296ed8174eccbf3a1ef3
[ "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
8,365
lean
/- Copyright (c) 202 Yury G. Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury G. Kudryashov -/ import set_theory.ordinal.basic import topology.metric_space.emetric_space import topology.paracompact /-! # (Extended) metric spaces are paracompact In this...
2151c484ea6135292dc675f8adeab04cacb31a47
9dd3f3912f7321eb58ee9aa8f21778ad6221f87c
/tests/lean/run/meta2.lean
c796c24db6653bc510d7f9ecbaaa436b740b0679
[ "Apache-2.0" ]
permissive
bre7k30/lean
de893411bcfa7b3c5572e61b9e1c52951b310aa4
5a924699d076dab1bd5af23a8f910b433e598d7a
refs/heads/master
1,610,900,145,817
1,488,006,845,000
1,488,006,845,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
213
lean
import system.io meta definition foo : nat → nat | a := nat.cases_on a 1 (λ n, foo n + 2) vm_eval (foo 10) meta definition loop : nat → io unit | a := do put_str ">> ", put_nat a, put_str "\n", loop (a+1)
e316e32eba3110f32c078af6572230143e172414
e0f9ba56b7fedc16ef8697f6caeef5898b435143
/src/logic/embedding.lean
eed50f99b7e4648b12e4cbff6a8992a1b22aeeb4
[ "Apache-2.0" ]
permissive
anrddh/mathlib
6a374da53c7e3a35cb0298b0cd67824efef362b4
a4266a01d2dcb10de19369307c986d038c7bb6a6
refs/heads/master
1,656,710,827,909
1,589,560,456,000
1,589,560,456,000
264,271,800
0
0
Apache-2.0
1,589,568,062,000
1,589,568,061,000
null
UTF-8
Lean
false
false
8,080
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, Mario Carneiro -/ import data.equiv.basic /-! # Injective functions -/ universes u v w x namespace function /-- `α ↪ β` is a bundled injective function. -/ structur...
c75b2c7e9f16dac08184ce43ae517b6b99a5ad5e
0f5090f82d527e0df5bf3adac9f9e2e1d81d71e2
/src/michael/path.lean
6374468a8447e0eba985f2a9125de1bbfd27b288
[]
no_license
apurvanakade/mc2020-lean-projects
36eb42c4baccc37183635c36f8e1b3afa4ec1230
02466225aa629ab1232043bcc0a053a099fdb939
refs/heads/master
1,688,791,717,534
1,597,874,092,000
1,597,874,092,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
9,900
lean
-- authorship note: we pulled things from mathlib:hedetniemi without looking carefully at authorship. -- we'll have to backsolve for the author list later import michael.simple_graph universes u variables {V : Type u} section list lemma list.cons_nth_le_succ {α : Type*} {hd : α} (tl : list α) (n : ℕ) (hn : n + ...
24addfc020a2cd70d75fb9c0f4a5b558ee16f3d9
4aca55eba10c989f0d58647d3c2f371e7da44355
/src/matrix_basic.lean
2d6c54c8cd4d6fbffe5be89b452c334bbea27548
[]
no_license
eric-wieser/l534zhan-my_project
f9fc75fb5454405e1a2fa9b56cf96c355f6f2336
febc91e76b7b00fe2517f258ca04d27b7f35fcf3
refs/heads/master
1,689,218,910,420
1,630,439,440,000
1,630,439,440,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
17,200
lean
/- Copyright (c) 2021 Lu-Ming Zhang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Lu-Ming Zhang. -/ import linear_algebra.matrix.trace import linear_algebra.matrix.to_lin import linear_algebra.matrix.nonsingular_inverse import data.complex.basic /-! This f...
ece2dd9aae6977609062ec75d968662138583004
437dc96105f48409c3981d46fb48e57c9ac3a3e4
/src/analysis/normed_space/finite_dimension.lean
cb89c01bb5e5efbaee063e5a537c93e59c17b57c
[ "Apache-2.0" ]
permissive
dan-c-k/mathlib
08efec79bd7481ee6da9cc44c24a653bff4fbe0d
96efc220f6225bc7a5ed8349900391a33a38cc56
refs/heads/master
1,658,082,847,093
1,589,013,201,000
1,589,013,201,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
12,679
lean
/- Copyright (c) 2019 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.operator_norm import linear_algebra.finite_dimensional import tactic.omega /-! # Finite dimensional normed spaces over complete fi...
032bb14b67027cd213f3f4a547d0068565ec3844
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/special_functions/exponential.lean
f928d78a10f1499c728cb30001df94717fe648cc
[ "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
20,417
lean
/- Copyright (c) 2021 Anatole Dedecker. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anatole Dedecker, Eric Wieser -/ import analysis.normed_space.exponential import analysis.calculus.fderiv_analytic import topology.metric_space.cau_seq_filter /-! # Calculus results...
bd3205f391654cea7f3464ae1b7e805ad3b7008c
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/data/multiset/nat_antidiagonal.lean
7baddb3243291e4eb42429cf0d708cc229d1498f
[ "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
1,837
lean
/- Copyright (c) 2019 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import data.multiset.nodup import data.list.nat_antidiagonal /-! # Antidiagonals in ℕ × ℕ as multisets This file defines the antidiagonals of ℕ × ℕ as multisets: th...
7f7c9161679f525af65b17060f789708b101e354
6094e25ea0b7699e642463b48e51b2ead6ddc23f
/library/data/hf.lean
cc2b7d3e7c0006af67b3df2f0e9736571ec15121
[ "Apache-2.0" ]
permissive
gbaz/lean
a7835c4e3006fbbb079e8f8ffe18aacc45adebfb
a501c308be3acaa50a2c0610ce2e0d71becf8032
refs/heads/master
1,611,198,791,433
1,451,339,111,000
1,451,339,111,000
48,713,797
0
0
null
1,451,338,939,000
1,451,338,939,000
null
UTF-8
Lean
false
false
25,395
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 Hereditarily finite sets: finite sets whose elements are all hereditarily finite sets. Remark: all definitions compute, however the performace is quite poor s...
ae13c288b940a111407a22ccbbc249c418244653
2eab05920d6eeb06665e1a6df77b3157354316ad
/src/algebra/order/with_zero.lean
a72d0edff8d3d416647f49fe22b43b06620dbe9b
[ "Apache-2.0" ]
permissive
ayush1801/mathlib
78949b9f789f488148142221606bf15c02b960d2
ce164e28f262acbb3de6281b3b03660a9f744e3c
refs/heads/master
1,692,886,907,941
1,635,270,866,000
1,635,270,866,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
8,261
lean
/- Copyright (c) 2020 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Johan Commelin, Patrick Massot -/ import algebra.order.group import algebra.group_with_zero import algebra.group_with_zero.power import tactic.abel /-! # Linearly ordered commu...
9dbce453ccc2e454a0d6f02a587cbe0ec8059a66
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/algebra/order/floor.lean
f72aa511ecbcfc1149e80d5aa6db0292ff1688bb
[ "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
46,958
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Kevin Kappelmann -/ import data.int.lemmas import data.set.intervals.group import data.set.lattice import tactic.abel import tactic.linarith import tactic.positivity /...
826969fe6fd0dc2b30e9ea2ba2180f5754d446cf
e00ea76a720126cf9f6d732ad6216b5b824d20a7
/src/analysis/normed_space/basic.lean
7348c904c2f318243f3729a3eb9d5063aae8a9d7
[ "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
40,068
lean
/- Copyright (c) 2018 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot, Johannes Hölzl -/ import algebra.pi_instances import linear_algebra.basic import topology.instances.nnreal topology.instances.complex import topology.algebra.module im...
5ca675deafae1f05e73c07e4ac537f7d1c79f4fb
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/measure_theory/function/special_functions/inner.lean
097b21c6f8db44fd14de793819e7635e95c8568f
[ "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
1,281
lean
/- Copyright (c) 2020 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import analysis.inner_product_space.basic import measure_theory.constructions.borel_space /-! # Measurability of scalar products -/ variables {α : Type*} {𝕜 : T...
e057dec6d5fdd56fcb343d16f34a6b148b14af91
30b012bb72d640ec30c8fdd4c45fdfa67beb012c
/data/rat.lean
1fab55d03279b88c5c40cf8dc138b392c234d651
[ "Apache-2.0" ]
permissive
kckennylau/mathlib
21fb810b701b10d6606d9002a4004f7672262e83
47b3477e20ffb5a06588dd3abb01fe0fe3205646
refs/heads/master
1,634,976,409,281
1,542,042,832,000
1,542,319,733,000
109,560,458
0
0
Apache-2.0
1,542,369,208,000
1,509,867,494,000
Lean
UTF-8
Lean
false
false
44,408
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, Mario Carneiro Introduces the rational numbers as discrete, linear ordered field. -/ import data.nat.gcd data.pnat data.int.sqrt data.equiv.encodable order.basic ...
1e15c1475674c9fe40d4d177ce6e29e551f08bc5
969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb
/src/measure_theory/measure_space.lean
238bcd3580e9b9ad1e531b3e9be38cd404a83ef7
[ "Apache-2.0" ]
permissive
SAAluthwela/mathlib
62044349d72dd63983a8500214736aa7779634d3
83a4b8b990907291421de54a78988c024dc8a552
refs/heads/master
1,679,433,873,417
1,615,998,031,000
1,615,998,031,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
113,473
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, Mario Carneiro -/ import measure_theory.outer_measure import order.filter.countable_Inter import data.set.accumulate /-! # Measure spaces Given a measurable space `α`...
90ccb42b367d966e0c60e08ac165d4f9d2baf241
947b78d97130d56365ae2ec264df196ce769371a
/tests/lean/run/struct_instance_in_eqn.lean
44e64f92dd29f238775e1097fc619a422735a2cd
[ "Apache-2.0" ]
permissive
shyamalschandra/lean4
27044812be8698f0c79147615b1d5090b9f4b037
6e7a883b21eaf62831e8111b251dc9b18f40e604
refs/heads/master
1,671,417,126,371
1,601,859,995,000
1,601,860,020,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
130
lean
new_frontend structure S := (x : Nat) (y : Bool) (z : Nat) (w : Nat) def g : S → S | s@{ x := x, ..} => { s with x := x + 1 }
99381491b7fd844f65b2c0ddae540f5459208c93
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/category_theory/with_terminal.lean
28b0f21f327636abafb57c05d4e2055bf771f475
[ "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
12,076
lean
/- Copyright (c) 2021 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz -/ import category_theory.limits.shapes.terminal /-! # `with_initial` and `with_terminal` Given a category `C`, this file constructs two objects: 1. `with_terminal C`, the ca...
9ca98e1e2888df544e1426d5ddb24bed2f5df49b
9028d228ac200bbefe3a711342514dd4e4458bff
/src/analysis/calculus/deriv.lean
a8f251d35d96f89f048c2758befd150e27ab71f2
[ "Apache-2.0" ]
permissive
mcncm/mathlib
8d25099344d9d2bee62822cb9ed43aa3e09fa05e
fde3d78cadeec5ef827b16ae55664ef115e66f57
refs/heads/master
1,672,743,316,277
1,602,618,514,000
1,602,618,514,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
70,694
lean
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Sébastien Gouëzel -/ import analysis.calculus.fderiv import data.polynomial.derivative /-! # One-dimensional derivatives This file defines the derivative of a function...
17ba051afdd6ff1ff92b05eec4dd5a8eae24191b
618003631150032a5676f229d13a079ac875ff77
/src/control/monad/writer.lean
3e51b0a241a0c42dcaa41b7ed09a36e69416c703
[ "Apache-2.0" ]
permissive
awainverse/mathlib
939b68c8486df66cfda64d327ad3d9165248c777
ea76bd8f3ca0a8bf0a166a06a475b10663dec44a
refs/heads/master
1,659,592,962,036
1,590,987,592,000
1,590,987,592,000
268,436,019
1
0
Apache-2.0
1,590,990,500,000
1,590,990,500,000
null
UTF-8
Lean
false
false
7,343
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon The writer monad transformer for passing immutable state. -/ import control.monad.basic import algebra.group.basic universes u v w structure writer_t (ω : Type u)...
1753a27dc6bf0bbdc18870e5937584f03c579659
037dba89703a79cd4a4aec5e959818147f97635d
/src/2021/sets/sheet1.lean
21b640fbf6ed34986369f97e80ae049fedcb16ae
[]
no_license
ImperialCollegeLondon/M40001_lean
3a6a09298da395ab51bc220a535035d45bbe919b
62a76fa92654c855af2b2fc2bef8e60acd16ccec
refs/heads/master
1,666,750,403,259
1,665,771,117,000
1,665,771,117,000
209,141,835
115
12
null
1,640,270,596,000
1,568,749,174,000
Lean
UTF-8
Lean
false
false
2,504
lean
/- Copyright (c) 2021 Kevin Buzzard. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author : Kevin Buzzard -/ import tactic -- imports all the Lean tactics /-! # Sets in Lean, example sheet 1 : "forall" (`∀`) A lot of questions about sets can be reduced to questions about l...
91dae0f8ad4a07a8ab6fddd366a06bd3f1a64a80
4950bf76e5ae40ba9f8491647d0b6f228ddce173
/src/data/real/nnreal.lean
99c0c1e044c0ac4d32f7ad753c77f412f6c615f9
[ "Apache-2.0" ]
permissive
ntzwq/mathlib
ca50b21079b0a7c6781c34b62199a396dd00cee2
36eec1a98f22df82eaccd354a758ef8576af2a7f
refs/heads/master
1,675,193,391,478
1,607,822,996,000
1,607,822,996,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
28,886
lean
/- Copyright (c) 2018 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import algebra.linear_ordered_comm_group_with_zero import algebra.big_operators.ring import data.real.basic import data.indicator_function /-! # Nonnegative real num...
54ddaecc2b2e03e4836c20deec3965f2457aef9f
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/data/real/cau_seq.lean
77863a8042d28813220c567fc2e5bbac09a95e77
[ "Apache-2.0" ]
permissive
waynemunro/mathlib
e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552
065a70810b5480d584033f7bbf8e0409480c2118
refs/heads/master
1,693,417,182,397
1,634,644,781,000
1,634,644,781,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
23,663
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import algebra.order.absolute_value import algebra.big_operators.order /-! # Cauchy sequences A basic theory of Cauchy sequences, used in the construction of the re...
d372db19b839c014d4e331558ca4e83a4d18cf71
d1a52c3f208fa42c41df8278c3d280f075eb020c
/src/Lean/Meta/Tactic/Util.lean
94626d920ceb8473e290b6aba5633d086fe466fc
[ "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
cipher1024/lean4
6e1f98bb58e7a92b28f5364eb38a14c8d0aae393
69114d3b50806264ef35b57394391c3e738a9822
refs/heads/master
1,642,227,983,603
1,642,011,696,000
1,642,011,696,000
228,607,691
0
0
Apache-2.0
1,576,584,269,000
1,576,584,268,000
null
UTF-8
Lean
false
false
4,092
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 -/ import Lean.Util.ForEachExpr import Lean.Meta.Basic import Lean.Meta.AppBuilder import Lean.Meta.PPGoal namespace Lean.Meta /-- Aka user name -/ def getMV...
b60f7cd433040e4efc0d6984d678bfe116606e78
37a833c924892ee3ecb911484775a6d6ebb8984d
/src/category_theory/grothendieck_category.lean
52325813dbf0664a52602f627c68e30622fc3fca
[]
no_license
silky/lean-category-theory
28126e80564a1f99e9c322d86b3f7d750da0afa1
0f029a2364975f56ac727d31d867a18c95c22fd8
refs/heads/master
1,589,555,811,646
1,554,673,665,000
1,554,673,665,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
482
lean
import category_theory.types namespace category_theory universes v u variables {C : Type u} [𝒞 : category.{v} C] include 𝒞 -- This is just the comma category *↓F. Does it deserve a separate identity? def grothendieck_category (F : C ⥤ Type u) : category (Σ c : C, F.obj c) := { hom := λ p q, { f : p.1 ⟶ q.1 // (F....
d30324bc5de806d0d1d5ceb61dd32f98f3070750
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/category_theory/limits/shapes/zero.lean
2a72af8c463bc023d330c10b35c018edafe5ec36
[ "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
17,784
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 category_theory.limits.shapes.terminal import category_theory.limits.shapes.binary_products import category_theory.limits.shapes.products import category_theor...
2e1c7997d27a570174574ffcc19d0d4caefc1894
3dd1b66af77106badae6edb1c4dea91a146ead30
/tests/lean/run/have4.lean
0c4516639c3abb36049cf0683497aeda37c6b568
[ "Apache-2.0" ]
permissive
silky/lean
79c20c15c93feef47bb659a2cc139b26f3614642
df8b88dca2f8da1a422cb618cd476ef5be730546
refs/heads/master
1,610,737,587,697
1,406,574,534,000
1,406,574,534,000
22,362,176
1
0
null
null
null
null
UTF-8
Lean
false
false
233
lean
abbreviation Prop : Type.{1} := Type.{0} variables a b c : Prop axiom Ha : a axiom Hb : b axiom Hc : c check have H1 : a, from Ha, then have H2 : a, from H1, have H3 : a, from H2, then have H4 : a, from H3, H4
84efadab30bf5f7cc220cec858d8267b6b765559
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/640a.hlean
e14196a457594a3be83736bb3d5e1151cafa39da
[ "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
925
hlean
section parameter {A : Type} definition relation : A → A → Type := λa b, a = b local abbreviation R := relation local abbreviation S [parsing_only] := relation variable {a : A} check relation a a check R a a check S a a end section parameter {A : Type} definition relation' : A → A → Type := λa b, a...
ecb8d8e56d9ee7971f8731d9e7d08f8acb65e615
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/field_theory/is_alg_closed/basic.lean
55550ffbb8f991c3fa689c87394167a9c9024e78
[ "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
20,934
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 field_theory.perfect_closure import field_theory.separable import ring_theory.adjoin.field /-! # Algebraically Closed Field In this file we define the typeclass for a...
a8e4e0ff23940a7d930ca2c89fd59a02d5906e88
3dd1b66af77106badae6edb1c4dea91a146ead30
/tests/lean/run/string.lean
4768ea11d2514f50ff9b945f4f0d0f25a601cfbd
[ "Apache-2.0" ]
permissive
silky/lean
79c20c15c93feef47bb659a2cc139b26f3614642
df8b88dca2f8da1a422cb618cd476ef5be730546
refs/heads/master
1,610,737,587,697
1,406,574,534,000
1,406,574,534,000
22,362,176
1
0
null
null
null
null
UTF-8
Lean
false
false
35
lean
import string check "aaa" check "B"
ba4730885e03f001afe6884e619a9d7f1f69fb28
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/order/category/Frm.lean
6052f12eb8b4f05a16511cf82af985da2cdd87dd
[ "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,522
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 order.category.Lat import order.hom.complete_lattice import topology.category.CompHaus.basic import topology.sets.opens /-! # The category of frames > THIS FILE ...
9bdfb4af1521729f208d9dbe39c2bef001f2f9a0
c31182a012eec69da0a1f6c05f42b0f0717d212d
/src/thm95/row_iso.lean
626c6e0b80ac7ceddc18d9a7de8cfcd7b0c313dc
[]
no_license
Ja1941/lean-liquid
fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc
8e80ed0cbdf5145d6814e833a674eaf05a1495c1
refs/heads/master
1,689,437,983,362
1,628,362,719,000
1,628,362,719,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
17,193
lean
import thm95.polyhedral_iso import pseudo_normed_group.homotopy import rescale.FiltrationPow /-! # A complex canonically isomorphic to `row 1` of the double complex We have ``` lemma double_complex.row_one : (double_complex BD κ r r' V Λ M N).row 1 = BD.system κ r V r' (Hom ((cosimplicial Λ N).obj (mk 0)) M) := r...
5ea505bcf749974a4cd508f57462b68a9ec417a8
205f0fc16279a69ea36e9fd158e3a97b06834ce2
/EXAMS/in-class.lean
ba97ef77385bf1a8202a29eda2f7d45d42bcd554
[]
no_license
kevinsullivan/cs-dm-lean
b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124
a06a94e98be77170ca1df486c8189338b16cf6c6
refs/heads/master
1,585,948,743,595
1,544,339,346,000
1,544,339,346,000
155,570,767
1
3
null
1,541,540,372,000
1,540,995,993,000
Lean
UTF-8
Lean
false
false
712
lean
import data.set.basic open set /- This problem tests your ability to contruct proofs using case analysis on a disjunction, ∀ elimination, and or introduction. Remember, To eliminate a ∀ in a goal, of the form, ∀ x, P x, introduce an arbitrary value x into your context (using intro or assume) and then show P x f...
92a2b9eeccfeb8d40fd8032895e315fe410526a1
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/tests/lean/ll_infer_type_bug.lean
cce74d258e025cc046bb746d41f7c9b57c4004c3
[ "Apache-2.0" ]
permissive
mhuisi/lean4
28d35a4febc2e251c7f05492e13f3b05d6f9b7af
dda44bc47f3e5d024508060dac2bcb59fd12e4c0
refs/heads/master
1,621,225,489,283
1,585,142,689,000
1,585,142,689,000
250,590,438
0
2
Apache-2.0
1,602,443,220,000
1,585,327,814,000
C
UTF-8
Lean
false
false
505
lean
def f : List Nat → Bool | [] => false | (a::as) => a > 0 && f as #check f._main._cstage2 #exit mutual def f1, f2, f3, f4, f5 with f1 : Nat → Bool | 0 := f3 0 | x := f2 x with f2 : Nat → Bool | 0 := f4 0 | x := f3 x with f3 : Nat → Bool | 0 := f5 0 | x := f4 x with f4 : Nat → Bool | 0 := f5 0 | (x+1) := f4 x...
6b7d24d8a7bc71c06c41cb42412c279aad877aff
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/algebra/category/Group/default.lean
c98b2856581fe75f2ff44307cfa4e1219318b3ba
[ "Apache-2.0" ]
permissive
gebner/mathlib
eab0150cc4f79ec45d2016a8c21750244a2e7ff0
cc6a6edc397c55118df62831e23bfbd6e6c6b4ab
refs/heads/master
1,625,574,853,976
1,586,712,827,000
1,586,712,827,000
99,101,412
1
0
Apache-2.0
1,586,716,389,000
1,501,667,958,000
Lean
UTF-8
Lean
false
false
147
lean
import algebra.category.Group.basic import algebra.category.Group.limits import algebra.category.Group.colimits import algebra.category.Group.zero
b0e34584756ba22ddfbd96a8681521b9527879ea
57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d
/stage0/src/Init/Data/Hashable.lean
42b57cfb7a0d60f7d9d26b6c5c75b402c43818b7
[ "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
1,163
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.UInt import Init.Data.String universes u instance : Hashable Nat where hash n := USize.ofNat n instance [Hashable α] [Hashable ...
00d03d582c5151530e8004b741596161fcae961b
57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d
/tests/lean/run/CommandExtOverlap.lean
ed81eeaecf048362b126b0d9ed13d8123020c06f
[ "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
316
lean
syntax (name := mycheck) "#check" sepBy(term, ",") : command open Lean macro_rules [mycheck] | `(#check $es,*) => let cmds := es.getElems.map $ fun e => Syntax.node `Lean.Parser.Command.check #[mkAtom "#check", e] pure $ mkNullNode cmds #check true #check true, true #check true, 1, 3, fun (x : Nat) => x + 1
0aad99d3609c915d1e5c6689f8a07b51c26cba5c
4d7079ae603c07560e99d1ce35876f769cbb3e24
/src/lori2021/lori.lean
b21f9f9d1e7752e0c724acc7d6365c29889b6250
[]
no_license
chasenorman/Formalized-Voting
72493a08aa09d98d0fb589731b842e2d08c991d0
de04e630b83525b042db166670ba97f9952b5691
refs/heads/main
1,687,282,160,284
1,627,155,031,000
1,627,155,031,000
370,472,025
13
0
null
null
null
null
UTF-8
Lean
false
false
7,285
lean
import set_theory.cardinal import data.finset.basic import data.stream.basic import tactic open_locale classical noncomputable theory -- Definition 1: Prof V X represents the set of (V, X)-profiles def Prof : Type → Type → Type := λ (V X : Type), V → X → X → Prop -- Definition 2: Given a profile P and x, y ∈ X(P) --...
cd27c200c5b4b903a9ed745c019da44437dca72e
55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5
/src/topology/uniform_space/compact_separated.lean
f6841335bdbef78b6233d1dc451d23993c5ffdfa
[ "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
10,769
lean
/- Copyright (c) 2020 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot -/ import topology.uniform_space.separation /-! # Compact separated uniform spaces ## Main statements * `compact_space_uniformity`: On a separated compact uniform spac...
4ec933622de00669e990b7cbfa4affa03dc50562
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/analysis/normed/group/quotient.lean
d93fc7cb894a7ac2205641bb7ee7c4802fbcacc4
[ "Apache-2.0" ]
permissive
ramonfmir/mathlib
c5dc8b33155473fab97c38bd3aa6723dc289beaa
14c52e990c17f5a00c0cc9e09847af16fabbed25
refs/heads/master
1,661,979,343,526
1,660,830,384,000
1,660,830,384,000
182,072,989
0
0
null
1,555,585,876,000
1,555,585,876,000
null
UTF-8
Lean
false
false
22,201
lean
/- Copyright (c) 2021 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot, Riccardo Brasca -/ import analysis.normed.group.hom /-! # Quotients of seminormed groups For any `seminormed_add_comm_group M` and any `S : add_subgroup M`, we provid...
d8a5465baca1a8b3f0c4c7ddd1f434e71674f440
4727251e0cd73359b15b664c3170e5d754078599
/src/topology/sets/compacts.lean
2e7b12d28ccb9ebe75fcfcb6ae9cb39a034890da
[ "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
12,223
lean
/- Copyright (c) 2020 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Yaël Dillies -/ import topology.sets.closeds /-! # Compact sets We define a few types of compact sets in a topological space. ## Main Definitions For a topologi...
4f5cb9ee8ddb1942af6816134b5e1215fb641dec
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/scc.lean
a7c323a8ea741154e2b9a0be197f30c2d969b630
[ "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
761
lean
import Lean.Util.SCC open Lean.SCC def checkSCC (expected : List (List Nat)) (vertices : List Nat) (successorsOf : Nat → List Nat) : IO Unit := do let r := scc vertices successorsOf IO.println r unless expected == r do throw $ IO.userError ("expected result " ++ toString expected) #eval checkSCC [[2], [1, 3], [4]]...
def82b0c5aff3602995266101a92d0a8c9d85e7f
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/order/lattice.lean
3171636661ea99ad38bc28d56ace50a432140205
[ "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
26,835
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 -/ import order.rel_classes /-! # (Semi-)lattices Semilattices are partially ordered sets with join (greatest lower bound, or `sup`) or meet (least upper bound, or `in...
f1c88022bf07f3643fab26922997983bc3f3623f
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/eq25.lean
ca08ec8aa0de6100bf05c4c0d705e01ec4f36bfb
[ "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
143
lean
inductive N | O : N | S : N → N definition Nat := N open N definition add1 : Nat → Nat → Nat | O b := b | (S a) b := S (add1 a b)
381054ed4363da0d16bfb5e94d88e4e844c1763e
e00ea76a720126cf9f6d732ad6216b5b824d20a7
/src/measure_theory/borel_space.lean
0ab00a8999b0601fb661e98036d994a2267d8009
[ "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
26,502
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 Borel (measurable) space -- the smallest σ-algebra generated by open sets It would be nice to encode this in the topological space type class, i.e. each topological sp...
16cf246b50e7502b7d4a7b811607433067b7ff69
491068d2ad28831e7dade8d6dff871c3e49d9431
/tests/lean/793b.lean
55a15f50a630e818a4f95d117ccc623d1e8c7153
[ "Apache-2.0" ]
permissive
davidmueller13/lean
65a3ed141b4088cd0a268e4de80eb6778b21a0e9
c626e2e3c6f3771e07c32e82ee5b9e030de5b050
refs/heads/master
1,611,278,313,401
1,444,021,177,000
1,444,021,177,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
10
lean
check 1.2
8e3b75b68be4a12f64829d70a2dd7a8c609a854c
0c1546a496eccfb56620165cad015f88d56190c5
/tests/lean/run/interactive1.lean
ddb2a621db0d39ef2a1f9886a240e955c05904f4
[ "Apache-2.0" ]
permissive
Solertis/lean
491e0939957486f664498fbfb02546e042699958
84188c5aa1673fdf37a082b2de8562dddf53df3f
refs/heads/master
1,610,174,257,606
1,486,263,620,000
1,486,263,620,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
897
lean
def f : nat → nat := λ a, a @[simp] lemma f_def (a : nat) : f a = a := rfl def g : nat → nat := λ a, 1 + a lemma g_def (a : nat) : g a = 1 + a := rfl example (a b c : nat) : b = 0 → c = 1 → a + b + f c = g (f a) := begin intros h1 h2, simp [h1, h2, g_def, nat.add_comm 1 a] end example (b c : nat) : b = 0 → c =...
64774e13e48b7afb0b0236e8fac10cf3399ed5e1
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/ho.lean
7071cdb9c97833210acf3ce589c10b140b314590
[ "Apache-2.0" ]
permissive
codyroux/lean0.1
1ce92751d664aacff0529e139083304a7bbc8a71
0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef
refs/heads/master
1,610,830,535,062
1,402,150,480,000
1,402,150,480,000
19,588,851
2
0
null
null
null
null
UTF-8
Lean
false
false
176
lean
import Int. variable g {A : Type} (a : A) : A variable a : Int variable b : Int axiom H1 : a = b axiom H2 : (g a) > 0 theorem T1 : (g b) > 0 := subst H2 H1 print environment 2
50ca215bfc74acac5c905a27ba7cde7b898a5c5a
a6b711a4e8db20755026231f7ed529a9014b2b6d
/04_Implication/00_intro.lean
29dd0f2f13292554e8ac07bc287fce0f1aae95bd
[]
no_license
chaseboettner/cs-dm-1
b67d4a7e86f56bce59d2af115503769749d423b2
80b35f2957ffaa45b8b7a4479a3570a2d6eb4db0
refs/heads/master
1,585,367,603,488
1,536,235,675,000
1,536,235,675,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
22
lean
-- Under Construction
3a7fe8bf76359ed3bb40a2dc101a344bcab73f1d
87a08a8e9b222ec02f3327dca4ae24590c1b3de9
/src/topology/algebra/group.lean
af8bdc1fb4c93158de1ab3ecd57987f9e03ca008
[ "Apache-2.0" ]
permissive
naussicaa/mathlib
86d05223517a39e80920549a8052f9cf0e0b77b8
1ef2c2df20cf45c21675d855436228c7ae02d47a
refs/heads/master
1,592,104,950,080
1,562,073,069,000
1,562,073,069,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
14,134
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, Mario Carneiro, Patrick Massot Theory of topological groups. -/ import data.equiv.algebra import group_theory.quotient_group import topology.algebra.monoid topology.o...
9c5edcc34b8235fdccd950cad21d9b0e83588615
0845ae2ca02071debcfd4ac24be871236c01784f
/library/init/data/bytearray/basic.lean
b21ab72b1b6d44bd0b5180759bfa0c07e1f7e565
[ "Apache-2.0" ]
permissive
GaloisInc/lean4
74c267eb0e900bfaa23df8de86039483ecbd60b7
228ddd5fdcd98dd4e9c009f425284e86917938aa
refs/heads/master
1,643,131,356,301
1,562,715,572,000
1,562,715,572,000
192,390,898
0
0
null
1,560,792,750,000
1,560,792,749,000
null
UTF-8
Lean
false
false
1,675
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ prelude import init.data.array.basic init.data.uint init.data.option.basic universes u structure ByteArray := (data : Array UInt8) attribute [extern cpp "l...
d76b71d10e21bedebb0eb36d0ee4160f084ed176
4727251e0cd73359b15b664c3170e5d754078599
/src/ring_theory/euclidean_domain.lean
fb6460f69cd8ec8492ca5012aad3e29ed020c49a
[ "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,164
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 algebra.gcd_monoid.basic import ring_theory.coprime.basic import ring_theory.ideal.basic import ring_theory.principal_ideal_domain /-! # Lemmas ...
cf44ec632adef70d354bb288811220f8651d7af4
037dba89703a79cd4a4aec5e959818147f97635d
/src/2022/relations/pals.lean
d709997a0d3b81af7f0143066b65e27cb3188270
[]
no_license
ImperialCollegeLondon/M40001_lean
3a6a09298da395ab51bc220a535035d45bbe919b
62a76fa92654c855af2b2fc2bef8e60acd16ccec
refs/heads/master
1,666,750,403,259
1,665,771,117,000
1,665,771,117,000
209,141,835
115
12
null
1,640,270,596,000
1,568,749,174,000
Lean
UTF-8
Lean
false
false
5,080
lean
import tactic /- # Solution to the `pals` question Let X be a fixed set. If φ : X → A is a function then let’s define the equivalence relation Rφ on X associated to φ by Rφ(s, t) ⇐⇒ φ(s) = φ(t) (you can check it’s an equivalence relation if you like). Of course as φ and A vary we can get lots of different equivalence...
a9659a1a3b7249f31ab320378236b4fae28a616d
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/matchPatternInsideBinders.lean
6417ada1562c0d4323dd1e102988a84cdae7fc1b
[ "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
100
lean
def test : (λ x : Nat => id (id x)) = λ x => x := by conv in (id _) => trace_state simp
a13b408017f6e906b141490c7a1348a96d5ed10c
aa3f8992ef7806974bc1ffd468baa0c79f4d6643
/library/data/bool/thms.lean
5539056e10aaffebd33ecb939f39ad0b9eac3bc6
[ "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
3,600
lean
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Author: Leonardo de Moura import data.bool.ops import logic.connectives logic.decidable logic.inhabited open eq eq.ops decidable namespace bool reducible bor band rec_on the...
c94e6a9e3e153a774604d183b7c61b00576ca189
947b78d97130d56365ae2ec264df196ce769371a
/src/Lean/Elab/App.lean
01614eab1d7b19ec1fe16fc7eb9accb64035a933
[ "Apache-2.0" ]
permissive
shyamalschandra/lean4
27044812be8698f0c79147615b1d5090b9f4b037
6e7a883b21eaf62831e8111b251dc9b18f40e604
refs/heads/master
1,671,417,126,371
1,601,859,995,000
1,601,860,020,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
33,080
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 -/ import Lean.Util.FindMVar import Lean.Elab.Term import Lean.Elab.Binders import Lean.Elab.SyntheticMVars namespace Lean namespace Elab namespace Term open...
4a458ef414bc6a8e2f36512ee98afea2bea8addb
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/ring_theory/ring_invo_auto.lean
6c82ff30c824f2489af3df658cf12c405145e6ee
[]
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
2,825
lean
/- Copyright (c) 2018 Andreas Swerdlow. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andreas Swerdlow, Kenny Lau -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.equiv.ring import Mathlib.algebra.opposites import Mathlib.PostPort un...
19d4d553c651ba16e6d67945f634a855a4eebf94
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/box_integral/divergence_theorem.lean
4744a0364b2b87bb3cf2cabb22fbce9f56f4af0c
[ "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
16,675
lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import analysis.box_integral.basic import analysis.box_integral.partition.additive import analysis.calculus.fderiv.add import analysis.calculus.fderiv.mul import an...
2857fd54e302773d7a15f237e690e606b1917a42
c777c32c8e484e195053731103c5e52af26a25d1
/archive/imo/imo2005_q4.lean
c6d854167e288dbd827e6056e5be8b06c95946b4
[ "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
4,430
lean
/- Copyright (c) 2021 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ import field_theory.finite.basic /-! # IMO 2005 Q4 Problem: Determine all positive integers relatively prime to all the terms of the infinite sequence `a n = 2 ^ ...
f708a611666ef6e65ac8b335b6c5cc39361a49a9
69bc7d0780be17e452d542a93f9599488f1c0c8e
/11-2016-2019.lean
39d48a637bb6e3514e2e9d853751958aaccfb90c
[]
no_license
joek13/cs2102-notes
b7352285b1d1184fae25594f89f5926d74e6d7b4
25bb18788641b20af9cf3c429afe1da9b2f5eafb
refs/heads/master
1,673,461,162,867
1,575,561,090,000
1,575,561,090,000
207,573,549
0
0
null
null
null
null
UTF-8
Lean
false
false
1,645
lean
-- Notes 11/26/2019 -- false is not provable, except from a contradiction -- if we reach a proof of false, our proposition must be false -- false also implies anything example : false → 0 = 1 := false.elim example : ∀ (P : Prop), false → P := λ (p), λ (f), false.elim f #check @false.elim -- If we can show that P ...
2a2cb4b15dbce808f6cbbe21aa6c8754a03f6baf
b7f22e51856f4989b970961f794f1c435f9b8f78
/hott/homotopy/freudenthal.hlean
20b7380bcd7e7e92d4555ceccb553df3e03dbe4a
[ "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
9,936
hlean
/- Copyright (c) 2016 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn The Freudenthal Suspension Theorem -/ import homotopy.wedge homotopy.circle open eq is_conn is_trunc pointed susp nat pi equiv is_equiv trunc fiber trunc_index n...
bfa34ceb3bd60fe2e3fe2e1a87378cf48ff58b8a
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/data/equiv/ring.lean
d76b34c07bb7dfea45d50bde8cf1b4fc3a5b56e2
[ "Apache-2.0" ]
permissive
gebner/mathlib
eab0150cc4f79ec45d2016a8c21750244a2e7ff0
cc6a6edc397c55118df62831e23bfbd6e6c6b4ab
refs/heads/master
1,625,574,853,976
1,586,712,827,000
1,586,712,827,000
99,101,412
1
0
Apache-2.0
1,586,716,389,000
1,501,667,958,000
Lean
UTF-8
Lean
false
false
9,555
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, Callum Sutton, Yury Kudryashov -/ import data.equiv.mul_add algebra.field /-! # (Semi)ring equivs In this file we define extension of `equiv` called `ring_equiv`, wh...
c4d71bd9ef9ed64994eaf0ed3a1ee5012495dd31
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/algebra/order/archimedean.lean
39a16c706e9e38406ac3d843ba60a7c3d0191631
[ "Apache-2.0" ]
permissive
ramonfmir/mathlib
c5dc8b33155473fab97c38bd3aa6723dc289beaa
14c52e990c17f5a00c0cc9e09847af16fabbed25
refs/heads/master
1,661,979,343,526
1,660,830,384,000
1,660,830,384,000
182,072,989
0
0
null
1,555,585,876,000
1,555,585,876,000
null
UTF-8
Lean
false
false
14,520
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import algebra.field_power import data.int.least_greatest import data.rat.floor /-! # Archimedean groups and fields. This file defines the archimedean property for ...
3266818d07680c61928b77f1a911159abcbd480b
626e312b5c1cb2d88fca108f5933076012633192
/src/analysis/special_functions/exp_log.lean
a970bde07f015c3eb451e1df8c6489e86f6179a9
[ "Apache-2.0" ]
permissive
Bioye97/mathlib
9db2f9ee54418d29dd06996279ba9dc874fd6beb
782a20a27ee83b523f801ff34efb1a9557085019
refs/heads/master
1,690,305,956,488
1,631,067,774,000
1,631,067,774,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
34,875
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.calculus.inverse import analysis.complex.real_deriv import data.complex.exponential /-! # Complex and rea...
1fe2c090c318a20d0f0a966d87dfb727b4ca988d
592ee40978ac7604005a4e0d35bbc4b467389241
/Library/generated/mathscheme-lean/AdditivePointedSemigroup.lean
e1bebdc710d382502eaec7267d4a6cf841d5e8df
[]
no_license
ysharoda/Deriving-Definitions
3e149e6641fae440badd35ac110a0bd705a49ad2
dfecb27572022de3d4aa702cae8db19957523a59
refs/heads/master
1,679,127,857,700
1,615,939,007,000
1,615,939,007,000
229,785,731
4
0
null
null
null
null
UTF-8
Lean
false
false
7,871
lean
import init.data.nat.basic import init.data.fin.basic import data.vector import .Prelude open Staged open nat open fin open vector section AdditivePointedSemigroup structure AdditivePointedSemigroup (A : Type) : Type := (zero : A) (plus : (A → (A → A))) (associative_plus : (∀ {x y z : A} , (...
fe4c6aa2b57dfc0976cd65ebca5e7ffc26f7b65c
54deab7025df5d2df4573383df7e1e5497b7a2c2
/topology/real.lean
14510a07cd4070cf1310cb42f1303a3b83113cae
[ "Apache-2.0" ]
permissive
HGldJ1966/mathlib
f8daac93a5b4ae805cfb0ecebac21a9ce9469009
c5c5b504b918a6c5e91e372ee29ed754b0513e85
refs/heads/master
1,611,340,395,683
1,503,040,489,000
1,503,040,489,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
62,134
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 The real numbers ℝ. They are constructed as the topological completion of ℚ. With the following steps: (1) prove that ℚ forms a uniform space. (2) subtraction and addi...
f9fa0759014a1571df348b323a178906e5725b43
94637389e03c919023691dcd05bd4411b1034aa5
/src/exam1/lin2k_test.lean
f137f7a4cadd659ef3f6ec613b8cac65b6e87725
[]
no_license
kevinsullivan/complogic-s21
7c4eef2105abad899e46502270d9829d913e8afc
99039501b770248c8ceb39890be5dfe129dc1082
refs/heads/master
1,682,985,669,944
1,621,126,241,000
1,621,126,241,000
335,706,272
0
38
null
1,618,325,669,000
1,612,374,118,000
Lean
UTF-8
Lean
false
false
7,615
lean
import data.real.basic import .lin2k -- Let's work with rational number field abbreviation K := ℚ -- Here are nice abbreviations for types abbreviation scalr := K abbreviation vectr := K × K /- 1A. [10 points] Declare v1, v2, and v3 to be of type vectr with values (4,6), (-6,2), and (3, -7), respectively. -/ --...
69805beac826814d8014ece164fbb5a4a30355b4
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/tests/bench/rbmap2.lean
257350f2b496f0ed9c132cd24b989c792a716be7
[ "Apache-2.0" ]
permissive
mhuisi/lean4
28d35a4febc2e251c7f05492e13f3b05d6f9b7af
dda44bc47f3e5d024508060dac2bcb59fd12e4c0
refs/heads/master
1,621,225,489,283
1,585,142,689,000
1,585,142,689,000
250,590,438
0
2
Apache-2.0
1,602,443,220,000
1,585,327,814,000
C
UTF-8
Lean
false
false
2,899
lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import init.coe init.data.option.basic init.system.io universes u v w w' inductive color | Red | Black inductive Tree | Leaf {} ...
73619c15b013ab6ebca8c1049afe75bc7e620719
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/normed/field/basic.lean
bd9a12ae695e577a97368ee91e41622cfba40963
[ "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
37,183
lean
/- Copyright (c) 2018 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot, Johannes Hölzl -/ import algebra.algebra.subalgebra.basic import analysis.normed.group.basic import topology.instances.ennreal /-! # Normed fields > THIS FILE IS SYNC...
c729f7d0c7cf19d2b3f3e7d2f316ddd64e4fcf7f
7da5ceac20aaab989eeb795a4be9639982e7b35a
/src/group_theory/mathieu_group.lean
4fad9da75833916060042151827c270382d81d3e
[ "MIT" ]
permissive
formalabstracts/formalabstracts
46c2f1b3a172e62ca6ffeb46fbbdf1705718af49
b0173da1af45421239d44492eeecd54bf65ee0f6
refs/heads/master
1,606,896,370,374
1,572,988,776,000
1,572,988,776,000
96,763,004
165
28
null
1,555,709,319,000
1,499,680,948,000
Lean
UTF-8
Lean
false
false
4,117
lean
import group_theory.basic import data.finset group_theory.group_action open finset fintype universes u v local attribute [instance, priority 0] classical.prop_decidable variables {α : Type u} {β : Type v} {t k v : ℕ} namespace mathieu_group /-- A Steiner system $S(t,k,v)$, where $t < k < v$ are positive integers i...
08dc176600383fc63ce89a34c96eb6a64d04e7d3
495c02489c2d6a1db94dfdba71dd800d3cc67df2
/group_theory/perm.lean
88559b90d4ed34ec22a9398820e7dbe9a3455a4b
[ "Apache-2.0" ]
permissive
leodemoura/leanproved
e0fcbe4f4d72bf0dad9a962ed111b5975cf90712
de56e0af159dd0c0421733289c76aa79c78a0191
refs/heads/master
1,606,822,676,898
1,435,711,541,000
1,435,711,541,000
36,675,856
0
0
null
1,433,178,724,000
1,433,178,724,000
null
UTF-8
Lean
false
false
4,145
lean
/- Copyright (c) 2015 Haitao Zhang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author : Haitao Zhang -/ import algebra.group data .finfun open nat list algebra function namespace group open fintype section perm variable {A : Type} variable [finA : fintype A] include fin...
5cf69f922e0b263804facabf007f176af33a53f5
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/tactic/monotonicity/lemmas_auto.lean
d16842daee1a69f801b073e33caa383dfdd9e7a8
[]
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
1,477
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 Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.tactic.monotonicity.basic import Mathlib.data.set.lattice import Mathlib.order.bounds import Mathl...