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
e13e5f2b90c8f31dbb54aa49d9604f16e261ed4c
367134ba5a65885e863bdc4507601606690974c1
/src/category_theory/elements.lean
b73e5d4ef434a195bb0cac04f12ff85f1a9d0f5d
[ "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
4,898
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import category_theory.comma import category_theory.groupoid import category_theory.punit /-! # The category of elements This file defines the category of elements,...
4dd488e7d104eee70ae293259f7a2154267c6c8f
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/ring_theory/ideal/prod.lean
9b20409db40e9b635f219db880b0e904fe433cd2
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
5,402
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 Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.ring_theory.ideal.operations import Mathlib.PostPort universes u v namespace Mathlib /-! ...
52d5438b3265fc2827ca5cad666e0e6bc10fc332
947b78d97130d56365ae2ec264df196ce769371a
/tests/lean/run/ind_cmd_bug.lean
ddaf7f5792630b14d6f98368b6716484a2dec283
[ "Apache-2.0" ]
permissive
shyamalschandra/lean4
27044812be8698f0c79147615b1d5090b9f4b037
6e7a883b21eaf62831e8111b251dc9b18f40e604
refs/heads/master
1,671,417,126,371
1,601,859,995,000
1,601,860,020,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
97
lean
new_frontend structure D (α : Type) := (a : α) inductive S | mk₁ (v : S) | mk₂ (v : D S)
650ab34538bafa86f91e7b13cc68d2219530fe19
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/tests/lean/run/let1.lean
3c7d3868e018f7155a2c6f4a0275fd9a53d948b6
[ "Apache-2.0" ]
permissive
soonhokong/lean-osx
4a954262c780e404c1369d6c06516161d07fcb40
3670278342d2f4faa49d95b46d86642d7875b47c
refs/heads/master
1,611,410,334,552
1,474,425,686,000
1,474,425,686,000
12,043,103
5
1
null
null
null
null
UTF-8
Lean
false
false
160
lean
check let f x y := x ∧ y, g x := f x x, a := g true in λ (x : a), let h x y := f x (g y), b := h in b
1df49b2dab1277c02547a1990cba6b2d02851534
8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3
/src/field_theory/finite/basic.lean
08fed47f4e355f13a8d57af0b8e28e69078bd47a
[ "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
12,510
lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Joey van Langen, Casper Putz -/ import tactic.apply_fun import data.equiv.ring import data.zmod.basic import linear_algebra.basis import ring_theory.integral_domain import ...
a1c8f0c843212d6c56c7e6ccab945be6120bf2e5
ebf7140a9ea507409ff4c994124fa36e79b4ae35
/src/exercises_sources/friday/topology.lean
ed8be0e82e94b802552444c2654befca9d434c0e
[]
no_license
fundou/lftcm2020
3e88d58a92755ea5dd49f19c36239c35286ecf5e
99d11bf3bcd71ffeaef0250caa08ecc46e69b55b
refs/heads/master
1,685,610,799,304
1,624,070,416,000
1,624,070,416,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
12,143
lean
import topology.metric_space.basic open_locale classical filter topological_space namespace lftcm open filter set /-! # Filters ## Definition of filters -/ def principal {α : Type*} (s : set α) : filter α := { sets := {t | s ⊆ t}, univ_sets := begin sorry end, sets_of_superset := begin sorry end, ...
50961a77e22de04c1431cb037f33078895dfd272
46125763b4dbf50619e8846a1371029346f4c3db
/src/data/equiv/local_equiv.lean
28b604cf89ac04a1ba89be70192648950bc3fa07
[ "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
21,759
lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel -/ import data.equiv.basic /-! # Local equivalences This files defines equivalences between subsets of given types. An element `e` of `local_equiv α β` is made ...
bae6d74100b641e78da5e0b1edd226dacb87a348
159fed64bfae88f3b6a6166836d6278f953bcbf9
/Structure/Generic/Lemmas/TypeRelations.lean
e01547ba1b33211b0cfa79ce850097e32db3fcfc
[ "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
2,546
lean
-- An abstract formalization of "isomorphism is equality up to relabeling" -- ------------------------------------------------------------------------- -- -- See `README.md` for more info. -- -- This file contains collections of category-theoretic axioms that are parameterized in such a way that -- they are suitable f...
5dd710bb19396511b1fb2faa53bb8a6e0ae7411e
63abd62053d479eae5abf4951554e1064a4c45b4
/src/algebra/continued_fractions/basic.lean
df1cc8ef1bb947f1bac511d6a1670bab64becadd
[ "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
13,273
lean
/- Copyright (c) 2019 Kevin Kappelmann. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Kappelmann -/ import data.seq.seq import algebra.field /-! # Basic Definitions/Theorems for Continued Fractions ## Summary We define generalised, simple, and regular continue...
49067636edc5a109ace6e537cb813d37b462516c
947b78d97130d56365ae2ec264df196ce769371a
/src/Lean/Util/Sorry.lean
33b52086374fb17421376fd89fed6a122b3c3403
[ "Apache-2.0" ]
permissive
shyamalschandra/lean4
27044812be8698f0c79147615b1d5090b9f4b037
6e7a883b21eaf62831e8111b251dc9b18f40e604
refs/heads/master
1,671,417,126,371
1,601,859,995,000
1,601,860,020,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,545
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.Message import Lean.Exception namespace Lean def Expr.isSorry : Expr → Bool | Expr.app (Expr.app (Expr.const `sorryAx _ _) _ _) _ _ => true | ...
d57836852a69a951add045dd3595443d6f8590d6
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/tactic/default.lean
873da8c3400a1c4349105f25ea7899dcde985e23
[ "Apache-2.0" ]
permissive
gebner/mathlib
eab0150cc4f79ec45d2016a8c21750244a2e7ff0
cc6a6edc397c55118df62831e23bfbd6e6c6b4ab
refs/heads/master
1,625,574,853,976
1,586,712,827,000
1,586,712,827,000
99,101,412
1
0
Apache-2.0
1,586,716,389,000
1,501,667,958,000
Lean
UTF-8
Lean
false
false
970
lean
/- This file imports many useful tactics ("the kitchen sink"). You can use `import tactic` at the beginning of your file to get everything. (Although you may want to strip things down when you're polishing.) Because this file imports some complicated tactics, it has many transitive dependencies (which of course may n...
01a16e01aea135510baefea82e6e06369526ca8f
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/algebraic_topology/simplicial_set.lean
6727591420e4e7134e4225491bb18cc4709a425e
[ "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
5,937
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, Adam Topaz -/ import algebraic_topology.simplicial_object import algebraic_topology.topological_simplex import category_theory.limits.presheaf import ca...
2afc531f0e6fe9fee9ad3e51f41df95811d291a4
80cc5bf14c8ea85ff340d1d747a127dcadeb966f
/src/tactic/abel.lean
373396f74648619298b5fc0b8fc54c3833718481
[ "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
13,121
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 tactic.norm_num /-! # The `abel` tactic Evaluate expressions in the language of additive, commutative monoids and groups. -/ namespace tactic namespace ab...
d48290864cbd997ce427d278fcf962fc5ac8b6c8
4727251e0cd73359b15b664c3170e5d754078599
/src/logic/relation.lean
588181c272806abfb4a4a3676aec0cb409ddb5e9
[ "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
21,464
lean
/- Copyright (c) 2018 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl -/ import tactic.basic import logic.relator /-! # Relation closures This file defines the reflexive, transitive, and reflexive transitive closures of relations. It als...
9deced013928c64e5f05e55d9721e80d4ca473bf
ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5
/tests/lean/run/explicitMotive.lean
0ac84c2e099ad8b8b411fb01806eadf0fe957728
[ "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
330
lean
#lang lean4 def f1 (ex : Empty) {α : Type} : α := Empty.rec (motive := fun _ => α) ex def f2 (a b : Nat) (h₁ : b = a) (h₂ : a + b = b) : a + a = b := Eq.rec (motive := fun x _ => a + x = b) h₂ h₁ def f3 (a b : Nat) (h₁ : b = a) (h₂ : a + b = b) : a + a = b := Eq.recOn (motive := fun x _ => a + x = b) h₁ h₂
7e7289af570e0747b377a72adda2c4e3c61831ec
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/analysis/normed/group/SemiNormedGroup/completion.lean
5b16a708e9841435bf8aff8068c61cb4b3137519
[ "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,545
lean
/- Copyright (c) 2021 Riccardo Brasca. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Riccardo Brasca, Johan Commelin -/ import analysis.normed.group.SemiNormedGroup import category_theory.preadditive.additive_functor import analysis.normed.group.hom_completion /-! # ...
c2d23debdaf31bc3aed9684ca8cf246726608c36
302c785c90d40ad3d6be43d33bc6a558354cc2cf
/src/linear_algebra/prod.lean
68a944de4c467af787808db61ecdfea1a36cbe93
[ "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
15,138
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, Kevin Buzzard, Yury Kudryashov, Eric Wieser -/ import linear_algebra.basic /-! ### Products of semimodules This file defines constructors for linear m...
25695049dc17d969da202245c8d3da584dfed2e5
c777c32c8e484e195053731103c5e52af26a25d1
/src/group_theory/subsemigroup/center.lean
0ab9e2901c059519201e29a812431eaa3e3c9a31
[ "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
5,163
lean
/- Copyright (c) 2021 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser, Jireh Loreaux -/ import algebra.ring.defs import group_theory.subsemigroup.operations /-! # Centers of magmas and semigroups > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > An...
0acc242047fc75a7343199925f3d9f737b9510cc
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/category_theory/grothendieck.lean
8320cb4343efba49ca4acf16325edfb09ed72b6b
[ "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
5,009
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 category_theory.category.Cat import category_theory.elements /-! # The Grothendieck construction Given a functor `F : C ⥤ Cat`, the objects of `grothendieck ...
90dc0cbcf6a201583c1b72e9a8bca7bbd2aac2ab
ec62863c729b7eedee77b86d974f2c529fa79d25
/23/a.lean
4a0b9b104a4fbcef238fdd2b50e1adde5ce79cac
[]
no_license
rwbarton/advent-of-lean-4
2ac9b17ba708f66051e3d8cd694b0249bc433b65
417c7e2718253ba7148c0279fcb251b6fc291477
refs/heads/main
1,675,917,092,057
1,609,864,581,000
1,609,864,581,000
317,700,289
24
0
null
null
null
null
UTF-8
Lean
false
false
670
lean
partial def resolve (bad : List Nat) (x : Nat) : Nat := let x' := if x = 0 then 9 else x if bad.any (· = x') then resolve bad (x'-1) else x' def step : List Nat → List Nat | a :: b₁ :: b₂ :: b₃ :: rest => let tgt := resolve [b₁, b₂, b₃] (a-1) let ⟨pre, post⟩ := rest.span (· ≠ tgt) pre ++ tgt :: b₁ :: b₂ :: b₃ ::...
b364732b08023d26b1f6077cf97fbaa30f2323d9
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/tactic/norm_cast.lean
dd64e045976226756093f220ab5e8cbe5fda23aa
[ "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
25,974
lean
/- Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Paul-Nicolas Madelaine, Robert Y. Lewis -/ import tactic.converter.interactive import tactic.hint /-! # A tactic for normalizing casts inside expressions This tactic normaliz...
e329593c7c90e21a00b92dc6a011b6597982f493
69d4931b605e11ca61881fc4f66db50a0a875e39
/src/data/nat/cast.lean
a303b44fccd17b933ed5086c8080a557305c73fc
[ "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
11,371
lean
/- Copyright (c) 2014 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro Natural homomorphism from the natural numbers into a monoid with one. -/ import algebra.ordered_field import data.nat.basic namespace nat variables {α : Type*} sectio...
f4941243e773d621dda39e3f53d7893cf40e17eb
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/test_perm_ac1.lean
135fc17d7e3d22d77481556b19252d5c193cde55
[ "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,654
lean
#exit open expr decidable tactic nat meta definition is_poly_bin_app : expr → option name | (app (app (app (app (const op ls) A) s) lhs) rhs) := some op | _ := none meta definition is_add (e : expr) : bool := match (is_poly_bin_app e) with | (some op) := to_bool (op = `add) | none := ff end meta definition p...
62c12f839d2cfc28d1dc0c4b1128f969a42a5e3a
dd0f5513e11c52db157d2fcc8456d9401a6cd9da
/08_Building_Theories_and_Proofs.org.12.lean
8bd660026b0017c9beb84d9c093a01ec8984fde3
[]
no_license
cjmazey/lean-tutorial
ba559a49f82aa6c5848b9bf17b7389bf7f4ba645
381f61c9fcac56d01d959ae0fa6e376f2c4e3b34
refs/heads/master
1,610,286,098,832
1,447,124,923,000
1,447,124,923,000
43,082,433
0
0
null
null
null
null
UTF-8
Lean
false
false
921
lean
import standard namespace hide -- BEGIN variables {A : Type} (R : A → A → Prop) definition reflexive : Prop := ∀ (a : A), R a a definition symmetric : Prop := ∀ {a b : A}, R a b → R b a definition transitive : Prop := ∀ {a b c : A}, R a b → R b c → R a c definition euclidean : Prop := ∀ {a b c : A}, R a b → R a c →...
f54a0bbab1ad3f3ecde546bc27ebb6feb33ecd08
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/list/sublists.lean
d70adc5c082ee8a12b21b8e53643fa8295ea0861
[ "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
17,067
lean
/- Copyright (c) 2019 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import data.nat.choose.basic import data.list.perm /-! # sublists > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresponding PR t...
11f87aacd155c41f1da70c42331f69c8aa8ee5ce
4fa118f6209450d4e8d058790e2967337811b2b5
/src/for_mathlib/topology.lean
8d7d3ed697a6cd6319a032bbdcf316b9a54e388f
[ "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
14,976
lean
import topology.opens import topology.algebra.continuous_functions import for_mathlib.filter import for_mathlib.data.set.basic open topological_space function local notation `𝓝` x:70 := nhds x local notation f `∘₂` g := function.bicompr f g -- We need to think whether we could directly use the class t2_space (whic...
7c64b42df8c7bf2ec0e0d721b225419f22ae5066
3f7026ea8bef0825ca0339a275c03b911baef64d
/src/topology/Top/opens.lean
604f614957e78d2a7aa0efcb8d8053832f30475d
[ "Apache-2.0" ]
permissive
rspencer01/mathlib
b1e3afa5c121362ef0881012cc116513ab09f18c
c7d36292c6b9234dc40143c16288932ae38fdc12
refs/heads/master
1,595,010,346,708
1,567,511,503,000
1,567,511,503,000
206,071,681
0
0
Apache-2.0
1,567,513,643,000
1,567,513,643,000
null
UTF-8
Lean
false
false
3,938
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import topology.Top.basic import category_theory.natural_isomorphism import category_theory.opposites import category_theory.eq_to_hom import topology.opens open cat...
36feef13c26bed8234d5907dd9b8d155337e23bc
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/algebraic_geometry/structure_sheaf.lean
624f2f5b7d64faac0f101e83f14ee13a9fbd1630
[]
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
4,118
lean
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Scott Morrison -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebraic_geometry.prime_spectrum import Mathlib.algebra.category.CommRing....
40e53d680366441eebb2633de528bddc2511a0b3
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/linear_algebra/affine_space/midpoint.lean
e1ac95e66a40c5164c7bc1e5a82d0151c4492143
[ "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,828
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 algebra.char_p.invertible import linear_algebra.affine_space.affine_equiv /-! # Midpoint of a segment ## Main definitions * `midpoint R x y`: midpoint of ...
52e4bbc8dc432c7167d9534d2147e4d70d78b732
4727251e0cd73359b15b664c3170e5d754078599
/src/analysis/convex/quasiconvex.lean
a89dceac86ea5a9fe108bb755f12d56e79e82c9a
[ "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,823
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 -/ import analysis.convex.function /-! # Quasiconvex and quasiconcave functions This file defines quasiconvexity, quasiconcavity and quasilinearity of functions, which are...
bfaa47a3153195150878d4e74e2f9e284b294598
92b50235facfbc08dfe7f334827d47281471333b
/hott/types/pi.hlean
2026cd0ddafbcedc0b8160f2d050a6599fe29cbc
[ "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
9,386
hlean
/- Copyright (c) 2014-15 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Floris van Doorn Partially ported from Coq HoTT Theorems about pi-types (dependent function spaces) -/ import types.sigma arity open eq equiv is_equiv funext sigma namespace pi...
eb123ebf3bb67eaef4574fb6951322993f1e55e7
98beff2e97d91a54bdcee52f922c4e1866a6c9b9
/src/sub.lean
ca4e7c42e47a9e31b15aaa83bc2d4980e1432e1a
[]
no_license
b-mehta/topos
c3fc43fb04ba16bae1965ce5c26c6461172e5bc6
c9032b11789e36038bc841a1e2b486972421b983
refs/heads/master
1,629,609,492,867
1,609,907,263,000
1,609,907,263,000
240,943,034
43
3
null
1,598,210,062,000
1,581,877,668,000
Lean
UTF-8
Lean
false
false
31,957
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.opposites import category_theory.limits.lattice import category_theory.limits.shapes.finite_products import category_theory.limits.shapes.terminal ...
cc0a9c705377f4b2c44094b038d65fab205671dd
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/tactic/suggest.lean
b7f975f0263d04089875f497c8056a50edba191c
[ "Apache-2.0" ]
permissive
gebner/mathlib
eab0150cc4f79ec45d2016a8c21750244a2e7ff0
cc6a6edc397c55118df62831e23bfbd6e6c6b4ab
refs/heads/master
1,625,574,853,976
1,586,712,827,000
1,586,712,827,000
99,101,412
1
0
Apache-2.0
1,586,716,389,000
1,501,667,958,000
Lean
UTF-8
Lean
false
false
15,556
lean
/- Copyright (c) 2019 Lucas Allen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Lucas Allen and Scott Morrison -/ import data.mllist import tactic.solve_by_elim /-! # `suggest` and `library_search` `suggest` and `library_search` are a pair of tactics for applying ...
b6d4d20d1886d40b017b8bbfdb8041edae79aca1
36c7a18fd72e5b57229bd8ba36493daf536a19ce
/library/init/setoid.lean
dc138dc77964a91e1a952ef09eda1ead153b283b
[ "Apache-2.0" ]
permissive
YHVHvx/lean
732bf0fb7a298cd7fe0f15d82f8e248c11db49e9
038369533e0136dd395dc252084d3c1853accbf2
refs/heads/master
1,610,701,080,210
1,449,128,595,000
1,449,128,595,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
740
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 -/ prelude import init.relation structure setoid [class] (A : Type) := (r : A → A → Prop) (iseqv : equivalence r) namespace setoid infix ` ≈ ` := setoid.r...
bebe17f94d01ec2c5d50055292696748f6212596
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/src/Init/Lean/Parser/Syntax.lean
ef0462c719ac64c0adc20a9e1876b3fa36a8938b
[ "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
4,328
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.Parser.Command import Init.Lean.Parser.Tactic namespace Lean namespace Parser @[init] def regBuiltinSyntaxPars...
472253899f3d45516e8d18ec10dc812aede89445
097294e9b80f0d9893ac160b9c7219aa135b51b9
/instructor/functions/polymomrphic/intro.lean
471345475b258eb5d165e323554718c45da0a892
[]
no_license
AbigailCastro17/CS2102-Discrete-Math
cf296251be9418ce90206f5e66bde9163e21abf9
d741e4d2d6a9b2e0c8380e51706218b8f608cee4
refs/heads/main
1,682,891,087,358
1,621,401,341,000
1,621,401,341,000
368,749,959
0
0
null
null
null
null
UTF-8
Lean
false
false
2,900
lean
/- We've seen identity functions for specific types. For example, here are identity functions for the types, ℕ, bool, and string. -/ def id_nat (a : ℕ) : ℕ := a def id_bool (a : bool) : bool := a def id_string (a : string) : string := a /- These functions differ only in the types of va...
39f5258193362b8758cbdcfbab27fd7a5859c4fe
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/limits/constructions/finite_products_of_binary_products.lean
ff8793b35fff61afb613c23daacb270b5d7b44ca
[ "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
12,176
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.preserves.shapes.binary_products import category_theory.limits.preserves.shapes.products import category_theory.limits.shapes.binary_product...
fff7f425fb027d9a220b7cd02739d668e84ae8cb
297c4ceafbbaed2a59b6215504d09e6bf201a2ee
/kruskal_final/temp.lean
df15cbb61387cda2a4eecca6083ba7f84820d6b4
[]
no_license
minchaowu/Kruskal.lean3
559c91b82033ce44ea61593adcec9cfff725c88d
a14516f47b21e636e9df914fc6ebe64cbe5cd38d
refs/heads/master
1,611,010,001,429
1,497,935,421,000
1,497,935,421,000
82,000,982
1
0
null
null
null
null
UTF-8
Lean
false
false
182
lean
open set function theorem least_seq_at_n {S : set (ℕ → ℕ)} (H : S ≠ ∅) (n : ℕ) : ∃ f : ℕ → ℕ, f ∈ S ∧ ∀ g : ℕ → ℕ, g ∈ S → f n ≤ g n := sorry
13c6e7f74f6d0f2b8fd1b7efd3cbc0df0081d1cc
8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3
/src/group_theory/specific_groups/cyclic.lean
58f20ec31754288237e759fc97c06c0b02fd30df
[ "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
19,225
lean
/- Copyright (c) 2018 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl -/ import algebra.big_operators.order import data.nat.totient import group_theory.order_of_element import tactic.group /-! # Cyclic groups A group `G` is called cycli...
da7d7deb9eab3f58d6a9b48dd1ad64f1d70a5055
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/rewrite.lean
fb695b9c2377a43e294d57835cca709632c75eb0
[ "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
218
lean
class is_one_class (n : ℕ) := (one : n = 1) lemma one_eq (n : ℕ) [is_one_class n] : 1 = n := is_one_class.one.symm -- error message should say which typeclass is missing example (n : ℕ) : n = 1 := by rw one_eq
e74152bf8bfdbae9c62fa39eeb7ff2cb5fbca531
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/data/nat/enat.lean
4f2c32e45b6d5816ece88ecfe44dc9849a964968
[ "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
19,797
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.equiv.mul_add import tactic.norm_num import data.part /-! # Natural numbers with infinity The natural numbers and an extra `top` element `⊤`. ## Main defin...
9a5964415e36d0152f2b33f02b9ce397123d1e86
367134ba5a65885e863bdc4507601606690974c1
/src/data/set/intervals/pi.lean
a273017aa549aca6e81ada4cfa9a70c5e6f22039
[ "Apache-2.0" ]
permissive
kodyvajjha/mathlib
9bead00e90f68269a313f45f5561766cfd8d5cad
b98af5dd79e13a38d84438b850a2e8858ec21284
refs/heads/master
1,624,350,366,310
1,615,563,062,000
1,615,563,062,000
162,666,963
0
0
Apache-2.0
1,545,367,651,000
1,545,367,651,000
null
UTF-8
Lean
false
false
5,432
lean
/- Copyright (c) 2020 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Yury Kudryashov -/ import data.set.intervals.basic import data.set.lattice /-! # Intervals in `pi`-space In this we prove various simple lemmas about intervals in `Π i, α i`. Closed ...
6a83b418f7dcd230f34496a06a85bd4224c2cce1
7cef822f3b952965621309e88eadf618da0c8ae9
/src/topology/metric_space/lipschitz.lean
489094067786af1b84f63eb5a3bbc5e99a80aa13
[ "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,423
lean
/- Copyright (c) 2018 Rohan Mitta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov -/ import topology.metric_space.basic import category_theory.endomorphism category_theory.types /-! # Lipsch...
624fca7131466a69fa1f02a7ea7bb347b143d5eb
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/topology/opens.lean
64212f12edf510cb08898a36e2adfbdec8bb1333
[ "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
8,178
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, Floris van Doorn -/ import topology.bases import topology.homeomorph /-! # Open sets ## Summary We define the subtype of open sets in a topological sp...
4b8e2a33dcffa4bfb4f69048f530be1444ac24ac
f5f7e6fae601a5fe3cac7cc3ed353ed781d62419
/src/data/finset.lean
9fc168969abaa0ed958c19cd19bbc7306700d223
[ "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
81,231
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro Finite sets. -/ import logic.embedding order.boolean_algebra algebra.order_functions data.multiset data.sigma.basi...
93e146babc7e3afdc15a065f2dcd923353739535
9a208b2f36ebdb9b100b123c6aa00063414860a7
/src/basic.lean
45ad7fe4b6ce28bff3cb8d62f10e8d0d6a919f55
[ "Apache-2.0" ]
permissive
SnobbyDragon/sudoku
67b0dc46ff3484e29b0d99e1b82d66896ce13ff0
3aa976818a7c950c85d6e7f1a70d329125fcea9b
refs/heads/master
1,675,441,677,467
1,609,123,194,000
1,609,123,194,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
10,250
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 data.set.function import tactic open set def row (i : fin 9) : set (fin 9 × fin 9) := { p | p.1 = i } def col (i : fin 9) : set (fin 9 × fin 9) := { p | p.2 = ...
266bb1a8f8c6122471c387daeb5bbd2fbbb390d0
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/library/algebra/complete_lattice.lean
065970c8cf97908b7ddb099724dd5295e5b221c6
[ "Apache-2.0" ]
permissive
soonhokong/lean-osx
4a954262c780e404c1369d6c06516161d07fcb40
3670278342d2f4faa49d95b46d86642d7875b47c
refs/heads/master
1,611,410,334,552
1,474,425,686,000
1,474,425,686,000
12,043,103
5
1
null
null
null
null
UTF-8
Lean
false
false
14,985
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura Complete lattices TODO: define dual complete lattice and simplify proof of dual theorems. -/ import algebra.lattice data.set.basic algebra.monotone open set ...
ba99ceae375ba381b4162feecc5e0c8973a365b7
da3a76c514d38801bae19e8a9e496dc31f8e5866
/tests/lean/run/my_tac_class.lean
222bb1eaccc2173cd3aa4d7465ca62084ade42d8
[ "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,753
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...
a34d80fe7070cd34fa25181e2e7dcbeecbbb6339
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/interactive/coe.lean
d65992caf5cb2ffb47184e44a7d494ec041b8398
[ "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
164
lean
import data.int open int protected theorem has_decidable_eq₁ [instance] : decidable_eq ℤ := take (a b : ℤ), _ constant n : nat constant i : int check n + i
e1d0ea95e60bdc34c755bf1e469a53bda923f882
1dd482be3f611941db7801003235dc84147ec60a
/src/algebra/ring.lean
c2e72751b9641aa8bd1a9a2e6adc75ce770f1ebc
[ "Apache-2.0" ]
permissive
sanderdahmen/mathlib
479039302bd66434bb5672c2a4cecf8d69981458
8f0eae75cd2d8b7a083cf935666fcce4565df076
refs/heads/master
1,587,491,322,775
1,549,672,060,000
1,549,672,060,000
169,748,224
0
0
Apache-2.0
1,549,636,694,000
1,549,636,694,000
null
UTF-8
Lean
false
false
10,685
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, Floris van Doorn -/ import algebra.group data.set.basic universes u v variable {α : Type u} section variable [semiring α] theorem mul_two (n : α) : ...
00ca9ae8659e7efbdc89b971c5c34b6dd5d03b5e
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/nested_begin_end.lean
470c7969272a76ff41c7dc98c3efc2a65c6bc556
[ "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
543
lean
example (p q : Prop) : p ∧ q ↔ q ∧ p := begin apply iff.intro, begin intro H, apply and.intro, apply (and.elim_right H), apply (and.elim_left H) end, begin intro H, apply and.intro, apply (and.elim_right H), apply (and.elim_left H) end end example (p q : Prop) : p ∧ q ↔ q ∧ ...
9ea350ad2e86cfcfca6fb41d8d4742df8d62c1b7
4dbc106f944ae08d9082a937156fe53f8241336c
/src/data/sigma/on_fst.lean
ae8bbf8bf76fe4a6c49cb561ddca11d4d4efa1c9
[]
no_license
spl/lean-finmap
feff7ee53811b172531f84b20c02e50c787fe6fc
936d9caeb27631e3c6cf20e972de4837c9fe98fa
refs/heads/master
1,584,501,090,642
1,537,511,660,000
1,537,515,626,000
134,227,269
0
0
null
null
null
null
UTF-8
Lean
false
false
4,375
lean
import data.sigma.basic namespace sigma universes u v section variables {α : Type u} {β : α → Type v} theorem eq_fst {s₁ s₂ : sigma β} : s₁ = s₂ → s₁.1 = s₂.1 := by cases s₁; cases s₂; cc theorem eq_snd {s₁ s₂ : sigma β} : s₁ = s₂ → s₁.2 == s₂.2 := by cases s₁; cases s₂; cc end section variables {α₁ α₂ : Type u} ...
b13d26ed1a10035162f1eefa31c5236843e758d1
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/combinatorics/simple_graph/triangle/basic.lean
ed1a2512fedaf666e60d700f0ffb62e94dd3aa48
[ "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
3,052
lean
/- Copyright (c) 2022 Yaël Dillies, Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies, Bhavik Mehta -/ import combinatorics.simple_graph.clique /-! # Triangles in graphs A *triangle* in a simple graph is a `3`-clique, namely a set of three ver...
1a24c013dfdec40b72595b39358c88152e658efe
367134ba5a65885e863bdc4507601606690974c1
/src/order/liminf_limsup.lean
645bfc9c7bfb5a10c885401117cdd3e61f6ad15e
[ "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
22,096
lean
/- Copyright (c) 2018 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel, Johannes Hölzl, Rémy Degenne -/ import order.filter.partial import order.filter.at_top_bot /-! # liminfs and limsups of functions and filters Defines the Liminf...
83923d7c0a4da4591d7a133f049aa6990d5d4b69
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/special_functions/trigonometric/inverse.lean
0d6c733ba75514c0a3bdbd324f70051aa21af647
[ "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
15,503
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 analysis.special_functions.trigonometric.basic import topology.algebra.order.proj_Icc /-! # In...
ce33c69761c3e8b32789c8f66fb7dada91a7fb21
9dc8cecdf3c4634764a18254e94d43da07142918
/src/data/finset/card.lean
fb8634fecac807aa2bbe10de14be50d1e186f420
[ "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,034
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 -/ import data.finset.basic import tactic.by_contra /-! # Cardinality of a finite set This defines the cardinality of a `finset` and provides ...
ababd6463add2ca66eec7d46d369b10a595e6201
0851884047bb567d19e188e8f1ad959c5ae9c5ce
/src/M3P14/sheet2.lean
abba64219857cad183827c3f3f1801897b67bd77
[ "Apache-2.0" ]
permissive
yz5216/xena-UROP-2018
00d3f71a831324966d40d302544ed2cbbec3fd0f
5e9da9dc64dc51897677f8b73ab9f94061a8d977
refs/heads/master
1,584,922,436,989
1,531,487,250,000
1,531,487,250,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,121
lean
import analysis.real -- Questions: -- Compute 210/449 and 605/617 using quadratic reciprocity. -- (449 and 617 are both prime). -- TODO: how to prove it using quadratic reciprocity? theorem q1 : ∃ x y : ℝ, -- Find all 6 primitive roots modulo 19. theorem q2a : -- Show that if n is odd and a is a primitive root mod...
a166bcab431bb3f8d9c601b134fa3feeef334159
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/algebra/free.lean
943813c801394d5a7aece1a11925f77fd4364c45
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
23,950
lean
/- Copyright (c) 2019 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau -/ import algebra.hom.group import algebra.hom.equiv.basic import control.applicative import control.traversable.basic import logic.equiv.defs import data.list.basic /-! # Free c...
248d11f6c4c583e19b89e3ac7e0a5ce4f29ac773
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/eval_expr_error.lean
a77150fe21ee9ecaeda907a597c1753053732b94
[ "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
347
lean
open tactic meta def tst1 (A : Type) : tactic unit := do a ← to_expr ``(0), v ← eval_expr A a, return () run_cmd do a ← to_expr ``(nat.add), v ← eval_expr nat a, trace v, return () run_cmd do a ← to_expr ``(λ x : nat, x + 1), v ← (eval_expr nat a <|> trace "tactic failed" >> return 1), trace v...
bd49fb7e8bbaf3e60854f9379fa8c33afd24b2bb
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/data/nat/dist.lean
7b809ee1d61c17ef3df16226f3dc4e7fca1f9523
[]
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
3,888
lean
/- Copyright (c) 2014 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Jeremy Avigad Distance function on the natural numbers. -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.nat.basic import Mathlib...
3056e179da82554406ff1428164e6a40188ca434
8c9f90127b78cbeb5bb17fd6b5db1db2ffa3cbc4
/Kevins_blog_post_2.lean
fe0b2b91a3cbaa7c18fea0bf9c14bd1fbc6b7aca
[]
no_license
picrin/lean
420f4d08bb3796b911d56d0938e4410e1da0e072
3d10c509c79704aa3a88ebfb24d08b30ce1137cc
refs/heads/master
1,611,166,610,726
1,536,671,438,000
1,536,671,438,000
60,029,899
0
0
null
null
null
null
UTF-8
Lean
false
false
2,850
lean
inductive xnat : Type | zero : xnat | succ : xnat → xnat inductive equality (a : xnat): xnat → Prop | refl : equality a definition equality.trans: Π (a b c : xnat), Π eq1: (equality a b), Π eq2 : (equality b c), equality a c := λ a b c : xnat, λ eq1 : (equality a b), λ eq2 : (equality b c), @equal...
d4663aea49aaabb52b4641ce2541f3627c79b77d
aa3f8992ef7806974bc1ffd468baa0c79f4d6643
/library/data/nat/decl.lean
e0a73bc78ce44460e952886998655969ffb56847
[ "Apache-2.0" ]
permissive
codyroux/lean
7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3
0cca265db19f7296531e339192e9b9bae4a31f8b
refs/heads/master
1,610,909,964,159
1,407,084,399,000
1,416,857,075,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
10,790
lean
--- Copyright (c) 2014 Floris van Doorn. All rights reserved. --- Released under Apache 2.0 license as described in the file LICENSE. --- Author: Floris van Doorn, Leonardo de Moura import logic.eq logic.heq logic.wf logic.decidable logic.if data.prod open eq.ops decidable inductive nat := zero : nat, succ : nat → na...
63b277ab2a77bb6dfea48e5c9ab7ee079c57ca30
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/measure_theory/measurable_space.lean
8298b8bdd1157dcbdb62ce284257a9b04bc4cd55
[ "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
44,676
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.measurable_space_def import measure_theory.tactic /-! # Measurable spaces and measurable functions This file provides proper...
d8c02d68683bbcb24005e2774fec1f99b69aa5da
947b78d97130d56365ae2ec264df196ce769371a
/stage0/src/Lean/Data/Lsp/Capabilities.lean
584599ab0f59e5bb20043630da8ce3a6701f318a
[ "Apache-2.0" ]
permissive
shyamalschandra/lean4
27044812be8698f0c79147615b1d5090b9f4b037
6e7a883b21eaf62831e8111b251dc9b18f40e604
refs/heads/master
1,671,417,126,371
1,601,859,995,000
1,601,860,020,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
991
lean
/- Copyright (c) 2020 Marc Huisinga. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ import Lean.Data.JsonRpc import Lean.Data.Lsp.TextSync /-! Minimal LSP servers/clients do not have to implement a lot of functionality. Most useful...
675e276b7653878d156732e61c7c4d67c850bba7
302b541ac2e998a523ae04da7673fd0932ded126
/tests/simple/higherorder.lean
612916a0c2ad6081e4ddf576a177d67842722c13
[]
no_license
mattweingarten/lambdapure
4aeff69e8e3b8e78ea3c0a2b9b61770ef5a689b1
f920a4ad78e6b1e3651f30bf8445c9105dfa03a8
refs/heads/master
1,680,665,168,790
1,618,420,180,000
1,618,420,180,000
310,816,264
2
1
null
null
null
null
UTF-8
Lean
false
false
115
lean
set_option trace.compiler.ir.init true def higherorder (f: Nat -> Nat) : Nat := f 0 def applied_higher_order()
d480c25ecdccec94e712aa4e5a7f7c7818d9a1a9
fecda8e6b848337561d6467a1e30cf23176d6ad0
/src/geometry/manifold/times_cont_mdiff.lean
1db5d3f0b1ee8bb554419a34b8d9de0e4e1c494c
[ "Apache-2.0" ]
permissive
spolu/mathlib
bacf18c3d2a561d00ecdc9413187729dd1f705ed
480c92cdfe1cf3c2d083abded87e82162e8814f4
refs/heads/master
1,671,684,094,325
1,600,736,045,000
1,600,736,045,000
297,564,749
1
0
null
1,600,758,368,000
1,600,758,367,000
null
UTF-8
Lean
false
false
69,198
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 geometry.manifold.mfderiv import geometry.manifold.local_invariant_properties /-! # Smooth functions between smooth manifolds We define `Cⁿ` functions...
6150f0e7b1c2e38a77792fd27c2fe1b620605293
0c9c1ff8e5013c525bf1d72338b62db639374733
/library/data/rbtree/basic.lean
1b092d90ed2dbfedf291292e604ec0c011bf8de0
[ "Apache-2.0" ]
permissive
semorrison/lean
1f2bb450c3400098666ff6e43aa29b8e1e3cdc3a
85dcb385d5219f2fca8c73b2ebca270fe81337e0
refs/heads/master
1,638,526,143,586
1,634,825,588,000
1,634,825,588,000
258,650,844
0
0
Apache-2.0
1,587,772,955,000
1,587,772,954,000
null
UTF-8
Lean
false
false
8,767
lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ universe u meta def tactic.interactive.blast_disjs : tactic unit := `[cases_type* or] namespace rbnode variables {α : Type u} open color nat inductive i...
62dff1a05dc74486b05e875da91a3bc091db38df
63abd62053d479eae5abf4951554e1064a4c45b4
/src/algebra/category/Group/images.lean
025223dcb2e20a685ce953a1ffccd349478406ba
[ "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
3,299
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.category.Group.abelian import category_theory.limits.shapes.images import category_theory.limits.types /-! # The category of commutative additive grou...
456266622602040710ff5cdfb4cb3c9117bff297
947b78d97130d56365ae2ec264df196ce769371a
/tests/lean/run/cdotTests.lean
084a35cfacd9ee465d65cfe0cabcde760a06348d
[ "Apache-2.0" ]
permissive
shyamalschandra/lean4
27044812be8698f0c79147615b1d5090b9f4b037
6e7a883b21eaf62831e8111b251dc9b18f40e604
refs/heads/master
1,671,417,126,371
1,601,859,995,000
1,601,860,020,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
591
lean
new_frontend class Inc (α : Type) := (inc : α → α) export Inc (inc) instance {α} [Inc α] : Inc (List α) := { inc := (·.map inc) } instance : Inc Nat := { inc := Nat.succ } #eval inc 10 #eval inc [1, 2, 3] theorem ex1 : [(1, "hello"), (2, "world")].map (·.1) = [1, 2] := rfl theorem ex2 : [(1, "hello"), (2, "world...
90236170f9495d72a7f9d88194168288351d7610
97c8e5d8aca4afeebb5b335f26a492c53680efc8
/ground_zero/HITs/colimit.lean
7c93c83ec1d01846f1dabbf36747da9a7bc67bd6
[]
no_license
jfrancese/lean
cf32f0d8d5520b6f0e9d3987deb95841c553c53c
06e7efaecce4093d97fb5ecc75479df2ef1dbbdb
refs/heads/master
1,587,915,151,351
1,551,012,140,000
1,551,012,140,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,770
lean
import ground_zero.types.heq open ground_zero.types.dep_path (pathover_of_eq) /- Sequential colimit. * https://homotopytypetheory.org/2016/01/08/colimits-in-hott/ -/ namespace ground_zero.HITs universes u v inductive colimit.core (α : ℕ → Sort u) (f : Π (n : ℕ), α n → α (n + 1)) | incl {} {n : ℕ} : α n → colim...
30a5c8790bcf42838405a76ed90bdcebd4e0eb00
86f6f4f8d827a196a32bfc646234b73328aeb306
/examples/basics/unnamed_173.lean
7667fdf5c9affa24a2c100c70fcaddb1866177e3
[]
no_license
jamescheuk91/mathematics_in_lean
09f1f87d2b0dce53464ff0cbe592c568ff59cf5e
4452499264e2975bca2f42565c0925506ba5dda3
refs/heads/master
1,679,716,410,967
1,613,957,947,000
1,613,957,947,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
194
lean
import data.real.basic -- BEGIN example (a b c d e f : ℝ) (h : a * b = c * d) (h' : e = f) : a * (b * e) = c * (d * f) := begin rw h', rw ←mul_assoc, rw h, rw mul_assoc end -- END
f94c3333be2008e371161d8ff683f7f2b92309f4
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/measure_theory/ae_measurable_sequence.lean
71244d2b1485c61e47b93a28ae7e3eb91df2fb32
[ "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,370
lean
/- Copyright (c) 2021 Rémy Degenne. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Rémy Degenne -/ import measure_theory.measure_space /-! # Sequence of measurable functions associated to a sequence of a.e.-measurable functions We define here tools to prove statemen...
562f673db4937e7da98fbe23b71b4c054e30157b
c53d5ba209b8af48cc7da493312ee546b152c1f2
/src/Lean/Server/FileWorker.lean
8055ab4a45581b4e2c41a336dbe55bae38cee1fe
[ "Apache-2.0" ]
permissive
bacaimano/lean4
2d3136a7a2cfebd757ae28b9df4102564b0221cc
6ca8389670bd7979172234c3c31b2b394fc69d06
refs/heads/master
1,686,768,155,370
1,625,522,310,000
1,625,556,563,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
17,841
lean
/- Copyright (c) 2020 Marc Huisinga. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Marc Huisinga, Wojciech Nawrocki -/ import Init.System.IO import Std.Data.RBMap import Lean.Environment import Lean.Data.Lsp import Lean.Data.Json.FromToJson import Lean.Server.Util...
d8e60c4f49d356dde264e6add6c3cac65def8b61
ca1ad81c8733787aba30f7a8d63f418508e12812
/clfrags/src/hilbert/wr/neg.lean
414c13326019557d02516d596c08fcb72725a652
[]
no_license
greati/hilbert-classical-fragments
5cdbe07851e979c8a03c621a5efd4d24bbfa333a
18a21ac6b2e890060eb4ae65752fc0245394d226
refs/heads/master
1,591,973,117,184
1,573,822,710,000
1,573,822,710,000
194,334,439
2
0
null
null
null
null
UTF-8
Lean
false
false
363
lean
import core.connectives namespace clfrags namespace hilbert namespace wr namespace neg axiom n₁ : Π {a b : Prop}, a → neg a → b axiom n₂ : Π {a : Prop}, a → neg (neg a) axiom n₃ : Π {a : Prop}, neg (neg a) → a end neg end wr ...
1df1881728340e025e9b41f90f6c39d0f029160b
3446e92e64a5de7ed1f2109cfb024f83cd904c34
/src/game/world2/level7.lean
b03048730c13141ecb8b7d12159c4b5f2bbff4b2
[]
no_license
kckennylau/natural_number_game
019f4a5f419c9681e65234ecd124c564f9a0a246
ad8c0adaa725975be8a9f978c8494a39311029be
refs/heads/master
1,598,784,137,722
1,571,905,156,000
1,571,905,156,000
218,354,686
0
0
null
1,572,373,319,000
1,572,373,318,000
null
UTF-8
Lean
false
false
1,942
lean
import mynat.definition -- hide import mynat.add -- hide import game.world2.level6 -- hide namespace mynat -- hide /- # World 2 -- Addition World ## Level 7 -- `succ_ne_zero` You have these: * `zero_ne_succ : ∀ (a : mynat), zero ≠ succ(a)` * `succ_inj : ∀ a b : mynat, succ(a) = succ(b) → a = b` * `add_zero :...
e5b0e66cbcd8b1c26fb45fc9a77992f9e71a9ae4
5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65
/src/exercises/src_39_square_root_of_two.lean
890f0316fa7d9f280b06f4c662106d303b691904
[]
no_license
gihanmarasingha/mth1001_tutorial
8e0817feeb96e7c1bb3bac49b63e3c9a3a329061
bb277eebd5013766e1418365b91416b406275130
refs/heads/master
1,675,008,746,310
1,607,993,443,000
1,607,993,443,000
321,511,270
3
0
null
null
null
null
UTF-8
Lean
false
false
17,544
lean
import ..library.src_real_field_lemmas import ..library.src_ordered_field_lemmas import data.set.basic import tactic /- There are no explicit exercises in this file, though you may choose to prove examples yourself. The aim of this file is to prove that there is a real number whose square is 2. -/ namespace mth1001 ...
8754143a3bb082cd721f97a5577bc38da47e8c79
8930e38ac0fae2e5e55c28d0577a8e44e2639a6d
/category/basic.lean
07c3fe2e130e6a98d982c3abbaab24e12d0af9f5
[ "Apache-2.0" ]
permissive
SG4316/mathlib
3d64035d02a97f8556ad9ff249a81a0a51a3321a
a7846022507b531a8ab53b8af8a91953fceafd3a
refs/heads/master
1,584,869,960,527
1,530,718,645,000
1,530,724,110,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,228
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 Extends the theory on functors, applicatives and monads. -/ universes u v w x y variables {α β γ : Type u} notation a ` $< `:1 f:1 := f a section functor variables {...
bccfa17ca5403583abfe8e2dd0faaa26e0555c3a
947b78d97130d56365ae2ec264df196ce769371a
/tests/lean/run/expr1.lean
01f1d9596c3098c64fb64da437269e64e0b1e41f
[ "Apache-2.0" ]
permissive
shyamalschandra/lean4
27044812be8698f0c79147615b1d5090b9f4b037
6e7a883b21eaf62831e8111b251dc9b18f40e604
refs/heads/master
1,671,417,126,371
1,601,859,995,000
1,601,860,020,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
4,231
lean
import Lean.Expr new_frontend open Lean def tst1 : IO Unit := do let f := mkConst `f []; let a := mkConst `a []; let b := mkConst `b []; let t := mkAppN f #[a, b, b]; let as₁ := t.getAppArgs; let as₂ := t.getAppRevArgs; IO.println as₁; IO.println as₂; «unless» (as₁.reverse == as₂) $ thr...
891d6b7bbc50cd8faf9f5b37066575a1a5e991d7
31f556cdeb9239ffc2fad8f905e33987ff4feab9
/src/Lean/Elab/Tactic/Conv/Basic.lean
42ca3eb343c70c8127b7f15f6f953362a4f731a4
[ "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
tobiasgrosser/lean4
ce0fd9cca0feba1100656679bf41f0bffdbabb71
ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f
refs/heads/master
1,673,103,412,948
1,664,930,501,000
1,664,930,501,000
186,870,185
0
0
Apache-2.0
1,665,129,237,000
1,557,939,901,000
Lean
UTF-8
Lean
false
false
7,391
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Meta.Reduce import Lean.Meta.Tactic.Apply import Lean.Meta.Tactic.Replace import Lean.Elab.Tactic.Basic import Lean.Elab.Tactic.BuiltinTactic n...
3cf311fb20822f0cd33fc307290e8a09893125fb
bdb33f8b7ea65f7705fc342a178508e2722eb851
/logic/basic.lean
6023505857e4e6278cceea4d9a6b21063ffadff7
[ "Apache-2.0" ]
permissive
rwbarton/mathlib
939ae09bf8d6eb1331fc2f7e067d39567e10e33d
c13c5ea701bb1eec057e0a242d9f480a079105e9
refs/heads/master
1,584,015,335,862
1,524,142,167,000
1,524,142,167,000
130,614,171
0
0
Apache-2.0
1,548,902,667,000
1,524,437,371,000
Lean
UTF-8
Lean
false
false
22,064
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 Theorems that require decidability hypotheses are in the namespace "decidable". Classical versions are in the namespace "classical". Note: in the pres...
50937d5f23ab5866e387224fbdfa9d5ec6006c8c
54deab7025df5d2df4573383df7e1e5497b7a2c2
/algebra/group_power.lean
24b1bbf34508e90687bf44fc137a8e89c2d117b8
[ "Apache-2.0" ]
permissive
HGldJ1966/mathlib
f8daac93a5b4ae805cfb0ecebac21a9ce9469009
c5c5b504b918a6c5e91e372ee29ed754b0513e85
refs/heads/master
1,611,340,395,683
1,503,040,489,000
1,503,040,489,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
5,553
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 The power operation on monoids and groups. We separate this from group, because it depends on nat, which in turn depends on other parts of algebra. We h...
7ed11365d4caf411e6dbe258ed750aab843b9c32
4727251e0cd73359b15b664c3170e5d754078599
/src/analysis/analytic/basic.lean
02deec2c320b5728043983033e9b29272fe43777
[ "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
60,560
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, Yury Kudryashov -/ import analysis.calculus.formal_multilinear_series import analysis.specific_limits.normed import logic.equiv.fin /-! # Analytic functions A f...
9987d0a5b47d829dbe41790ee8c9edbfe5e7d942
a25cc44b447f2fbde61e4b848318762eb892f2bf
/src/basic.lean
aea950c2392b33db8df75d25abeb6c2910f13e6a
[]
no_license
NeilStrickland/itloc
20f9b9bcaa4d5840f7f32e84108174b294d84b1a
5b13b5b418766d10926b983eb3dd2ac42abf63d8
refs/heads/master
1,592,747,030,159
1,578,138,004,000
1,578,138,004,000
197,470,135
2
0
null
null
null
null
UTF-8
Lean
false
false
16,262
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 effectively deals with the cartesian-closed category of finite posets and the associated "strong homotopy category". However, we have taken an ad hoc approa...
98189d232af36ff33fefcfad7379cb8e0cab2cab
c45b34bfd44d8607a2e8762c926e3cfaa7436201
/uexp/src/uexp/rules/pushAggregateThroughJoin3.lean
c77b12259347fcebf09f99740de9df444e3399cd
[ "BSD-2-Clause" ]
permissive
Shamrock-Frost/Cosette
b477c442c07e45082348a145f19ebb35a7f29392
24cbc4adebf627f13f5eac878f04ffa20d1209af
refs/heads/master
1,619,721,304,969
1,526,082,841,000
1,526,082,841,000
121,695,605
1
0
null
1,518,737,210,000
1,518,737,210,000
null
UTF-8
Lean
false
false
2,166
lean
import ..sql import ..tactics import ..u_semiring import ..extra_constants import ..ucongr import ..TDP set_option profiler true open Expr open Proj open Pred open SQL open tree notation `int` := datatypes.int variable integer_10: const datatypes.int theorem rule: forall ( Γ scm_t scm_account scm_bonus scm_dept sc...
56207647e252167fa4c13a66bdb5a4430d29c774
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/limits/pi.lean
f332f4f13ec6ef54f5844ad0f2e466acd95ce611
[ "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,616
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 category_theory.pi.basic import category_theory.limits.has_limits /-! # Limits in the category of indexed families of objects. > THIS FILE IS SYNCHRONIZED WI...
2160387e81d2a233a403142649e7fac82acbfa85
b7f22e51856f4989b970961f794f1c435f9b8f78
/library/data/list/perm.lean
24be55f54c4d4f6d7d9ac6a2f8f890542e5d6d2e
[ "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
40,848
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura List permutations. -/ import data.list.basic data.list.set open list setoid nat binary variables {A B : Type} inductive perm : list A → list A → Prop := | ni...
6c4e5c784c55b336c80402fa446b61f67435fbc4
572fb32b6f5b7c2bf26921ffa2abea054cce881a
/src/week_1/Part_A_logic.lean
d987f38a7623ab932662788f588fd863c4bb8159
[ "Apache-2.0" ]
permissive
kgeorgiy/lean-formalising-mathematics
2deb30756d5a54bee1cfa64873e86f641c59c7dc
73429a8ded68f641c896b6ba9342450d4d3ae50f
refs/heads/master
1,683,029,640,682
1,621,403,041,000
1,621,403,041,000
367,790,347
0
0
null
null
null
null
UTF-8
Lean
false
false
11,626
lean
-- We import all of Lean's standard tactics import tactic /-! # Logic We will develop the basic theory of following five basic logical symbols * `→` ("implies" -- type with `\l`) * `¬` ("not" -- type with `\not` or `\n`) * `∧` ("and" -- type with `\and` or `\an`) * `↔` ("iff" -- type with `\iff` or `\lr`) * `∨` ("or...
655b366535ce4b33644ac2c1e984d688ac1805c4
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/480.hlean
fac44c49e04ca7b5e988efee64878b732de714c9
[ "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
32
hlean
open is_trunc check is_contr.mk
ec8483047be45600c1f7abda62e2e135fea1d932
63abd62053d479eae5abf4951554e1064a4c45b4
/src/data/list/range.lean
db1b84bbe0e187d04ab6f473ff3c3677ae49ac92
[ "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
9,015
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Kenny Lau, Scott Morrison -/ import data.list.chain import data.list.nodup import data.list.of_fn open nat namespace list /- iota and range(') -/ universe u variabl...
908f9cec8d8e47140003314abaa00077b518b837
54d7e71c3616d331b2ec3845d31deb08f3ff1dea
/library/init/algebra/order.lean
eabb7f6f815e06ff7356dbac815179a437448ce1
[ "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
9,796
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.logic /- Make sure instances defined in this file have lower priority than the ones defined for concrete structures -/ set_option def...
071d729799d5d48cb6403bb2391d883468c3bfa1
56762daf61566a2baf390b5d77988c29c75187e3
/src/diffeomorph.lean
329248d754a658d5ce05778a5837cbc9de390738
[]
no_license
Nicknamen/lie_group
de173ce5f1ffccb945ba05dca23ff27daef0e3b4
e0d5c4f859654e3dea092702f1320c3c72a49983
refs/heads/master
1,674,937,428,196
1,607,213,423,000
1,607,213,423,000
275,196,635
0
0
null
null
null
null
UTF-8
Lean
false
false
2,264
lean
import .preamble_results variables {𝕜 : Type*} [nondiscrete_normed_field 𝕜] {E : Type*} [normed_group E] [normed_space 𝕜 E] {E' : Type*} [normed_group E'] [normed_space 𝕜 E'] {F : Type*} [normed_group F] [normed_space 𝕜 F] {F' : Type*} [normed_group F'] [normed_space 𝕜 F'] {H : Type*} [topological_space H] {H' :...
0c7501fcff0740feea2d7f0e98c374ba0696280a
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/test/qpf.lean
b015723e205d61dac33b78bf4bb4bc3223180fd5
[ "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,214
lean
import data.qpf.univariate.basic import control.bifunctor universes u variables {F : Type u → Type u} [functor F] namespace qpf section box variables (F) /-- apply a functor to a set of values. taken from [Basil Fürer, Andreas Lochbihler, Joshua Schneider, Dmitriy Traytel *Quotients of Bounded Natural Functors*][f...
f40a64ea3e5774f8cf7e4be01ad8420ec0b8f554
4727251e0cd73359b15b664c3170e5d754078599
/src/control/traversable/derive.lean
b15f65b7dc517e8b87f9a26512819e2663e9aedd
[ "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
17,031
lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon Automation to construct `traversable` instances -/ import control.traversable.lemmas namespace tactic.interactive open tactic list monad functor meta def with_prefix : opt...
362404595cb4d3dbfcc6612023f8431a60abaa77
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/topology/algebra/order/t5.lean
1faf616de80a7ea6c21708c156ddd30a84f54b9f
[ "Apache-2.0" ]
permissive
alreadydone/mathlib
dc0be621c6c8208c581f5170a8216c5ba6721927
c982179ec21091d3e102d8a5d9f5fe06c8fafb73
refs/heads/master
1,685,523,275,196
1,670,184,141,000
1,670,184,141,000
287,574,545
0
0
Apache-2.0
1,670,290,714,000
1,597,421,623,000
Lean
UTF-8
Lean
false
false
4,379
lean
/- Copyright (c) 2022 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import topology.algebra.order.basic import data.set.intervals.ord_connected_component /-! # Linear order is a completely normal Hausdorff topological space In thi...
b7d0706975aab83f837ac780fdb24ded475ea675
1a61aba1b67cddccce19532a9596efe44be4285f
/hott/algebra/field.hlean
39751c30242832afbb4d650702a103b927121adc
[ "Apache-2.0" ]
permissive
eigengrau/lean
07986a0f2548688c13ba36231f6cdbee82abf4c6
f8a773be1112015e2d232661ce616d23f12874d0
refs/heads/master
1,610,939,198,566
1,441,352,386,000
1,441,352,494,000
41,903,576
0
0
null
1,441,352,210,000
1,441,352,210,000
null
UTF-8
Lean
false
false
19,026
hlean
/- Copyright (c) 2014 Robert Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Lewis Structures with multiplicative and additive components, including division rings and fields. The development is modeled after Isabelle's library. Ported from the standard ...
1e812edee0d3266d546d174bd9fc9f66f6d74d75
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/list/range.lean
94e3d326fd7bdc0c67bb7bbedd38c1880b33713f
[ "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
10,935
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Kenny Lau, Scott Morrison -/ import data.list.chain import data.list.zip /-! # Ranges of naturals as lists > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to...
13380c73728d8e3b36f32ce3786b2607d5f2f0e7
09b3e1beaeff2641ac75019c9f735d79d508071d
/Mathlib/Tactic/NormNum.lean
d78a22b8e737f8790682e344aae713eaf5d251be
[ "Apache-2.0" ]
permissive
abentkamp/mathlib4
b819079cc46426b3c5c77413504b07541afacc19
f8294a67548f8f3d1f5913677b070a2ef5bcf120
refs/heads/master
1,685,309,252,764
1,623,232,534,000
1,623,232,534,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,594
lean
/- Copyright (c) 2021 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Lean.Elab.Tactic.Basic import Mathlib.Algebra.Ring.Basic namespace Lean namespace Meta instance Semiring.OfNat [Semiring α] : OfNat α n := Numeric.OfNat def...
1d8de5e6d2556a49f2ef56fff5915ce2d3040d2a
54ce0561cebde424526f41d45f490ed56be2bd0c
/src/game/ch2_Natural_Numbers/2_Addition.lean
838407d80cb35f6088fa00f91c5c2a16d49328cd
[]
no_license
melembroucarlitos/Tao_Analysis-LEAN
cf7b3298d317891a09e4bf21cfe7c7ffcb57b9a9
3f4fc7e090d96b6cef64896492fba4bef124794b
refs/heads/master
1,692,952,385,694
1,636,287,522,000
1,636,287,522,000
400,630,166
3
0
null
1,635,910,807,000
1,630,096,823,000
Lean
UTF-8
Lean
false
false
160
lean
-- Level name : Addition /- # Hey yall ## This is just to a placeholder to make sure all is working these are some words and these are some other words -/
83e5f2252c29552a2d95206737ff28fb0c5d6840
a721fe7446524f18ba361625fc01033d9c8b7a78
/src/principia/myring/quotients.lean
725a34aefeada762527dda3678e75ac7673e3fb1
[]
no_license
Sterrs/leaning
8fd80d1f0a6117a220bb2e57ece639b9a63deadc
3901cc953694b33adda86cb88ca30ba99594db31
refs/heads/master
1,627,023,822,744
1,616,515,221,000
1,616,515,221,000
245,512,190
2
0
null
1,616,429,050,000
1,583,527,118,000
Lean
UTF-8
Lean
false
false
5,350
lean
import .ideal namespace hidden namespace myring -- at some point this could be done as a very general construction -- of quotient groups, I suppose. variables {α : Type} [myring α] -- not exactly sure what the most principled type-classical approach is -- because really we do want to be explicit about which ideal ...
16fbb39e5296d089db9773e5aba32609adae0eea
e514e8b939af519a1d5e9b30a850769d058df4e9
/test/rewrite_search_discovery.lean
e86417d08401b53ef428ec3e6a0c598ac5ba9f66
[]
no_license
semorrison/lean-rewrite-search
dca317c5a52e170fb6ffc87c5ab767afb5e3e51a
e804b8f2753366b8957be839908230ee73f9e89f
refs/heads/master
1,624,051,754,485
1,614,160,817,000
1,614,160,817,000
162,660,605
0
1
null
null
null
null
UTF-8
Lean
false
false
4,532
lean
import tactic.rewrite_search open tactic.rewrite_search.discovery namespace tactic.rewrite_search.testing @[bundle] meta def algebraic_geometry : bundle := {} private axiom foo : [0] = [1] private axiom bar1 : [1] = [2] private axiom bar2 : [3] = [2] private axiom bar3 : [3] = [4] private def my_example (a : unit)...