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
a6bbcd901139579f203cd2f563889af5bb91f91e
fc086f79b20cf002d6f34b023749998408e94fbf
/test/forwards_reasoning.lean
5d9602577878daaca0037abb00195b1f6c62148a
[]
no_license
semorrison/lean-tidy
f039460136b898fb282f75efedd92f2d5c5d90f8
6c1d46de6cff05e1c2c4c9692af812bca3e13b6c
refs/heads/master
1,624,461,332,392
1,559,655,744,000
1,559,655,744,000
96,569,994
9
4
null
1,538,287,895,000
1,499,455,306,000
Lean
UTF-8
Lean
false
false
981
lean
import tidy.forwards_reasoning lemma G (n : ℕ) : list ℕ := [n] lemma F : ℕ := 0 section local attribute [forward] G example : 1 = 1 := begin success_if_fail { forwards_library_reasoning }, refl end local attribute [forward] F example : 1 = 1 := begin forwards_library_reasoning, forwards_library_reasoning,...
eed0cced1a0ad6e2abefbd72acc3ca48bd0eada9
9d2e3d5a2e2342a283affd97eead310c3b528a24
/src/solutions/thursday/afternoon/category_theory/exercise9.lean
3d9e0a61568bcead0222574cf1ab26f626dafefc
[]
permissive
Vtec234/lftcm2020
ad2610ab614beefe44acc5622bb4a7fff9a5ea46
bbbd4c8162f8c2ef602300ab8fdeca231886375d
refs/heads/master
1,668,808,098,623
1,594,989,081,000
1,594,990,079,000
280,423,039
0
0
MIT
1,594,990,209,000
1,594,990,209,000
null
UTF-8
Lean
false
false
2,683
lean
import category_theory.limits.shapes.biproducts /-! Let's show that every preadditive category embeds into a preadditive category with biproducts, and identify a good universal property. This is a more advanced exercise, for which I've indicated a suggested structure, but not written a full solution. I hope this stru...
39a3e19c3a077e62010294ea0d770bebd6359fa1
7cef822f3b952965621309e88eadf618da0c8ae9
/src/category/functor.lean
c3f703c91e6150b91b0bafda53283b0650ea912a
[ "Apache-2.0" ]
permissive
rmitta/mathlib
8d90aee30b4db2b013e01f62c33f297d7e64a43d
883d974b608845bad30ae19e27e33c285200bf84
refs/heads/master
1,585,776,832,544
1,576,874,096,000
1,576,874,096,000
153,663,165
0
2
Apache-2.0
1,544,806,490,000
1,539,884,365,000
Lean
UTF-8
Lean
false
false
4,290
lean
/- Copyright (c) 2017 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Simon Hudon Standard identity and composition functors -/ import tactic.ext tactic.lint category.basic universe variables u v w section functor variables {F : Type u → Type v} variable...
e8432e18d55efd5014dd0912088ee5a9d8f40044
9dc8cecdf3c4634764a18254e94d43da07142918
/src/combinatorics/simple_graph/coloring.lean
9440e95fe8aa370543e6f75cbbae0accade3fc64
[ "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,554
lean
/- Copyright (c) 2021 Arthur Paulino. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Arthur Paulino, Kyle Miller -/ import combinatorics.simple_graph.subgraph import combinatorics.simple_graph.clique import data.nat.lattice import data.setoid.partition import order.an...
f2040f5ce39f8fac72fd92ee3cad642cb64e1d92
b1e80085f6d9158c0b431ffc4fa9d0d53cbac8e4
/src/contract.lean
9fe36b27900bed5394fba6ef623345bfb5665cf3
[]
no_license
dwarn/nielsen-schreier-2
d73c20e4d2a8ae537fe4f8063272d0b72c58276a
e51a8c6511d374dc584698c7fa236a5be47e7dbe
refs/heads/master
1,679,911,740,113
1,615,656,058,000
1,615,656,058,000
344,111,212
1
0
null
null
null
null
UTF-8
Lean
false
false
4,706
lean
import free quiver misc open_locale classical open category_theory is_free_groupoid universe u variables {G : Type u} [groupoid.{u u} G] [is_free_groupoid G] [inhabited G] (T : subquiver (symmy gpd_gens : quiver G)) def path_to_hom : Π {a : G}, (¡T).path (default G) a → ((default G) ⟶ a) | _ quiver.path.nil := 𝟙...
735f90a14bb2fb6fb3f281b2b499fabe8c495f5c
77c5b91fae1b966ddd1db969ba37b6f0e4901e88
/src/group_theory/p_group.lean
9b5777106bacb3909f112b370825132c94e4f012
[ "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
9,495
lean
/- Copyright (c) 2018 . All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Thomas Browning -/ import group_theory.index import group_theory.perm.cycle_type import group_theory.quotient_group /-! # p-groups This file contains a proof that if `G` is a `p`-gr...
2ccf694b7e64c8e31d7970435fb771f7115b00ad
94e33a31faa76775069b071adea97e86e218a8ee
/src/topology/connected.lean
8e4c4755dfecf5415b6b5e31d07d4f009fe12391
[ "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
62,487
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov -/ import data.int.succ_pred import data.nat.succ_pred import order.partial_sups import order.succ_pred.relation import topology.subset_...
c3af9da30603ea1703152a7756dc3c0aa6cd91e4
d9d511f37a523cd7659d6f573f990e2a0af93c6f
/src/data/set/intervals/unordered_interval.lean
0109a9b3352001057106e926faaf131d2f6e52bd
[ "Apache-2.0" ]
permissive
hikari0108/mathlib
b7ea2b7350497ab1a0b87a09d093ecc025a50dfa
a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901
refs/heads/master
1,690,483,608,260
1,631,541,580,000
1,631,541,580,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
8,911
lean
/- Copyright (c) 2020 Zhouhang Zhou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Zhouhang Zhou -/ import order.bounds import data.set.intervals.image_preimage /-! # Intervals without endpoints ordering In any decidable linear order `α`, we define the set of elemen...
96cd12b1e957e15cd1613bf75e6e91de6732334a
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/ring_theory/graded_algebra/basic.lean
9d837835353784875b481dcd69b35c6f477be7ef
[ "Apache-2.0" ]
permissive
ramonfmir/mathlib
c5dc8b33155473fab97c38bd3aa6723dc289beaa
14c52e990c17f5a00c0cc9e09847af16fabbed25
refs/heads/master
1,661,979,343,526
1,660,830,384,000
1,660,830,384,000
182,072,989
0
0
null
1,555,585,876,000
1,555,585,876,000
null
UTF-8
Lean
false
false
11,676
lean
/- Copyright (c) 2021 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser, Kevin Buzzard, Jujian Zhang -/ import algebra.direct_sum.algebra import algebra.direct_sum.decomposition import algebra.direct_sum.internal import algebra.direct_sum.ring imp...
c1b9472284f1265a888f149a61b7d1bd8a9d54c3
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/field_theory/perfect_closure.lean
8df3d17a41cb3024acdfdaa57369fb6ac8a6fe0a
[ "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
17,396
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Yury Kudryashov -/ import algebra.char_p.basic import data.equiv.ring import algebra.group_with_zero.power import algebra.iterate_hom /-! # The perfect closure of a field -/ un...
9dc3fa156b4372ccbaac1ebd2ef6637c9c144dbf
aa2345b30d710f7e75f13157a35845ee6d48c017
/data/real/ennreal.lean
f174106c8bbcf6bc9855823ebab3c1b3f92f6e3f
[ "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
16,557
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 Extended non-negative reals -/ import data.real.nnreal order.bounds noncomputable theory open classical set lattice local attribute [instance] prop_decidable variables ...
958d8d9627a3db2d25228c7e448fb2a2f0517c93
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/opposite.lean
f74f353803b89439613d92ccba2b2a6cb2447fce
[ "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
4,729
lean
/- Copyright (c) 2018 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Reid Barton, Simon Hudon, Kenny Lau -/ import logic.equiv.defs /-! # Opposites > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresp...
c08d865ea372d86ac2c8b2483d13305ea525d99c
01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab
/categories/adjunctions/examples/fixed_points.lean
7b4dbf340d2c332c0db335de79ad84a1f042251e
[]
no_license
PatrickMassot/lean-category-theory
0f56a83464396a253c28a42dece16c93baf8ad74
ef239978e91f2e1c3b8e88b6e9c64c155dc56c99
refs/heads/master
1,629,739,187,316
1,512,422,659,000
1,512,422,659,000
113,098,786
0
0
null
1,512,424,022,000
1,512,424,022,000
null
UTF-8
Lean
false
false
1,028
lean
-- Copyright (c) 2017 Scott Morrison. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Authors: Scott Morrison import ...adjunctions import ...full_subcategory open categories open categories.functor open categories.natural_transformation open categories.products open cat...
1bdd14b18a511b507d78fdfb31005f03fa03d170
07c76fbd96ea1786cc6392fa834be62643cea420
/hott/hit/coeq.hlean
4fee13f54d4e3b197264fa9ce63195978ff514ab
[ "Apache-2.0" ]
permissive
fpvandoorn/lean2
5a430a153b570bf70dc8526d06f18fc000a60ad9
0889cf65b7b3cebfb8831b8731d89c2453dd1e9f
refs/heads/master
1,592,036,508,364
1,545,093,958,000
1,545,093,958,000
75,436,854
0
0
null
1,480,718,780,000
1,480,718,780,000
null
UTF-8
Lean
false
false
5,141
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 coequalizer -/ import types.equiv .quotient open quotient eq equiv is_trunc sigma sigma.ops namespace coeq section universe u parameters {A B...
3567e39717b097bc85b0259576eb35f6af9cc72c
30b012bb72d640ec30c8fdd4c45fdfa67beb012c
/tactic/auto_cases.lean
d0da24af416a92db360854e76c83d1df394aa034
[ "Apache-2.0" ]
permissive
kckennylau/mathlib
21fb810b701b10d6606d9002a4004f7672262e83
47b3477e20ffb5a06588dd3abb01fe0fe3205646
refs/heads/master
1,634,976,409,281
1,542,042,832,000
1,542,319,733,000
109,560,458
0
0
Apache-2.0
1,542,369,208,000
1,509,867,494,000
Lean
UTF-8
Lean
false
false
1,642
lean
-- Copyright (c) 2017 Scott Morrison. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Authors: Scott Morrison import logic.basic import tactic.basic import data.option open tactic meta def auto_cases_at (h : expr) : tactic string := do t' ← infer_type h, t' ← whnf t',...
7ce3337a3cb8cd2eaac1d77a65fe1f016e440252
3bdd27ffdff3ffa22d4bb010eba695afcc96bc4a
/src/combinatorics/simplicial_complex/exposed.lean
f506924aa2047cf1bf631486d8d47d8583393d72
[]
no_license
mmasdeu/brouwerfixedpoint
684d712c982c6a8b258b4e2c6b2eab923f2f1289
548270f79ecf12d7e20a256806ccb9fcf57b87e2
refs/heads/main
1,690,539,793,996
1,631,801,831,000
1,631,801,831,000
368,139,809
4
3
null
1,624,453,250,000
1,621,246,034,000
Lean
UTF-8
Lean
false
false
3,119
lean
/- Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Bhavik Mehta -/ import analysis.convex.exposed import combinatorics.simplicial_complex.extreme open_locale classical affine big_operators open set --TODO: Ge...
c84caa1c4e20946501e986eafa8df995c2844fd2
137c667471a40116a7afd7261f030b30180468c2
/src/topology/instances/nnreal.lean
70afafc88ce77ac1e0c41a7b2a2a58ab58a3c3df
[ "Apache-2.0" ]
permissive
bragadeesh153/mathlib
46bf814cfb1eecb34b5d1549b9117dc60f657792
b577bb2cd1f96eb47031878256856020b76f73cd
refs/heads/master
1,687,435,188,334
1,626,384,207,000
1,626,384,207,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
7,552
lean
/- Copyright (c) 2018 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import topology.algebra.infinite_sum import topology.algebra.group_with_zero /-! # Topology on `ℝ≥0` The natural topology on `ℝ≥0` (the one induced from `ℝ`), and a...
d66dc53fafe375bfc6751c729027b39576a9e2e5
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/tactic/reserved_notation.lean
c1acfa18f34d12796c3718990a5a2565195607b2
[ "Apache-2.0" ]
permissive
jjgarzella/mathlib
96a345378c4e0bf26cf604aed84f90329e4896a2
395d8716c3ad03747059d482090e2bb97db612c8
refs/heads/master
1,686,480,124,379
1,625,163,323,000
1,625,163,323,000
281,190,421
2
0
Apache-2.0
1,595,268,170,000
1,595,268,169,000
null
UTF-8
Lean
false
false
1,354
lean
/- Copyright (c) 2020 Bryan Gin-ge Chen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bryan Gin-ge Chen -/ /-! # Reserved notation This file is imported by `logic.basic` and `logic.relator` to place it at the top of the import graph. We place all of `mathlib`'s re...
07be9c54ff76de71711bbbe1b0f9d57e3a9bbf4c
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/rewriter3.lean
cdb82749f99fc390cfd9783f87c7acdb475bc3f0
[ "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
487
lean
import data.nat open algebra constant f {A : Type} : A → A → A theorem test1 {A : Type} [s : comm_ring A] (a b c : A) (H : a + 0 = 0) : f a a = f 0 0 := begin rewrite add_zero at H, rewrite H end theorem test2 {A : Type} [s : comm_ring A] (a b c : A) (H : a + 0 = 0) : f a a = f 0 0 := begin rewrite [add_zero a...
ef6f0497c61cf6c673b51dc731c0363b085e4cb5
7007bb645068e0b6b859aab9da7cf5c1c79e98be
/library/init/data/set.lean
d7c24e0025c5c3268fdffd468cf73cbcd1af233b
[ "Apache-2.0" ]
permissive
EdAyers/lean
7d3fb852380bc386545ebc119b7d03c128c3ce1c
be72c8dc527a062e243a408480f487a55b06cb0a
refs/heads/master
1,624,443,179,694
1,592,837,958,000
1,592,837,958,000
154,972,348
0
0
Apache-2.0
1,557,768,267,000
1,540,649,772,000
C++
UTF-8
Lean
false
false
2,336
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.interactive import init.control.lawful universes u v def set (α : Type u) := α → Prop def set_of {α : Type u} (p : α → Prop) : se...
44a8c4c68510164deb5b881141041788a7c5cb74
7cef822f3b952965621309e88eadf618da0c8ae9
/src/data/equiv/list.lean
7c3ddc70bccee2de3987f7fc490a881b5c05205e
[ "Apache-2.0" ]
permissive
rmitta/mathlib
8d90aee30b4db2b013e01f62c33f297d7e64a43d
883d974b608845bad30ae19e27e33c285200bf84
refs/heads/master
1,585,776,832,544
1,576,874,096,000
1,576,874,096,000
153,663,165
0
2
Apache-2.0
1,544,806,490,000
1,539,884,365,000
Lean
UTF-8
Lean
false
false
9,197
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro Additional equiv and encodable instances for lists and finsets. -/ import data.equiv.denumerable data.nat.pairing order.order_iso data.array.lemmas data.fintype open ...
0901afceb096bc5ce552952154ee2a4f4acfe124
4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1
/src/for_mathlib/boolean_subalgebra.lean
678764f92b3d4635e359710e0b8ba3fe9728dd0d
[]
no_license
rwbarton/lean-omin
da209ed061d64db65a8f7f71f198064986f30eb9
fd733c6d95ef6f4743aae97de5e15df79877c00e
refs/heads/master
1,674,408,673,325
1,607,343,535,000
1,607,343,535,000
285,150,399
9
0
null
null
null
null
UTF-8
Lean
false
false
2,712
lean
import order.boolean_algebra import for_mathlib.closure variables {B : Type*} [boolean_algebra B] -- Main example of interest: B = set α, or a boolean subalgebra. -- Other descriptions are possible (the dual one using ⊤ and ⊓, for a start); -- we could provide alternate constructors for these. structure is_boolean_su...
e13666865148812fb24edd4ec760f60a8181aaa9
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/measure_theory/function/special_functions.lean
a98bc5f9a6224ee9afec6fc3416b7f4f738336f6
[ "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,534
lean
/- Copyright (c) 2020 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import analysis.special_functions.pow import analysis.special_functions.trigonometric.arctan import analysis.inner_product_space.basic import measure_theory.constr...
30c0e4b82af2029355a3481bd0a5430084c2542c
e151e9053bfd6d71740066474fc500a087837323
/src/hott/init/path.lean
7f9f454b3c325d87d7f8c01246ecfa717fc2fa5a
[ "Apache-2.0" ]
permissive
daniel-carranza/hott3
15bac2d90589dbb952ef15e74b2837722491963d
913811e8a1371d3a5751d7d32ff9dec8aa6815d9
refs/heads/master
1,610,091,349,670
1,596,222,336,000
1,596,222,336,000
241,957,822
0
0
Apache-2.0
1,582,222,839,000
1,582,222,838,000
null
UTF-8
Lean
false
false
33,462
lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Jakob von Raumer, Floris van Doorn Ported from Coq HoTT -/ import .meta.support .meta.simp_attr .meta.induction .path0 universes u v w hott_theory namespace ho...
1fa525deaec3121ae5e08151f61d816d6a27b01b
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/order/succ_pred/limit.lean
295cf5ed677a1783a576a4c66dca305806b1fbe7
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
11,395
lean
/- Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Violeta Hernández Palacios -/ import order.succ_pred.basic /-! # Successor and predecessor limits > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file r...
7c26c1bec20328ba633a76b27976ab3127d8065b
ce89339993655da64b6ccb555c837ce6c10f9ef4
/ukikagi/top39-2.lean
e391c59a1a59a48c6ac77c5fff67f73c1c2f3034
[]
no_license
zeptometer/LearnLean
ef32dc36a22119f18d843f548d0bb42f907bff5d
bb84d5dbe521127ba134d4dbf9559b294a80b9f7
refs/heads/master
1,625,710,824,322
1,601,382,570,000
1,601,382,570,000
195,228,870
2
0
null
null
null
null
UTF-8
Lean
false
false
329
lean
example: (∀ P Q R, (P ↔ Q) ∨ (Q ↔ R) ∨ (R ↔ P)) → ∀ P, P ∨ ¬P := begin intros h P, cases h true false P with h1 h23, exfalso, apply h1.1, trivial, cases h23 with h2 h3, right, exact h2.2, -- case h3 left, apply h3.2, trivial, end
dac69e0cc8ee86ee2637edf51afa727bac25e6f5
4efff1f47634ff19e2f786deadd394270a59ecd2
/src/category_theory/monoidal/functor.lean
bf621d01dccc0ffe6806884fe6d3a8b18182caed
[ "Apache-2.0" ]
permissive
agjftucker/mathlib
d634cd0d5256b6325e3c55bb7fb2403548371707
87fe50de17b00af533f72a102d0adefe4a2285e8
refs/heads/master
1,625,378,131,941
1,599,166,526,000
1,599,166,526,000
160,748,509
0
0
Apache-2.0
1,544,141,789,000
1,544,141,789,000
null
UTF-8
Lean
false
false
7,135
lean
/- Copyright (c) 2018 Michael Jendrusch. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Michael Jendrusch, Scott Morrison -/ import category_theory.monoidal.category open category_theory universes v₁ v₂ v₃ u₁ u₂ u₃ open category_theory.category open category_theory....
7b23182d48f2fa3211ee919357b7ea80a87fb1f7
fbf512ee44de430e3d3c5869751ad95325c938d7
/form.lean
367c154ae8e84c78f74633f3d96421d7a4621ec0
[]
no_license
skbaek/clausify
4858c9005fb86a5e410bfcaa77524f82d955f655
d09b071bdcce7577c3fffacd0893b776285b1590
refs/heads/master
1,588,360,590,818
1,553,553,880,000
1,553,553,880,000
177,644,542
0
0
null
null
null
null
UTF-8
Lean
false
false
6,386
lean
import .term tactic.basic .list .arity .tactic .logic .nat open tactic variables {α β : Type} @[derive has_reflect] inductive form : Type | false : form | true : form | prd : nat → list term → form | not : form → form | or : form → form → form | and : form → form → form | fa : form → form | ex : form → form ...
afae3bf16a69265f8e11d028f0905415df4e0af3
9dc8cecdf3c4634764a18254e94d43da07142918
/src/category_theory/essentially_small.lean
9e43ff04afaeac421e4c25e0a9776a5f6f730d22
[ "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
7,541
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 logic.small import category_theory.category.ulift import category_theory.skeletal /-! # Essentially small categories. A category given by `(C : Type u) [cate...
0bfac6738fb86d499ea10aae958573af0950dadb
94e33a31faa76775069b071adea97e86e218a8ee
/src/analysis/convex/stone_separation.lean
982fa58bd1e8dcc38bc2ca665a57517e7231ad73
[ "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
5,108
lean
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import analysis.convex.join /-! # Stone's separation theorem This file prove Stone's separation theorem. This tells us that any two disjoint convex sets can be separate...
ac32aee48fffffc999833f92c2f0255f02e61047
e0f9ba56b7fedc16ef8697f6caeef5898b435143
/src/data/prod.lean
8b193adf68926a410ffec3bef0064d0b2659528e
[ "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
4,096
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 tactic.ext /-! # Extra facts about `prod` This file defines `prod.swap : α × β → β × α` and proves various simple lemmas about `prod`. -/ variables {α : Typ...
aa786ad9072ae504e7d74f5cc5d286cbce46fd34
3af272061d36e7f3f0521cceaa3a847ed4e03af9
/src/modular_forms.lean
937b578c3003f5c0faa9a6c83c6d81af32d8c68d
[]
no_license
semorrison/kbb
fdab0929d21dca880d835081814225a95f946187
229bd06e840bc7a7438b8fee6802a4f8024419e3
refs/heads/master
1,585,351,834,355
1,539,848,241,000
1,539,848,241,000
147,323,315
2
1
null
null
null
null
UTF-8
Lean
false
false
4,044
lean
import tactic.ring import group_theory.group_action import algebra.module import algebra.pi_instances import linear_algebra.subtype_module import .holomorphic_functions import .upper_half_space universes u v open complex local notation `ℍ` := upper_half_space def is_Petersson_weight_ (k : ℕ) := { f : ℍ → ℂ | ∀ M : ...
1845e9c7de52a0ef439ff79dc2867ed8373966c9
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/linear_algebra/affine_space/basic_auto.lean
2f38aa87b372501aabfdfb64b7b748c7336818dc
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
1,767
lean
/- Copyright (c) 2020 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Joseph Myers -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebra.add_torsor import Mathlib.PostPort namespace Mathlib /-! # Affine space In this file ...
1beadbe194b17f8645ed246783825c4356485757
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/topology/fiber_bundle/constructions.lean
4b3df9b72c90e655c360e23ceb43e24055f2818f
[ "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
16,737
lean
/- Copyright © 2022 Nicolò Cavalleri. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Nicolò Cavalleri, Sébastien Gouëzel, Heather Macbeth, Floris van Doorn -/ import topology.fiber_bundle.basic /-! # Standard constructions on fiber bundles This file contains several ...
542ce2695522c9645ad8dded2859193adbce7f3f
9dc8cecdf3c4634764a18254e94d43da07142918
/src/algebra/group_power/ring.lean
41b643ef7bf7faf51a71b2a36c274462f146fe65
[ "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
7,525
lean
/- Copyright (c) 2015 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Robert Y. Lewis -/ import algebra.group_power.basic import algebra.hom.ring /-! # Power operations on monoids with zero, semirings, and rings This file provides additio...
dad303298edbf0374917d6d6e17d76a594d7327c
d9d511f37a523cd7659d6f573f990e2a0af93c6f
/src/linear_algebra/bilinear_form.lean
69113f03fccfb03d28ba0fe844f5ec177b77607d
[ "Apache-2.0" ]
permissive
hikari0108/mathlib
b7ea2b7350497ab1a0b87a09d093ecc025a50dfa
a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901
refs/heads/master
1,690,483,608,260
1,631,541,580,000
1,631,541,580,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
66,599
lean
/- Copyright (c) 2018 Andreas Swerdlow. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andreas Swerdlow, Kexing Ying -/ import linear_algebra.dual import linear_algebra.matrix.basis import linear_algebra.matrix.nonsingular_inverse import linear_algebra.tensor_product ...
618f8b365c9b4a052d765c34c31040a52b441017
94e33a31faa76775069b071adea97e86e218a8ee
/src/category_theory/sites/left_exact.lean
6081c333e841b1daa3bfe44bf5f6c8149bf89af8
[ "Apache-2.0" ]
permissive
urkud/mathlib
eab80095e1b9f1513bfb7f25b4fa82fa4fd02989
6379d39e6b5b279df9715f8011369a301b634e41
refs/heads/master
1,658,425,342,662
1,658,078,703,000
1,658,078,703,000
186,910,338
0
0
Apache-2.0
1,568,512,083,000
1,557,958,709,000
Lean
UTF-8
Lean
false
false
10,101
lean
/- Copyright (c) 2021 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz -/ import category_theory.sites.sheafification import category_theory.sites.limits import category_theory.limits.functor_category import category_theory.limits.filtered_colimit_...
350eb5cef8b939d911066a8d02e6788d94562bc0
9dc8cecdf3c4634764a18254e94d43da07142918
/src/order/cover.lean
1c6491555929182acfe99f6d64bd5246726a4f12
[ "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
12,863
lean
/- Copyright (c) 2021 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Violeta Hernández Palacios, Grayson Burton, Floris van Doorn -/ import data.set.intervals.ord_connected /-! # The covering relation This file defines the covering relatio...
18a2adb92bce5c7d099b6275d3f21feb36741341
75c54c8946bb4203e0aaf196f918424a17b0de99
/src/reflect_test.lean
567c2838d395fb238f70674c6283d1f5fcc85494
[ "Apache-2.0" ]
permissive
urkud/flypitch
261e2a45f1038130178575406df8aea78255ba77
2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c
refs/heads/master
1,653,266,469,246
1,577,819,679,000
1,577,819,679,000
259,862,235
1
0
Apache-2.0
1,588,147,244,000
1,588,147,244,000
null
UTF-8
Lean
false
false
7,539
lean
import .fol .abel universe u -- section weekdays -- @[derive has_reflect] -- inductive weekday : Type -- | monday : weekday -- | another_day : weekday → weekday -- open weekday -- meta def dump_weekday (f : weekday) : tactic unit := -- tactic.trace $ to_string (expr.to_raw_fmt (reflect f).to_expr) --...
d7826689d03cf28e83518764cd0987871ada0bbe
ece1fcd81204f318535500cde1f3c6433de98f46
/src/abstract_V_and_I.lean
8228668ba0e6ae32290cf921f71140d0c3f83c84
[ "Apache-2.0" ]
permissive
stjordanis/M4P33
ab5d90bda269428aee16885dbd33f0d21d7d2f79
d3b56421fcb03b935d9012e5a5b35e1c1ad0b0b4
refs/heads/master
1,607,921,471,294
1,579,298,081,000
1,579,298,081,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
9,257
lean
/- Thoughts about how much of the 𝕍 and 𝕀 theory goes through abstractly. -/ -- This is set theory. But we want to do some type theory as well. -- Types are a convenient way of gathering mathematical objects -- into well-defined collections, such as rings. import data.type.basic -- We want to prove that the image...
f429f879d360a7a142de5b24359d4a0b924122a2
2eab05920d6eeb06665e1a6df77b3157354316ad
/src/analysis/calculus/deriv.lean
0dd18d0c7a51db3aa3dd1a52b7175a04cb4f9ec2
[ "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
85,897
lean
/- Copyright (c) 2019 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Sébastien Gouëzel -/ import analysis.calculus.fderiv import data.polynomial.derivative /-! # One-dimensional derivatives This file defines the derivative of a function...
251bdc077f8bede927a4134bcbc24aa075759e1a
6e8de6b43162bef473b4a0bd93b71db886df98ce
/src/pregeom/basis_family.lean
941cb1ac5c4f96641b4647c4c21c1ac0f86557b9
[ "Unlicense" ]
permissive
adamtopaz/comb_geom
38ec6fde8d2543f56227ec50cdfb86cac6ac33c1
e16b629d6de3fbdea54a528755e7305dfb51e902
refs/heads/master
1,668,613,552,530
1,593,199,940,000
1,593,199,940,000
269,824,442
6
0
Unlicense
1,593,119,545,000
1,591,404,975,000
Lean
UTF-8
Lean
false
false
3,292
lean
import data.set import .basis import .basic /-! # What is going on here? Here we define the notion of spanning, independence, and basis for a family of terms in a pregeometry. By a family, we just mean a function `ι : S → T` from some other type `S`. The following lemmas help in going back and forth between the defi...
39ad7d44cb229a28687ad2f90430c30a5116b4d0
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/ring_theory/polynomial/content.lean
d35c17b4bf2d85015355601409f8c53f1ba23851
[]
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
9,028
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.data.finset.gcd import Mathlib.data.polynomial.default import Mathlib.data.polynomial.erase_...
9021c94b7971f05f96010a2115de36350dbababf
6dc0c8ce7a76229dd81e73ed4474f15f88a9e294
/tests/bench/binarytrees.lean
32a0a143db88d11d847de9f570cdf4a54faaf384
[ "Apache-2.0" ]
permissive
williamdemeo/lean4
72161c58fe65c3ad955d6a3050bb7d37c04c0d54
6d00fcf1d6d873e195f9220c668ef9c58e9c4a35
refs/heads/master
1,678,305,356,877
1,614,708,995,000
1,614,708,995,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,706
lean
inductive Tree | Nil | Node (l r : Tree) : Tree open Tree instance : Inhabited Tree := ⟨Nil⟩ -- This Function has an extra argument to suppress the -- common sub-expression elimination optimization partial def make' : UInt32 -> UInt32 -> Tree | n, d => if d = 0 then Node Nil Nil else Node (make' n (d - 1)) (make' ...
3fdd4de040b86fe520e7da81842c9d622eb41d3b
432d948a4d3d242fdfb44b81c9e1b1baacd58617
/src/field_theory/polynomial_galois_group.lean
17e89b869e37b3289eeccf0b02b65f41cfbf40e1
[ "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
19,236
lean
/- Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Thomas Browning, Patrick Lutz -/ import analysis.complex.polynomial import field_theory.galois import group_theory.perm.cycle_type import ring_theory.eisenstein_criteri...
88369a5903a02fbde13f2b7b1fe1f78f31d045c3
367134ba5a65885e863bdc4507601606690974c1
/src/linear_algebra/tensor_algebra.lean
205075040de9773caf9b24b0a2c336771a1b42c4
[ "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
7,206
lean
/- Copyright (c) 2020 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Adam Topaz. -/ import algebra.free_algebra import algebra.ring_quot import algebra.triv_sq_zero_ext /-! # Tensor Algebras Given a commutative semiring `R`, and an `R`-module `M`, we const...
2abf682cfb147ea847c6c0f6b18614d3e8aebba1
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/eq4.lean
7767741f5d3ad5af785ab02a6632c2d95184cdee
[ "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
58
lean
import Int import Real eval 1 = 1.0 eval 1 = nat_to_int 1
4e361c73b4d18b1b2b5ec5a0c149dd3926dc426c
5d166a16ae129621cb54ca9dde86c275d7d2b483
/tests/lean/interactive/my_tac_class.lean
ee2707c7f05ed6c8d854bd8e20e6386a5c315fa2
[ "Apache-2.0" ]
permissive
jcarlson23/lean
b00098763291397e0ac76b37a2dd96bc013bd247
8de88701247f54d325edd46c0eed57aeacb64baf
refs/heads/master
1,611,571,813,719
1,497,020,963,000
1,497,021,515,000
93,882,536
1
0
null
1,497,029,896,000
1,497,029,896,000
null
UTF-8
Lean
false
false
1,774
lean
meta def mytac := state_t nat tactic meta instance : monad mytac := state_t.monad _ _ meta instance : monad.has_monad_lift tactic mytac := monad.monad_transformer_lift (state_t nat) tactic meta instance (α : Type) : has_coe (tactic α) (mytac α) := ⟨monad.monad_lift⟩ namespace mytac meta def step {α : Type} (t : my...
08c2ec40a8440c3934151bb3b608b5616b4444a3
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/category_theory/opposites_auto.lean
248a59511e324df907947863dd786cd47c7eb30d
[]
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
16,128
lean
/- Copyright (c) 2017 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Stephen Morgan, Scott Morrison -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.category_theory.types import Mathlib.category_theory.equivalence import Mat...
4ca1febcb3e4963f90199a4bf9585a064584096f
88fb7558b0636ec6b181f2a548ac11ad3919f8a5
/tests/lean/run/dunfold3.lean
3684d94daa0e072ac8beb685cd30d7bf201155fe
[ "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
887
lean
open tactic def g : nat → nat := λ x, x + 5 example (a b : nat) (p : nat → Prop) (h : p (g (nat.succ (nat.succ a)))) : p (g (a + 2)) := begin unfold g at h, do { h ← get_local `h >>= infer_type, t ← to_expr `(p (nat.succ (nat.succ a) + 5)), guard (h = t) }, unfold has_add.add bit0 has_one.one nat.add, unfold ...
f4942c8052a0d05a6ea4111698c3c052a9874ff7
ea6a4a10943d0b1966364cc23dbea151403b12cb
/src/transport.lean
440a976e11a3d91e6ad81d5e73eecb635ae7a73b
[]
no_license
cipher1024/transport
4ec290275f540261dd6ae86247eecc99abe0218a
147a1ba17c1e4c0b19b7625a1a70f87458a7f705
refs/heads/master
1,584,163,354,251
1,530,778,876,000
1,530,778,876,000
131,463,521
0
0
null
null
null
null
UTF-8
Lean
false
false
24,268
lean
import data.list.basic import data.equiv.basic import tactic import meta.expr import tactic.refine universes u v w open function class canonical_equiv (α : Sort*) (β : Sort*) extends equiv α β. def equiv.injective {α : Sort*} {β : Sort*} (eq : α ≃ β) : injective eq := injective_of_left_inverse eq.left_inv #print...
1af73a2c3a0d478c972fa0faf3a800f2d584af5a
5e3548e65f2c037cb94cd5524c90c623fbd6d46a
/AIME_2021_3.lean
c14917f25ddb99d5e3f37699ff7406c288da68ad
[]
no_license
ahayat16/lean_exos
d4f08c30adb601a06511a71b5ffb4d22d12ef77f
682f2552d5b04a8c8eb9e4ab15f875a91b03845c
refs/heads/main
1,693,101,073,585
1,636,479,336,000
1,636,479,336,000
415,000,441
0
0
null
null
null
null
UTF-8
Lean
false
false
166
lean
import data.finset.basic theorem AIME_2021_3 (S:finset ℕ)(h:∀(n:ℕ), n∈S ↔ (n≤ 1000 ∧ ∃ (a b :ℕ),n=2^a-2^b)): finset.card S=50 := begin sorry end
738f1c88839afba3964ed4573ffd0e5fa2d4f432
da3a76c514d38801bae19e8a9e496dc31f8e5866
/tests/lean/interactive/my_tac_class.lean
057712882f711dd9cd86ab9ab51d199f5a12bbdd
[ "Apache-2.0" ]
permissive
cipher1024/lean
270c1ac5781e6aee12f5c8d720d267563a164beb
f5cbdff8932dd30c6dd8eec68f3059393b4f8b3a
refs/heads/master
1,611,223,459,029
1,487,566,573,000
1,487,566,573,000
83,356,543
0
0
null
1,488,229,336,000
1,488,229,336,000
null
UTF-8
Lean
false
false
1,755
lean
meta def mytac := state_t nat tactic meta instance : monad mytac := state_t.monad _ _ meta instance : monad.has_monad_lift tactic mytac := monad.monad_transformer_lift (state_t nat) tactic meta instance (α : Type) : has_coe (tactic α) (mytac α) := ⟨monad.monad_lift⟩ namespace mytac meta def step {α : Type} (t : my...
e4b9ab6b4bc210b77a71a8689c3dfdd6c56cd9c8
4fa161becb8ce7378a709f5992a594764699e268
/src/topology/basic.lean
d77c03b91517362d24c80fe41d17fd5baa233d19
[ "Apache-2.0" ]
permissive
laughinggas/mathlib
e4aa4565ae34e46e834434284cb26bd9d67bc373
86dcd5cda7a5017c8b3c8876c89a510a19d49aad
refs/heads/master
1,669,496,232,688
1,592,831,995,000
1,592,831,995,000
274,155,979
0
0
Apache-2.0
1,592,835,190,000
1,592,835,189,000
null
UTF-8
Lean
false
false
37,554
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, Jeremy Avigad -/ import order.filter.ultrafilter import order.filter.partial import order.filter.bases /-! # Basic theory of topological spaces. The m...
986ecf299df86f311a47d00a2b6123dfdd90b5e0
05b503addd423dd68145d68b8cde5cd595d74365
/src/linear_algebra/multilinear.lean
decbd85148de6d2c4b61d2a7b0a1a33162ae6fa2
[ "Apache-2.0" ]
permissive
aestriplex/mathlib
77513ff2b176d74a3bec114f33b519069788811d
e2fa8b2b1b732d7c25119229e3cdfba8370cb00f
refs/heads/master
1,621,969,960,692
1,586,279,279,000
1,586,279,279,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
32,998
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 linear_algebra.basic tactic.omega data.fintype.card /-! # Multilinear maps We define multilinear maps as maps from `Π(i : ι), M₁ i` to `M₂` which are ...
3f7bfdf8a8abd0a660e5fbeb707d45791431b36e
94e33a31faa76775069b071adea97e86e218a8ee
/src/topology/algebra/module/basic.lean
f3289be68a0ebdad5ee3adb5bfd01f09ba62c739
[ "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
88,585
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, Frédéric Dupuis, Heather Macbeth -/ import topology.algebra.ring import topology.algebra.mul_action import topology...
79be8cbfb5c5b21d85352adeb1a23c628851ab65
b147e1312077cdcfea8e6756207b3fa538982e12
/tactic/rcases.lean
cfa1d7776739b8bc0d86d6538a8d1f3048d05d67
[ "Apache-2.0" ]
permissive
SzJS/mathlib
07836ee708ca27cd18347e1e11ce7dd5afb3e926
23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29
refs/heads/master
1,584,980,332,064
1,532,063,841,000
1,532,063,841,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
5,688
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.dlist tactic.cache open lean lean.parser namespace tactic /- These synonyms for `list` are used to clarify the meanings of the many usages of lists in ...
8814437e87fb74c1e845341a422fd06fc4fd84a9
4727251e0cd73359b15b664c3170e5d754078599
/src/tactic/transform_decl.lean
d76cd58479a3d621f55181fd32b5fda88e9b91f7
[ "Apache-2.0" ]
permissive
Vierkantor/mathlib
0ea59ac32a3a43c93c44d70f441c4ee810ccceca
83bc3b9ce9b13910b57bda6b56222495ebd31c2f
refs/heads/master
1,658,323,012,449
1,652,256,003,000
1,652,256,003,000
209,296,341
0
1
Apache-2.0
1,568,807,655,000
1,568,807,655,000
null
UTF-8
Lean
false
false
7,898
lean
/- Copyright (c) 2017 Mario Carneiro All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Floris van Doorn -/ import tactic.core namespace tactic /-- `copy_attribute' attr_name src tgt p d_name` copy (user) attribute `attr_name` from `src` to `tgt` if it...
a4443b88802776d807c49299dedd812287ffdaa2
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/algebra/category/CommRing/pushout.lean
1dbada8e8df6463d38531c07bf0e940f0368e724
[ "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
3,199
lean
/- Copyright (c) 2020 Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andrew Yang -/ import category_theory.limits.shapes.pullbacks import ring_theory.tensor_product import algebra.category.CommRing.basic /-! # Explicit pushout cocone for CommRing In this...
f4a04b06616219fc914fd4d5dd878b2185f30a42
8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3
/src/linear_algebra/free_module_pid.lean
7c202dddbfc12d71edeb78f7490647ebc89b6316
[ "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
36,622
lean
/- Copyright (c) 2020 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import linear_algebra.basis import linear_algebra.finsupp_vector_space import ring_theory.principal_ideal_domain import ring_theory.finiteness /-! # Free modules over PID ...
dfd9156e53897bf2b522b94d57c9bb5fab05a062
f00cc9c04d77f9621aa57d1406d35c522c3ff82c
/tests/lean/structure_segfault.lean
7c0dc2a0cda2d505f47f3d6b33ecaebb822d87d4
[ "Apache-2.0" ]
permissive
shonfeder/lean
444c66a74676d74fb3ef682d88cd0f5c1bf928a5
24d5a1592d80cefe86552d96410c51bb07e6d411
refs/heads/master
1,619,338,440,905
1,512,842,340,000
1,512,842,340,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
250
lean
universes u namespace hide structure group (α : Type u) : Type u structure T (α : extends group α := () structure ring (α : Type u) : Type u class T (α : Type*) extends ring x α class S (α : Type*) extends ((λ x, group x) α) end hide
6e1d1d6fa443a309d4ba52f2e8c950d99c94666a
892c0ca8b8ddfe17a2c64fb7b721f9e2d9287539
/partial_fun.lean
676a4bf466aa844d26ce9a24e8ff1a4f0f8346e3
[]
no_license
ssomayyajula/stlc
f7ef96de541f9519b00912337332366317282dce
cf92bf387b4418f9a6261c7ea4876db4e4280dd2
refs/heads/master
1,630,729,373,254
1,516,045,347,000
1,516,045,347,000
115,835,353
5
0
null
null
null
null
UTF-8
Lean
false
false
1,243
lean
def partial_fun (α β) := α → option β universes u v variables {α : Type u} {β : Type v} def emptyf : partial_fun α β | _ := none instance : has_emptyc (partial_fun α β) := ⟨emptyf⟩ inductive dom (f : partial_fun α β) : set α | intro (a) (b) : f a = some b → dom a variable [decidable_eq α] -- Destructive addition ...
79c8314d7207d40e27734b5fb573674c093a8373
ec5a7ae10c533e1b1f4b0bc7713e91ecf829a3eb
/ijcar16/examples/cc10.lean
2c261c40c0c969503684e3eb1a3f1b9faef78c9c
[ "MIT" ]
permissive
leanprover/leanprover.github.io
cf248934af7c7e9aeff17cf8df3c12c5e7e73f1a
071a20d2e059a2c3733e004c681d3949cac3c07a
refs/heads/master
1,692,621,047,417
1,691,396,994,000
1,691,396,994,000
19,366,263
18
27
MIT
1,693,989,071,000
1,399,006,345,000
Lean
UTF-8
Lean
false
false
413
lean
/- Example/test file for the congruence closure procedure described in the paper: "Congruence Closure for Intensional Type Theory" Daniel Selsam and Leonardo de Moura The tactic `by blast` has been configured in this file to use just the congruence closure procedure using the command set_option blast.strategy...
bcab737d47262e04b4f4e2f9459254895f1b437e
9c1ad797ec8a5eddb37d34806c543602d9a6bf70
/universal/transport.lean
7eb85ca08e68a33a41f0e335ea5725de3da50070
[]
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
624
lean
set_option pp.all true #check prod.rec lemma transport_refl { α : Type } ( a b : α ) ( p : a = b ) : @eq.rec α a _ (eq.refl a) b p = eq.refl b := begin simp end lemma transport_refl' { α : Type } ( a b c : α ) ( p : b = c ) : @eq.rec α b _ (eq.refl (a, b)) c p = eq.refl (a, c) := begin simp end lemma transport_...
377a32c9748420bd4a195c0228037343acf471c3
55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5
/src/topology/subset_properties.lean
7c059119adb5df9a7d49d816efd1949ac01bd3fa
[ "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
54,818
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov -/ import topology.continuous_on import data.finset.order /-! # Properties of subsets of topological spaces ## Main definitions `comp...
e91257453b3fb4111e8a3b0723742fbf39552d21
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/group_theory/submonoid/operations.lean
23efc1e7ead18821d59e061139cde90c5308eedd
[ "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
35,691
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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard, Amelia Livingston, Yury Kudryashov -/ import group_theory.submonoid.basic import data.equiv.mul_add import al...
9bcf3b98efc44da7c18d3f6fcadff98efe5762ee
9028d228ac200bbefe3a711342514dd4e4458bff
/src/data/num/bitwise.lean
604f03d7bd4bbfcaf80ed1efa35dacefb906b72a
[ "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
7,784
lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro -/ import data.num.basic import data.bitvec.core /-! # Bitwise operations using binary representation of integers ## Definitions * bitwise operations for `pos_n...
30ed36f71b9bf778fe97dbd4f9e9a6f6f689bfa5
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/stage0/src/Init/Lean/Elab/Term.lean
f35c18a14ae6db34b2d2729fffea7f8444f1e2f2
[ "Apache-2.0" ]
permissive
mhuisi/lean4
28d35a4febc2e251c7f05492e13f3b05d6f9b7af
dda44bc47f3e5d024508060dac2bcb59fd12e4c0
refs/heads/master
1,621,225,489,283
1,585,142,689,000
1,585,142,689,000
250,590,438
0
2
Apache-2.0
1,602,443,220,000
1,585,327,814,000
C
UTF-8
Lean
false
false
54,827
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.Lean.Util.Sorry import Init.Lean.Structure import Init.Lean.Meta.ExprDefEq import Init.Lean.Meta.AppBuilder import Init.Lean.Meta.SynthI...
f232ba84a65ae7987b5f0e5313ba993a25f6ca9e
5fbbd711f9bfc21ee168f46a4be146603ece8835
/lean/natural_number_game/inequality/09.lean
28b49cefb0a366549b66fb1cea292a077db47e11
[ "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
288
lean
theorem le_total (a b : mynat) : a ≤ b ∨ b ≤ a := begin -- this feels too long induction b with n hn, right, exact zero_le a, cases hn, left, exact le_succ a n hn, cases hn with d hd, cases d with t, left, use succ 0, rw hd, ring, right, use t, end
71c6b17744baf9bafe0d3c86e3900917b4a70fdb
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/algebra/char_p/algebra.lean
c7467d2660728c0b7ea2e71717b4ea58c15eb7a0
[ "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
3,662
lean
/- Copyright (c) 2021 Jon Eugster. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jon Eugster, Eric Wieser -/ import algebra.char_p.basic import ring_theory.localization import algebra.free_algebra /-! # Characteristics of algebras In this file we describe the chara...
4ba8135dd8beda61cc4769e613dfb6fbdcb97038
6dc0c8ce7a76229dd81e73ed4474f15f88a9e294
/tests/lean/run/monadControl.lean
d007ab27d05600f56a33306fb1ee8d6d8a7257d3
[ "Apache-2.0" ]
permissive
williamdemeo/lean4
72161c58fe65c3ad955d6a3050bb7d37c04c0d54
6d00fcf1d6d873e195f9220c668ef9c58e9c4a35
refs/heads/master
1,678,305,356,877
1,614,708,995,000
1,614,708,995,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,214
lean
@[inline] def f {α} (s : String) (x : IO α) : IO α := do IO.println "started"; IO.println s; let a ← x; IO.println ("ended"); pure a @[inline] def f'' {α m} [MonadControlT IO m] [Monad m] (msg : String) (x : m α) : m α := do controlAt IO fun runInBase => f msg (runInBase x) abbrev M := StateT Bool $ ExceptT String ...
31b8fe02863d5749c2edd1625c4b3877385ac3e1
69d4931b605e11ca61881fc4f66db50a0a875e39
/src/algebra/homology/homological_complex.lean
d498bcd9b470fb4d3daaa12e9f0eebcabbc3fe59
[ "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
29,952
lean
/- Copyright (c) 2021 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Scott Morrison -/ import algebra.homology.complex_shape import category_theory.subobject.limits /-! # Homological complexes. A `homological_complex V c` with a "shape...
43a7103c432e1c9cfc6bcc74d3e1e3da1e88531a
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/data/rat/order_auto.lean
e6dc440afc40717ea3864aec57e8bd3b94fa56f2
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
7,072
lean
/- Copyright (c) 2019 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.rat.basic import Mathlib.PostPort namespace Mathlib /-! # Order for ...
ba694cd6485d9db437e306bd1a385aa4c62708e3
5d166a16ae129621cb54ca9dde86c275d7d2b483
/tests/lean/run/dsimp_test.lean
fd8d3c5571666341d4407426038fbf6aac978e13
[ "Apache-2.0" ]
permissive
jcarlson23/lean
b00098763291397e0ac76b37a2dd96bc013bd247
8de88701247f54d325edd46c0eed57aeacb64baf
refs/heads/master
1,611,571,813,719
1,497,020,963,000
1,497,021,515,000
93,882,536
1
0
null
1,497,029,896,000
1,497,029,896,000
null
UTF-8
Lean
false
false
1,414
lean
def f : nat → nat | 0 := 10 | (n+1) := 20 + n open list tactic local attribute [-simp] map head example (a b c : nat) : head (map f [1, 2, 3]) = 20 := begin dsimp [map], guard_target head [f 1, f 2, f 3] = 20, dsimp [f], guard_target head [20 + 0, 20 + 1, 20 + 2] = 20, dsimp [head], guard_target 20 ...
c1d00d27ec21ac058c1181efafb519405f495864
63abd62053d479eae5abf4951554e1064a4c45b4
/src/category_theory/preadditive/default.lean
e15f25d832c62986b5d12d4c38932a1508b2663c
[ "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
7,845
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 algebra.group.hom import category_theory.limits.shapes.kernels import algebra.big_operators.basic /-! # Preadditive categories A preadditive category is a cate...
17816311989633016ba26e8d9bfb2394a4678b09
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/src/lake/Lake/CLI/Help.lean
f94491a5c1696ed620695e3972de546c2d47c78b
[ "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
8,239
lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner, Sebastian Ullrich, Mac Malone -/ import Lake.Version namespace Lake def usage := uiVersionString ++ " USAGE: lake [OPTIONS] <COMMAND> OPTIONS: --version ...
812c4c6149883659a8cc2794d0cec08187992e0e
271e26e338b0c14544a889c31c30b39c989f2e0f
/tests/lean/run/typeclass_coerce.lean
4c669381dc338ae43e4edfe2f9928a9bb2a57dc0
[ "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
3,809
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Daniel Selsam, Leonardo de Moura Declare new, simpler coercion class without the special support for transitivity. Test that new tabled typeclass resolution deals with loops an...
732a4eca2bb325fb0b0128594691cb5186d4826d
9dc8cecdf3c4634764a18254e94d43da07142918
/src/data/nat/choose/bounds.lean
113353b97d516449f8af342a10d171fab24a4da9
[ "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
1,295
lean
/- Copyright (c) 2021 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Eric Rodriguez -/ import algebra.group_power.lemmas import algebra.order.field import data.nat.cast import data.nat.choose.basic /-! # Inequalities for binomial coefficie...
fb8f13efdffebfca7081d93be9ccbfa4fe39c42e
46125763b4dbf50619e8846a1371029346f4c3db
/src/topology/metric_space/antilipschitz.lean
59b7c1d1f20f633b381b093ea0696a49b62e57f3
[ "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
4,060
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 topology.metric_space.lipschitz /-! # Antilipschitz functions We say that a map `f : α → β` between two (extended) metric spaces is `antilipschitz_with K`,...
a543610020add948981cc17a9c144ac2697c4118
2fbe653e4bc441efde5e5d250566e65538709888
/src/analysis/asymptotics.lean
40e6c19cea94ac4acbb23fd4da4c791d3a6d42df
[ "Apache-2.0" ]
permissive
aceg00/mathlib
5e15e79a8af87ff7eb8c17e2629c442ef24e746b
8786ea6d6d46d6969ac9a869eb818bf100802882
refs/heads/master
1,649,202,698,930
1,580,924,783,000
1,580,924,783,000
149,197,272
0
0
Apache-2.0
1,537,224,208,000
1,537,224,207,000
null
UTF-8
Lean
false
false
40,162
lean
/- Copyright (c) 2019 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Yury Kudryashov -/ import analysis.normed_space.basic tactic.alias /-! # Asymptotics We introduce these relations: * `is_O_with c f g l` : "f is big O of g along l wi...
3a5dcaf67326e5ddfbcb1cbbc74f81207d39f679
64874bd1010548c7f5a6e3e8902efa63baaff785
/tests/lean/run/class5.lean
23a89b7f6f5578ebd5fe19714a4b6fc6dc9e98c5
[ "Apache-2.0" ]
permissive
tjiaqi/lean
4634d729795c164664d10d093f3545287c76628f
d0ce4cf62f4246b0600c07e074d86e51f2195e30
refs/heads/master
1,622,323,796,480
1,422,643,069,000
1,422,643,069,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,359
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 := ...
514c7e9ab044b85a8f063f16daaae284fde301d9
c86b74188c4b7a462728b1abd659ab4e5828dd61
/stage0/src/Init/Data/Hashable.lean
4a4188851444b489661c3864d4cc69fb3fc4032e
[ "Apache-2.0" ]
permissive
cwb96/lean4
75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89
b48831cda76e64f13dd1c0edde7ba5fb172ed57a
refs/heads/master
1,686,347,881,407
1,624,483,842,000
1,624,483,842,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,039
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import Init.Data.UInt import Init.Data.String universes u instance : Hashable Nat where hash n := UInt64.ofNat n instance [Hashable α] [Hashable...
a4174685b6bed307e62c9562be34f5a5e9297052
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/algebra/algebra/basic.lean
9194f766831e193704e3a29130d8497a02bfbde3
[ "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
71,959
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Yury Kudryashov -/ import algebra.module.basic import algebra.module.ulift import algebra.ne_zero import algebra.ring.aut import algebra.ring.ulift import algebra.char_zero.lemma...
0ab2d3ee10c4301bb8cace4681cb9b95195ecf10
82e44445c70db0f03e30d7be725775f122d72f3e
/test/lift.lean
a9461a9d43227141d513ae5577f59af42cc32192
[ "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
3,795
lean
import tactic.lift import data.set.basic import data.int.basic /-! Some tests of the `lift` tactic. -/ example (n m k x z u : ℤ) (hn : 0 < n) (hk : 0 ≤ k + n) (hu : 0 ≤ u) (h : k + n = 2 + x) (f : false) : k + n = m + x := begin lift n to ℕ using le_of_lt hn, guard_target (k + ↑n = m + x), guard_hyp hn : (0...
28139232eedda28a608c4d47c0be3f9f7dc9d16a
b074a51e20fdb737b2d4c635dd292fc54685e010
/src/analysis/convex.lean
a5f41b295721c3d8e6bb31f5f7b091d2534b0acb
[ "Apache-2.0" ]
permissive
minchaowu/mathlib
2daf6ffdb5a56eeca403e894af88bcaaf65aec5e
879da1cf04c2baa9eaa7bd2472100bc0335e5c73
refs/heads/master
1,609,628,676,768
1,564,310,105,000
1,564,310,105,000
99,461,307
0
0
null
null
null
null
UTF-8
Lean
false
false
27,711
lean
/- Copyright (c) 2019 Alexander Bentkamp. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alexander Bentkamp Convex sets and functions on real vector spaces -/ import analysis.normed_space.basic import data.complex.basic import data.set.intervals import tactic.interac...
23a12734916ddb71b879f75fa2e65f9dbc692cfa
e1da55f4222dac91b940ca052928eaace09762da
/src/witness.lean
8ef553a2aaea1362bd67cbc48f17f5bc917c8e3e
[]
no_license
b-mehta/regularity-lemma
c5826e22c280d0b073a4e62dba731f4dd3d1b69f
cf26082b0c88fa54276e6fdc3338c15e607c52c6
refs/heads/master
1,658,209,524,267
1,644,406,456,000
1,644,406,456,000
457,327,371
1
0
null
null
null
null
UTF-8
Lean
false
false
3,528
lean
/- Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Bhavik Mehta -/ import .mathlib /-! # Witnesses of non uniformity -/ open_locale classical variables {α : Type*} namespace simple_graph variables (G : sim...
e5cee6cc6c2999f7974142be1109ae4a555d5d78
d7189ea2ef694124821b033e533f18905b5e87ef
/galois/list/filter_some.lean
85be4577d5f14184293cccf8035110d81215b693
[ "Apache-2.0" ]
permissive
digama0/lean-protocol-support
eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59
cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda
refs/heads/master
1,625,421,450,627
1,506,035,462,000
1,506,035,462,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
551
lean
universes u namespace list def filter_some {A : Type u} : list (option A) → list A | [] := [] | (mx :: xs) := (match mx with | none := λ l, l | some x := list.cons x end) (filter_some xs) lemma map_filter_some {A B} (f : A → B) (xs : list (option A)) : filter_some (map (option.map f) xs) = map f (filter_so...
faa55138b3e27e052fcf341152031551cb910d4d
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/polynomial/laurent.lean
d89c24a6a75f0aba250c86c3751d40a96576c425
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
20,134
lean
/- Copyright (c) 2022 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Damiano Testa -/ import data.polynomial.algebra_map import ring_theory.localization.basic /-! # Laurent polynomials > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this ...
d5544724e00354465b83f381ca6e5e3303140776
94e33a31faa76775069b071adea97e86e218a8ee
/src/category_theory/preadditive/eilenberg_moore.lean
6f7c657336dc473a99b2b58ac1a472ef59255075
[ "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
3,177
lean
/- Copyright (c) 2022 Julian Kuelshammer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Julian Kuelshammer -/ import category_theory.preadditive.default import category_theory.monad.algebra import category_theory.preadditive.additive_functor /-! # Preadditive struct...
0740bb019fbd057c46815d95a0fd4ea4377320df
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/ring_theory/roots_of_unity/basic.lean
1af2919d9c7438e9be87b658d6b223e42a4fa6cb
[ "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
38,044
lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import algebra.char_p.two import algebra.ne_zero import algebra.gcd_monoid.integrally_closed import data.polynomial.ring_division import field_theory.finite.basic im...
0ef0e0776e103a32adf06aee4fe4b3fb7400aca0
b00eb947a9c4141624aa8919e94ce6dcd249ed70
/stage0/src/Init/Core.lean
bf0495da2c68d5f475fe02dc54f4c49b5626bff2
[ "Apache-2.0" ]
permissive
gebner/lean4-old
a4129a041af2d4d12afb3a8d4deedabde727719b
ee51cdfaf63ee313c914d83264f91f414a0e3b6e
refs/heads/master
1,683,628,606,745
1,622,651,300,000
1,622,654,405,000
142,608,821
1
0
null
null
null
null
UTF-8
Lean
false
false
34,931
lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura notation, basic datatypes and type classes -/ prelude import Init.Prelude import Init.SizeOf universes u v w def inline {α : Sort u} (a : α) : α := a @[inl...
93425f0e57d52060192174097d5d085f8f880788
246309748072bf9f8da313401699689ebbecd94d
/src/linear_algebra/affine_space/finite_dimensional.lean
28de424121529caf6e96b3c575ff81e0d4bf5b67
[ "Apache-2.0" ]
permissive
YJMD/mathlib
b703a641e5f32a996f7842f7c0043bab2b462ee2
7310eab9fa8c1b1229dca42682f1fa6bfb7dbbf9
refs/heads/master
1,670,714,479,314
1,599,035,445,000
1,599,035,445,000
292,279,930
0
0
null
1,599,050,561,000
1,599,050,560,000
null
UTF-8
Lean
false
false
4,321
lean
/- Copyright (c) 2020 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Joseph Myers. -/ import linear_algebra.affine_space.independent import linear_algebra.finite_dimensional noncomputable theory open_locale big_operators open_locale classical /-! # Finit...
5582dec3c3994b5dec52951818f36b05d9d303d2
9dd3f3912f7321eb58ee9aa8f21778ad6221f87c
/tests/lean/run/opt_param_cc.lean
1d1596b92ba161b67308d52be7f06cea10ce9266
[ "Apache-2.0" ]
permissive
bre7k30/lean
de893411bcfa7b3c5572e61b9e1c52951b310aa4
5a924699d076dab1bd5af23a8f910b433e598d7a
refs/heads/master
1,610,900,145,817
1,488,006,845,000
1,488,006,845,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
733
lean
def f (a : nat) (b : nat := a) (c : nat := a) := a + b + c lemma ex1 (a a' b c d : nat) (h : b = c) (h2 : a = a') : f a b d = f a' c d := by cc lemma ex2 (a a' b c d : nat) (h : b = c) (h2 : a = a') : f a b d = f a' c d := by rw [h, h2] set_option pp.beta true set_option pp.all true lemma ex3 (a a' b c d : nat) (h ...
deebf6891efe4f308f5a34c6a5d6856eee0d1e3f
618003631150032a5676f229d13a079ac875ff77
/src/linear_algebra/basis.lean
ee2099716466801292c0ba9b19744b317d8e2640
[ "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
53,189
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, Alexander Bentkamp -/ import linear_algebra.finsupp import linear_algebra.projection import order.zorn import data.fintype.card /-! # Linear independe...
3426ce3ef56adb25e649f8fe9055317baff88b3d
d1bbf1801b3dcb214451d48214589f511061da63
/src/analysis/specific_limits.lean
1447b2ff4f7a3ca68e06241d9c07b2c6623c71b6
[ "Apache-2.0" ]
permissive
cheraghchi/mathlib
5c366f8c4f8e66973b60c37881889da8390cab86
f29d1c3038422168fbbdb2526abf7c0ff13e86db
refs/heads/master
1,676,577,831,283
1,610,894,638,000
1,610,894,638,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
29,354
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 algebra.geom_sum import order.filter.archimedean import order.iterate import topology.instances.ennreal import tactic.ring_exp import analysis.asymptotics /-!...
1f18574a833e6151c35ca08a7d3351fea5a45509
fe84e287c662151bb313504482b218a503b972f3
/src/algebra/convolution.lean
7f72dc07b26de705633a835edf3d0bbeaf87f38e
[]
no_license
NeilStrickland/lean_lib
91e163f514b829c42fe75636407138b5c75cba83
6a9563de93748ace509d9db4302db6cd77d8f92c
refs/heads/master
1,653,408,198,261
1,652,996,419,000
1,652,996,419,000
181,006,067
4
1
null
null
null
null
UTF-8
Lean
false
false
19,351
lean
/- Copyright (c) 2019 Neil Strickland. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Neil Strickland This file sets up a framework for convolution. The first ingredient is an additive monoid `M` with the property that for any `m ∈ M`, the set `{⟨x,y⟩ : x + y = m}` i...
dfa548da9ebe15be9d38c40b4a9ff38be8cc9e2a
0c0281448f624a53333195786d9730b1592ee3ac
/Relation.lean
90eee9756ac2cb4381bad08bc6168e9c04b273ff
[]
no_license
kindaro/lean_study
ce788f8dd1adaef2e12d6f94ab88685da34b0877
8219865eb9f068f132fe4ce0ae4a2fb76b1f5865
refs/heads/master
1,693,155,825,536
1,634,312,849,000
1,634,312,849,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,668
lean
import Automation open tactic def ℙ := Prop class Same (φ: Type) := (same: φ → φ → ℙ) notation x `≡` y := Same.same x y instance Same_arrow (α β: Type) [Same β]: Same (α → β) := Same.mk (λ f₁ f₂, ∀ x, f₁ x ≡ f₂ x) instance Same_proposition: Same ℙ := Same.mk (λ p q, p ↔ q) notation α `~` β := α → β → ℙ def identity {...
64207b3d51c19c9246a8e4e84ebe040059d88a6f
206422fb9edabf63def0ed2aa3f489150fb09ccb
/src/data/zmod/basic.lean
a756c365694b1a09beddca5f1f6a69f09c93ff5b
[ "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
28,034
lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Chris Hughes -/ import data.int.modeq import algebra.char_p.basic import data.nat.totient import ring_theory.ideal.operations /-! # Integers mod `n` Definition of the integers mod n, a...
c350376f1d88a7c23b3292c44c2d6b06ddf1e9b5
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/tactic/norm_num.lean
9da27cf51910fe19ca6349d60415082e10ad1bf7
[]
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
25,188
lean
/- Copyright (c) 2017 Simon Hudon All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon, Mario Carneiro -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.rat.cast import Mathlib.data.rat.meta_defs import Mathlib.PostPort universes...
a24c0c7d9ca1f97329613b6833e764c32b4cfd67
437dc96105f48409c3981d46fb48e57c9ac3a3e4
/src/ring_theory/power_series.lean
f9e84ec9ebe7e81fceeafbcbfdcbcd05b8811900
[ "Apache-2.0" ]
permissive
dan-c-k/mathlib
08efec79bd7481ee6da9cc44c24a653bff4fbe0d
96efc220f6225bc7a5ed8349900391a33a38cc56
refs/heads/master
1,658,082,847,093
1,589,013,201,000
1,589,013,201,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
57,842
lean
/- Copyright (c) 2019 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Kenny Lau -/ import data.mv_polynomial import ring_theory.ideal_operations import tactic.linarith /-! # Formal power series This file defines (multivariate) formal po...