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
10b25f25008e003b9cc0d427ffc276d04b43baa1
3dd1b66af77106badae6edb1c4dea91a146ead30
/tests/lean/run/cody2.lean
ac356b33d440751344a012d6be5de0a316c67b68
[ "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
425
lean
import logic abbreviation subsets (P : Type) := P → Prop. section hypothesis A : Type. hypothesis r : A → subsets A. hypothesis i : subsets A → A. hypothesis retract {P : subsets A} {a : A} : r (i P) a = P a. definition delta (a:A) : Prop := ¬ (r a a). notation `δ` := delta. theorem delta_aux : ¬ (δ (i delta))...
c3cca82c9867ea6b322d80fc8080164adc9748ca
9dc8cecdf3c4634764a18254e94d43da07142918
/src/algebra/ring/ulift.lean
e39ea0479ab0aa38fb4f60a9072761073c658ff8
[ "Apache-2.0" ]
permissive
jcommelin/mathlib
d8456447c36c176e14d96d9e76f39841f69d2d9b
ee8279351a2e434c2852345c51b728d22af5a156
refs/heads/master
1,664,782,136,488
1,663,638,983,000
1,663,638,983,000
132,563,656
0
0
Apache-2.0
1,663,599,929,000
1,525,760,539,000
Lean
UTF-8
Lean
false
false
5,151
lean
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import algebra.group.ulift import algebra.ring.equiv /-! # `ulift` instances for ring This file defines instances for ring, semiring and related structures on `ulif...
31e2571e34123fc17bc118a2405b08b44854dbed
63abd62053d479eae5abf4951554e1064a4c45b4
/src/topology/local_homeomorph.lean
0b98b81626be8b9589a8da93fd9d931e66ceea6a
[ "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
37,806
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 data.equiv.local_equiv import topology.opens /-! # Local homeomorphisms This file defines homeomorphisms between open subsets of topological spaces. An...
47ed808ea6a6cdccfa247fcc6f42e513e013f5fe
dd0f5513e11c52db157d2fcc8456d9401a6cd9da
/11_Tactic-Style_Proofs.org.7.lean
d6bbc1785a896e31ec0e8e73c00b2967d808cd0e
[]
no_license
cjmazey/lean-tutorial
ba559a49f82aa6c5848b9bf17b7389bf7f4ba645
381f61c9fcac56d01d959ae0fa6e376f2c4e3b34
refs/heads/master
1,610,286,098,832
1,447,124,923,000
1,447,124,923,000
43,082,433
0
0
null
null
null
null
UTF-8
Lean
false
false
128
lean
import standard theorem test (p q : Prop) (Hp : p) (Hq : q) : p ∧ q ∧ p := by apply (and.intro Hp); exact (and.intro Hq Hp)
e466c187c1666929209fb362950f22c0df9beb7c
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/858.lean
43aeb6ad597bfadb672af5a57583289b70391d29
[ "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
39
lean
section parameter (n : Πa, nat) end
f8d92ed660ebbb3fb892f7374460661cccbf890d
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/probability/cond_count.lean
3145180686d02199472b3c9d4f64b52677c8cc71
[ "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
8,870
lean
/- Copyright (c) 2022 Kexing Ying. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kexing Ying, Bhavik Mehta -/ import probability.conditional_probability /-! # Classical probability > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corre...
c4bcbc6f4ff61e2db8263745bd6830521a1639af
f3849be5d845a1cb97680f0bbbe03b85518312f0
/library/init/algebra/ring.lean
fb470746e5f31c3a08925d2f07ad3fee50273c85
[ "Apache-2.0" ]
permissive
bjoeris/lean
0ed95125d762b17bfcb54dad1f9721f953f92eeb
4e496b78d5e73545fa4f9a807155113d8e6b0561
refs/heads/master
1,611,251,218,281
1,495,337,658,000
1,495,337,658,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
8,036
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura -/ prelude import init.algebra.group /- Make sure instances defined in this file have lower priority than the ones defined for concrete stru...
428a1d396e347d9224de5a40df8dcce81dcede38
9dc8cecdf3c4634764a18254e94d43da07142918
/src/algebra/order/monoid_lemmas.lean
dede9ac014afc29891947dd70874623b62a3f5f4
[ "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
45,376
lean
/- Copyright (c) 2016 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl, Damiano Testa, Yuyang Zhao -/ import algebra.covariant_and_contravariant import order.monotone /-! # Ordered monoids ...
483e9d9caf74a2dc2a48df21750884e1cf575e82
968e2f50b755d3048175f176376eff7139e9df70
/examples/prop_logic_lean_summary/unnamed_138.lean
b594add11f36fd8ee2b7ae8f4e47bf8d57f21234
[]
no_license
gihanmarasingha/mth1001_sphinx
190a003269ba5e54717b448302a27ca26e31d491
05126586cbf5786e521be1ea2ef5b4ba3c44e74a
refs/heads/master
1,672,913,933,677
1,604,516,583,000
1,604,516,583,000
309,245,750
1
0
null
null
null
null
UTF-8
Lean
false
false
158
lean
variables p q : Prop -- BEGIN example (h : p ∧ q) : q := begin have hq : q, from h.right, -- Term-style right and elimination. exact hq, end -- END
2a179711b390bc60c5ac5356f56e42f4f5c4f614
4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d
/src/Lean/Elab/PreDefinition/WF/PackDomain.lean
b90a119f972688cda14d8d15dbdf285f46a02e48
[ "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
4,462
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.PreDefinition.Basic namespace Lean.Elab.WF open Meta /-- Given a (dependent) tuple `t` (using `PSigma`) of the given arity. Return an...
414d58952027b89cc82ae1c96498053e94f2dff7
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/topology/algebra/nonarchimedean/basic.lean
627036977fa6faf1a389c0109d9b864f27c8187f
[ "Apache-2.0" ]
permissive
alreadydone/mathlib
dc0be621c6c8208c581f5170a8216c5ba6721927
c982179ec21091d3e102d8a5d9f5fe06c8fafb73
refs/heads/master
1,685,523,275,196
1,670,184,141,000
1,670,184,141,000
287,574,545
0
0
Apache-2.0
1,670,290,714,000
1,597,421,623,000
Lean
UTF-8
Lean
false
false
6,303
lean
/- Copyright (c) 2021 Ashwin Iyengar. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Buzzard, Johan Commelin, Ashwin Iyengar, Patrick Massot -/ import group_theory.subgroup.basic import topology.algebra.open_subgroup import topology.algebra.ring /-! # Nonarchime...
48c553ad84b0d6e333597491d0c9092269b7510d
2eab05920d6eeb06665e1a6df77b3157354316ad
/src/analysis/normed_space/pi_Lp.lean
63a5c0410403f11947c62465d573d47fe43191ef
[ "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
15,300
lean
/- Copyright (c) 2020 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.mean_inequalities /-! # `L^p` distance on finite products of metric spaces Given finitely many metric spaces, one can put the max distance on t...
6473dcf95fa458b2e8510ad1d6556881434e2c19
432d948a4d3d242fdfb44b81c9e1b1baacd58617
/src/category_theory/fully_faithful.lean
c0e398a7e5599bc68a64aba37dd5ce9f0802fcb2
[ "Apache-2.0" ]
permissive
JLimperg/aesop3
306cc6570c556568897ed2e508c8869667252e8a
a4a116f650cc7403428e72bd2e2c4cda300fe03f
refs/heads/master
1,682,884,916,368
1,620,320,033,000
1,620,320,033,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
8,134
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.natural_isomorphism import data.equiv.basic -- declare the `v`'s first; see `category_theory.category` for an explanation universes v₁ v₂ v₃ u...
838ec553105e574b35447527245c1a1f47810b7b
3994e03e14a3cbe3858c1098d0ab9ed1113d6666
/06-formalizacija-dokazov/dokazi.lean
dd5ecd9a8f31d94c9ffccffc8f815ee88b222dab
[]
no_license
tadejpetric/tpj-coq
15f2548ba8f012d9a5b5e0bfb78ab0860d048e96
dda9fb2e635f9a1302739e34d8692a4252066b76
refs/heads/master
1,629,182,614,649
1,600,449,570,000
1,600,449,570,000
222,798,649
1
0
null
null
null
null
UTF-8
Lean
false
false
2,342
lean
inductive naravno : Type | nic : naravno | nasl : naravno -> naravno inductive seznam_naravnih_stevil : Type | prazen : seznam_naravnih_stevil | sestavljen : naravno -> seznam_naravnih_stevil -> seznam_naravnih_stevil inductive seznam_dolzine : naravno -> Type | prazen : seznam_dolzine naravno.nic | sestavljen : ∀ n,...
b59d7c19b5d9987b388afbe851e84e9b40f85882
8e6cad62ec62c6c348e5faaa3c3f2079012bdd69
/src/data/polynomial/degree/trailing_degree.lean
3708c028eb98355f21465f673b05018b5b009e4b
[ "Apache-2.0" ]
permissive
benjamindavidson/mathlib
8cc81c865aa8e7cf4462245f58d35ae9a56b150d
fad44b9f670670d87c8e25ff9cdf63af87ad731e
refs/heads/master
1,679,545,578,362
1,615,343,014,000
1,615,343,014,000
312,926,983
0
0
Apache-2.0
1,615,360,301,000
1,605,399,418,000
Lean
UTF-8
Lean
false
false
13,180
lean
/- Copyright (c) 2020 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Damiano Testa -/ import data.polynomial.degree.definitions /-! # Trailing degree of univariate polynomials ## Main definitions * `trailing_degree p`: the multiplicity of `X` in the p...
bae5e1f3a8cdcc3d39e306d1e39145e980775c3f
2eab05920d6eeb06665e1a6df77b3157354316ad
/src/data/complex/exponential.lean
b03711502d10f67f9850b79b91bd6ede1d4e86ed
[ "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
63,332
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 -/ import algebra.geom_sum import data.complex.basic import data.nat.choose.sum /-! # Exponential, trigonometric and hyperbolic trigonometric func...
43eb1b81624a96511ae428dcabadbba258ba16f3
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/lift2.lean
508242ab3f51803c988882ab997df5cea5527c9e
[ "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
267
lean
import logic inductive lift.{l₁ l₂} (A : Type.{l₁}) : Type.{(max 1 l₁ l₂)} := inj : A → lift A set_option pp.universes true variables (A : Type.{3}) (B : Type.{1}) check A = lift B universe u variables (C : Type.{u+2}) (D : Type.{u}) check C = lift D
ace42ad1d934dee915310b7f25347c9353429231
4727251e0cd73359b15b664c3170e5d754078599
/src/data/finmap.lean
7b064236817dcafd32f9e9f1ca610e7495b08e1d
[ "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
19,047
lean
/- Copyright (c) 2018 Sean Leather. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sean Leather, Mario Carneiro -/ import data.list.alist import data.finset.basic import data.part /-! # Finite maps over `multiset` -/ universes u v w open list variables {α : Type u} {β...
c350d5d552d8f4b6996691861cbfb9e85be11b20
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/category_theory/triangulated/pretriangulated.lean
ef43bdbc4177f8e505adf9bdb77bb5e7160aaec0
[ "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
8,532
lean
/- Copyright (c) 2021 Luke Kershaw. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Luke Kershaw -/ import category_theory.preadditive.additive_functor import category_theory.shift import category_theory.triangulated.rotate /-! # Pretriangulated Categories This file c...
289deed1733c36144aed2046d5672821b15c12eb
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/category_theory/functor/const.lean
e1b08fce78845c97cb3e7a653d359e9947ab7e95
[ "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
2,932
lean
/- Copyright (c) 2018 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Bhavik Mehta -/ import category_theory.opposites /-! # The constant functor `const J : C ⥤ (J ⥤ C)` is the functor that sends an object `X : C` to the functor `J ⥤ C`...
65f2320c8635fc82a226087f4a5dac52732ef644
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/data/set/lattice.lean
a620fca369967f4fe66068653bfff4ec0619b4cf
[ "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
74,850
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 -/ import order.complete_boolean_algebra import order.directed import order.galois_connection /-! # The set lattice Th...
7e6b0aef1b63028925cbc0687a0ee6591a4497e4
46125763b4dbf50619e8846a1371029346f4c3db
/src/category_theory/natural_transformation.lean
7f773f771703ca1eb069d89fdd991a6932ab06b0
[ "Apache-2.0" ]
permissive
thjread/mathlib
a9d97612cedc2c3101060737233df15abcdb9eb1
7cffe2520a5518bba19227a107078d83fa725ddc
refs/heads/master
1,615,637,696,376
1,583,953,063,000
1,583,953,063,000
246,680,271
0
0
Apache-2.0
1,583,960,875,000
1,583,960,875,000
null
UTF-8
Lean
false
false
2,320
lean
/- Copyright (c) 2017 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn Defines natural transformations between functors. Introduces notations `τ.app X` for the components of natural transfo...
447612ad2e5c9d1cd6e3c715c8e634f8d2990522
5ee26964f602030578ef0159d46145dd2e357ba5
/src/for_mathlib/sheaves/stalk.lean
9973d7b31e68d81a13616435cf1a5056349b8929
[ "Apache-2.0" ]
permissive
fpvandoorn/lean-perfectoid-spaces
569b4006fdfe491ca8b58dd817bb56138ada761f
06cec51438b168837fc6e9268945735037fd1db6
refs/heads/master
1,590,154,571,918
1,557,685,392,000
1,557,685,392,000
186,363,547
0
0
Apache-2.0
1,557,730,933,000
1,557,730,933,000
null
UTF-8
Lean
false
false
2,521
lean
/- Stalk (of types). https://stacks.math.columbia.edu/tag/0078 Author: Ramon Fernandez Mir -/ import for_mathlib.sheaves.opens import topology.basic import for_mathlib.sheaves.presheaf universe u section stalk variables {α : Type u} [topological_space α] variables (F : presheaf α) (x : α) open topolo...
b9eb40ee8cc03af063c01d43614d4904ad28e97b
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/meta/uchange.lean
b0a98ea330b5d4b321e83b1b3d81f6375c34515e
[]
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
819
lean
/- Copyright (c) 2020 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.PostPort namespace Mathlib /-! # Changing universes of types in meta-code This file define...
096ed563c3a3d88f7a5a735aaea376e29e3f6bfc
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/algebra/free_monoid/count.lean
ac642cb2e04ba92c0c5658600329931e3f7d9bd2
[ "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,713
lean
/- Copyright (c) 2022 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import algebra.free_monoid.basic import data.list.count /-! # `list.count` as a bundled homomorphism > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to t...
ef0ca6bc6cc6ea4490c3e4b0dc311500e8452d40
856e2e1615a12f95b551ed48fa5b03b245abba44
/src/data/finsupp.lean
ea8bf0935a5f9e9c4081ad9eed5b96726f7ae196
[ "Apache-2.0" ]
permissive
pimsp/mathlib
8b77e1ccfab21703ba8fbe65988c7de7765aa0e5
913318ca9d6979686996e8d9b5ebf7e74aae1c63
refs/heads/master
1,669,812,465,182
1,597,133,610,000
1,597,133,610,000
281,890,685
1
0
null
1,595,491,577,000
1,595,491,576,000
null
UTF-8
Lean
false
false
71,941
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, Scott Morrison -/ import algebra.big_operators.order import algebra.module import data.fintype.card import data.set.finite import data.multiset.antidiagonal /-! # Typ...
08cabe737bd636ec0af081bfceb52d38e0a932a4
37da0369b6c03e380e057bf680d81e6c9fdf9219
/hott/types/sigma.hlean
a5f52a8fcc8bb8e87d155d8967ac3fc5ed1746c9
[ "Apache-2.0" ]
permissive
kodyvajjha/lean2
72b120d95c3a1d77f54433fa90c9810e14a931a4
227fcad22ab2bc27bb7471be7911075d101ba3f9
refs/heads/master
1,627,157,512,295
1,501,855,676,000
1,504,809,427,000
109,317,326
0
0
null
1,509,839,253,000
1,509,655,713,000
C++
UTF-8
Lean
false
false
23,523
hlean
/- Copyright (c) 2014-15 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Floris van Doorn Partially ported from Coq HoTT Theorems about sigma-types (dependent sums) -/ import types.prod open eq sigma sigma.ops equiv is_equiv function is_trunc sum uni...
687e9b0ac43b5db7d7d4d2d18b402dd548b80e3e
91b8df3b248df89472cc0b753fbe2bac750aefea
/experiments/lean/src/ddl/binary/basic.lean
3e8e115d228f2f6d1c3a0680ca575b3cdf1857b4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
yeslogic/fathom
eabe5c4112d3b4d5ec9096a57bb502254ddbdf15
3960a9466150d392c2cb103c5cb5fcffa0200814
refs/heads/main
1,685,349,769,736
1,675,998,621,000
1,675,998,621,000
28,993,871
214
11
Apache-2.0
1,694,044,276,000
1,420,764,938,000
Rust
UTF-8
Lean
false
false
1,259
lean
import ddl.host.basic namespace ddl.binary open ddl /- Kinds of types in the binary language -/ inductive kind : Type | type : kind | arrow : kind → kind → kind notation k₁ ` ⇒ ` k₂ := kind.arrow k₁ k₂ /- The type system of the binary language -/ inductive type (ℓ α : Type) : Type | bvar ...
eb95a31295320a0fe7e19e643b081da087442148
82e44445c70db0f03e30d7be725775f122d72f3e
/src/analysis/calculus/tangent_cone.lean
cafc1429b821926d33bdfb687a0bec8ed9340358
[ "Apache-2.0" ]
permissive
stjordanis/mathlib
51e286d19140e3788ef2c470bc7b953e4991f0c9
2568d41bca08f5d6bf39d915434c8447e21f42ee
refs/heads/master
1,631,748,053,501
1,627,938,886,000
1,627,938,886,000
228,728,358
0
0
Apache-2.0
1,576,630,588,000
1,576,630,587,000
null
UTF-8
Lean
false
false
18,719
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.convex.basic import analysis.specific_limits /-! # Tangent cone In this file, we define two predicates `unique_diff_within_at 𝕜 s x` and `uni...
f2aede04578d7cfa1d28d7704d6e06d137ca2159
57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d
/tests/bench/rbmap4.lean
3c9f038d39f695be017b31e617e2dcb6a3cb9d62
[ "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
2,844
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 {} ...
ec0c5453d34f1c90081c9e7a445861def4a1f2f3
0dbd5f7001f62ee8d54ed48bada66bfeaf55e550
/src/fermat.lean
9d84933c6ed6d6591caba20fae1535b091855b99
[]
no_license
rwbarton/lean-elementary-number-theory
667203b08501792eef48217759539f6c1e2da25a
fabef0737fd2486e3f24f9e04652db4c182d5425
refs/heads/master
1,670,605,651,029
1,599,565,470,000
1,599,565,470,000
293,792,043
2
0
null
null
null
null
UTF-8
Lean
false
false
19,904
lean
import data.nat.gcd import data.nat.prime import pyth open nat local attribute [simp] mul_comm mul_left_comm mul_assoc section fermat parameters x y z : ℕ parameter fmt : x^4 = y^4 + z^2 parameter pos : x > 0 ∧ y > 0 ∧ z > 0 include fmt pos lemma x_pos : x > 0 := pos.1 lemma y_pos : y > 0 := pos.2.1 ...
73571132f5c6bfb9377acab75c31681c22207db7
c8b4b578b2fe61d500fbca7480e506f6603ea698
/src/number_theory/regular_primes.lean
bce3fcd4b334581c002258c0d03f76e4e35aefb9
[]
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
4,087
lean
import field_theory.splitting_field.construction import number_theory.bernoulli import number_theory.class_number.finite import number_theory.class_number.admissible_abs import number_theory.cyclotomic.cycl_rat import number_theory.cyclotomic.rat /-! # Regular primes ## Main definitions * `is_regular_number`: a na...
773921b561e9690286be02718b0522897b76a8ec
453dcd7c0d1ef170b0843a81d7d8caedc9741dce
/analysis/probability_mass_function.lean
fcae29a11a1ce92739c895a2335910776c7a2012
[ "Apache-2.0" ]
permissive
amswerdlow/mathlib
9af77a1f08486d8fa059448ae2d97795bd12ec0c
27f96e30b9c9bf518341705c99d641c38638dfd0
refs/heads/master
1,585,200,953,598
1,534,275,532,000
1,534,275,532,000
144,564,700
0
0
null
1,534,156,197,000
1,534,156,197,000
null
UTF-8
Lean
false
false
4,771
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 Probability mass function -- discrete probability measures -/ import analysis.nnreal analysis.ennreal analysis.topology.infinite_sum noncomputable theory variables {α : ...
c02ea1e8068621d4f97a4a5357a930a593a0d596
6db8061629f55e774dd3d03be5bf005ffb485e48
/BetterNumLits.lean
85e3caaa0c1ed571bfee38fe520a5453fdedc5e2
[]
no_license
tydeu/lean4-betterNumLits
21fd5717d1b62ecb021c73e8cfaa0e3d19005690
45e3b79214b3e1f81f8e034dd12257e993ddc578
refs/heads/master
1,683,103,070,685
1,621,717,131,000
1,621,717,131,000
369,368,844
0
0
null
null
null
null
UTF-8
Lean
false
false
200
lean
import BetterNumLits.Numerals import BetterNumLits.Notation import BetterNumLits.Nat import BetterNumLits.OfRadix import BetterNumLits.Fin import BetterNumLits.Macro import BetterNumLits.Unexpanders
16c5a311cbc7083427b8e7a7790d3f2285142197
8e31b9e0d8cec76b5aa1e60a240bbd557d01047c
/scratch/partition.lean
90a1ad65f90c60b771ecf2c3c0c184c50dfe3c80
[]
no_license
ChrisHughes24/LP
7bdd62cb648461c67246457f3ddcb9518226dd49
e3ed64c2d1f642696104584e74ae7226d8e916de
refs/heads/master
1,685,642,642,858
1,578,070,602,000
1,578,070,602,000
195,268,102
4
3
null
1,569,229,518,000
1,562,255,287,000
Lean
UTF-8
Lean
false
false
17,223
lean
import data.matrix.pequiv data.rat.basic variables {m n : ℕ} /-- The type of ordered partitions of `m + n` elements into a `m` row variables and `n` column variables -/ structure partition (m n : ℕ) : Type := ( rowp : fin m ≃. fin (m + n) ) ( colp : fin n ≃. fin (m + n) ) ( rowp_trans_rowp_symm : rowp.trans rowp.s...
d74b7790ce1605c65b595f3c93daf8ce6fa93cad
f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58
/data/analysis/filter.lean
5e25a630030d4d48f79c2e9a7c511701cdb81f33
[ "Apache-2.0" ]
permissive
semorrison/mathlib
1be6f11086e0d24180fec4b9696d3ec58b439d10
20b4143976dad48e664c4847b75a85237dca0a89
refs/heads/master
1,583,799,212,170
1,535,634,130,000
1,535,730,505,000
129,076,205
0
0
Apache-2.0
1,551,697,998,000
1,523,442,265,000
Lean
UTF-8
Lean
false
false
11,827
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro Computational realization of filters (experimental). -/ import order.filter open set filter /-- A `cfilter α σ` is a realization of a filter (base) on `α`, represent...
e8d47da52be0add6246b0ddb6d02989e67e3d591
69d4931b605e11ca61881fc4f66db50a0a875e39
/src/analysis/analytic/composition.lean
76e2ec5396fec69121b8e29b3bd455ecce18fd86
[ "Apache-2.0" ]
permissive
abentkamp/mathlib
d9a75d291ec09f4637b0f30cc3880ffb07549ee5
5360e476391508e092b5a1e5210bd0ed22dc0755
refs/heads/master
1,682,382,954,948
1,622,106,077,000
1,622,106,077,000
149,285,665
0
0
null
null
null
null
UTF-8
Lean
false
false
58,762
lean
/- Copyright (c) 2020 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel, Johan Commelin -/ import analysis.analytic.basic import combinatorics.composition /-! # Composition of analytic functions in this file we prove that the composi...
a9d6f5396b9290c2bc24987fa890f6a9bc10486c
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/test/simp_command.lean
83d2a5d2c877fdd4bebb99d150821b63cb89e94f
[ "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,524
lean
import tactic.simp_command import analysis.special_functions.trigonometric.deriv import analysis.calculus.deriv.inv /- Turn off trace messages only if the statements are simplified to true: -/ set_option trace.silence_simp_if_true true /-! Tests for the #simp command. -/ #simp 5 - 5 = 0 section arith def f (x : ℤ)...
264aef4bbfa0c9649fd51512ced4e497ed7105bf
4727251e0cd73359b15b664c3170e5d754078599
/src/analysis/normed_space/linear_isometry.lean
38d372c854af04129181d2b4a7bc52db91e26d95
[ "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
26,442
lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov, Frédéric Dupuis, Heather Macbeth -/ import analysis.normed.group.basic import topology.algebra.module.basic import linear_algebra.basis /-! # (Semi-)linear isometrie...
20eddce6459ebf297f4b079ef8fa45d43dbb857f
82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7
/stage0/src/Lean/Elab/Tactic/Injection.lean
e20e946b4d7e7dc90feee7eab0986ec64c864848
[ "Apache-2.0" ]
permissive
banksonian/lean4
3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc
78da6b3aa2840693eea354a41e89fc5b212a5011
refs/heads/master
1,673,703,624,165
1,605,123,551,000
1,605,123,551,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,192
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 -/ import Lean.Meta.Tactic.Injection import Lean.Elab.Tactic.ElabTerm namespace Lean.Elab.Tactic -- optional (" with " >> many1 ident') private def getInjecti...
cd92505547e8d64f02fe63265d2ec937a2d75fe8
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/algebra/invertible.lean
bd7b06b1d4c5e35100bc72b4d5ca37eabd8b5bd3
[ "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,967
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 algebra.group.units import algebra.ring.basic /-! # Invertible elements This file defines a typeclass `invertible a` for elements `a` with a two-sided multiplicat...
630723340b1b004ec7f2feb1fd03c01e4049715d
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/tests/lean/server/init_exit.lean
b421a2f68a429836f2d4ab9c9b651476db6bdcf9
[ "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
634
lean
import Lean.Data.Lsp open IO Lean Lsp def main : IO Unit := do Ipc.runWith (←IO.appPath) #["--server"] do let hIn ← Ipc.stdin hIn.write (←FS.readBinFile "init_vscode_1_47_2.log") hIn.flush let initResp ← Ipc.readResponseAs 0 InitializeResult let regWatchReq ← Ipc.readRequestAs "client/registerCap...
b9624e9a4041966551aa3be73fdf869cc6ee251f
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/interactive/t11.lean
f856783730001cce6a4d469df5f593f733cf6b47
[ "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
340
lean
(* auto = Repeat(OrElse(conj_hyp_tac(), conj_tac(), assumption_tac())) *) theorem T2 (A B : Bool) : A /\ B -> B /\ A := fun assumption : A /\ B, let lemma1 : A := _, lemma2 : B := _, conclusion : B /\ A := _ in conclusion. auto. done. auto. d...
005e6afd5574ff5bd2f6bb45af05c21c57ebff26
75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2
/hott/algebra/ordered_ring.hlean
55605590db29c684c94922b5a03a9c6bc85d8cc8
[ "Apache-2.0" ]
permissive
jroesch/lean
30ef0860fa905d35b9ad6f76de1a4f65c9af6871
3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2
refs/heads/master
1,586,090,835,348
1,455,142,203,000
1,455,142,277,000
51,536,958
1
0
null
1,455,215,811,000
1,455,215,811,000
null
UTF-8
Lean
false
false
27,629
hlean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad Here an "ordered_ring" is partially ordered ring, which is ordered with respect to both a weak order and an associated strict order. Our numeric structures (int, rat, and...
91cce4cf22b1bb45965329928a71ae14975b04f8
4a894698f2ae3f991490c25af3c13ea4435dac48
/src/instructor/lectures/lecture_1a.lean
e87d1c267b24f0306de567b06f5973658e349c84
[]
no_license
gnujey/cs2120f21
8a33f636346d59ade049dcc1726634f434ac1955
138d43446c443c1d15cd2f17fb607c4f0dff702f
refs/heads/main
1,690,598,880,775
1,631,132,566,000
1,631,132,566,000
405,182,739
1
0
null
1,631,299,824,000
1,631,299,823,000
null
UTF-8
Lean
false
false
10,048
lean
-- import definitions of real and rational numbers from mathlib import data.real.basic namespace cs2120 /- The first part of this lesson is in the file, lecture_1.md. Please start there then return here when you're done with that document. -/ /- NUMBER SYSTEMS -/ /- Mathematicians think about operations on many ki...
a7dc60f969713666b5c409e22e4e65ce4a7a58fb
952248371e69ccae722eb20bfe6815d8641554a8
/src/datatypes/default.lean
e7b2b28112f718e72237927e0edf5afb62520a7a
[]
no_license
robertylewis/lean_polya
5fd079031bf7114449d58d68ccd8c3bed9bcbc97
1da14d60a55ad6cd8af8017b1b64990fccb66ab7
refs/heads/master
1,647,212,226,179
1,558,108,354,000
1,558,108,354,000
89,933,264
1
2
null
1,560,964,118,000
1,493,650,551,000
Lean
UTF-8
Lean
false
false
109
lean
import datatypes.basic datatypes.comp datatypes.expr_form datatypes.proof datatypes.info
c7d14e6ee2d0f27f756c74704f8db3a0a3cddbd3
432d948a4d3d242fdfb44b81c9e1b1baacd58617
/src/category_theory/limits/kan_extension.lean
fc36fe2b1fede49b50fa44e9a6efdc964e28ec05
[ "Apache-2.0" ]
permissive
JLimperg/aesop3
306cc6570c556568897ed2e508c8869667252e8a
a4a116f650cc7403428e72bd2e2c4cda300fe03f
refs/heads/master
1,682,884,916,368
1,620,320,033,000
1,620,320,033,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
8,213
lean
/- Copyright (c) 2021 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta, Adam Topaz -/ import category_theory.punit import category_theory.structured_arrow import category_theory.limits.functor_category import category_theory.limits.shapes.termina...
476fb2bfd94d0bd8396ef3a0f14098e101477322
a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940
/stage0/src/Lean/Meta/Closure.lean
cbc8622f8fa600ef0364001f4c04e4abad3849e9
[ "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
14,444
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 -/ import Std.ShareCommon import Lean.MetavarContext import Lean.Environment import Lean.Util.FoldConsts import Lean.Meta.Basic import Lean.Meta.Check /- Thi...
3139abed4b81e5b4bdac1b8d28e0af7d6b15aa82
38bf3fd2bb651ab70511408fcf70e2029e2ba310
/src/topology/constructions.lean
5f7642a8b4465b3686d6e8d53a98d7dea8a61b6f
[ "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
46,532
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 Constructions of new topological spaces from old ones: product, sum, subtype, quotient, list, vector -/ import topology.maps topology.su...
ef43c1b94e3cbe5cf1b414c4a5fe9d0605e1d608
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/error_loc_bug.lean
ea773443824bb7b362094bf8da770684a056caab
[ "Apache-2.0" ]
permissive
soonhokong/lean
cb8aa01055ffe2af0fb99a16b4cda8463b882cd1
38607e3eb57f57f77c0ac114ad169e9e4262e24f
refs/heads/master
1,611,187,284,081
1,450,766,737,000
1,476,122,547,000
11,513,992
2
0
null
1,401,763,102,000
1,374,182,235,000
C++
UTF-8
Lean
false
false
3,220
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 Define propositional calculus, valuation, provability, validity, prove soundness. This file is based on Floris van Doorn Coq files. Similar to soundness.lea...
3fef72216e917e8de6a0a5ee881ca3a35227d6e6
63abd62053d479eae5abf4951554e1064a4c45b4
/src/topology/metric_space/pi_Lp.lean
bb01f549d8ec78a0b7b49137935be00797869c9c
[ "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
12,024
lean
/- Copyright (c) 2020 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.mean_inequalities /-! # `L^p` distance on finite products of metric spaces Given finitely many metric spaces, one can put the max distance on t...
b9415d588c82f04759b2cb5901f337bdc5b223fa
af6139dd14451ab8f69cf181cf3a20f22bd699be
/library/init/meta/relation_tactics.lean
8d9badbcd2d4cfd0119e88787959052bd6dde822
[ "Apache-2.0" ]
permissive
gitter-badger/lean-1
1cca01252d3113faa45681b6a00e1b5e3a0f6203
5c7ade4ee4f1cdf5028eabc5db949479d6737c85
refs/heads/master
1,611,425,383,521
1,487,871,140,000
1,487,871,140,000
82,995,612
0
0
null
1,487,905,618,000
1,487,905,618,000
null
UTF-8
Lean
false
false
1,536
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.meta.tactic init.function namespace tactic open expr private meta def relation_tactic (md : transparency) (op_for : environment → name...
4bc42eb5bfe4584ab18915c66eb56020030ba218
ed27983dd289b3bcad416f0b1927105d6ef19db8
/src/inClassNotes/predicate_logic/impl.lean
d58975e18d4f60995d0590852084c9021d284aa9
[]
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
1,601
lean
/- If P and Q are propositions, then P → Q is a proposition, as well. We just such an implication to be true if whenever P is true Q must be true as well. To prove P → Q, we thus *assume* that P is true (and in constructive logic this means we assume we have a proof of it, p : P), and in the context of this assumption,...
a93995df3332484782b1fb905a8b22ad3c62701a
271e26e338b0c14544a889c31c30b39c989f2e0f
/stage0/src/Init/System/FilePath.lean
fab5c64d5cc1e04496a6441a3bbae66b007230f1
[ "Apache-2.0" ]
permissive
dgorokho/lean4
805f99b0b60c545b64ac34ab8237a8504f89d7d4
e949a052bad59b1c7b54a82d24d516a656487d8a
refs/heads/master
1,607,061,363,851
1,578,006,086,000
1,578,006,086,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,629
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 -/ prelude import Init.System.Platform import Init.Data.String.Basic namespace System namespace FilePath open Platform /-- The character that separates direc...
196d43388c8b0e9db16da8e4cfc6febe6ca61e34
9028d228ac200bbefe3a711342514dd4e4458bff
/src/order/bounded_lattice.lean
187f7f3fdf7abeb1b854cb684df535bc991efe82
[ "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
40,791
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 Defines bounded lattice type class hierarchy. Includes the Prop and fun instances. -/ import order.lattice import data.option.basic import tactic.pi_instances set_opt...
f2209f07c1392dbbf903673a3108790329964f32
e0f9ba56b7fedc16ef8697f6caeef5898b435143
/src/ring_theory/adjoin.lean
f97fed336367d0cffff5240ecb2a310dd4c52b08
[ "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
7,994
lean
/- Copyright (c) 2019 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau Adjoining elements to form subalgebras. -/ import ring_theory.polynomial import ring_theory.principal_ideal_domain universes u v w open submodule ring namespace algebra varia...
c8b687546b361745e6a8d6d96672000ab68393ac
618003631150032a5676f229d13a079ac875ff77
/src/group_theory/congruence.lean
8208fdf580aefbd65215821ca2d315ffce06e9bf
[ "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
42,233
lean
/- Copyright (c) 2019 Amelia Livingston. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Amelia Livingston -/ import data.setoid.basic import algebra.pi_instances /-! # Congruence relations This file defines congruence relations: equivalence relations that preserve a ...
b827bece41cdd744feb3c9e2fdf7b1ba6b736dcb
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/category_theory/adjunction/fully_faithful.lean
0bba89b066cb20259512e4fdce53627f3a61520c
[ "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
6,577
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.adjunction.basic import category_theory.conj import category_theory.yoneda /-! # Adjoints of fully faithful functors A left adjoint is fully ...
1f6f0dbfc279d4e6e4e2790a49397829686d6fe9
3f48345ac9bbaa421714efc9872a0409379bb4ae
/src/set_category/colimits/Pushout.lean
45412d740cb16e1d499ba199c3a3d742b2edc25d
[]
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
4,033
lean
import category_theory.types import help_functions import set_category.colimits.Sum import set_category.colimits.Coequalizer import tactic.tidy universes u v namespace Pushout open category_theory set classical help_functions sum Sum Coequalizer local notation f ` ⊚ `:80 g:80 := cat...
728074ea11b41ee407046e964ef78bb154738b20
aa3f8992ef7806974bc1ffd468baa0c79f4d6643
/tests/lean/run/tactic11.lean
86c612f5f6cf3080de28848358cda22b3e480350
[ "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
287
lean
import logic theorem tst (a b : Prop) (H : a ↔ b) : b ↔ a := have H1 [fact] : a → b, -- We need to mark H1 as fact, otherwise it is not visible by tactics from iff_elim_left H, by apply iff_intro; apply (assume Hb, iff_elim_right H Hb); apply (assume Ha, H1 Ha)
c164d59cc354eb1b2efcdfc095e9ddee9e1db126
b561a44b48979a98df50ade0789a21c79ee31288
/stage0/src/Lean/MetavarContext.lean
3860b2970af597d84b1c7c8a7c2c198450f9bc80
[ "Apache-2.0" ]
permissive
3401ijk/lean4
97659c475ebd33a034fed515cb83a85f75ccfb06
a5b1b8de4f4b038ff752b9e607b721f15a9a4351
refs/heads/master
1,693,933,007,651
1,636,424,845,000
1,636,424,845,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
54,428
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.MonadCache import Lean.LocalContext namespace Lean /- The metavariable context stores metavariable declarations and their assignments. It...
60713aa2ec596e80a58c620cd2ede51dc6c6b78b
d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6
/test/out/script/verify.lean
020b88935b1c4240cdb5f3da3acd5a3ba202b298
[ "Apache-2.0" ]
permissive
xubaiw/lean4-papyrus
c3fbbf8ba162eb5f210155ae4e20feb2d32c8182
02e82973a5badda26fc0f9fd15b3d37e2eb309e0
refs/heads/master
1,691,425,756,824
1,632,122,825,000
1,632,123,075,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
324
lean
import Papyrus open Papyrus Script llvm module foo do define i32 @main() do ret i32 0 #verify foo #verify foo >>= (·.getFunction "main") llvm module bug do define i32 @main() do ret i8 0 #verify bug -- Error: Function return type does not match operand #verify bug >>= (·.getFunction "main") -- Same Erro...
568809c13e1ed6cf55de6490d2ecf8b733ffa199
1a61aba1b67cddccce19532a9596efe44be4285f
/library/data/int/basic.lean
1c10c3bce91df571dd6c7885548cdf736ab80afc
[ "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
23,613
lean
/- Copyright (c) 2014 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Jeremy Avigad The integers, with addition, multiplication, and subtraction. The representation of the integers is chosen to compute efficiently. To faciliate prov...
01a72a1d5950b15b5d3ae9c70e89da964d30a7c7
b32d3853770e6eaf06817a1b8c52064baaed0ef1
/src/super/prover_state.lean
0e330155b56090689ac5a59b0cd66123b58c3177
[]
no_license
gebner/super2
4d58b7477b6f7d945d5d866502982466db33ab0b
9bc5256c31750021ab97d6b59b7387773e54b384
refs/heads/master
1,635,021,682,021
1,634,886,326,000
1,634,886,326,000
225,600,688
4
2
null
1,598,209,306,000
1,575,371,550,000
Lean
UTF-8
Lean
false
false
7,482
lean
import super.clause super.lpo namespace super open tactic native @[reducible] def clause_id := ℕ @[derive decidable_eq] meta structure derived_clause := (id : clause_id) (cls : clause) (selected : list ℕ) namespace derived_clause meta instance : has_to_tactic_format derived_clause := ⟨λ c, do c_fmt ← pp c.cls, p...
aab2aa7bc44e96a8a7b32901f60eb29ec717d273
a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7
/src/category_theory/limits/shapes/constructions/binary_products.lean
dddbf1dbdb628d0350a89f191ab91c90e00e35d1
[ "Apache-2.0" ]
permissive
kmill/mathlib
ea5a007b67ae4e9e18dd50d31d8aa60f650425ee
1a419a9fea7b959317eddd556e1bb9639f4dcc05
refs/heads/master
1,668,578,197,719
1,593,629,163,000
1,593,629,163,000
276,482,939
0
0
null
1,593,637,960,000
1,593,637,959,000
null
UTF-8
Lean
false
false
1,630
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.pullbacks import category_theory.limits.shapes.binary_products universes v u /-! # Constructing binary product from pullbacks and t...
b21f687acdcb8083b5980f4b9e245bcb5ea78755
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/linear/functor_category.lean
594349a2a5381cfb2b429048be8d93b8b4c11bde
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
1,779
lean
/- Copyright (c) 2022 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import category_theory.preadditive.functor_category import category_theory.linear.basic /-! # Linear structure on functor categories > THIS FILE IS SYNCHRONIZED WIT...
d9598ad953e7f54db185e097a5e0c010b2ea3685
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/constructor1.lean
a76ddbcb13dae1cabde34ab9fd051733ad75b6fe
[ "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
669
lean
open tactic example (p q : Prop) : p → q → p ∧ q := by do intros, constructor, assumption, assumption example (p q : Prop) : p → q → p ∧ q := by do intros, split, assumption, assumption example (p q : Prop) : p → p ∨ q := by do intros, left, assumption example (p q : Prop) : q → p ∨ q := by do intros, right, assump...
3880386d37e197ee59e082cf7cf432332364dc53
d436468d80b739ba7e06843c4d0d2070e43448e5
/src/topology/subset_properties.lean
e6b139d16b8f16cd9cc77dbbd269425f32cf49a3
[ "Apache-2.0" ]
permissive
roro47/mathlib
761fdc002aef92f77818f3fef06bf6ec6fc1a28e
80aa7d52537571a2ca62a3fdf71c9533a09422cf
refs/heads/master
1,599,656,410,625
1,573,649,488,000
1,573,649,488,000
221,452,951
0
0
Apache-2.0
1,573,647,693,000
1,573,647,692,000
null
UTF-8
Lean
false
false
31,157
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 Properties of subsets of topological spaces: compact, clopen, irreducible, connected, totally disconnected, totally separated. -/ import topology.const...
83a2f0b257976c63ad78ece519fd5bd42e823e25
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/multiset/sections.lean
6f873a4ca2f404582c04cdcfd80c7d3814d61a3f
[ "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,340
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.multiset.bind /-! # Sections of a multiset > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresponding PR to mathlib4....
66b64875fce8e604557dfcea21579ba8f8638992
5acd49ee775f675999521ca7f8c05b3a6ac4dde5
/tutorial world/l1_refl.lean
64a5ace80feba1987c025a69086d271f08cb6330
[]
no_license
mothematician/lean-tutorial-imperial
0284556885a69ab0aa2cb1a5699276eb5fc04b1e
1e68a6341616450c7f5d3e2b35a56fc95bdfced4
refs/heads/main
1,691,400,920,101
1,633,792,591,000
1,633,792,591,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
166
lean
namespace Nat theorem example1 (x y z : Nat) : x * y + z = x * y + z := rfl theorem example2 (x y : Nat) (h : y = x + 7) : 2 * y = 2 * (x + 7) := rw end Nat
21c175468b88c94c5cf4c07ed739ddf4e57f36cb
86f6f4f8d827a196a32bfc646234b73328aeb306
/examples/logic/unnamed_669.lean
dbfa6ead8352f435b7c439789ee28e38d12e45d5
[]
no_license
jamescheuk91/mathematics_in_lean
09f1f87d2b0dce53464ff0cbe592c568ff59cf5e
4452499264e2975bca2f42565c0925506ba5dda3
refs/heads/master
1,679,716,410,967
1,613,957,947,000
1,613,957,947,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
653
lean
import data.real.basic def fn_ub (f : ℝ → ℝ) (a : ℝ) : Prop := ∀ x, f x ≤ a def fn_lb (f : ℝ → ℝ) (a : ℝ) : Prop := ∀ x, a ≤ f x def fn_has_ub (f : ℝ → ℝ) := ∃ a, fn_ub f a def fn_has_lb (f : ℝ → ℝ) := ∃ a, fn_lb f a theorem fn_ub_add {f g : ℝ → ℝ} {a b : ℝ} (hfa : fn_ub f a) (hgb : fn_ub g b) : fn_ub (λ x, f ...
1c909f30a20488dd407c8c069952c852e02c6f3f
92b50235facfbc08dfe7f334827d47281471333b
/library/data/stream.lean
40d07827eec3138e9d65db5705bae872d0250a80
[ "Apache-2.0" ]
permissive
htzh/lean
24f6ed7510ab637379ec31af406d12584d31792c
d70c79f4e30aafecdfc4a60b5d3512199200ab6e
refs/heads/master
1,607,677,731,270
1,437,089,952,000
1,437,089,952,000
37,078,816
0
0
null
1,433,780,956,000
1,433,780,955,000
null
UTF-8
Lean
false
false
22,505
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 -/ import data.nat data.list data.equiv open nat function option definition stream (A : Type) := nat → A namespace stream variables {A B C : Type} definition...
79299e7d3e028a2e298883bf14fb894f3984db32
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/topology/sheaves/presheaf_of_functions_auto.lean
3f08e5dda4da1608ad8ea53eaa6006f812b3063a
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
6,932
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.category_theory.yoneda import Mathlib.topology.sheaves.presheaf import Mathlib.topology.cat...
ad6b426b682f4ab1058afa9ae07b57aa24261b60
88fb7558b0636ec6b181f2a548ac11ad3919f8a5
/library/init/meta/tactic.lean
6e4bfd9fc62a87fe3913f4ffd6b3072e3efe4455
[ "Apache-2.0" ]
permissive
moritayasuaki/lean
9f666c323cb6fa1f31ac597d777914aed41e3b7a
ae96ebf6ee953088c235ff7ae0e8c95066ba8001
refs/heads/master
1,611,135,440,814
1,493,852,869,000
1,493,852,869,000
90,269,903
0
0
null
1,493,906,291,000
1,493,906,291,000
null
UTF-8
Lean
false
false
39,949
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.function init.data.option.basic init.util import init.category.combinators init.category.monad init.category.alternative init.category.m...
de8ad20d7340f6a9fb7f3e04d06ad5427edc349e
e94d3f31e48d06d252ee7307fe71efe1d500f274
/library/init/tactic.lean
83047789ea432b82cb18ec00c7f83773a071ee14
[ "Apache-2.0" ]
permissive
GallagherCommaJack/lean
e4471240a069d82f97cb361d2bf1a029de3f4256
226f8bafeb9baaa5a2ac58000c83d6beb29991e2
refs/heads/master
1,610,725,100,482
1,459,194,829,000
1,459,195,377,000
55,377,224
0
0
null
1,459,731,701,000
1,459,731,700,000
null
UTF-8
Lean
false
false
7,925
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 This is just a trick to embed the 'tactic language' as a Lean expression. We should view 'tactic' as automation that when execute produces a term. tactic.buil...
a6f6dcb8ee6417b8c221af2265cbe394efa1ab16
dd4e652c749fea9ac77e404005cb3470e5f75469
/src/nat.lean
a9bad663cc33fa06ee6c5835a0e58bfe696c658c
[]
no_license
skbaek/cvx
e32822ad5943541539966a37dee162b0a5495f55
c50c790c9116f9fac8dfe742903a62bdd7292c15
refs/heads/master
1,623,803,010,339
1,618,058,958,000
1,618,058,958,000
176,293,135
3
2
null
null
null
null
UTF-8
Lean
false
false
315
lean
import data.nat.basic namespace nat lemma max_succ_succ {m n} : max (succ m) (succ n) = succ (max m n) := begin by_cases h1 : m ≤ n, rw [max_eq_right h1, max_eq_right (succ_le_succ h1)], { rw not_le at h1, have h2 := le_of_lt h1, rw [max_eq_left h2, max_eq_left (succ_le_succ h2)] } end end nat
60f281327dfc09f424ff87e10a304540f043ac73
ec62863c729b7eedee77b86d974f2c529fa79d25
/2/b.lean
0ea69260c65875e134011ad2199435b792af2c9e
[]
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
735
lean
structure Passwd where min : Int max : Int letter : Char str : String instance : Inhabited Passwd := ⟨⟨0,0,'a',"a"⟩⟩ instance : ToString Passwd := ⟨λ p => s!"{p.min}-{p.max} {p.letter}: {p.str}"⟩ def parseLine (s : String) : Passwd := match s.splitOn with | [a,b,c] => match a.splitOn "-" with | [x,y] => ⟨x...
d6f00de103c1056aa46573a4bd45fecd009dc37d
8e6cad62ec62c6c348e5faaa3c3f2079012bdd69
/src/data/polynomial/degree/lemmas.lean
4b0da0c9f8afd259aa28c90e75d2008ff8653dcf
[ "Apache-2.0" ]
permissive
benjamindavidson/mathlib
8cc81c865aa8e7cf4462245f58d35ae9a56b150d
fad44b9f670670d87c8e25ff9cdf63af87ad731e
refs/heads/master
1,679,545,578,362
1,615,343,014,000
1,615,343,014,000
312,926,983
0
0
Apache-2.0
1,615,360,301,000
1,605,399,418,000
Lean
UTF-8
Lean
false
false
9,586
lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker -/ import data.polynomial.eval import tactic.interval_cases /-! # Theory of degrees of polynomials Some of the main results...
aed2e93a5fc030ee637814e4f0fb2b5c351f71e7
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/number_theory/divisors.lean
3a8ba38bb04944482ab89dda245153b78c2f68c9
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
8,136
lean
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebra.big_operators.order import Mathlib.tactic.default import Mathlib.data.nat.prime imp...
9d1881d5ac18cc6cce3fe5ac4d4a326d0f5b2daa
94e33a31faa76775069b071adea97e86e218a8ee
/src/dynamics/omega_limit.lean
96876df8dda8c9f692fba23e19ec16f287cd19a4
[ "Apache-2.0" ]
permissive
urkud/mathlib
eab80095e1b9f1513bfb7f25b4fa82fa4fd02989
6379d39e6b5b279df9715f8011369a301b634e41
refs/heads/master
1,658,425,342,662
1,658,078,703,000
1,658,078,703,000
186,910,338
0
0
Apache-2.0
1,568,512,083,000
1,557,958,709,000
Lean
UTF-8
Lean
false
false
16,562
lean
/- Copyright (c) 2020 Jean Lo. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jean Lo -/ import dynamics.flow /-! # ω-limits For a function `ϕ : τ → α → β` where `β` is a topological space, we define the ω-limit under `ϕ` of a set `s` in `α` with respect to filter `f...
35a506d05c9902c14687a20a5153c8851ae1f0aa
3d2a7f1582fe5bae4d0bdc2fe86e997521239a65
/spatial-reasoning/spatial-reasoning-problem-06.lean
27afe444904ae0fa256d5efa25435c0122208c30
[]
no_license
own-pt/common-sense-lean
e4fa643ae010459de3d1bf673be7cbc7062563c9
f672210aecb4172f5bae265e43e6867397e13b1c
refs/heads/master
1,622,065,660,261
1,589,487,533,000
1,589,487,533,000
254,167,782
3
2
null
1,589,487,535,000
1,586,370,214,000
Lean
UTF-8
Lean
false
false
1,777
lean
/- Spatial Reasoning Problem 06 -/ /- It can be found at: SpatialQs.txt -/ -- (6) A bookcase is on the floor. A book is on the bookcase. Is the book higher than the floor? universe V constant U : Type constants Right Left Book Furniture Floor On TransitivePositionalAttribute PositionalAttribute Above : U constant...
fa28347e79697ab6e7452bf66b458118788e7a80
da23b545e1653cafd4ab88b3a42b9115a0b1355f
/test/intro_at_least_one.lean
dfe7d8eb701e10916d60585ee26da2f532d42d43
[]
no_license
minchaowu/lean-tidy
137f5058896e0e81dae84bf8d02b74101d21677a
2d4c52d66cf07c59f8746e405ba861b4fa0e3835
refs/heads/master
1,585,283,406,120
1,535,094,033,000
1,535,094,033,000
145,945,792
0
0
null
null
null
null
UTF-8
Lean
false
false
343
lean
import tidy.intro_at_least_one import tidy.force example : ∀ x : ℕ, ∀ y : ℕ, true := begin intro_at_least_one, trivial, end example : true := begin success_if_fail { intro_at_least_one }, trivial, end def f := ∀ x : ℕ, true example : f := begin success_if_fail { force `[intros] }, intro_at_least_one, t...
8259d3a98d3686d9d5187d6a0ac6a6227613b0a4
302c785c90d40ad3d6be43d33bc6a558354cc2cf
/src/algebra/algebra/tower.lean
e57cbb3a5fed9d50dee5e2bda6234baa79e8bd63
[ "Apache-2.0" ]
permissive
ilitzroth/mathlib
ea647e67f1fdfd19a0f7bdc5504e8acec6180011
5254ef14e3465f6504306132fe3ba9cec9ffff16
refs/heads/master
1,680,086,661,182
1,617,715,647,000
1,617,715,647,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
11,854
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 algebra.algebra.subalgebra /-! # Towers of algebras In this file we prove basic facts about towers of algebra. An algebra tower A/S/R is expressed by having instance...
2d20f93e72c020f2caa21ac5ca9492ec839d3ed6
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/data/equiv/transfer_instance.lean
18f6b5e8a4d1d2f66c74c99270dae3162161d7e3
[ "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
13,520
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.equiv.basic import algebra.field import algebra.module import algebra.algebra.basic import algebra.group.type_tags import ring_theory.ideal.basic /-! # T...
1d713ba4425af9ea4e7125b03b361f3101f3a463
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/logic/embedding.lean
604cfac8383c2e255305e749d62d46abf1157fed
[ "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
16,305
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 import data.set.basic import data.sigma.basic /-! # Injective functions -/ universes u v w x namespace function /-- `α ↪ β...
20174a3b2ff8e2fe7504da22305381ad58663bbe
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/topology/category/Top/opens.lean
286dcaf1666fe4dcee5cf12e2ef3bc37d603461f
[ "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,005
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 topology.category.Top.basic import category_theory.eq_to_hom import category_theory.category.preorder /-! # The category of open sets in a topological space. ...
c4a4aca729ab6d47811fcc02ffd7c15a9c2b907d
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/computability/tm_to_partrec.lean
3ea2adca013c1b5f11d35239376745f3953b1dbf
[ "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
64,652
lean
/- Copyright (c) 2020 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import computability.halting import computability.turing_machine import data.num.lemmas /-! # Modelling partial recursive functions using Turing machines This file ...
58ecb1bf803a5c073da9c92dff463d56781fc133
82e44445c70db0f03e30d7be725775f122d72f3e
/src/ring_theory/adjoin_root.lean
f610dbee419e3f6641830a254477c38c852b7bbc
[ "Apache-2.0" ]
permissive
stjordanis/mathlib
51e286d19140e3788ef2c470bc7b953e4991f0c9
2568d41bca08f5d6bf39d915434c8447e21f42ee
refs/heads/master
1,631,748,053,501
1,627,938,886,000
1,627,938,886,000
228,728,358
0
0
Apache-2.0
1,576,630,588,000
1,576,630,587,000
null
UTF-8
Lean
false
false
9,905
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 Adjoining roots of polynomials -/ import data.polynomial.field_division import linear_algebra.finite_dimensional import ring_theory.adjoin.basic import ri...
8123335b9708e2f3a5f7f73f15e538fa462588ca
076f5040b63237c6dd928c6401329ed5adcb0e44
/instructor-notes/2019.09.24.lean
216215b5e4b62f8c0f390fe3035df59d029cc1cb
[]
no_license
kevinsullivan/uva-cs-dm-f19
0f123689cf6cb078f263950b18382a7086bf30be
09a950752884bd7ade4be33e9e89a2c4b1927167
refs/heads/master
1,594,771,841,541
1,575,853,850,000
1,575,853,850,000
205,433,890
4
9
null
1,571,592,121,000
1,567,188,539,000
Lean
UTF-8
Lean
false
false
8,451
lean
namespace mlist open list -- Lean-provided data type /- Lists in Lean are "polymorphic." They can contain elements of any specified type. Your homework is to implement lists of natural numbers in particular. Soon you'll see how to make the type of list elements into a parameter/argument. To help with your homework...
4dd8ab80bf8dc57d282da98b90ba38f45678ffa3
4e0d7c3132ce31edc5829849735dd25db406b144
/lean/love07_metaprogramming_exercise_sheet.lean
9a3c72e10ad11f0200719ee4e945bf08e0e79aba
[]
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
9,132
lean
import .love07_metaprogramming_demo /-! # LoVe Exercise 7: Metaprogramming -/ set_option pp.beta true namespace LoVe /-! ## ## Question 1: A Term Exploder In this exercise, we develop a string format for the `expr` metatype. By default, there is no `has_repr` instance to print a nice string. For example: -/ #e...
bbbb27e25958e9938316406b19280401e496b478
9dc8cecdf3c4634764a18254e94d43da07142918
/src/number_theory/cyclotomic/basic.lean
a01087be87cca6d117ff37d8913bce3b7ae873d1
[ "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
27,275
lean
/- Copyright (c) 2021 Riccardo Brasca. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Riccardo Brasca -/ import ring_theory.polynomial.cyclotomic.basic import number_theory.number_field import algebra.char_p.algebra import field_theory.galois /-! # Cyclotomic extensi...
a2a9bff063c6f1a2c1d31f49361b157296c673df
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/group_theory/free_product.lean
9426a82491c5691d274f5f086dbebaa45bf45f28
[ "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
33,924
lean
/- Copyright (c) 2021 David Wärn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Wärn, Joachim Breitner -/ import algebra.free_monoid.basic import group_theory.congruence import group_theory.is_free_group import data.list.chain import set_theory.cardinal.ordinal ...
649e1adf4bd128dc53fd9693435176d4e6eded10
a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940
/stage0/src/Lean/Util/CollectFVars.lean
ab0f438df64ea5f7aec6541dd49a0efb2fcf46bc
[ "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
1,153
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 -/ import Lean.Expr namespace Lean.CollectFVars structure State where visitedExpr : ExprSet := {} fvarSet : NameSet := {} deriving Inhabited a...
81c9e2bfb2806ac6dba9bfc7084ea735258e3fba
206422fb9edabf63def0ed2aa3f489150fb09ccb
/src/ring_theory/power_basis.lean
e12953217c41ec5e30271550479caea67553982b
[ "Apache-2.0" ]
permissive
hamdysalah1/mathlib
b915f86b2503feeae268de369f1b16932321f097
95454452f6b3569bf967d35aab8d852b1ddf8017
refs/heads/master
1,677,154,116,545
1,611,797,994,000
1,611,797,994,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
21,514
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 field_theory.adjoin import field_theory.minpoly import ring_theory.adjoin import ring_theory.adjoin_root import ring_theory.algebraic /-! # Power basis This file d...
a5ecaf3be48bed26f5a470769afa3562f1e713f3
66a6486e19b71391cc438afee5f081a4257564ec
/cohomology/projective_space.hlean
14b691f4be219577376d9b768010740be39c471f
[ "Apache-2.0" ]
permissive
spiceghello/Spectral
c8ccd1e32d4b6a9132ccee20fcba44b477cd0331
20023aa3de27c22ab9f9b4a177f5a1efdec2b19f
refs/heads/master
1,611,263,374,078
1,523,349,717,000
1,523,349,717,000
92,312,239
0
0
null
1,495,642,470,000
1,495,642,470,000
null
UTF-8
Lean
false
false
5,571
hlean
/- A computation of the cohomology groups of K(ℤ,2) using the Serre spectral sequence Author: Floris van Doorn-/ import .serre open eq spectrum EM EM.ops int pointed cohomology left_module algebra group fiber is_equiv equiv prod is_trunc function namespace temp definition uH0_circle : uH^0[circle] ≃g gℤ := ...
348afe4ce51e84a74cea5ff24d236fdf0c81602f
10834b3de906c60d1989336d7506a00ee5e52c08
/library/init/data/nat/lemmas.lean
08b2bf4b885049c455fe870b8fd43ab356d26f59
[ "Apache-2.0" ]
permissive
Jack-Pumpkinhead/lean
16657b5ad7f5316f007842fa2426b7f91212eae8
81cabd7b5a8f789633639f5fba64b45d31e37259
refs/heads/master
1,621,358,983,310
1,585,070,616,000
1,585,070,616,000
251,335,905
0
0
Apache-2.0
1,585,579,683,000
1,585,579,682,000
null
UTF-8
Lean
false
false
49,640
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, Jeremy Avigad -/ prelude import init.data.nat.basic init.data.nat.div init.meta init.algebra.functions universes u namespace nat attribute [pre_smt] nat_zero...
b6686f37686ba389bb02e5a8f8b0ded73ee7f943
9995dfaf2c112e67489d4a6be1858e7b3c67ded6
/proofs2.lean
46ee28b194b4fd88ce46b16f8dbb5aebe332c9ea
[]
no_license
PJ41/proof-checking
dfe291be8e6a8872ec81e01c8326dc51ff06a17a
e7ce9c7905434f84e02e5707cec4f6a07749c4dd
refs/heads/master
1,596,760,214,588
1,570,386,047,000
1,570,386,047,000
213,219,595
0
0
null
null
null
null
UTF-8
Lean
false
false
1,366
lean
def proper_subset : ∀ { α : Type }, set α → set α → Prop := λ α x y, forall (e : α), (e ∈ x → e ∈ y) ∧ (∃ f, f ∈ y ∧ f ∉ x) example : ∀ a b c : ℕ, a = b → b = c → a = c := begin intros a b c, assume ab bc, rewrite ab, rw bc, -- shorthand -- and rw does rfl for us end example : ∀ a b c : ℕ, a ...
eb302eba6b55fa03d0de03b105046e6dd3b60121
4727251e0cd73359b15b664c3170e5d754078599
/src/algebra/continued_fractions/continuants_recurrence.lean
0b18d9baff7514ce08afd6f2cb13feca0679ff08
[ "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,650
lean
/- Copyright (c) 2019 Kevin Kappelmann. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Kappelmann -/ import algebra.continued_fractions.translations /-! # Recurrence Lemmas for the `continuants` Function of Continued Fractions. ## Summary Given a generalized co...
2e3a3f4ab3f20645dee2672ad909d95b9abff5b9
ac60dab17014edd769c9618cc1569ce8c960a6a5
/src/hpp.lean
67188460a9aaca094b280dde636184e48a46654c
[ "MIT" ]
permissive
frankSil/CAExtensions
20e1f856b3ad775d5e8dc8877614dbcd58c77901
f5c74fd9a806696c73497d9abd45b7315f45379f
refs/heads/master
1,608,706,941,607
1,586,193,337,000
1,586,193,337,000
237,077,434
0
0
null
null
null
null
UTF-8
Lean
false
false
12,003
lean
import cautomaton utils data.list.perm open utils namespace hpp section hpp inductive cellT | X | N | W | E | S | NW | NE | NS | WS | WE | ES | NWE | NWS | NES | WES | NWSE inductive cardinal | CN | CW | CE | CS open cellT cardinal def cellT_str : cellT → string | N := "↑" |...
a7673aa0d415c629010461c4cae23ced737d36c2
1a61aba1b67cddccce19532a9596efe44be4285f
/tests/lean/626b.hlean
993e4c37bb20ea3a2f590e8f4db216386ed670cd
[ "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
84
hlean
import hit.circle open circle definition f (x : S¹) : bool := circle.rec_on x _ _