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
c4bdb3588999023ccd1d8999ecdff3a4c3d8f2c6
e0f9ba56b7fedc16ef8697f6caeef5898b435143
/src/topology/instances/ennreal.lean
1767ae115acedc8cc9c8f363705687a3691920c2
[ "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
38,529
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Johannes Hölzl -/ import topology.instances.nnreal /-! # Extended non-negative reals -/ noncomputable theory open classical set filter metric open_locale classical open_locale topologi...
ef0c51086f919a5e86e34c8434af55670052d83e
a45212b1526d532e6e83c44ddca6a05795113ddc
/src/topology/basic.lean
a98595f551aca22f4e26582e6f6b26ecdd84ddb7
[ "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
35,248
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 Theory of topological spaces. Parts of the formalization is based on the books: N. Bourbaki: General Topology I. M. James: Topologies and Uniformit...
b65e16cd208a6833d8e4926047f9197580c551df
e0f9ba56b7fedc16ef8697f6caeef5898b435143
/src/data/list/defs.lean
db028ede3d9217a45952f1eb1c926346c3a37785
[ "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
20,479
lean
/- Copyright (c) 2014 Parikshit Khanna. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro Extra definitions on lists. -/ import data.option.defs import logic.basic import tactic.cache n...
38476b180482d0a4fd4498c55f9baf3b8973ec61
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/tactic/clear.lean
9012556d265eeec051994b856eb4dba3416d9d09
[ "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
4,326
lean
/- Copyright (c) 2020 Jannis Limperg. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jannis Limperg -/ import tactic.core /-! # Better `clear` tactics We define two variants of the standard `clear` tactic: * `clear'` works like `clear` but the hypotheses that should...
619a9e06f78ba4b0a8dd027bfb09cb0d523f25cf
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/measure_theory/measure/haar/of_basis.lean
dd1d618b23b18eab5914e6d3b6f433b4775c8986
[ "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,175
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 measure_theory.measure.haar.basic import analysis.inner_product_space.pi_L2 /-! # Additive Haar measure constructed from a basis > THIS FILE IS SYNCHRO...
11a3e2a54afa09ca690a7183ff6cbd158c77479b
fe25de614feb5587799621c41487aaee0d083b08
/stage0/src/Std/Data/HashMap.lean
7cf5b079a14ec510732f627dfaef16804d0fc7c6
[ "Apache-2.0" ]
permissive
pollend/lean4
e8469c2f5fb8779b773618c3267883cf21fb9fac
c913886938c4b3b83238a3f99673c6c5a9cec270
refs/heads/master
1,687,973,251,481
1,628,039,739,000
1,628,039,739,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
8,308
lean
/- Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ import Std.Data.AssocList namespace Std universe u v w def HashMapBucket (α : Type u) (β : Type v) := { b : Array (AssocList α β) // b.size > 0 } def Has...
4e53d23fac260a66895136f834c1ebc7555aa766
38bf3fd2bb651ab70511408fcf70e2029e2ba310
/src/category_theory/limits/functor_category.lean
3cd956a5da03962e7b1a8889d26a48df4ad6984e
[ "Apache-2.0" ]
permissive
JaredCorduan/mathlib
130392594844f15dad65a9308c242551bae6cd2e
d5de80376088954d592a59326c14404f538050a1
refs/heads/master
1,595,862,206,333
1,570,816,457,000
1,570,816,457,000
209,134,499
0
0
Apache-2.0
1,568,746,811,000
1,568,746,811,000
null
UTF-8
Lean
false
false
4,863
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.basic import category_theory.limits.preserves open category_theory category_theory.category namespace category_theory.limits univer...
263c16b6cc2c871b7b95f6340ec28dabf057c9a9
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/instuniv.lean
7a63752a497c76e5fb44e9efed99d7054c2b3d85
[ "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
459
lean
import Lean open Lean unsafe def tst : IO Unit := withImportModules [{module := `Init.Data.Array}] {} 0 fun env => match env.find? `Array.foldl with | some info => do IO.println (info.instantiateTypeLevelParams [levelZero, levelZero]) IO.println (info.instantiateValueLevelParams! [levelZero, lev...
e12e6431b9d8282b6bbb5e1b13d307d7aaa490d5
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/simp18.lean
ba2b925da10529aa241dcb43e2eb1a2c1d7fde83
[ "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
901
lean
variable vec : Nat → Type variable concat {n m : Nat} (v : vec n) (w : vec m) : vec (n + m) infixl 65 ; : concat axiom concat_assoc {n1 n2 n3 : Nat} (v1 : vec n1) (v2 : vec n2) (v3 : vec n3) : (v1 ; v2) ; v3 = cast (to_heq (congr2 vec (symm (Nat::add_assoc n1 n2 n3)))) ...
dd687b066a34b141ccd4d17fba9cdaec0b917061
d642a6b1261b2cbe691e53561ac777b924751b63
/src/topology/uniform_space/basic.lean
59e457abe80f12b778a72413379781427c640b19
[ "Apache-2.0" ]
permissive
cipher1024/mathlib
fee56b9954e969721715e45fea8bcb95f9dc03fe
d077887141000fefa5a264e30fa57520e9f03522
refs/heads/master
1,651,806,490,504
1,573,508,694,000
1,573,508,694,000
107,216,176
0
0
Apache-2.0
1,647,363,136,000
1,508,213,014,000
Lean
UTF-8
Lean
false
false
41,945
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 uniform spaces. Uniform spaces are a generalization of metric spaces and topological groups. Many concepts directly generaliz...
b5cea0e45b7c51a01e7205505f3945e4c7be0242
618003631150032a5676f229d13a079ac875ff77
/src/tactic/omega/eq_elim.lean
c9fd7bde7287358bbb4ceb790241bd6d6639e661
[ "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
14,660
lean
/- Copyright (c) 2019 Seul Baek. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Seul Baek Correctness lemmas for equality elimination. See 5.5 of <http://www.decision-procedures.org/> for details. -/ import tactic.omega.clause open list.func namespace omega def symd...
5961e542d80abb3a2f039091585f48aa0a483e9b
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/category/Cat.lean
b8ff7a982d526f42b0baa45b0ffd7949ba8b1752
[ "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
3,913
lean
/- Copyright (c) 2019 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import category_theory.concrete_category.bundled import category_theory.discrete_category import category_theory.types import category_theory.bicategory.strict /-!...
80ee63c70b5d3e319c9457858ff8bda08a4ee5af
bb31430994044506fa42fd667e2d556327e18dfe
/src/algebra/monoid_algebra/basic.lean
5eac4ef411e8baac1215cea54569d374815c221c
[ "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
64,654
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, Yury G. Kudryashov, Scott Morrison -/ import algebra.algebra.equiv import algebra.big_operators.finsupp import algebra.hom.non_unital_alg import algebra.module.big_oper...
4aa03005333cbc206ae34d15608ce716cb430060
4727251e0cd73359b15b664c3170e5d754078599
/src/category_theory/monoidal/category.lean
7dcc5f6d38b04ea56d72ab4358a44961ff8abd1f
[ "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
22,113
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, Bhavik Mehta, Jakob von Raumer -/ import category_theory.products.basic /-! # Monoidal categories A monoidal category is a category equipped wit...
6c84102c591981655d86a9fb790ddd46a798a835
35960c5b117752aca7e3e7767c0b393e4dbd72a7
/src/data/fresh.lean
b9920e86cc0682341e76a98f514a7ede7b915c5d
[ "Apache-2.0" ]
permissive
spl/tts
461dc76b83df8db47e4660d0941dc97e6d4fd7d1
b65298fea68ce47c8ed3ba3dbce71c1a20dd3481
refs/heads/master
1,541,049,198,347
1,537,967,023,000
1,537,967,029,000
119,653,145
1
0
null
null
null
null
UTF-8
Lean
false
false
10,685
lean
/- Copyright (c) 2018 Sean Leather. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Sean Leather Generating fresh atoms. An atom (or inhabitant) of type `α` that is not a member of a given finite set `s : finset α` is called “fresh.” The set `s` is called the “avoidan...
334b1f589a1d2a14dc5b4d76e6e5fb0abdc109aa
87a08a8e9b222ec02f3327dca4ae24590c1b3de9
/src/data/set/lattice.lean
6dfb2be4ef2d872b6109066b9eb9b1e5f8be61d1
[ "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
34,328
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro -- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit? -/ import logic.basic data.set.basic data.equiv.basic...
7efb26bc2220c4a46fc5dcb5b874fd2eedfe7a6e
c8b4b578b2fe61d500fbca7480e506f6603ea698
/src/caseI/aux_lemmas.lean
8ffefdfa4ab80e80d979e2e006a9503e6c6c494d
[]
no_license
leanprover-community/flt-regular
aa7e564f2679dfd2e86015a5a9674a6e1197f7cc
67fb3e176584bbc03616c221a7be6fa28c5ccd32
refs/heads/master
1,692,188,905,751
1,691,766,312,000
1,691,766,312,000
421,021,216
19
4
null
1,694,532,115,000
1,635,166,136,000
Lean
UTF-8
Lean
false
false
9,292
lean
import may_assume.lemmas import number_theory.cyclotomic.factoring import number_theory.cyclotomic.Unit_lemmas import number_theory.cyclotomic.case_I open finset nat is_cyclotomic_extension ideal polynomial int basis open_locale big_operators number_field namespace flt_regular variables {p : ℕ} (hpri : p.prime) lo...
8a077f4f854dd1c6c6b7afd2f5af2612dc7e9d3a
4e0d7c3132ce31edc5829849735dd25db406b144
/lean/love13_rational_and_real_numbers_demo.lean
fd37736d4c4a213852603c658e83af4a8a922716
[]
no_license
gonzalgu/logical_verification_2020
a0013a6c22ea254e9f4d245f2948f0f4d44df4bb
724d0457dff2c3ff10f9ab2170388f4c5e958b75
refs/heads/master
1,660,886,374,533
1,589,859,641,000
1,589,859,641,000
256,069,971
0
0
null
1,586,997,430,000
1,586,997,429,000
null
UTF-8
Lean
false
false
13,515
lean
import .lovelib /-! # LoVe Demo 13: Rational and Real Numbers We review the construction of `ℚ` and `ℝ` as quotient types. A procedure to construct types with specific properties: 1. Create a new type that can represent all elements, but not necessarily in a unique manner. 2. Quotient this representation, equa...
4e3e1223bb6b8738abbff1acfc5ead83b3b13aa0
80162757f50b09d3cad5564907e4c9b00742e045
/rb_dep.lean
cc3902a9cd3df8627eed332054952540f77836de
[]
no_license
EdAyers/edlib
cc30d0a54fed347a85b6df6045f68e6b48bc71a3
78b8c5d91f023f939c102837d748868e2f3ed27d
refs/heads/master
1,586,459,758,216
1,571,322,179,000
1,571,322,179,000
160,538,917
2
0
null
null
null
null
UTF-8
Lean
false
false
2,147
lean
/- Mirrors `rb.lean` but with dependent types from the start -/ namespace rb_dep universes u v section rb open nat inductive col | Red | Black open col inductive node (K : Type u) (A : Type v) : col → ℕ → Type max u v |Leaf {} : node Black 0 |Rd {n} (l : node Black n) (v : K × A) (r : node Black n) : node Red n |Bk ...
b7f17ae8f53ba6f0116147627d53d6c82f3a420c
2c096fdfecf64e46ea7bc6ce5521f142b5926864
/src/Lean/Elab/Extra.lean
854b418a29c0ea55811d685d7141ad7e9157392d
[ "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
Kha/lean4
1005785d2c8797ae266a303968848e5f6ce2fe87
b99e11346948023cd6c29d248cd8f3e3fb3474cf
refs/heads/master
1,693,355,498,027
1,669,080,461,000
1,669,113,138,000
184,748,176
0
0
Apache-2.0
1,665,995,520,000
1,556,884,930,000
Lean
UTF-8
Lean
false
false
23,260
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Elab.App import Lean.Elab.BuiltinNotation /-! # Auxiliary elaboration functions: AKA custom elaborators -/ namespace Lean.Elab.Term open Meta ...
10fb166a7511f3318cbd7b121c8ce3cec895779b
2c41ae31b2b771ad5646ad880201393f5269a7f0
/Lean/Examples/Car/Car_SystemModel.lean
3a06232a98fd937b75861d6cef596574d209a21a
[]
no_license
kevinsullivan/Boehm
926f25bc6f1a8b6bd47d333d936fdfc278228312
55208395bff20d48a598b7fa33a4d55a2447a9cf
refs/heads/master
1,586,127,134,302
1,488,252,326,000
1,488,252,326,000
32,836,930
0
0
null
null
null
null
UTF-8
Lean
false
false
3,008
lean
import Qualities.Changeable inductive CarStakeholders : Type | manufacturer | dealer | owner | driver | passenger | mechanic | ai record CarValue := mk :: (timeMinutes: nat) (moneyDollars: nat) (gasolineGallons: nat) (wearRate: nat) inductive CarPhases : Type | manufacturing | sale | owner...
420e9a74429eb584f857d96d391b8e808b1e19b1
77c5b91fae1b966ddd1db969ba37b6f0e4901e88
/src/data/nat/multiplicity.lean
622d30908691c5d79eac9da82e13ab710bbb866d
[ "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
11,881
lean
/- Copyright (c) 2019 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes -/ import algebra.big_operators.intervals import data.nat.bitwise import data.nat.log import data.nat.parity import ring_theory.int.basic /-! # Natural number multiplicity ...
e722d9d0afe8550cff7f86dec90923fea26662c0
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/src/Init/Data/Format/Syntax.lean
4a551e718588500bcb72a9f848256cd9410b2147
[ "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
EdAyers/lean4
57ac632d6b0789cb91fab2170e8c9e40441221bd
37ba0df5841bde51dbc2329da81ac23d4f6a4de4
refs/heads/master
1,676,463,245,298
1,660,619,433,000
1,660,619,433,000
183,433,437
1
0
Apache-2.0
1,657,612,672,000
1,556,196,574,000
Lean
UTF-8
Lean
false
false
1,939
lean
/- Copyright (c) 2021 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.Format.Macro import Init.Data.Format.Instances import Init.Meta namespace Lean.Syntax open Std open Std.Format private def format...
42fd9007532328fac412416e7de6c691bb34f0be
ec62863c729b7eedee77b86d974f2c529fa79d25
/1/b.lean
f57cbb80143dd92c1cdd90d1d076f3ffdf7b1eeb
[]
no_license
rwbarton/advent-of-lean-4
2ac9b17ba708f66051e3d8cd694b0249bc433b65
417c7e2718253ba7148c0279fcb251b6fc291477
refs/heads/main
1,675,917,092,057
1,609,864,581,000
1,609,864,581,000
317,700,289
24
0
null
null
null
null
UTF-8
Lean
false
false
586
lean
def solve₂ (x₀ x₁ : Int) : List Int → Option Int | [] => Option.none | (x :: xs) => if x₀ + x₁ + x = 2020 then Option.some (x₀ * x₁ * x) else solve₂ x₀ x₁ xs def solve₁ (x₀ : Int) : List Int → Option Int | [] => Option.none | (x :: xs) => solve₂ x₀ x xs <|> solve₁ x₀ xs def solve : List Int → Option Int | [] =>...
f3babd085460dec91e9e58626182c298f221a6ee
9a0b1b3a653ea926b03d1495fef64da1d14b3174
/tidy/lib/list.lean
d59ba88d598c821667f0b383a4e115bd8c37d22e
[ "Apache-2.0" ]
permissive
khoek/mathlib-tidy
8623b27b4e04e7d598164e7eaf248610d58f768b
866afa6ab597c47f1b72e8fe2b82b97fff5b980f
refs/heads/master
1,585,598,975,772
1,538,659,544,000
1,538,659,544,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,358
lean
import data.option import data.buffer universes u v w namespace list private def min_rel_aux {α : Type u} (r : α → α → Prop) [decidable_rel r] (curr : α) : list α → α | [] := curr | (a :: rest) := if r a curr then a else curr def min_rel {α : Type u} (l : list α) (r : α → α → Prop) [decidable_rel r] : option α := ...
aa7f3f2563986382a628e2db1d0a17dba321d519
abd85493667895c57a7507870867b28124b3998f
/src/linear_algebra/matrix.lean
6e7e1ccfbb3b0d7d23b64fb9a4a403edc7245277
[ "Apache-2.0" ]
permissive
pechersky/mathlib
d56eef16bddb0bfc8bc552b05b7270aff5944393
f1df14c2214ee114c9738e733efd5de174deb95d
refs/heads/master
1,666,714,392,571
1,591,747,567,000
1,591,747,567,000
270,557,274
0
0
Apache-2.0
1,591,597,975,000
1,591,597,974,000
null
UTF-8
Lean
false
false
13,250
lean
/- Copyright (c) 2019 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Johannes Hölzl, Casper Putz -/ import linear_algebra.dimension /-! # Linear maps and matrices This file defines the maps to send matrices to a linear map, and to send linear maps betw...
d509c119a8ac60aae77eb18067e2c3341114d0b0
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/category_theory/limits/shapes/default.lean
2563b304688718cd20c915192af52b360b3dba8f
[]
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
775
lean
import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.category_theory.limits.shapes.terminal import Mathlib.category_theory.limits.shapes.binary_products import Mathlib.category_theory.limits.shapes.products import Mathlib.category_theory.limits.shapes.finite_products import Mathlib.category_theory...
50c3c88469ff1084226284630a39fad4837b97e8
c777c32c8e484e195053731103c5e52af26a25d1
/src/analysis/ODE/gronwall.lean
04426303cd2c01d82a882c05bc4d2d82e9dc432b
[ "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
13,190
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.special_functions.exp_deriv /-! # Grönwall's inequality The main technical result of this file is the Grönwall-like inequality `norm_le_gronwall_b...
785953f5c328c33f01d6310951b85ec542045383
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/src/Lean/ParserCompiler/Attribute.lean
150fe0af8a41bc60f1f605eba11886809421b736
[ "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
EdAyers/lean4
57ac632d6b0789cb91fab2170e8c9e40441221bd
37ba0df5841bde51dbc2329da81ac23d4f6a4de4
refs/heads/master
1,676,463,245,298
1,660,619,433,000
1,660,619,433,000
183,433,437
1
0
Apache-2.0
1,657,612,672,000
1,556,196,574,000
Lean
UTF-8
Lean
false
false
1,972
lean
/- Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ import Lean.Attributes import Lean.Compiler.InitAttr import Lean.ToExpr namespace Lean namespace ParserCompiler structure CombinatorAttrib...
1fb02a618803387a5a2d231fe5d666ea2cf57c6a
2c096fdfecf64e46ea7bc6ce5521f142b5926864
/src/Init/Data/Nat/Basic.lean
2b676b596883fadb4bdb9637789091fe62c1088e
[ "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
Kha/lean4
1005785d2c8797ae266a303968848e5f6ce2fe87
b99e11346948023cd6c29d248cd8f3e3fb3474cf
refs/heads/master
1,693,355,498,027
1,669,080,461,000
1,669,113,138,000
184,748,176
0
0
Apache-2.0
1,665,995,520,000
1,556,884,930,000
Lean
UTF-8
Lean
false
false
28,191
lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Leonardo de Moura -/ prelude import Init.SimpLemmas set_option linter.missingDocs true -- keep it documented universe u namespace Nat /-- `Nat.fold` evaluate...
62c9389a7866a29d8bbc00b0099e69f0671b4f71
9b9a16fa2cb737daee6b2785474678b6fa91d6d4
/src/data/multivariate_polynomial.lean
17ddb63618baf7fa2aa317db2b1931b4eda2d44a
[ "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
28,007
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 Multivariate Polynomial -/ import algebra.ring import data.finsupp data.polynomial data.equiv.algebra open set function finsupp lattice...
2603fea42593d881e36aef829b8a8e8746ede5f7
56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3
/src/utils/util.lean
cd4d2b629837d2e3321aa41b95cc15212c8da4e3
[ "Apache-2.0" ]
permissive
DyeKuu/lean-tpe-public
3a9968f286ca182723ef7e7d97e155d8cb6b1e70
750ade767ab28037e80b7a80360d213a875038f8
refs/heads/master
1,682,842,633,115
1,621,330,793,000
1,621,330,793,000
368,475,816
0
0
Apache-2.0
1,621,330,745,000
1,621,330,744,000
null
UTF-8
Lean
false
false
18,438
lean
import tactic import .sexp import control.traversable.derive import data.string.basic import meta.rb_map infix `<e>`:100 := λ x y, tactic.to_expr y >>= x section iterate_until meta def iterate_until_aux {m} [monad m] [alternative m] {α} (tac : m α) (stop : α → m bool) (fuel_exhausted_callback : m α) : Π (fuel...
16e5a5fbab62dd0c0bd81a6b04630db0ca186d3e
b7f22e51856f4989b970961f794f1c435f9b8f78
/library/theories/analysis/real_limit.lean
ff9e05b0c8dea6d69c22b4cf12dd0bf1b6966e82
[ "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
29,225
lean
/- Copyright (c) 2015 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Robert Y. Lewis Instantiates the reals as a Banach space. -/ import .metric_space data.real.complete data.set .normed_space open real classical analysis nat topology non...
fe8d60c2b7684bc282443ef904f64dd609b6365a
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/topology/order/basic.lean
a17106de53df54568ded17e0b3d18ab90dc49c48
[ "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
121,972
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, Yury Kudryashov -/ import data.set.intervals.pi import data.set.pointwise.interval import order.filter.interval import topology.support import topology....
6db0d0f2add6c8e6cbb6d3d54b870b4d2d0eda38
367134ba5a65885e863bdc4507601606690974c1
/archive/imo/imo1998_q2.lean
f4e5364b443a2c6a64d259fa84b4110905fc889a
[ "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
9,579
lean
/- Copyright (c) 2020 Oliver Nash. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Oliver Nash -/ import data.fintype.basic import data.int.parity import algebra.big_operators.order import tactic.ring import tactic.noncomm_ring /-! # IMO 1998 Q2 In a competition, there...
05ddc3c12ded1520ebbde0bceaf141a647f42383
63abd62053d479eae5abf4951554e1064a4c45b4
/src/category_theory/limits/shapes/images.lean
c596c5dab4e0341c595b1266e5a949661916de51
[ "Apache-2.0" ]
permissive
Lix0120/mathlib
0020745240315ed0e517cbf32e738d8f9811dd80
e14c37827456fc6707f31b4d1d16f1f3a3205e91
refs/heads/master
1,673,102,855,024
1,604,151,044,000
1,604,151,044,000
308,930,245
0
0
Apache-2.0
1,604,164,710,000
1,604,163,547,000
null
UTF-8
Lean
false
false
26,088
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Markus Himmel -/ import category_theory.limits.shapes.equalizers import category_theory.limits.shapes.strong_epi /-! # Categorical images We define the categorical im...
27da2c0c3a7a1a7922e2f952ba8a5f75a9ed0476
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/tactic/localized_auto.lean
b49bd53a4dd4690e1c85ab63b4e5a3b3ac2ea14f
[]
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,077
lean
/- Copyright (c) 2019 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.tactic.core import Mathlib.PostPort namespace Mathlib /-! # Localized notation This ...
1bdb829ca3fa1fbd8fbb7b75b37cc6db5fe40dd3
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/library/data/int/default.lean
c71c4f767e83e18c839db3652f7f1aebb5873927
[ "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
197
lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad -/ import .basic .order .div .power .gcd
2c1d09bb40e6815fca71e8bf58ff35da6f0ed327
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/tactic17.lean
aa4d76bb6a1287f9da941c7a4a6e2ba5741180ca
[ "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
232
lean
import logic open tactic constant A : Type.{1} constant f : A → A → A theorem tst {a b c : A} (H1 : a = b) (H2 : b = c) : f a b = f b c := begin apply (@congr A A (f a) (f b)), apply (congr_arg f), repeat assumption end
666671ff9656ecacf74ced5046485d28dea4f236
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/ring_theory/adjoin/field.lean
7a4b4920535d2f4df24be895fa881fea3eeb3c70
[ "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
3,855
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.polynomial.splits import ring_theory.adjoin.basic import ring_theory.adjoin_root /-! # Adjoining elements to a field > THIS FILE IS SYNCHRONIZED WITH MATHL...
8641a53777d5602505f710d69cfba5caa8590b6f
6b7c9c6393bac7cb1c64582a1c62597e24f5bb80
/src/tactic/gptf/utils/default.lean
eef350cc2e3d8d3fecd9715626a1b553eed19a37
[ "Apache-2.0" ]
permissive
alreadydone/lean-gptf
56a7d9cbd9400af72fb143d60c8774b8cfbc09cb
b4ab1eb2da0178f3dcdc49771d9fed6b50e35d98
refs/heads/master
1,679,371,993,063
1,614,479,778,000
1,614,479,778,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
30
lean
import tactic.gptf.utils.util
a7f6eaa14b60f03562bddb1d47a879ec1e893dfe
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/topology/algebra/open_subgroup.lean
dfa12d394678c4c1d1ce0876b5580511a54da5f6
[ "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
9,447
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 order.filter.lift import topology.opens import topology.algebra.ring /-! # Open subgroups of a topological groups This files builds the lattice `open_subgroup ...
9e91667def6b3aa6a5f4219a0e5c818f4a3293f5
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/geometry/manifold/instances/sphere.lean
f081b216a54e92bae7223615be0dd16b224e2419
[ "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
20,126
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 geometry.manifold.instances.real import analysis.complex.circle /-! # Manifold structure on the sphere This file defines stereographic projection from the ...
58ebcdff91e2afae2bc47d4fad03bd7e490be301
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/src/Lean/Elab/Deriving/Nonempty.lean
735193b7ae2f761e517f4417fcaad59254faa124
[ "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
1,497
lean
/- Copyright (c) 2022 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ import Lean.Elab.Deriving.Basic namespace Lean.Elab open Command Meta Parser Term private def mkNonemptyInstance (declName : Name) : TermElabM Syntax.Command ...
00aeb77f1c49edd2354966e18ce8a2dc4207cb2f
02005f45e00c7ecf2c8ca5db60251bd1e9c860b5
/src/category_theory/adjunction/lifting.lean
be406c39c8c727d78607d9524886afd94581343f
[ "Apache-2.0" ]
permissive
anthony2698/mathlib
03cd69fe5c280b0916f6df2d07c614c8e1efe890
407615e05814e98b24b2ff322b14e8e3eb5e5d67
refs/heads/master
1,678,792,774,873
1,614,371,563,000
1,614,371,563,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
11,843
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.reflexive import category_theory.adjunction import category_theory.monad.adjunction i...
0d32f3ed40b9f6cadd36f51604cebbbaf06afa14
ed27983dd289b3bcad416f0b1927105d6ef19db8
/src/inClassNotes/higherOrderFunctions/list_map.lean
6aa88d6a68e3eae298f01c50fa7f2b4e7134e36b
[]
no_license
liuxin-James/complogic-s21
0d55b76dbe25024473d31d98b5b83655c365f811
13e03e0114626643b44015c654151fb651603486
refs/heads/master
1,681,109,264,463
1,618,848,261,000
1,618,848,261,000
337,599,491
0
0
null
1,613,141,619,000
1,612,925,555,000
null
UTF-8
Lean
false
false
168
lean
def list_map {α β : Type} : (α → β) → (list α) → list β | f list.nil := list.nil | f (h::t) := (f h)::(list_map f t) #eval list_map nat.succ [1,2,3,4,5,6]
c22acd6a60dd8b8e853ef79da7629db57421b72c
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/ring_theory/localization.lean
17fca5c07622bfd5c31444b466a1c5f038f11fce
[ "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
27,210
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Mario Carneiro, Johan Commelin -/ import tactic.ring data.quot data.equiv.ring ring_theory.ideal_operations group_theory.submonoid universes u v local attribute [instance, prio...
24844e84f628cbf076a31761aa1b3250edf7513e
36938939954e91f23dec66a02728db08a7acfcf9
/lean4/app/WordSize.lean
897593f254f569ada8d62af55517747d49127c08
[]
no_license
pnwamk/reopt-vcg
f8b56dd0279392a5e1c6aee721be8138e6b558d3
c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d
refs/heads/master
1,631,145,017,772
1,593,549,019,000
1,593,549,143,000
254,191,418
0
0
null
1,586,377,077,000
1,586,377,077,000
null
UTF-8
Lean
false
false
523
lean
import SMTLIB.Syntax inductive WordSize | word8 : WordSize | word16 : WordSize | word32 : WordSize | word64 : WordSize namespace WordSize def bytes : WordSize → Nat | word8 => 1 | word16 => 2 | word32 => 4 | word64 => 8 /-- Bit width (i.e., the nominal width) --/ def bits (w:WordSize) : Nat := 8 * w.bytes def...
0be2f2c4b3955b00208712d9a9478b61a767b5b7
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/type_annot_app.lean
d11a674a84f54cb7a4d35512d15b6c36a405aa07
[ "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
466
lean
def f : ℕ → ℕ := λ _, 0 theorem A (x : ℕ) : f x = 0 := rfl theorem B (x : ℕ) : (f : _) x = 0 := rfl theorem C (x : ℕ) : (f : ℕ → ℕ) x = 0 := rfl example (x) : f x = 0 := by simp [A] --ok example (x) : f x = 0 := by have := A x; rw this --ok example (x) : f x = 0 := by simp [B] --fails example (x) : f x = 0 := by have...
513235c5745994fec7e5659e7d92ef5b98cbec62
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/Lean3Lib/init/meta/ref_auto.lean
d1cd405b02685a06f32d110d1e76188fa6796148
[]
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
444
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 -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.meta.tactic namespace Mathlib namespace tactic /-- A `ref` performs the role of a mutable variable w...
9818434ffa65f36587f59a201e54c982acb7b191
367134ba5a65885e863bdc4507601606690974c1
/src/ring_theory/polynomial/symmetric.lean
27ab1c3b0e6f1ac18985afcfe0767426677469e5
[ "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,541
lean
/- Copyright (c) 2020 Hanting Zhang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Hanting Zhang, Johan Commelin -/ import tactic import data.mv_polynomial.rename import data.mv_polynomial.comm_ring /-! # Symmetric Polynomials and Elementary Symmetric Polynomials Th...
37843d8055cc5b38fbefc7cc7cd796546745418b
367134ba5a65885e863bdc4507601606690974c1
/src/data/qpf/multivariate/constructions/sigma.lean
1b4c8963c09db0fc84b6da7d5b9054d8505152c1
[ "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
3,045
lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Simon Hudon -/ import data.pfunctor.multivariate.basic import data.qpf.multivariate.basic /-! # Dependent product and sum of QPFs are QPFs -/ universes u namespace mvqpf open_locale mv...
e3589b985f9601fdc89dd1b7cda2775e950e8470
bce603343785d07c32cb8b35950aba0b4d9415ae
/lean3/src/relations.lean
e609ee2e07f9f3d120e41be42bd5a2ecde8808f8
[]
no_license
fpvandoorn/cryptomorphism
db00cf0b12c8fd561a6200eee6a6ff2a023f1228
d486419ecced54de3db759dae81110be44b7c28b
refs/heads/master
1,693,198,883,854
1,636,562,038,000
1,636,562,038,000
363,219,330
0
0
null
null
null
null
UTF-8
Lean
false
false
5,065
lean
import tactic import tactic.slim_check mk_simp_attribute props "" variables {α : Type*} @[props] def is_reflexive (r : α → α → Prop) : Prop := ∀ a, r a a @[props] def is_irreflexive (r : α → α → Prop) : Prop := ∀ a, ¬ r a a @[props] def is_symmetric (r : α → α → Prop) : Prop := ∀ a b, r a b → r b a @[props] def is_tra...
a8f88930d54ca2988e689593811cd6d68936ee34
f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83
/data/set/lattice.lean
b05c20cb0bb609273b8465a6737febda12dbae12
[ "Apache-2.0" ]
permissive
mjendrusch/mathlib
df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214
5c209edb7eb616a26f64efe3500f2b1ba95b8d55
refs/heads/master
1,585,663,284,800
1,539,062,055,000
1,539,062,055,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
26,530
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors Jeremy Avigad, Leonardo de Moura, Johannes Hölzl, Mario Carneiro -- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit? -/ import logic.basic data.set.basic data.equiv.basic...
6f47d11327e9a379d3d93ab333d9a72be3a198b9
1446f520c1db37e157b631385707cc28a17a595e
/src/Init/Lean/Meta/Tactic/Target.lean
a493655c3ba2d23b2e3958ac932f0ec4a2bb7017
[ "Apache-2.0" ]
permissive
bdbabiak/lean4
cab06b8a2606d99a168dd279efdd404edb4e825a
3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac
refs/heads/master
1,615,045,275,530
1,583,793,696,000
1,583,793,696,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,750
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 -/ prelude import Init.Lean.Meta.AppBuilder import Init.Lean.Meta.Tactic.Util namespace Lean namespace Meta /-- Convert the given goal `Ctx |- target` into...
075c9c554a5939dd893f2dc0e22927a87f146118
8e381650eb2c1c5361be64ff97e47d956bf2ab9f
/src/spectrum_of_a_ring/structure_sheaf_gluing.lean
ae596eefbbede80e352ef134fa989bfeee29f522
[]
no_license
alreadydone/lean-scheme
04c51ab08eca7ccf6c21344d45d202780fa667af
52d7624f57415eea27ed4dfa916cd94189221a1c
refs/heads/master
1,599,418,221,423
1,562,248,559,000
1,562,248,559,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
7,943
lean
/- Second argument of the ring lemma. We show that the map R[1/fᵢ] → R[1/fᵢfⱼ] inverts fᵢ/1 * fⱼ/1. -/ import ring_theory.localization import to_mathlib.localization.localization_alt import spectrum_of_a_ring.structure_presheaf import spectrum_of_a_ring.structure_presheaf_localization import spectrum_of_a_ring.s...
264848c5a3f6c50b725174c5162f38b7f73d5f71
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/category_theory/monoidal/internal/types_auto.lean
d0d64b2caacd73e870c4b7ac9ad9e9327bc36af3
[]
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,618
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 Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebra.category.Mon.basic import Mathlib.category_theory.monoidal.CommMon_ import Mathlib....
b93b4046c473305d7304f53e7218d5490ea268a2
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/eqn_value_issue.lean
9c4c49b50644b0328466828e6dca6d4dbb072b13
[ "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
269
lean
def f : nat -> nat | 1 := 1 | 2000 := 2 | _ := 3 #check f.equations._eqn_1 #check f.equations._eqn_2 #check f.equations._eqn_3 def g : nat -> nat | 0 := 1 | 2000 := 2 | _ := 3 #check g.equations._eqn_1 #check g.equations._eqn_2 #check g.equations._eqn_3
ebe19a4d17831e448497365c76de5355658af846
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/spec_issue.lean
a083563ea2cc8b492942befb1691de76222dd56a
[ "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
158
lean
set_option trace.compiler.ir.result true def g (ys : List Nat) : IO Nat := do let x := 0 let (_, x) ← StateT.run (ys.forM fun y => IO.println y) x pure x
7ad2d8c9f815eb9af57fe0d95c65ff2e028d66ca
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/dec_trivial_problem.lean
c8a40ffff33da90405a8aa1db0147abf565f0b27
[ "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
401
lean
definition n : nat := 3 open tactic meta definition dec_triv : tactic unit := do tgt ← target, inst ← to_expr ``(decidable %%tgt) >>= mk_instance, to_expr ``(@of_as_true %%tgt %%inst trivial) >>= exact example : 0 < n := by dec_triv notation `dec_trivial2` := by dec_triv example : 0 < n := dec_trivial2 nota...
0fc192df9ea2fe4fdbe1f70ff7c05ce223e7aff7
7cdf3413c097e5d36492d12cdd07030eb991d394
/world_experiments/world7/level13.lean
c5b8be3adda9769d107c341d8a6120514c320a32
[]
no_license
alreadydone/natural_number_game
3135b9385a9f43e74cfbf79513fc37e69b99e0b3
1a39e693df4f4e871eb449890d3c7715a25c2ec9
refs/heads/master
1,599,387,390,105
1,573,200,587,000
1,573,200,691,000
220,397,084
0
0
null
1,573,192,734,000
1,573,192,733,000
null
UTF-8
Lean
false
false
723
lean
import mynat.definition -- hide import mynat.add -- hide import game.world2.level12 -- hide namespace mynat -- hide /- # World 2 -- Addition World ## Level 13 -- `add_left_eq_zero` You have the usual stuff. * `zero_ne_succ (a : mynat) : zero ≠ succ(a)` might be useful for this one. The following lemma will be...
60832c336900a0ada4e40bd3efff64b63327f4c2
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/order/partition/finpartition.lean
6a26c426fca3e71507140f4a63b1658b9c04ceee
[ "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,678
lean
/- Copyright (c) 2022 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 algebra.big_operators.basic import order.atoms import order.sup_indep /-! # Finite partitions In this file, we define finite partitio...
dac78d9c37ae3ee269326aabc8d5b8f4a948619d
aa3f8992ef7806974bc1ffd468baa0c79f4d6643
/tests/lean/t9.lean
4c0afbe75fd9451f89eb59af310d2b3cde33c91c
[ "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
388
lean
precedence `+` : 65 precedence `*` : 75 precedence `=` : 50 precedence `≃` : 50 constant N : Type.{1} constant a : N constant b : N constant add : N → N → N constant mul : N → N → N namespace foo infixl + := add infixl * := mul check a+b*a end foo -- Notation is not avaiable outside the namespace check a+b*a name...
6f02fa8328be2432618fbd657678b4fe2a91b53a
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/order/filter/germ.lean
605ee3d27129cbeee1cf9f6e5a6f67f74b681628
[ "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
21,463
lean
/- Copyright (c) 2020 Yury G. Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury G. Kudryashov, Abhimanyu Pallavi Sudhir -/ import order.filter.basic import algebra.module.pi /-! # Germ of a function at a filter The germ of a function `f : α → β` at a fi...
a2251b665826e91681cd60b38cac8e46f39dfa07
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/order/iterate_auto.lean
1ed403d7ee5986d1539c50f6601b953b93db8d3f
[]
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,241
lean
/- Copyright (c) 2020 Yury G. Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Yury G. Kudryashov -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.order.basic import Mathlib.logic.function.iterate import Mathlib.data.nat.basic impo...
81c5eb34a376d5fbaa50476c72d53badfa017077
053e034f0e0e1fe8e0505b2354923e53b2bc5311
/src/exercises_sources/friday/analysis.lean
e4b7c7237a7955f0588f282b4dae0137e72faf86
[]
permissive
eric-wieser/lftcm2020
58d2e207f9862005f2ac25ac58f0cfa50c24116e
042ef8cbe34f3ca91207b8ba379e837c3872945d
refs/heads/master
1,669,034,846,341
1,594,981,386,000
1,594,981,386,000
280,398,568
0
0
MIT
1,594,982,530,000
1,594,982,530,000
null
UTF-8
Lean
false
false
1,097
lean
import analysis.analytic.composition import analysis.normed_space.real_inner_product import topology.metric_space.pi_Lp import analysis.calculus.iterated_deriv namespace lftcm open real /-! # Derivatives Lean can automatically compute some simple derivatives using `simp` tactic. -/ example : deriv (λ x : ℝ, x^5) 6...
f89b254f01e373993094b970346b02c22060a4b7
8b9f17008684d796c8022dab552e42f0cb6fb347
/tests/lean/run/match_tac4.lean
62944d07e835f8544a27d32ad35a47b887d7dd89
[ "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
736
lean
notation `⟪`:max t:(foldr `,` (e r, and.intro e r)) `⟫`:0 := t check ⟪ trivial, trivial, trivial ⟫ theorem tst (a b c d : Prop) : a ∧ b ∧ c ∧ d ↔ d ∧ c ∧ b ∧ a := begin apply iff.intro, begin intro H, match H with | ⟪ H₁, H₂, H₃, H₄ ⟫ := ⟪ H₄, H₃, H₂, H₁ ⟫ end end, begin intro H, match...
e56daca30abd35da69294b46650364c2f5066270
4fa161becb8ce7378a709f5992a594764699e268
/src/data/support.lean
72375836ec0476bec5e3d2ad31ad1a7a5b398578
[ "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
4,754
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 order.conditionally_complete_lattice import algebra.big_operators /-! # Support of a function In this file we define `function.support f = {x | f x ≠ 0}` a...
deb395a337d085fb6f665361f80595b07068171e
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/ring_theory/witt_vector/isocrystal.lean
74f49caeefa05e9ea8550884c216b7f075e01316
[ "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
8,642
lean
/- Copyright (c) 2022 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ import ring_theory.witt_vector.frobenius_fraction_field /-! ## F-isocrystals over a perfect field When `k` is an integral domain, so is `𝕎 k`, and we can consi...
1d1c583a1fc367f4c7f5cd250c98e8f2a5519154
3f48345ac9bbaa421714efc9872a0409379bb4ae
/src/set_category/colimits/Sum.lean
e6f911f4a44e439f9ffbff3d3fcdd2ca66f078d7
[]
no_license
QaisHamarneh/Coalgebra-in-Lean
b4318ee6d83780e5c734eb78fed98b1fe8016f7e
bd0452df98bc64b608e5dfd7babc42c301bb6a46
refs/heads/master
1,663,371,200,241
1,661,004,695,000
1,661,004,695,000
209,798,828
0
0
null
null
null
null
UTF-8
Lean
false
false
3,494
lean
import category_theory.category import category_theory.functor import category_theory.types import help_functions import tactic.tidy universes v u namespace Sum open category_theory set classical function help_functions sum local notation f ` ⊚ `:80 g:80 := category_struct.comp g f /- ...
23307954f9908e6c6222c25e7d8b778c4e768007
d0c6b2ba2af981e9ab0a98f6e169262caad4b9b9
/src/Lean/Meta/AppBuilder.lean
d3983d45a184b2514a6ab6f62d37f0ba10a70055
[ "Apache-2.0" ]
permissive
fizruk/lean4
953b7dcd76e78c17a0743a2c1a918394ab64bbc0
545ed50f83c570f772ade4edbe7d38a078cbd761
refs/heads/master
1,677,655,987,815
1,612,393,885,000
1,612,393,885,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
18,881
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.Structure import Lean.Util.Recognizers import Lean.Meta.SynthInstance import Lean.Meta.Check namespace Lean.Meta /-- Return `id e` -/ def mkId...
fe62cca1d772fcc2c1af753667f99158da5dbdf8
7cef822f3b952965621309e88eadf618da0c8ae9
/src/category_theory/limits/shapes/terminal.lean
f8f37a5a4354a53a19e5fd35d9c1e778f120a1a0
[ "Apache-2.0" ]
permissive
rmitta/mathlib
8d90aee30b4db2b013e01f62c33f297d7e64a43d
883d974b608845bad30ae19e27e33c285200bf84
refs/heads/master
1,585,776,832,544
1,576,874,096,000
1,576,874,096,000
153,663,165
0
2
Apache-2.0
1,544,806,490,000
1,539,884,365,000
Lean
UTF-8
Lean
false
false
2,048
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.finite_products import category_theory.pempty universes v u open category_theory namespace category_theory.limits variables (...
44de55c3329e014c6d4aa0ddb0db17ec227b146f
fe84e287c662151bb313504482b218a503b972f3
/src/data/cfrac/numbers.lean
967bfc6d207951f9f440385847832703ba22ba79
[]
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
25,294
lean
import data.pnat.basic data.setoid.basic inductive spread (α : Type*) | zero : spread | ps : α → spread | ng : α → spread namespace spread instance {α : Type*} : has_zero (spread α) := ⟨zero⟩ lemma zero_def {α : Type*} : (0 : spread α) = zero := rfl instance {α : Type*} [has_one α] : has_one (spread α) := ⟨ps 1⟩ ...
06176ec5b46854ddc141f87bd1709b3f382b1a11
56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3
/src/evaluation.lean
4f97950a15cbec1d54ef0857fc43ee7e828a475b
[ "Apache-2.0" ]
permissive
DyeKuu/lean-tpe-public
3a9968f286ca182723ef7e7d97e155d8cb6b1e70
750ade767ab28037e80b7a80360d213a875038f8
refs/heads/master
1,682,842,633,115
1,621,330,793,000
1,621,330,793,000
368,475,816
0
0
Apache-2.0
1,621,330,745,000
1,621,330,744,000
null
UTF-8
Lean
false
false
49,255
lean
/- Copyright (c) 2020 Jason Rute. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author(s): Jason Rute and Jesse Michael Han REPL for interacting with Lean -/ import data.nat.basic import system.io import tactic.core import tactic import utils import .tactic_state import basi...
f6e4305cdbb73f36822a5d8471486f1237176a1f
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/src/Lean/Meta/Reduce.lean
27765dc65588d48625d4e2de897feeca99aa49ef
[ "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
1,735
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.Meta.Basic import Lean.Meta.FunInfo import Lean.Util.MonadCache namespace Lean.Meta partial def reduce (e : Expr) (explicitOnly skipTypes skip...
10d753186d4cf0f036b88921eb67a98bdb34fab4
d1a52c3f208fa42c41df8278c3d280f075eb020c
/stage0/src/Std/Data/BinomialHeap.lean
9961fe5c0d242b1bdf06bc10d8a3cd62874e7233
[ "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
8,422
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, Jannis Limperg -/ namespace Std universe u namespace BinomialHeapImp structure HeapNodeAux (α : Type u) (h : Type u) where val : α rank : Nat children ...
7ccbed0c53876ea84955b0603f420253949dda99
ca37452420f42eb9a19643a034c532fb39187bd0
/kruskal.lean
09bccae16e6a742ce9c23e572e822d96a9b7fda6
[]
no_license
minchaowu/Kruskal.lean
0096fd12c6732dcb55214907e7241df27d22a51e
0ec4a724c18d8fa2bc1e81dfc026a045888526d5
refs/heads/master
1,589,975,750,330
1,481,928,508,000
1,481,928,508,000
70,121,484
0
0
null
null
null
null
UTF-8
Lean
false
false
6,490
lean
import data.fin data.list open fin nat function list eq.ops inductive finite_tree : Type := | node : finite_tree | cons : Π {n : ℕ}, (fin n → finite_tree) → finite_tree namespace finite_tree definition size : finite_tree → ℕ | node := 1 | (@cons n ts) := Suml (upto n) (λ i, size (ts i)) + 1 theorem exists_...
f2609d218dc2e8da0525c3fa1a8497f0e3f81c35
618003631150032a5676f229d13a079ac875ff77
/src/ring_theory/multiplicity.lean
808a05944fa3c6ddbe9951cbd0f7568908bfc64c
[ "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
17,347
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, Chris Hughes -/ import algebra.associated import data.int.gcd import algebra.big_operators variables {α : Type*} open nat roption theorem nat.find_le {p q : ℕ → Pr...
7ce8e13ae40ca469987626feb53c69b803f3e0c6
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/finset/sigma.lean
e000ed62e556eca76454b4143dbaab3d9facedc5
[ "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
6,407
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Yaël Dillies, Bhavik Mehta -/ import data.finset.lattice import data.set.sigma /-! # Finite sets in a sigma type > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any chan...
cef627d9b3650a20e8353288fdfa4c98c8e5501f
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/export.lean
b86c085248c51f9dba73b3a5ec942cf2597dca0e
[ "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
136
lean
constants a b : nat namespace boo export nat (rec add) #check a + b #check nat.add end boo open boo #check a + b #check nat.rec
9ae1154507d5b4116a7e1a0185c7f49bad5c9b7a
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/model_theory/fraisse.lean
d819e48cea930869838b1f31e970c4b8a33b5dce
[ "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
13,506
lean
/- Copyright (c) 2022 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import model_theory.finitely_generated import model_theory.direct_limit import model_theory.bundled /-! # Fraïssé Classes and Fraïssé Limits This file pertains to ...
6fa0d3ca477d102fe98c27e55242d395b8f67228
034f05d7801df9252e04c34de9fe17863d8426fb
/.config.lean
6834e07a02a8e97f34aab215e10ccbc651ddfe9e
[ "MIT" ]
permissive
amxo/MT1300
2d03d0dccf7d391b3a5c29770a255b4db4d7b7a8
c7452de5fa57b0f01396c191c76a2b4bab54150c
refs/heads/main
1,677,948,578,026
1,613,195,046,000
1,613,195,046,000
338,482,907
0
0
MIT
1,613,184,292,000
1,613,184,292,000
null
UTF-8
Lean
false
false
248,662
lean
# # Automatically generated file; DO NOT EDIT. # OpenWrt Configuration # CONFIG_MODULES=y CONFIG_HAVE_DOT_CONFIG=y # CONFIG_TARGET_sunxi is not set # CONFIG_TARGET_apm821xx is not set # CONFIG_TARGET_ath25 is not set # CONFIG_TARGET_ar71xx is not set # CONFIG_TARGET_ath79 is not set # CONFIG_TARGET_bcm27xx is not set...
5aa06c1a4e1c4ea5d4bda83b8914eff7c3d17c53
43390109ab88557e6090f3245c47479c123ee500
/src/M1F/problem_bank/0503/Q0503.lean
028cfbe0505f5a96352cd14a1236c4b9c045a539
[ "Apache-2.0" ]
permissive
Ja1941/xena-UROP-2018
41f0956519f94d56b8bf6834a8d39473f4923200
b111fb87f343cf79eca3b886f99ee15c1dd9884b
refs/heads/master
1,662,355,955,139
1,590,577,325,000
1,590,577,325,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
5,279
lean
import algebra.group_power tactic.norm_num algebra.big_operators theorem Q3a (n : ℕ) : ∃ k, (n+1)+(n+2)+(n+3)+(n+4) = 4*k+2 := sorry lemma of_nat_pow : ∀ a b: ℕ, int.of_nat(a^b)=(int.of_nat a)^b := begin intros a b, induction b with k Hk, unfold monoid.pow, simp [int.of_nat_one], unfold monoid.pow nat.pow, -- pow...
5039fe9c89139c7ccc94a66092e71cf97a0dbbc7
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/data/finset/lattice_auto.lean
c21f5229d68e1d18bd6afaea1d6bcfe77eb47f73
[]
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
33,896
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.finset.fold import Mathlib.data.multiset.lattice import Mathlib.order.order_dual import...
81314ae43ef6eb512e61a226b391db3ce879224e
ea11767c9c6a467c4b7710ec6f371c95cfc023fd
/src/monoidal_categories/braided_monoidal_functor.lean
ca3812ad999472fc52adb2e0be37849d23c920c8
[]
no_license
RitaAhmadi/lean-monoidal-categories
68a23f513e902038e44681336b87f659bbc281e0
81f43e1e0d623a96695aa8938951d7422d6d7ba6
refs/heads/master
1,651,458,686,519
1,529,824,613,000
1,529,824,613,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
349
lean
-- Copyright (c) 2017 Scott Morrison. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Authors: Stephen Morgan, Scott Morrison import .braided_monoidal_category namespace categories.braided_monoidal_functor open categories.braided_monoidal_category -- PROJECT end catego...
13831f38d9f2bf371430e9dd7ef247821d95f2e2
a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940
/tests/lean/PPRoundtrip.lean
5062229bbcbbabecae20c2912455eef6aa29469a
[ "Apache-2.0" ]
permissive
WojciechKarpiel/lean4
7f89706b8e3c1f942b83a2c91a3a00b05da0e65b
f6e1314fa08293dea66a329e05b6c196a0189163
refs/heads/master
1,686,633,402,214
1,625,821,189,000
1,625,821,258,000
384,640,886
0
0
Apache-2.0
1,625,903,617,000
1,625,903,026,000
null
UTF-8
Lean
false
false
3,087
lean
import Lean open Lean open Lean.Elab open Lean.Elab.Term open Lean.Elab.Command open Std.Format open Std open Lean.PrettyPrinter open Lean.Meta def checkM (stx : TermElabM Syntax) (optionsPerPos : OptionsPerPos := {}) : TermElabM Unit := do let opts ← getOptions let stx ← stx let e ← elabTermAndSynthesize stx none <...
7756361b9efaeb549238997f36963b3b18f6b7ff
4950bf76e5ae40ba9f8491647d0b6f228ddce173
/src/data/real/ennreal.lean
8cd75fd1c55a675ade18a1fb664708fddc5ddbae
[ "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
55,178
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Johannes Hölzl, Yury Kudryashov -/ import data.real.nnreal import data.set.intervals /-! # Extended non-negative reals We define `ennreal := with_no ℝ≥0` to be the type of extended no...
df5c0bce705ab3091288fec8beb9f8214ab17ff0
bdb33f8b7ea65f7705fc342a178508e2722eb851
/group_theory/order_of_element.lean
573cf5b05c3dbf5e2c3d632811d52fc0f1c6bc04
[ "Apache-2.0" ]
permissive
rwbarton/mathlib
939ae09bf8d6eb1331fc2f7e067d39567e10e33d
c13c5ea701bb1eec057e0a242d9f480a079105e9
refs/heads/master
1,584,015,335,862
1,524,142,167,000
1,524,142,167,000
130,614,171
0
0
Apache-2.0
1,548,902,667,000
1,524,437,371,000
Lean
UTF-8
Lean
false
false
6,491
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 -/ import data.set.finite group_theory.coset open set function variables {α : Type*} {s : set α} {a a₁ a₂ b c: α} -- TODO this lemma isn't used anywhere in this file, ...
d2d0847779835b7d9d567534ed84198d8942677f
c777c32c8e484e195053731103c5e52af26a25d1
/src/analysis/normed_space/matrix_exponential.lean
529ec5ab24174ac28580215fee5a486a20b0dc46
[ "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
9,479
lean
/- Copyright (c) 2022 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser -/ import analysis.normed_space.exponential import analysis.matrix import linear_algebra.matrix.zpow import linear_algebra.matrix.hermitian import linear_algebra.matrix.symme...
873510e827442c81f590055684a364817d2a141f
d1a52c3f208fa42c41df8278c3d280f075eb020c
/stage0/src/Init/Data/List/Control.lean
53474987a6909063b12bbb381aa4e4fdddbb4fce
[ "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
6,210
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.Control.Basic import Init.Data.List.Basic namespace List universe u v w u₁ u₂ /- Remark: we can define `mapM`, `mapM₂` and `forM` using...
67f009734cbb773b9bb679c093999f84df579617
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/order/category/BddLat.lean
99d624ae156e348d0ad0ad730cd64b589098d66b
[ "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
6,608
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 category_theory.adjunction.opposites import order.category.BddOrd import order.category.Lat import order.category.Semilat /-! # The category of bounded lattices ...
ce50e06d77bda022948843b0a54af04665da96da
618003631150032a5676f229d13a079ac875ff77
/src/control/equiv_functor.lean
e0d1cc47e381a78a814b16cdd635593537cac8e3
[ "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
2,355
lean
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Scott Morrison -/ import category_theory.category import data.equiv.functor /-! # Functions functorial with respect to equivalences An `equiv_functor` is a function from `Type → Type`...
0a217c93d967426ef285c0b1e7d9c9df9a8c6b27
e030b0259b777fedcdf73dd966f3f1556d392178
/library/init/wf.lean
547a202f10e084b70f989b7d32004371bb875f75
[ "Apache-2.0" ]
permissive
fgdorais/lean
17b46a095b70b21fa0790ce74876658dc5faca06
c3b7c54d7cca7aaa25328f0a5660b6b75fe26055
refs/heads/master
1,611,523,590,686
1,484,412,902,000
1,484,412,902,000
38,489,734
0
0
null
1,435,923,380,000
1,435,923,379,000
null
UTF-8
Lean
false
false
6,820
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 -/ prelude import init.data.nat.basic init.data.prod universe variables u v inductive acc {α : Type u} (r : α → α → Prop) : α → Prop | intro : ∀ x, (∀ y, r y ...
56928b654748d5543e9af35beb7154f5e04685cd
05b503addd423dd68145d68b8cde5cd595d74365
/src/measure_theory/measure_space.lean
a88871bc3ad2bbc5363f9c2b77174a3aa18e1a39
[ "Apache-2.0" ]
permissive
aestriplex/mathlib
77513ff2b176d74a3bec114f33b519069788811d
e2fa8b2b1b732d7c25119229e3cdfba8370cb00f
refs/heads/master
1,621,969,960,692
1,586,279,279,000
1,586,279,279,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
36,306
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.set.lattice data.set.finite import topology.instances.ennreal measure_theory.outer_measure /-! # Measure spaces Measures are rest...
08aeb5f962f71329a9afa99d156134dbd80d0c6d
4727251e0cd73359b15b664c3170e5d754078599
/src/analysis/calculus/fderiv.lean
037c7bfb0deece5147dc6c23a6b140764cf81e0f
[ "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
134,543
lean
/- Copyright (c) 2019 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov -/ import analysis.asymptotics.asymptotic_equivalent import analysis.calculus.tangent_cone import analysis.normed_space.bounded_linear_...
1e1b150e786ab06eb94f12760d60ca3d269b765c
a721fe7446524f18ba361625fc01033d9c8b7a78
/src/principia/mygroup/gareth.lean
6bc608cabd2e6cd8c2c2d1d013dfb455658d224a
[]
no_license
Sterrs/leaning
8fd80d1f0a6117a220bb2e57ece639b9a63deadc
3901cc953694b33adda86cb88ca30ba99594db31
refs/heads/master
1,627,023,822,744
1,616,515,221,000
1,616,515,221,000
245,512,190
2
0
null
1,616,429,050,000
1,583,527,118,000
Lean
UTF-8
Lean
false
false
5,293
lean
-- Gareth's question import ..logic import .basic class gareth (α : Type) extends has_mul α, has_inv α, inhabited α := (mul_assoc (x y z : α): x * y * z = x * (y * z)) (exists_inv (x : α): x * (x⁻¹) * x = x) (inv_unique (x y : α): x * y * x = x → y = x⁻¹) namespace gareth variables {α : Type} [gareth α] (x y z : α)...
6e52805b661f888c42a5fd1a2642de1c986b34c1
03577f7aaac416af2e8f734149669af300dc499c
/lean_exercises/q2.lean
c3c34a1fc40016809003adc48dbe3aa24dd0f925
[]
no_license
nymarya/algorithms
b4dc73389de588e6934da15b0e0b67ae354907aa
1df987f82273a8ffe2b2042552bbb1428bf165bf
refs/heads/master
1,609,629,118,479
1,600,087,537,000
1,600,087,537,000
99,489,969
0
1
null
null
null
null
UTF-8
Lean
false
false
764
lean
open group open tactic -- books -- https://leanprover.github.io/logic_and_proof/logic_and_proof.pdf -- https://leanprover.github.io/theorem_proving_in_lean/inductive_types.html -- https://github.com/leanprover/lean/blob/master/library/init/algebra/group.lean #print group universe u variables {α : Type u} -- https:/...
08be83e95fb0aa3cd04e53bb1a2760e53bfdf4fb
367134ba5a65885e863bdc4507601606690974c1
/src/number_theory/fermat4.lean
d3967f28675a55658243053da15068f77cff4821
[ "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
12,442
lean
/- Copyright (c) 2020 Paul van Wamelen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Paul van Wamelen. -/ import number_theory.pythagorean_triples import ring_theory.coprime /-! # Fermat's Last Theorem for the case n = 4 There are no non-zero integers `a`, `b` and `c...
1e7cd286c84ca56b7bf6dac62f08b63988d776e1
d744d97b07fc1e61b0ebea192b2d624125898128
/src/option.lean
75af8150efd61d0cccf921d0777203989b80d70e
[ "MIT" ]
permissive
parkersullivan/leanstuff
019c757848dd8f5db185e6973969141aee6fef7c
3da132c44d365ecd933de64fa04ba66b9e620683
refs/heads/master
1,599,036,040,845
1,573,316,625,000
1,573,316,625,000
219,181,711
0
0
null
null
null
null
UTF-8
Lean
false
false
345
lean
namespace my_option inductive pol_option (α : Type) : Type | None : pol_option | Some (n : α ) : pol_option def op0 := pol_option.None nat def op1 := pol_option.Some 5 #check op0 def option_in {α : Type} [decidable_eq α] : pol_option α → α → bool | (pol_option.None α) n := ff | (pol_option.Some x) n := (n = x) ...
4c010235c3e69387af811fd0cfc6dc3285bad9b7
4727251e0cd73359b15b664c3170e5d754078599
/src/data/nat/log.lean
1d4a5049bf5122f46a693b2c5ae4d9cc0cd2fea3
[ "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
11,911
lean
/- Copyright (c) 2020 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon, Yaël Dillies -/ import data.nat.pow import tactic.by_contra /-! # Natural number logarithms This file defines two `ℕ`-valued analogs of the logarithm of `n` with base `b`: ...