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
ea0e1a3cf421bf95693314f6035677e26570f5a4
4d7079ae603c07560e99d1ce35876f769cbb3e24
/src/main.lean
38c5559735765541583f31b78db4fe4fcebc79b3
[]
no_license
chasenorman/Formalized-Voting
72493a08aa09d98d0fb589731b842e2d08c991d0
de04e630b83525b042db166670ba97f9952b5691
refs/heads/main
1,687,282,160,284
1,627,155,031,000
1,627,155,031,000
370,472,025
13
0
null
null
null
null
UTF-8
Lean
false
false
8,189
lean
import set_theory.cardinal import data.finset.basic import data.stream.basic import tactic import cycles open_locale classical noncomputable theory -- Definition 1: Prof V X represents the set of (V, X)-profiles def Prof : Type → Type → Type := λ (V X : Type), V → X → X → Prop -- Definition 2: Given a profile P and ...
80fd71a98e755ed63da8d1a0551777748ea1019b
40c8b73f5a82a3c09e3d1956df44aad9ffd510b7
/src/has_deriv.lean
db2e622c682b8ebbbcf662c50126c7f5c4463b84
[]
no_license
lean-forward/cap_set_problem
343c02d42775eb25b32b6c567d13769fd42dd4ca
095a2f18f81c551a0053f2e65806de751e438fc4
refs/heads/master
1,626,463,115,144
1,561,829,195,000
1,561,829,195,000
178,678,372
7
1
null
1,625,412,745,000
1,554,031,306,000
Lean
UTF-8
Lean
false
false
6,482
lean
/- Copyright (c) 2018 Sander Dahmen, Johannes Hölzl, Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sander Dahmen, Johannes Hölzl, Robert Y. Lewis "On large subsets of 𝔽ⁿ_q with no three-term arithmetic progression" by J. S. Ellenberg and D. Gijswijt...
76c690503ee4b333f436e65527690dbf68e67962
1abd1ed12aa68b375cdef28959f39531c6e95b84
/src/analysis/special_functions/trigonometric/complex.lean
8059b8a2bfb5347cab8947313723ea19f988bf6b
[ "Apache-2.0" ]
permissive
jumpy4/mathlib
d3829e75173012833e9f15ac16e481e17596de0f
af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13
refs/heads/master
1,693,508,842,818
1,636,203,271,000
1,636,203,271,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
10,018
lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson -/ import algebra.quadratic_discriminant import analysis.special_functions.complex.log import analysis.com...
d6a186d11077beb08e33a23e1d06e07c0b7f9b32
4727251e0cd73359b15b664c3170e5d754078599
/src/dynamics/circle/rotation_number/translation_number.lean
969ddf625c1272801c7b59ba34d95a2bfbd34849
[ "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
39,509
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 -/ import algebra.hom.iterate import analysis.specific_limits.basic import order.iterate import order.semiconj_Sup import topology.algebra.order.monotone_continu...
2f1b2b12efb1222cef2b1c64db741e2ff6ff3a2b
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/logic/equiv/local_equiv.lean
901d263f3cdd2faad634d11b5ec0ef40a10ee6a4
[ "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
35,819
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.set.function import logic.equiv.defs /-! # Local equivalences This files defines equivalences between subsets of given types. An element `e` of `l...
11122ef46297f5af3c7e95504eeacde3d734c143
618003631150032a5676f229d13a079ac875ff77
/src/topology/algebra/module.lean
f017275c1167860b32cf405351fef8b425a512a6
[ "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
38,727
lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov -/ import topology.algebra.ring import topology.uniform_space.uniform_embedding import ring_theory.algebra import line...
153a8a87ddfbfa7fac21c89761d5c80144f6b1c5
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/deprecated/subgroup.lean
6e164389592e0333596be59a8e7084c98aa96642
[ "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
25,368
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, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro, Michael Howes -/ import group_theory.subgroup.basic import deprecated.submonoid /-! # Unbundled subg...
ee27c2e8eacc1b350c1fbf34a50150ab95b73323
77c5b91fae1b966ddd1db969ba37b6f0e4901e88
/src/field_theory/minpoly.lean
6bc110426a036916a99332288c192dd521743a71
[ "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
17,496
lean
/- Copyright (c) 2019 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Johan Commelin -/ import data.polynomial.field_division import ring_theory.integral_closure import ring_theory.polynomial.gauss_lemma /-! # Minimal polynomials This file ...
ba68fcc92a3ee53f1408472e536b3cee43b2844c
ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5
/src/Lean/PrettyPrinter/Parenthesizer.lean
35c361b53fa97bc439d7c95adf07c65df42ca06e
[ "Apache-2.0" ]
permissive
dupuisf/lean4
d082d13b01243e1de29ae680eefb476961221eef
6a39c65bd28eb0e28c3870188f348c8914502718
refs/heads/master
1,676,948,755,391
1,610,665,114,000
1,610,665,114,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
29,199
lean
/- Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ /-! The parenthesizer inserts parentheses into a `Syntax` object where syntactically necessary, usually as an intermediary step between the delaborator and the...
105f3d716d8107bdeb6c0b534e724600cca712ac
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/category_theory/limits/shapes/strong_epi.lean
ce67158f4b03eafdf45a1dcd25690e006c749be4
[ "Apache-2.0" ]
permissive
alreadydone/mathlib
dc0be621c6c8208c581f5170a8216c5ba6721927
c982179ec21091d3e102d8a5d9f5fe06c8fafb73
refs/heads/master
1,685,523,275,196
1,670,184,141,000
1,670,184,141,000
287,574,545
0
0
Apache-2.0
1,670,290,714,000
1,597,421,623,000
Lean
UTF-8
Lean
false
false
7,322
lean
/- Copyright (c) 2020 Markus Himmel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel -/ import category_theory.balanced import category_theory.lifting_properties.basic /-! # Strong epimorphisms In this file, we define strong epimorphisms. A strong epimor...
47c3aaca0e915f69a4dbc88d29c97758224ba809
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/hott/457.hlean
63057da1291fb71817cc985155ee7f0ab20f496e
[ "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
173
hlean
import algebra.group open eq algebra definition foo {A : Type} (a b c : A) (H₁ : a = c) (H₂ : c = b) : a = b := begin apply concat, apply H₁, apply H₂, end
1cc4a69f5ebd39aeb64f4ab5acd7aece3126564e
f5f7e6fae601a5fe3cac7cc3ed353ed781d62419
/src/data/set/enumerate.lean
1b0ed2ebec481262741decfb046236640e855219
[ "Apache-2.0" ]
permissive
EdAyers/mathlib
9ecfb2f14bd6caad748b64c9c131befbff0fb4e0
ca5d4c1f16f9c451cf7170b10105d0051db79e1b
refs/heads/master
1,626,189,395,845
1,555,284,396,000
1,555,284,396,000
144,004,030
0
0
Apache-2.0
1,533,727,664,000
1,533,727,663,000
null
UTF-8
Lean
false
false
2,433
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 Enumerate elements of a set with a select function. -/ import data.equiv.encodable data.set.finite data.set.lattice logic.function noncomputable theory open function s...
6b55e80f441e025e4ca67b04cc648cd75173f2e3
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/category_theory/subobject/types.lean
a36e60ce02444abe177f246030dca2bba7d9d241
[ "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
2,250
lean
/- Copyright (c) 2021 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import category_theory.subobject.well_powered import category_theory.types /-! # `Type u` is well-powered By building a categorical equivalence `mono_over α ≌ set α...
bd9f3b708339d5d681824e42b4a0be7daebae9d3
302c785c90d40ad3d6be43d33bc6a558354cc2cf
/src/algebra/star/algebra.lean
093109e07dfd31946fb27cc78b33f35699aecc30
[ "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
1,099
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.algebra.basic import algebra.star.basic /-! # Star algebras Introduces the notion of a star algebra over a star ring. -/ universes u v /-- A star a...
e63dcfc8ec84137ad9b4c4d04c6e780a1c52137a
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/measure_theory/measure/measure_space.lean
1a18a59f2aa8ddfb95c75b2b6b9db719064df270
[ "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
150,929
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro -/ import measure_theory.measure.null_measurable import measure_theory.measurable_space /-! # Measure spaces The definition of a measure and a measure ...
19a0efd13a6ddf52d0e0d6a78b75d1c1cc8559db
b7f22e51856f4989b970961f794f1c435f9b8f78
/hott/algebra/category/groupoid.hlean
e7b0a7421dbd2010b237a36739ade56751ed1f38
[ "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
2,841
hlean
/- Copyright (c) 2014 Jakob von Raumer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jakob von Raumer, Floris van Doorn Ported from Coq HoTT -/ import .iso algebra.bundled open eq is_trunc iso category algebra nat unit namespace category structure groupoid [cl...
6cbe94114a1781f9993ca8abd02bb1d467b039d3
9028d228ac200bbefe3a711342514dd4e4458bff
/src/topology/dense_embedding.lean
2ab71a8481e9306ff5455d7e84ab7d7d8958750d
[ "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
12,690
lean
/- Copyright (c) 2019 Reid Barton. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot -/ import topology.separation import topology.bases /-! # Dense embeddings This file defines three properties of functions: * `dense_rang...
f04d69cf3ba740abf472c434460453cad1f57737
f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58
/group_theory/perm.lean
9ecbe315ca785d03cbdf9abae1139eda9f402342
[ "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
13,566
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.fintype universes u v open equiv function finset fintype variables {α : Type u} {β : Type v} [decidable_eq α] namespace equiv.perm def is_swap (f : perm α)...
b3b65c48d96c627013827d9f152b23312e7bf74c
5fbbd711f9bfc21ee168f46a4be146603ece8835
/lean/natural_number_game/multiplication/7.lean
ee88f23e3f77d289afd7a52c0e1a46f725ce6bc2
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
goedel-gang/maths
22596f71e3fde9c088e59931f128a3b5efb73a2c
a20a6f6a8ce800427afd595c598a5ad43da1408d
refs/heads/master
1,623,055,941,960
1,621,599,441,000
1,621,599,441,000
169,335,840
0
0
null
null
null
null
UTF-8
Lean
false
false
166
lean
lemma add_mul (a b t : mynat) : (a + b) * t = a * t + b * t := induction t with n hn, repeat {rw mul_zero}, simp, repeat {rw mul_succ}, rw hn, simp, end
7e20c5fcd62ab3ea96752dbcbeb20631fee04014
1fbca480c1574e809ae95a3eda58188ff42a5e41
/src/util/data/generic.lean
7975fdded3831d632ce8334b1967d44281662e71
[]
no_license
unitb/lean-lib
560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e
439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9
refs/heads/master
1,610,706,025,400
1,570,144,245,000
1,570,144,245,000
99,579,229
5
0
null
null
null
null
UTF-8
Lean
false
false
6,864
lean
import data.equiv.basic import data.fintype import data.equiv.encodable import data.equiv.denumerable -- import util.control.monad -- import util.control.applicative -- import util.meta.tactic universes u class generic (α : Type u) := (rep : Type u) (to_rep : α → rep) (of_rep : rep → α) (correspondence : α ≃...
f5a22a5685a50aded0011cbc8bfe36bdd0ab74d1
1abd1ed12aa68b375cdef28959f39531c6e95b84
/src/group_theory/specific_groups/dihedral.lean
eae6a786b3c2237a94cd4bb29c44fc06051387b3
[ "Apache-2.0" ]
permissive
jumpy4/mathlib
d3829e75173012833e9f15ac16e481e17596de0f
af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13
refs/heads/master
1,693,508,842,818
1,636,203,271,000
1,636,203,271,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
5,532
lean
/- Copyright (c) 2020 Shing Tak Lam. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Shing Tak Lam -/ import data.fintype.card import data.zmod.basic import group_theory.order_of_element /-! # Dihedral Groups We define the dihedral groups `dihedral_group n`, with elem...
43682e1184fb2075c08852a59cbffecf9d92d5ac
f1a12d4db0f46eee317d703e3336d33950a2fe7e
/lia/common/atom.lean
129e6f245a2ab294590d2d932019283319b07826
[ "Apache-2.0" ]
permissive
avigad/qelim
bce89b79c717b7649860d41a41a37e37c982624f
b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60
refs/heads/master
1,584,548,938,232
1,526,773,708,000
1,526,773,708,000
134,967,693
2
0
null
null
null
null
UTF-8
Lean
false
false
6,689
lean
import ...common.int ...common.atom ...common.list namespace lia open list variables {α β : Type} inductive atom : Type | le : int → list int → atom | dvd : int → int → list int → atom | ndvd : int → int → list int → atom -- | (atom.le i ks) := sorry -- | (atom.dvd d i ks) := sorry -- | (atom.ndvd d i ks) := so...
188f3d7ccc126d58ec61283408ee5a721f80f814
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/topology/metric_space/metrizable.lean
701cbff01eb5bf43f3759aa10d0ca834df9fccd9
[ "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
7,055
lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import topology.urysohns_lemma import topology.continuous_function.bounded /-! # Metrizability of a normal topological space with second countable topology In thi...
26c036bee289ce2ca94d28bd202e344f5435a546
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/elab12.lean
c7ed5d73213b44f56f379cd27c8c2aebe217399b
[ "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
403
lean
#check (assume a : nat, have H : 0, from rfl a, (H a a) : ∀ a : nat, a = a) #check (assume a : nat, have H : a = a, from rfl a, (H a a) : ∀ a : nat, a = a) #check (assume a : nat, have H : a = a, from a + 0, (H a a) : ∀ a : nat, a = a) #check (assume a : nat, have H : a = a, from rfl, (H a) : ∀ a : nat, a = a) ...
1758bf3b3e241f47e5fc78c0927b79d861b25373
80cc5bf14c8ea85ff340d1d747a127dcadeb966f
/src/ring_theory/algebraic.lean
00a61488f770993ab337975daf36506aca866358
[ "Apache-2.0" ]
permissive
lacker/mathlib
f2439c743c4f8eb413ec589430c82d0f73b2d539
ddf7563ac69d42cfa4a1bfe41db1fed521bd795f
refs/heads/master
1,671,948,326,773
1,601,479,268,000
1,601,479,268,000
298,686,743
0
0
Apache-2.0
1,601,070,794,000
1,601,070,794,000
null
UTF-8
Lean
false
false
4,684
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 linear_algebra.finite_dimensional import ring_theory.integral_closure import data.polynomial.integral_normalization /-! # Algebraic elements and algebraic ex...
2bf1f3da304cdd7bda7a5ba4a8d866f10880969a
4727251e0cd73359b15b664c3170e5d754078599
/src/algebra/group/default.lean
8f8bbde5143622080ccbe680c80240d5ae9d4db3
[ "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
427
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, Michael Howes -/ import algebra.group.conj import algebra.group.type_tags import algebra.group.with_one import algebra.hom.units /-! # Various multipl...
ff9d49a3c1b47ada98f81e90415d5395386398c5
ea5678cc400c34ff95b661fa26d15024e27ea8cd
/fast_refl.lean
5bf2f5da2513480e940998b8a8209d42e01e23e5
[]
no_license
ChrisHughes24/leanstuff
dca0b5349c3ed893e8792ffbd98cbcadaff20411
9efa85f72efaccd1d540385952a6acc18fce8687
refs/heads/master
1,654,883,241,759
1,652,873,885,000
1,652,873,885,000
134,599,537
1
0
null
null
null
null
UTF-8
Lean
false
false
1,075
lean
import data.nat.basic tactic data.nat.parity open nat expr tactic universes u v lemma let_congr {α : Type u} {β : Type v} (assignment₁ assignment₂ : α) (body : β) (h : assignment₁ = assignment₂) : let a := assignment₁ in body = let a := assignment₂ in body := h ▸ rfl meta def reduce : expr → tactic (expr × expr) |...
45f7fcdc05cfe4f8b7545a17c961e1f1bb299ce3
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/topology/algebra/uniform_convergence.lean
796468b322c7f857dff14a000b19cb27639818fb
[ "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
10,664
lean
/- Copyright (c) 2022 Anatole Dedecker. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anatole Dedecker -/ import topology.uniform_space.uniform_convergence_topology import analysis.locally_convex.bounded import topology.algebra.filter_basis /-! # Algebraic facts abou...
c98aa1eb2de62b458a59559c1764fb5ce29f742f
4727251e0cd73359b15b664c3170e5d754078599
/src/logic/nonempty.lean
178635f3b80807b0e42f4de0122619ef88a2d809
[ "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
5,612
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl -/ import logic.basic /-! # Nonempty types This file proves a few extra facts about `nonempty`, which is defined in core Lean. ## Main declarations * `nonempty.some`...
8995771e454aa02b724f3646e6de7d287b7cf79c
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/analysis/normed_space/operator_norm.lean
df5312f1cd36d4f6eb77668045df130b05c406f1
[]
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
51,272
lean
/- Copyright (c) 2019 Jan-David Salchow. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.linear_algebra.finite_dimensional import Mathlib.analysis...
94077a1033134641da1111c974b781eb0004e9c5
367134ba5a65885e863bdc4507601606690974c1
/src/tactic/lift.lean
c3f513784836b302f05fb913d7b2806e5ea4064f
[ "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
10,012
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 tactic.rcases /-! # lift tactic This file defines the `lift` tactic, allowing the user to lift elements from one type to another under a specified conditi...
a6ea3bf6077e1cafe358b265d2f59fef31800223
6e36ebd5594a0d512dea8bc6ffe78c71b5b5032d
/src/mywork/Homework/fake_HW.lean
6acca548c9c5fa6b5ac74438636a1eaf4cb6eb59
[]
no_license
wrw2ztk/cs2120f21
cdc4b1b4043c8ae8f3c8c3c0e91cdacb2cfddb16
f55df4c723d3ce989908679f5653e4be669334ae
refs/heads/main
1,691,764,473,342
1,633,707,809,000
1,633,707,809,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,195
lean
--1 example : 0 ≠ 1 := begin show ¬ (0=1), assume p, contradiction, end --2 example : 0 ≠ 0 → 2 = 3:= begin assume h, have g : (0 = 0) := eq.refl 0, have f : false := h g, cases f, --or can just assume h then exact false.elim (h (eq.refl 0)) end --3 example : ∀ (P : Prop), P → ¬¬P := begin assume...
790486900a868b88c26a507223258e39444e31e3
94e33a31faa76775069b071adea97e86e218a8ee
/src/group_theory/torsion.lean
cdbda5bc760591786c4da59b21a0cd99c014a65a
[ "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
14,847
lean
/- Copyright (c) 2022 Julian Berman. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Julian Berman -/ import algebra.is_prime_pow import group_theory.exponent import group_theory.order_of_element import group_theory.p_group import group_theory.quotient_group import gro...
ec893ae32fef0daccccc9e84ea7fa3cdfe4906d7
f3849be5d845a1cb97680f0bbbe03b85518312f0
/tests/lean/interactive/rb_map_ts.lean
a5b9fca9f1df6b629d91571584198b3b59086a82
[ "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
2,156
lean
meta def mytac := state_t (name_map nat) tactic meta instance : monad mytac := state_t.monad _ _ meta instance : monad.has_monad_lift tactic mytac := monad.monad_transformer_lift (state_t (name_map nat)) tactic meta instance (α : Type) : has_coe (tactic α) (mytac α) := ⟨monad.monad_lift⟩ namespace mytac meta def s...
14f04576c9274e111f37ea422afc3e67fa4f0bd7
95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990
/src/order/basic.lean
4c3ee3393fa1bd80743c1fb90c2603ec8587e9fc
[ "Apache-2.0" ]
permissive
uniformity1/mathlib
829341bad9dfa6d6be9adaacb8086a8a492e85a4
dd0e9bd8f2e5ec267f68e72336f6973311909105
refs/heads/master
1,588,592,015,670
1,554,219,842,000
1,554,219,842,000
179,110,702
0
0
Apache-2.0
1,554,220,076,000
1,554,220,076,000
null
UTF-8
Lean
false
false
22,347
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Mario Carneiro -/ import tactic.interactive logic.basic data.sum data.set.basic algebra.order open function /- TODO: automatic construction of dual definitions / theorem...
d40bc9785a80f1ed52008369d516ef4b63ce0cdc
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/algebra/quaternion.lean
782f434ee374baf48c29e507c7caa2f79717ba3e
[ "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
22,404
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 tactic.ring_exp import algebra.algebra.basic import algebra.opposites import data.equiv.ring /-! # Quaternions In this file we define quaternions `ℍ[R]` ov...
5ba0e8179c643931e07182b96c53af8a5c3ba656
aa2345b30d710f7e75f13157a35845ee6d48c017
/data/fintype.lean
a89e2a100f7ab7aec02052c04a8cfeaeeb841a9f
[ "Apache-2.0" ]
permissive
CohenCyril/mathlib
5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe
a12d5a192f5923016752f638d19fc1a51610f163
refs/heads/master
1,586,031,957,957
1,541,432,824,000
1,541,432,824,000
156,246,337
0
0
Apache-2.0
1,541,434,514,000
1,541,434,513,000
null
UTF-8
Lean
false
false
26,875
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro Finite types. -/ import data.finset algebra.big_operators data.array.lemmas data.vector2 universes u v variables {α : Type*} {β : Type*} {γ : Type*} /-- `fintype α` me...
db9f0a254e50f0f8b251f3d7e34baaecea4607de
432d948a4d3d242fdfb44b81c9e1b1baacd58617
/src/algebra/algebra/tower.lean
0a6aaa240a1fff00f30a417422ee0b47d83fc6ed
[ "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
11,797
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...
4d14346a4bef3ff2fc7b0250c5bdb2946c4d1847
271e26e338b0c14544a889c31c30b39c989f2e0f
/src/Init/Lean/Parser/Module.lean
3a6c8d0f922bf7afe2373887e66973cd62781a50
[ "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
4,706
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ prelude import Init.Lean.Util.Message import Init.Lean.Parser.Command namespace Lean namespace Parser namespace Module def «prelude» :...
7d966f9f49082bfcb7a2194888017e8b0278c092
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/linear_algebra/coevaluation.lean
eb9f4e9f922820b6d6ef70d6534e1b848079bffe
[ "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
4,242
lean
/- Copyright (c) 2021 Jakob von Raumer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jakob von Raumer -/ import linear_algebra.dual import linear_algebra.finsupp_vector_space import linear_algebra.finite_dimensional import linear_algebra.contraction import linear_alg...
7505987fdd8515f2936111a73054811416115174
94e33a31faa76775069b071adea97e86e218a8ee
/src/data/matrix/basic.lean
92dccae4f1f002ff3bfb7883f62edc450dd4141a
[ "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
77,539
lean
/- Copyright (c) 2018 Ellen Arlt. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin, Lu-Ming Zhang -/ import algebra.algebra.basic import algebra.big_operators.pi import algebra.big_operators.ring import ...
770ffe75162cc1085bf46d747734c9de9ec4e807
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/tests/lean/run/computedFields.lean
735d60cdbf5976c67456f2f0c3151c3e36b502ff
[ "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,159
lean
inductive Exp | hole | var (i : UInt32) | app (a b : Exp) with /-- Computes the hash -/ @[simp, computedField] protected hash : Exp → UInt64 | .var i => Hashable.hash i | .app a b => mixHash a.hash b.hash | .hole => 32 def dagLikeTerm : Nat → Exp | 0 => .app (.var 42) .hole | n+1 => .app (dagLi...
4da4a2a0e1bf7212f71a80ddc83f7c5c987b40d1
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/control/lawful_fix.lean
72cb7dab4d130404c05a6da69f1675008279d1f6
[ "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
7,819
lean
/- Copyright (c) 2020 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import tactic.apply import control.fix import order.omega_complete_partial_order /-! # Lawful fixed point operators This module defines the laws required of a `has_fix` ...
8f9f45de1132a99dd4c2555e83c2248c77ad50c4
ad0c7d243dc1bd563419e2767ed42fb323d7beea
/algebra/pi_instances.lean
a98c1acd08bbb65d3f8b9c48d3850d9014acaeb5
[ "Apache-2.0" ]
permissive
sebzim4500/mathlib
e0b5a63b1655f910dee30badf09bd7e191d3cf30
6997cafbd3a7325af5cb318561768c316ceb7757
refs/heads/master
1,585,549,958,618
1,538,221,723,000
1,538,221,723,000
150,869,076
0
0
Apache-2.0
1,538,229,323,000
1,538,229,323,000
null
UTF-8
Lean
false
false
11,644
lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon, Patrick Massot Pi instances for algebraic structures. -/ import algebra.module order.basic tactic.pi_instances algebra.group namespace pi universes u v variable {I : Type ...
6b8fa98934c10068e47b6751bec548356afb14d3
f57749ca63d6416f807b770f67559503fdb21001
/hott/hit/interval.hlean
67447ad6d90940fbcbea96dc3abd604481e9d386
[ "Apache-2.0" ]
permissive
aliassaf/lean
bd54e85bed07b1ff6f01396551867b2677cbc6ac
f9b069b6a50756588b309b3d716c447004203152
refs/heads/master
1,610,982,152,948
1,438,916,029,000
1,438,916,029,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,238
hlean
/- Copyright (c) 2015 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn Declaration of the interval -/ import .susp types.eq types.prod types.cubical.square open eq susp unit equiv equiv.ops is_trunc nat prod definition interval : Typ...
abe14ba97f917afab6a04e92e0815b3497b33869
206422fb9edabf63def0ed2aa3f489150fb09ccb
/src/topology/algebra/module.lean
9872a3fa3595ca9c0623e375300eac3fb8815bfd
[ "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
51,201
lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo, Yury Kudryashov -/ import topology.algebra.ring import topology.uniform_space.uniform_embedding import algebra.algebra.basic import li...
783eaea9cd92a33426cde3eda06c264f6e1f91bf
ce6917c5bacabee346655160b74a307b4a5ab620
/src/ch3/ex0306.lean
e98f9bbaaeb5b927984d8998f1ac5c48e7eb08f5
[]
no_license
Ailrun/Theorem_Proving_in_Lean
ae6a23f3c54d62d401314d6a771e8ff8b4132db2
2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68
refs/heads/master
1,609,838,270,467
1,586,846,743,000
1,586,846,743,000
240,967,761
1
0
null
null
null
null
UTF-8
Lean
false
false
82
lean
variables p q : Prop variables (hp : p) (hq : q) example : p ∧ q := (|hp, hq|)
3cb4c6bc95285639fb9b664d878c6ce5109dfd27
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/computability/halting.lean
39f8f73569e8e2df946f52cf733871c0e449db76
[ "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
15,207
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import computability.partrec_code /-! # Computability theory and the halting problem A universal partial recursive function, Rice's theorem, and the halting problem...
510ed5b01ce513481ee3018b60133d813c34db57
4fa118f6209450d4e8d058790e2967337811b2b5
/src/for_mathlib/nonarchimedean/adic_topology.lean
cb1f9c02098ba21e75629703f1018ccf226506d0
[ "Apache-2.0" ]
permissive
leanprover-community/lean-perfectoid-spaces
16ab697a220ed3669bf76311daa8c466382207f7
95a6520ce578b30a80b4c36e36ab2d559a842690
refs/heads/master
1,639,557,829,139
1,638,797,866,000
1,638,797,866,000
135,769,296
96
10
Apache-2.0
1,638,797,866,000
1,527,892,754,000
Lean
UTF-8
Lean
false
false
4,321
lean
import for_mathlib.nonarchimedean.basic import for_mathlib.nonarchimedean.is_subgroups_basis local prefix 𝓝:100 := nhds variables {R : Type*} [comm_ring R] open set lattice topological_add_group submodule namespace ideal -- Note: making the following an instance is useless, instance resolution would never guess I...
138a8fd2f65afc673921edf433c78217a539eaf4
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/subobject_from_source.lean
ee72db3612869b28e3eeb7c9e16abc2c17144ca3
[ "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
134
lean
structure foo := (a b : ℕ := 2) structure bar extends foo := (c : ℕ) example (b : bar) : b.to_foo = {c := 2, ..b}.to_foo := rfl
2bdfa9c58858184f32fe84e747e4f4ff0cdcda8b
618003631150032a5676f229d13a079ac875ff77
/src/tactic/interactive.lean
6d65d954c08ed7e8ff07018b4323a6a93b541f35
[ "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,175
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison -/ import tactic.lint open lean open lean.parser local postfix `?`:9001 := optional local postfix *:9001 := many name...
90ec4cf59d4749415b5b9356824b24cebc52c27f
4b846d8dabdc64e7ea03552bad8f7fa74763fc67
/library/init/meta/constructor_tactic.lean
b290024f6f711dd4620c2d033a305797ec5c727a
[ "Apache-2.0" ]
permissive
pacchiano/lean
9324b33f3ac3b5c5647285160f9f6ea8d0d767dc
fdadada3a970377a6df8afcd629a6f2eab6e84e8
refs/heads/master
1,611,357,380,399
1,489,870,101,000
1,489,870,101,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,473
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 meta def get_constructors_for (e : expr) : tactic (list name) := do env ← get_env, I ←...
50fd15d66ffca0789ee73ce2d19b0fbcd9acc985
2eab05920d6eeb06665e1a6df77b3157354316ad
/scripts/lint_mathlib.lean
4cd2c54a310d918609a97369e7c26d51dfdff3e8
[ "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
3,247
lean
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis, Gabriel Ebner -/ import tactic.lint import system.io -- these are required import all -- then import everything, to parse the library for failing linters /-! # l...
6274ff3f1f81dc944431904db5b040635024cbd9
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/alias2.lean
203571a948e88997cd3252f9e5047945e06aa2dd
[ "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
349
lean
import logic namespace N1 constant num : Type.{1} constant foo : num → num → num end N1 namespace N2 constant val : Type.{1} constant foo : val → val → val end N2 open N1 open N2 constants a b : num constant f : num → val attribute f [coercion] definition aux2 := foo a b check aux2 theorem T3 : aux2 = N1.fo...
4c10690d73b9c853708ca4c7fb435d30eac64b86
54d7e71c3616d331b2ec3845d31deb08f3ff1dea
/tests/lean/run/1089.lean
4ed9d2c6dcd7079cf98f17de2ec841db01d030f4
[ "Apache-2.0" ]
permissive
pachugupta/lean
6f3305c4292288311cc4ab4550060b17d49ffb1d
0d02136a09ac4cf27b5c88361750e38e1f485a1a
refs/heads/master
1,611,110,653,606
1,493,130,117,000
1,493,167,649,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
327
lean
import system.io inductive token | eof : token | plus : token | var : string -> token open token open option def to_token : string → option token | [] := none | (c :: cs) := let t : option token := match c with | #"x" := some (var "x") | #"y" := some (var "y") | #"+" := some plus | _ := none end ...
7c83bc7c82116d7047e6488bb053723d49018ab3
9c1ad797ec8a5eddb37d34806c543602d9a6bf70
/tactics.lean
a74f98ec20ce1140f006fe2f12cd3173ff140416
[]
no_license
timjb/lean-category-theory
816eefc3a0582c22c05f4ee1c57ed04e57c0982f
12916cce261d08bb8740bc85e0175b75fb2a60f4
refs/heads/master
1,611,078,926,765
1,492,080,000,000
1,492,080,000,000
88,348,246
0
0
null
1,492,262,499,000
1,492,262,498,000
null
UTF-8
Lean
false
false
11,892
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 open tactic def pointwise_attribute : user_attribute := { name := `pointwise, descr := "A lemma that proves things are equal using the fact t...
e282b5f4fa0ebf7fbfee89dba4b1f2b1a4599617
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/derivingRpcEncoding.lean
e2383b903d50f2e0d6e55ca32c54aae9b17d9fb8
[ "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
2,480
lean
import Lean.Server.Rpc.Basic open Lean Server abbrev M := StateM RpcObjectStore def M.run (x : ExceptT String M α) : Except String α := x.run' {} def test (α : Type) [RpcEncodable α] (a : α) := M.run do let json ← rpcEncode a let _a : α ← ofExcept (rpcDecode json (← get)) return json structure FooRef where...
dd83f947eb8df2ed4224e6fc507c5547b1491128
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/algebra/smul_regular.lean
8ac39cdb0ff9dc55fed4799940dc5d596cf20a7e
[ "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
6,433
lean
/- Copyright (c) 2021 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Damiano Testa -/ import algebra.smul_with_zero import algebra.regular /-! # Action of regular elements on a module We introduce `M`-regular elements, in the context of an `R`-module `M...
422287700a5f2439966fa086371649e843a670a7
8e6cad62ec62c6c348e5faaa3c3f2079012bdd69
/src/data/nat/digits.lean
956b268ddcdc54a93c3dcf2d6e7946f7193ea920
[ "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
20,895
lean
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Shing Tak Lam, Mario Carneiro -/ import data.int.modeq import tactic.interval_cases import tactic.linarith /-! # Digits of a natural number This provides a basic API ...
d188674e6ac91bac92f110874f805d96a1125748
55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5
/src/analysis/calculus/times_cont_diff.lean
e075299bf33731b6a4006a32339b0209ea1d703d
[ "Apache-2.0" ]
permissive
dupuisf/mathlib
62de4ec6544bf3b79086afd27b6529acfaf2c1bb
8582b06b0a5d06c33ee07d0bdf7c646cae22cf36
refs/heads/master
1,669,494,854,016
1,595,692,409,000
1,595,692,409,000
272,046,630
0
0
Apache-2.0
1,592,066,143,000
1,592,066,142,000
null
UTF-8
Lean
false
false
99,706
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.calculus.mean_value /-! # Higher differentiability A function is `C^1` on a domain if it is differentiable there, and its derivative is contin...
c8992d46289f0eff31fb2581e4b9bb436816b9e6
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/topology/continuous_function/units.lean
bfa4927cff6289ec12d3a8472cfc1178c09717e3
[ "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,765
lean
/- Copyright (c) 2022 Jireh Loreaux. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jireh Loreaux -/ import analysis.normed_space.units import algebra.algebra.spectrum import topology.continuous_function.algebra /-! # Units of continuous functions > THIS FILE IS SYNC...
5726ee440299a242418c0665fc033d50fa3f8b4f
491068d2ad28831e7dade8d6dff871c3e49d9431
/tests/lean/run/class5.lean
b84395a0d51968910b1762f215c24df9c9cd61f8
[ "Apache-2.0" ]
permissive
davidmueller13/lean
65a3ed141b4088cd0a268e4de80eb6778b21a0e9
c626e2e3c6f3771e07c32e82ee5b9e030de5b050
refs/heads/master
1,611,278,313,401
1,444,021,177,000
1,444,021,177,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,363
lean
import logic namespace experiment namespace algebra inductive mul_struct [class] (A : Type) : Type := mk : (A → A → A) → mul_struct A definition mul {A : Type} [s : mul_struct A] (a b : A) := mul_struct.rec (λ f, f) s a b infixl `*` := mul end algebra open algebra namespace nat inductive nat : Type := ...
f724a6cb2a8dc5340071d06905dfa5f71436a710
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/limits/shapes/reflexive.lean
96a14fb7045adcc4b95f986dd2b1e9a4ea3cc23d
[ "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,258
lean
/- Copyright (c) 2020 Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta -/ import category_theory.limits.shapes.equalizers import category_theory.limits.shapes.kernel_pair /-! # Reflexive coequalizers > THIS FILE IS SYNCHRONIZED WITH MATHLIB4....
375e0fe9d28c0c367afb0eebcdbefb91faa0100c
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/src/Lean/Compiler/IR/FreeVars.lean
1d14df4b1796892451fa40215ad0799e3b37addc
[ "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
9,489
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.Compiler.IR.Basic namespace Lean.IR namespace MaxIndex /-! Compute the maximum index `M` used in a declaration. We `M` to initialize the fr...
68bf9fa6549bd1205e80b4b000bf5a66958ac07a
94e33a31faa76775069b071adea97e86e218a8ee
/src/topology/fiber_bundle.lean
baae1192a3ec64d7a490b8a1251a82097f43c2e5
[ "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
63,718
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.bundle import topology.algebra.order.basic import topology.local_homeomorph /-! # Fiber bundles A topological fiber bundle with fiber `F` over a b...
ddaaa4027efd6939ef2b7ccdbd5dc6b9cc7454d2
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/tactic/pi_instances.lean
4d31b411656daf5bc79f4b355ddbeb1889896738
[ "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,018
lean
/- Copyright (c) 2018 Simon Hudon All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import order.basic /-! # `pi_instance` Automation for creating instances of mathematical structures for pi types -/ namespace tactic open tactic.interactive /-- Attempt...
5dcacc00f1f6487ebbf690447af6ae304fd76425
c777c32c8e484e195053731103c5e52af26a25d1
/src/data/nat/prime_norm_num.lean
a5768ccb6f6ced9e5e6e8c898539adbb1006cf68
[ "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,650
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro -/ import data.nat.factors import data.nat.prime import tactic.norm_num /-! # Primality prover This file provides a `norm_num`...
2398ddce4ed1820a63c3dda95170e117478acf3b
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/order/closure.lean
40534a7f38784447bead15197bed5e4b769f00be
[ "Apache-2.0" ]
permissive
jjgarzella/mathlib
96a345378c4e0bf26cf604aed84f90329e4896a2
395d8716c3ad03747059d482090e2bb97db612c8
refs/heads/master
1,686,480,124,379
1,625,163,323,000
1,625,163,323,000
281,190,421
2
0
Apache-2.0
1,595,268,170,000
1,595,268,169,000
null
UTF-8
Lean
false
false
17,279
lean
/- Copyright (c) 2020 Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta, Yaël Dillies -/ import data.set_like import order.basic import order.preorder_hom import order.galois_connection import tactic.monotonicity /-! # Closure operators between...
505ffaba202a2b27c25b36cbcf9a092773d6e28f
94e33a31faa76775069b071adea97e86e218a8ee
/src/measure_theory/measure/lebesgue.lean
bb2065e5b5fdd2f37ede96f7533a6c3c0bf9f148
[ "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
24,992
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, Sébastien Gouëzel, Yury Kudryashov -/ import dynamics.ergodic.measure_preserving import linear_algebra.determinant import linear_algebra.matrix.diagonal import linear_a...
583e71ac8f35617f0da0f2f66dd3123bb54202b1
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/topology/separation_auto.lean
c2e035a9cc4f5fae8f30a5dc9596a848dfb59e14
[]
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
22,470
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 Separation properties of topological spaces. -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.topology.subset_properties im...
ff523f87b2018685fab15297afbbaa05d017cb99
271e26e338b0c14544a889c31c30b39c989f2e0f
/tests/lean/run/meta2.lean
6c8b4818711c1e2a454da14d374bc417b81de031
[ "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
9,716
lean
import Init.Lean.Meta open Lean open Lean.Meta set_option trace.Meta true set_option trace.Meta.isDefEq.step false set_option trace.Meta.isDefEq.delta false set_option trace.Meta.isDefEq.assign false def print (msg : MessageData) : MetaM Unit := trace! `Meta.debug msg def check (x : MetaM Bool) : MetaM Unit := unles...
8b4bea72768e0d18c1decd5b9abfeaca1058152b
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/algebra/order/group/order_iso.lean
c82dca13aad5e39c7c242c4446c62077807a21b8
[ "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,220
lean
/- Copyright (c) 2016 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl -/ import algebra.order.group.defs import algebra.hom.equiv.units.basic /-! # Inverse and multiplication as order isomo...
531c51ce2ffa8ba01cd9ad7bca43d7ebe7fb4064
432d948a4d3d242fdfb44b81c9e1b1baacd58617
/src/algebra/ordered_ring.lean
cae9681968eb52df3cd659e8912c948be0225a28
[ "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
51,320
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 -/ import algebra.ordered_group import algebra.invertible import data.set.intervals.basic set_option old_structure_cmd true universe u...
0391fc5c7364141420949f05d5125714a499cc08
93b17e1ec33b7fd9fb0d8f958cdc9f2214b131a2
/src/sep/localization.lean
c53b6cd0721773665505f771902119c156b5cc46
[]
no_license
intoverflow/timesink
93f8535cd504bc128ba1b57ce1eda4efc74e5136
c25be4a2edb866ad0a9a87ee79e209afad6ab303
refs/heads/master
1,620,033,920,087
1,524,995,105,000
1,524,995,105,000
120,576,102
1
0
null
null
null
null
UTF-8
Lean
false
false
18,661
lean
/- Localization - -/ import .basic import .ordalg namespace Sep universes ℓ namespace Localization inductive locl_step {A : Alg.{ℓ}} (S : Set A) : Rel A A | refl : ∀ x, locl_step x x | join : ∀ {x y s : A.τ} (Hs : s ∈ S) (J : A.join s x y) , locl_step x y def locl_step.increasing {A : Alg.{...
db3b7b66e6951db5c2bf15f2e1ced1719f1c26be
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/algebra/regular/smul.lean
b79b53161f311977a19d3b3dea3b640ccd9b7fb4
[ "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
7,515
lean
/- Copyright (c) 2021 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Damiano Testa -/ import algebra.smul_with_zero import algebra.regular.basic /-! # Action of regular elements on a module We introduce `M`-regular elements, in the context of an `R`-mod...
05b981c3de02e464231d4bc9f163214453a9ec48
592ee40978ac7604005a4e0d35bbc4b467389241
/Library/generated/mathscheme-lean/QuasiGroup.lean
09c69c5e57f47aff459678340178c900c9adfa48
[]
no_license
ysharoda/Deriving-Definitions
3e149e6641fae440badd35ac110a0bd705a49ad2
dfecb27572022de3d4aa702cae8db19957523a59
refs/heads/master
1,679,127,857,700
1,615,939,007,000
1,615,939,007,000
229,785,731
4
0
null
null
null
null
UTF-8
Lean
false
false
11,573
lean
import init.data.nat.basic import init.data.fin.basic import data.vector import .Prelude open Staged open nat open fin open vector section QuasiGroup structure QuasiGroup (A : Type) : Type := (op : (A → (A → A))) (linv : (A → (A → A))) (leftCancel : (∀ {x y : A} , (op x (linv x y)) = y)) ...
40149b66da361dc5bf5ad0299ddb338f1adf63ef
205f0fc16279a69ea36e9fd158e3a97b06834ce2
/src/03_Conjunction/quiz1.lean
3e40b620b6711516d4c18c224743c02899fa3f3e
[]
no_license
kevinsullivan/cs-dm-lean
b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124
a06a94e98be77170ca1df486c8189338b16cf6c6
refs/heads/master
1,585,948,743,595
1,544,339,346,000
1,544,339,346,000
155,570,767
1
3
null
1,541,540,372,000
1,540,995,993,000
Lean
UTF-8
Lean
false
false
563
lean
/- Prove that from a proof of (P ∧ Q) ∧ R you can derive a proof of P ∧ (Q ∧ R). Note that ∧ is right-associative. This means that P ∧ Q ∧ R is defined to mean P ∧ (Q ∧ R). Note: we changed the name of the premise/argument. It was pfP_QR. A better name, which we use here, is pfPQ_R. To do this quiz, replace the "so...
18e92ba067995a7b1bf370db81f9da5813d15a94
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/meta_aux_defs.lean
7427e2882202b9c6769180ef59f535dbb09cae7a
[ "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
1,296
lean
def f : nat → nat | 0 := 1 | (n+1) := f n + 10 #print f._main._meta_aux #print nat.add._main._meta_aux -- set_option trace.debug.eqn_compiler.wf_rec true mutual def even, odd with even : nat → bool | 0 := tt | (n+1) := odd n with odd : nat → bool | 0 := ff | (n+1) := even n #print even._main #print eve...
46f8b8632a93defc2b458c4be0dd84ec069f2d52
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/order/prop_instances.lean
bce4033a2e8e6137c233b5c0e500e1f988b76f04
[ "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,835
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl -/ import order.disjoint import order.with_bot /-! # The order on `Prop` > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresponding...
fbb0b872046ba9d7fd00ef7e45148231271d1fed
c6da0300d417abe3464e750ab51a63502b93acfa
/test/auto_test.lean
f22846f55083a925cbb81f9209173ce21b3fc995
[ "Apache-2.0" ]
permissive
uwplse/struct_tact
55bc1d260fac498cff83a4d71461041f8ed74bd6
22188ea2e97705d1185f75dde24e6bab88054ab0
refs/heads/master
1,630,670,592,496
1,515,453,299,000
1,515,453,299,000
104,603,771
0
0
null
null
null
null
UTF-8
Lean
false
false
144
lean
import ..src.struct_tact @[auto] inductive rel : nat → Type | a : rel 0 | b : rel 1 | c : rel 2 lemma test_1 : rel 2 := begin auto, end
e4bc2021d1eb2a9ebc40ea0f0790a4d009980c21
159fed64bfae88f3b6a6166836d6278f953bcbf9
/Structure.lean
d0dc0c67b118f1cd30626cd66e581b478a805621
[ "MIT" ]
permissive
SReichelt/lean4-experiments
3e56830c8b2fbe3814eda071c48e3c8810d254a8
ff55357a01a34a91bf670d712637480089085ee4
refs/heads/main
1,683,977,454,907
1,622,991,121,000
1,622,991,121,000
340,765,677
2
0
null
null
null
null
UTF-8
Lean
false
false
357
lean
-- An abstract formalization of "isomorphism is equality up to relabeling" -- ------------------------------------------------------------------------- -- -- See `README.md` for more info. import Structure.Basic import Structure.ProductStructure import Structure.FunctorStructure import Structure.AbstractPiSigma imp...
22a7641e51b635f57f223bdc93e9384a95f093b7
38bf3fd2bb651ab70511408fcf70e2029e2ba310
/src/number_theory/pell.lean
9905a587a8bfbeac8ad3aa86df76eb59f34290dd
[ "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
37,007
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import data.nat.modeq data.zsqrtd.basic tactic.ring namespace pell open nat section parameters {a : ℕ} (a1 : a > 1) include a1 private def d := a*a - 1 @[...
39dc3fa8cef9b2c86efa7736c3e5c416d9fd6b64
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/ring_theory/ideal/basic.lean
21f966e5aafedf9fc7a95bc44332f48509b7593e
[ "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
26,768
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Mario Carneiro -/ import algebra.associated import linear_algebra.basic import order.atoms import order.compactly_generated import tactic.abel import data.nat.choos...
1611f2bbd8866dbffec4b1d336e89c3458568ca4
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/tactic/ext_auto.lean
f81f29b6966144731539d9e03aae964786a191f7
[]
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,569
lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon, Jesse Michael Han -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.tactic.rcases import Mathlib.data.sum import Mathlib.logic.function.basic impo...
a5bfb85d8197dee5eb95cafd8251257946f61297
e00ea76a720126cf9f6d732ad6216b5b824d20a7
/src/set_theory/ordinal.lean
f778e300d8d373245a0b3276f2fdc217766ffe53
[ "Apache-2.0" ]
permissive
vaibhavkarve/mathlib
a574aaf68c0a431a47fa82ce0637f0f769826bfe
17f8340912468f49bdc30acdb9a9fa02eeb0473a
refs/heads/master
1,621,263,802,637
1,585,399,588,000
1,585,399,588,000
250,833,447
0
0
Apache-2.0
1,585,410,341,000
1,585,410,341,000
null
UTF-8
Lean
false
false
138,339
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro Ordinal arithmetic. Ordinals are defined as equivalences of well-ordered sets by order isomorphism. -/ import order.order_iso set_theory.cardinal data.sum noncomputable...
469e5df31af4dc088bacdc6e53cd8295a6e4b698
3dd1b66af77106badae6edb1c4dea91a146ead30
/tests/lean/calc1.lean
7dabac10dab4b324230b7435d19475d5d63c5bd0
[ "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
1,571
lean
variable A : Type.{1} definition bool [inline] : Type.{1} := Type.{0} variable eq : A → A → bool infixl `=`:50 := eq axiom subst (P : A → bool) (a b : A) (H1 : a = b) (H2 : P a) : P b axiom eq_trans (a b c : A) (H1 : a = b) (H2 : b = c) : a = c axiom eq_refl (a : A) : a = a variable le : A → A → bool infixl `≤`:50 := l...
b3b03e44ede4332a684dd6092ca8d49ac5bc2275
f3849be5d845a1cb97680f0bbbe03b85518312f0
/library/init/algebra/ordered_field.lean
ce97e4033db74968db1ed842dfda8675cf4bc8ca
[ "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
19,350
lean
/- Copyright (c) 2014 Robert Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Lewis, Leonardo de Moura -/ prelude import init.algebra.ordered_ring init.algebra.field set_option old_structure_cmd true universe u class linear_ordered_field (α : Type u) ext...
49acf231359eca574828657f8537b8543bbf6627
8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3
/src/data/list/of_fn.lean
a90d4791a9c1aa2971c8add0f29c4ab34a99b967
[ "Apache-2.0" ]
permissive
troyjlee/mathlib
e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5
45e7eb8447555247246e3fe91c87066506c14875
refs/heads/master
1,689,248,035,046
1,629,470,528,000
1,629,470,528,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,390
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import data.list.basic import data.fin universes u variables {α : Type u} open nat namespace list /- of_fn -/ theorem length_of_fn_aux {n} (f : fin n → α) : ∀ ...
e809108a86e1372bd08865ab32b1704373cfa658
9dc8cecdf3c4634764a18254e94d43da07142918
/src/data/sum/basic.lean
0a87ab90201963ad50e07908a6b31f3bef5252b9
[ "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
15,803
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Yury G. Kudryashov -/ import data.option.basic /-! # Disjoint union of types This file proves basic results about the sum type `α ⊕ β`. `α ⊕ β` is the type made of a...
9e9aa8e8b8641fa85e85cc57fe0e2aea1e4b0e1a
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/algebra/homology/image_to_kernel.lean
8124ba044810e644b70527e8697680cb855a3053
[ "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
9,405
lean
/- Copyright (c) 2021 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import category_theory.subobject.limits /-! # Image-to-kernel comparison maps Whenever `f : A ⟶ B` and `g : B ⟶ C` satisfy `w : f ≫ g = 0`, we have `image_le_kernel...
99971bec48032780a546c7d01c6e012f7481ee75
65b579fba1b0b66add04cccd4529add645eff597
/lambda/pure/src/types.lean
ce30062db604db4df0cda07165841dafc9a953c8
[]
no_license
teodorov/sf_lean
ba637ca8ecc538aece4d02c8442d03ef713485db
cd4832d6bee9c606014c977951f6aebc4c8d611b
refs/heads/master
1,632,890,232,054
1,543,005,745,000
1,543,005,745,000
108,566,115
1
0
null
null
null
null
UTF-8
Lean
false
false
3,076
lean
namespace lambda_types inductive term : Type | var : string → term | abstraction : string → term → term | application : term → term → term open term def multi_abstraction (names: list string) (body: term): term := list.foldr abstraction body names def currying (body: term) (values: list term): term := list....
9c73ab752774d6423dc926a8831c0f9efcea77fd
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/data/set/intervals/basic.lean
835df1f86ddede99fa5893798bd2d6ea99a0f4a9
[ "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
50,531
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, Yury Kudryashov, Rémy Degenne -/ import algebra.ordered_group import data.set.basic /-! # Intervals In any preorder `α`, we define int...
c05255ca225700db2fcd451e6794d8d03ccf0de3
28be2ab6091504b6ba250b367205fb94d50ab284
/levels/solutions/world2_multiplication.lean
6e8e245ffa7fe6cf6074f303c7c2e35fd494f6f1
[ "Apache-2.0" ]
permissive
postmasters/natural_number_game
87304ac22e5e1c5ac2382d6e523d6914dd67a92d
38a7adcdfdb18c49c87b37831736c8f15300d821
refs/heads/master
1,649,856,819,031
1,586,444,676,000
1,586,444,676,000
255,006,061
0
0
Apache-2.0
1,586,664,599,000
1,586,664,598,000
null
UTF-8
Lean
false
false
5,688
lean
import solutions.world1_addition import mynat.mul /- Here's what you get from the import: 1) The following data: * a function called mynat.mul, and notation a * b for this function 2) The following axioms: * `mul_zero : ∀ a : mynat, a * 0 = 0` * `mul_succ : ∀ a b : mynat, a * succ(b) = a * b + a` These axio...
1c893d45f07bc0f695ada88a3af820b5c8f29ea2
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/order/lattice_intervals.lean
e8ab7b211242d969596eb10dcea4d0e9847f1f75
[]
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
10,835
lean
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Aaron Anderson. -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.order.bounded_lattice import Mathlib.data.set.intervals.basic import Mathlib.PostPort uni...
177d175d4803b19bf3a095ac280fa9d582a1580a
9dc8cecdf3c4634764a18254e94d43da07142918
/src/linear_algebra/matrix/bilinear_form.lean
26506c84985c9e42dc7752f9963f6b8d8c348ec5
[ "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
24,005
lean
/- Copyright (c) 2020 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen, Kexing Ying -/ import linear_algebra.matrix.basis import linear_algebra.matrix.nondegenerate import linear_algebra.matrix.nonsingular_inverse import linear_algebra.matrix.to...
1b8d2e93d44cfd8fd2db7034076345f158b98be8
92b50235facfbc08dfe7f334827d47281471333b
/hott/types/cubical/cube.hlean
c243a776ce620e9cc3c0628174e8ea2cb9725a68
[ "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
2,897
hlean
/- Copyright (c) 2015 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Floris van Doorn Cubes -/ import .square open equiv is_equiv namespace eq inductive cube {A : Type} {a₀₀₀ : A} : Π{a₂₀₀ a₀₂₀ a₂₂₀ a₀₀₂ a₂₀₂ a₀₂₂ a₂₂₂ : A} {p₁₀₀ : a₀...
cc7800794d4715865c118ad321761f1ac87219b6
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/tactic/group.lean
e9603a022658f9bb177bd1c38e8ae6b1346f6e7e
[ "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,945
lean
/- Copyright (c) 2020. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot -/ import tactic.ring import tactic.doc_commands import algebra.group.commutator /-! # `group` > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresp...
2972ea3f4c35544fd016a3d2540aaf95a86b6786
c3f2fcd060adfa2ca29f924839d2d925e8f2c685
/library/data/default.lean
634a884933ad01538bde7e384143a7f9138bd8b4
[ "Apache-2.0" ]
permissive
respu/lean
6582d19a2f2838a28ecd2b3c6f81c32d07b5341d
8c76419c60b63d0d9f7bc04ebb0b99812d0ec654
refs/heads/master
1,610,882,451,231
1,427,747,084,000
1,427,747,429,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
278
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 .empty .unit .bool .num .string .nat .int import .prod .sum .sigma .option .subtype .quotient .list .set
82464413e4fe72530834ac799d998edfadfcae23
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/analysis/calculus/times_cont_diff.lean
afad303df37cc20e6aff661dd907f4a5673cffcf
[ "Apache-2.0" ]
permissive
waynemunro/mathlib
e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552
065a70810b5480d584033f7bbf8e0409480c2118
refs/heads/master
1,693,417,182,397
1,634,644,781,000
1,634,644,781,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
143,119
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.calculus.mean_value import analysis.normed_space.multilinear import analysis.calculus.formal_multilinear_series /-! # Higher differentiability ...
db1f6d3fa053be7c5894a5b824cab8d98097b0d6
82e44445c70db0f03e30d7be725775f122d72f3e
/src/data/set/intervals/basic.lean
0c3abcffa9972b0cbf5fbe1faf1f7f075e4c25ac
[ "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
52,537
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, Yury Kudryashov, Rémy Degenne -/ import algebra.ordered_group import data.set.basic import order.rel_iso /-! # Intervals In any preord...