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
1a70918169ae2e111e270674875e98a7b491615a
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/category_theory/preadditive/additive_functor.lean
5feb4407bbef75382aa2df9efccee65c649a0b8e
[ "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,364
lean
/- Copyright (c) 2021 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz, Scott Morrison -/ import category_theory.preadditive import category_theory.limits.shapes.biproducts /-! # Additive Functors A functor between two preadditive categories is c...
c5a25063092538d41461c500ca201dc483e22e93
d9d511f37a523cd7659d6f573f990e2a0af93c6f
/src/ring_theory/derivation.lean
9c8f44687429af08c6c2785f72a054eff795a33d
[ "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
10,021
lean
/- Copyright © 2020 Nicolò Cavalleri. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Nicolò Cavalleri -/ import algebra.lie.of_associative import ring_theory.algebra_tower /-! # Derivations This file defines derivation. A derivation `D` from the `R`-algebra `A` to t...
d95c50bc59de9062e9198ce79b921dae75fb52b5
618003631150032a5676f229d13a079ac875ff77
/src/topology/category/UniformSpace.lean
5128c59f9799203e25705fa04a14c3d23f3413c9
[ "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
6,387
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Reid Barton, Patrick Massot, Scott Morrison -/ import category_theory.monad.limits import topology.uniform_space.completion import topology.category.Top.basic /-! # The category of un...
85fe35ae71c6e02913079c25d87d2caa8c376e43
f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58
/data/string.lean
1eb1322158fe05f98885116060546e36240af970
[ "Apache-2.0" ]
permissive
semorrison/mathlib
1be6f11086e0d24180fec4b9696d3ec58b439d10
20b4143976dad48e664c4847b75a85237dca0a89
refs/heads/master
1,583,799,212,170
1,535,634,130,000
1,535,730,505,000
129,076,205
0
0
Apache-2.0
1,551,697,998,000
1,523,442,265,000
Lean
UTF-8
Lean
false
false
2,486
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro Supplementary theorems about the `string` type. -/ import data.list.basic data.char namespace string def ltb : iterator → iterator → bool | s₁ s₂ := begin cases s₂.h...
c357e35987f561f1c8a2d08a0df59b494dee1e31
26ac254ecb57ffcb886ff709cf018390161a9225
/src/topology/algebra/multilinear.lean
a6c334934c571701d0db7724544883fdef0f1e44
[ "Apache-2.0" ]
permissive
eric-wieser/mathlib
42842584f584359bbe1fc8b88b3ff937c8acd72d
d0df6b81cd0920ad569158c06a3fd5abb9e63301
refs/heads/master
1,669,546,404,255
1,595,254,668,000
1,595,254,668,000
281,173,504
0
0
Apache-2.0
1,595,263,582,000
1,595,263,581,000
null
UTF-8
Lean
false
false
12,870
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 topology.algebra.module import linear_algebra.multilinear /-! # Continuous multilinear maps We define continuous multilinear maps as maps from `Π(i : ι...
6868684460a14d9c5119262aa7c1284a2a02362e
94637389e03c919023691dcd05bd4411b1034aa5
/src/zzz_junk/lang/arith_expr.lean
60a6bb21b08e4d58a49abdedf9ae78d5cfbc11e7
[]
no_license
kevinsullivan/complogic-s21
7c4eef2105abad899e46502270d9829d913e8afc
99039501b770248c8ceb39890be5dfe129dc1082
refs/heads/master
1,682,985,669,944
1,621,126,241,000
1,621,126,241,000
335,706,272
0
38
null
1,618,325,669,000
1,612,374,118,000
Lean
UTF-8
Lean
false
false
1,190
lean
import .env -- Abstract syntax of arithmetic expressions inductive arith_expr : Type | lit_arith_expr (n : nat) | var_arith_expr (v : var nat) | add_arith_expr (e1 e2 : arith_expr) | mul_arith_expr (e1 e2 : arith_expr) open arith_expr universe u --def arith_expr_eval : var_state nat → arith_expr → nat def arith_...
9578b01bb98d9db5992ebf71c70efd2aa4b61076
37a833c924892ee3ecb911484775a6d6ebb8984d
/src/category_theory/limits/examples/CommRing/equalizers.lean
3d85d017c9694a4ab994b76a8d673723b5154239
[]
no_license
silky/lean-category-theory
28126e80564a1f99e9c322d86b3f7d750da0afa1
0f029a2364975f56ac727d31d867a18c95c22fd8
refs/heads/master
1,589,555,811,646
1,554,673,665,000
1,554,673,665,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,714
lean
import ring_theory.subring import tactic.subtype_instance import category_theory.examples.rings import category_theory.limits.equalizers universes u v w namespace category_theory.examples open category_theory open category_theory.limits variables {α : Type v} -- While it seems this might be a good global extension...
d5e5e0b8a16b376e22574ff1b163c2a986036238
1446f520c1db37e157b631385707cc28a17a595e
/src/Init/Data/Int/Basic.lean
1da9c54831f40f1d4d092c5e656126eba578aa8a
[ "Apache-2.0" ]
permissive
bdbabiak/lean4
cab06b8a2606d99a168dd279efdd404edb4e825a
3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac
refs/heads/master
1,615,045,275,530
1,583,793,696,000
1,583,793,696,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
4,409
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 The integers, with addition, multiplication, and subtraction. -/ prelude import Init.Data.Nat.Basic import Init.Data.List import Init.Data.Repr import ...
334e58536891f08af85515975bbbbb3fb11fadfb
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/src/Init/Data/OfScientific.lean
584bec1c3c59a0fc681f82adbb8566c7c82d6577
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
EdAyers/lean4
57ac632d6b0789cb91fab2170e8c9e40441221bd
37ba0df5841bde51dbc2329da81ac23d4f6a4de4
refs/heads/master
1,676,463,245,298
1,660,619,433,000
1,660,619,433,000
183,433,437
1
0
Apache-2.0
1,657,612,672,000
1,556,196,574,000
Lean
UTF-8
Lean
false
false
1,664
lean
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import Init.Meta import Init.Data.Float import Init.Data.Nat /-- For decimal and scientific numbers (e.g., `1.23`, `3.12e10`). Examples: - `O...
9708b8a94ece2a3bfaabe1fbcbde55b70e8393c5
d8820d2c92be8052d13f9c8f8c483a6e15c5f566
/src/M40002/M40002_C7.lean
4240b22b232105d0eaf6fe5c2497ebee7eeb73b9
[]
no_license
JasonKYi/M4000x_LEAN_formalisation
4a19b84f6d0fe2e214485b8532e21cd34996c4b1
6e99793f2fcbe88596e27644f430e46aa2a464df
refs/heads/master
1,599,755,414,708
1,589,494,604,000
1,589,494,604,000
221,759,483
8
1
null
1,589,494,605,000
1,573,755,201,000
Lean
UTF-8
Lean
false
false
518
lean
-- M40002 (Analysis I) Chapter 7. Darboux Integration import M40002.M40002_C6 namespace M40002 variables {a₁ a₂ : ℝ} -- Definition of partitions structure darboux_partition (n : ℕ) (a b : ℝ) := (xₖ : ℕ → ℝ) (seq_min : xₖ 0 = a) (seq_max : xₖ n = b) (increasing : strict_mono xₖ) #check darboux_partition --theorem ...
8bb4a67208106918a513d41ac25f86eb76641bf2
3dc4623269159d02a444fe898d33e8c7e7e9461b
/.github/workflows/geo/global.lean
6afe29c4de35ef71c64ad5a78b1ed5aa4ce53e2d
[]
no_license
Or7ando/lean
cc003e6c41048eae7c34aa6bada51c9e9add9e66
d41169cf4e416a0d42092fb6bdc14131cee9dd15
refs/heads/master
1,650,600,589,722
1,587,262,906,000
1,587,262,906,000
255,387,160
0
0
null
null
null
null
UTF-8
Lean
false
false
63
lean
import algebra.category.CommRing import category_theory.types
2be9bb399892b49718b8b2b4e8553422d59a1959
367134ba5a65885e863bdc4507601606690974c1
/src/set_theory/ordinal_notation.lean
04090459047162d0233439e56de379c83be5a58a
[ "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
35,723
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro -/ import set_theory.ordinal_arithmetic /-! # Ordinal notation Constructive ordinal arithmetic for ordinals below `ε₀`. We define a type `onote`, with constructors `0...
152d795a420ea21dd437c9ca96edbc39082198a9
453dcd7c0d1ef170b0843a81d7d8caedc9741dce
/analysis/topology/topological_structures.lean
514a9c05b53e819cd891b5c0a0ecbcd214c0ea23
[ "Apache-2.0" ]
permissive
amswerdlow/mathlib
9af77a1f08486d8fa059448ae2d97795bd12ec0c
27f96e30b9c9bf518341705c99d641c38638dfd0
refs/heads/master
1,585,200,953,598
1,534,275,532,000
1,534,275,532,000
144,564,700
0
0
null
1,534,156,197,000
1,534,156,197,000
null
UTF-8
Lean
false
false
46,946
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro Theory of topological monoids, groups and rings. TODO: generalize `topological_monoid` and `topological_add_monoid` to semigroups, or add a type class ...
48deaaf909291a1766e87aae2e05ee991c20425e
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/imp_curly.lean
7e83f4a2a87a576f6915ed2755e638f090182b7b
[ "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
255
lean
import data.nat.basic open nat theorem zero_left (n : ℕ) : 0 + n = n := nat.induction_on n !nat.add_zero (take m IH, show 0 + succ m = succ m, from calc 0 + succ m = succ (0 + m) : add_succ ... = succ m : IH)
15db4046dfd38cd736cc9ee6fa32ce5df034af61
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/measure_theory/ae_eq_fun_auto.lean
186e1e728843def2e83764f259fd6915ee6b5b1b
[]
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
35,917
lean
/- Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Zhouhang Zhou -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.measure_theory.integration import Mathlib.order.filter.germ i...
776dc8e72d243f523d931a658daef584a8a9a56c
dd0f5513e11c52db157d2fcc8456d9401a6cd9da
/09_Type_Classes.org.13.lean
3c32a7398266e1a8bd58415ce35865c8e37b547c
[]
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
171
lean
import standard namespace hide -- BEGIN definition ite (c : Prop) [H : decidable c] {A : Type} (t e : A) : A := decidable.rec_on H (λ Hc, t) (λ Hnc, e) -- END end hide
60874d5dfadf3c8c83dc494172cf199a247d31f6
bb31430994044506fa42fd667e2d556327e18dfe
/src/data/finset/fold.lean
b42a0a14e09a4e1c64f63f780562fa4856d98815
[ "Apache-2.0" ]
permissive
sgouezel/mathlib
0cb4e5335a2ba189fa7af96d83a377f83270e503
00638177efd1b2534fc5269363ebf42a7871df9a
refs/heads/master
1,674,527,483,042
1,673,665,568,000
1,673,665,568,000
119,598,202
0
0
null
1,517,348,647,000
1,517,348,646,000
null
UTF-8
Lean
false
false
9,017
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 algebra.order.monoid.with_top import data.finset.image import data.multiset.fold /-! # The fold operation for a commutative associative operation over a finse...
b497726a3475484cc04f6e673af8fd915e362499
2eab05920d6eeb06665e1a6df77b3157354316ad
/src/category_theory/preadditive/schur.lean
d26a1bc79623df78dc01fe542415b935b2583de3
[ "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
6,925
lean
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel, Scott Morrison -/ import category_theory.simple import category_theory.linear import category_theory.endomorphism import field_theory.is_alg_closed.basic /-! # Schur's ...
89977e8c12cf6328b21eb2a7031cf8a3212eafbd
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/j1.lean
1512acd8764047488c9e5a30500acc4dd44b21ef
[ "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
694
lean
import tactic import macros definition bracket (A : Type) : Bool := ∀ p : Bool, (A → p) → p rewrite_set basic add_rewrite imp_truel imp_truer imp_id eq_id : basic theorem bracket_eq (x : Bool) : bracket x = x := boolext (assume H : ∀ p : Bool, (x → p) → p, (show ((x → x) → x) = x, by simp basic) ◂ H...
a5c38d949bc64cbd3602db129a74e030ad315ef2
f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58
/category_theory/natural_transformation.lean
3393fbaecd02a595bcfc8a4b2034550deceae1be
[ "Apache-2.0" ]
permissive
semorrison/mathlib
1be6f11086e0d24180fec4b9696d3ec58b439d10
20b4143976dad48e664c4847b75a85237dca0a89
refs/heads/master
1,583,799,212,170
1,535,634,130,000
1,535,730,505,000
129,076,205
0
0
Apache-2.0
1,551,697,998,000
1,523,442,265,000
Lean
UTF-8
Lean
false
false
4,718
lean
/- Copyright (c) 2017 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Tim Baumann, Stephen Morgan, Scott Morrison Defines natural transformations between functors. Introduces notations `F ⟹ G` for the type of natural transformations between functors ...
802650e59ea71696771ff2d702e4be16d66b6b74
4e3bf8e2b29061457a887ac8889e88fa5aa0e34c
/lean/love12_basic_mathematical_structures_exercise_solution.lean
56b1f566047cac806fda03894beed8d871b7d16b
[]
no_license
mukeshtiwari/logical_verification_2019
9f964c067a71f65eb8884743273fbeef99e6503d
16f62717f55ed5b7b87e03ae0134791a9bef9b9a
refs/heads/master
1,619,158,844,208
1,585,139,500,000
1,585,139,500,000
249,906,380
0
0
null
1,585,118,728,000
1,585,118,727,000
null
UTF-8
Lean
false
false
3,499
lean
/- LoVe Exercise 12: Basic Mathematical Structures -/ import .lovelib import .love12_basic_mathematical_structures_demo namespace LoVe set_option pp.beta true /- Question 1: Type Classes -/ namespace btree /- Recall the datatype `btree` we introduced earlier: -/ #check btree /- The following function takes two...
8863a6529cd7ca070adacea0fefc53eede5f2bb7
c777c32c8e484e195053731103c5e52af26a25d1
/src/field_theory/galois.lean
5b4cc08749054af9c09f448155f48bc994052fa2
[ "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
18,907
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 field_theory.primitive_element import field_theory.fixed import group_theory.group_action.fixing_subgroup /-! # Galois Extensio...
d17fe185889f7a418feafa9c1290484e73ea23fc
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/tests/lean/run/hmul2.lean
e6fe11f4ab31414926343bf39ec37b204b8f6b51
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
EdAyers/lean4
57ac632d6b0789cb91fab2170e8c9e40441221bd
37ba0df5841bde51dbc2329da81ac23d4f6a4de4
refs/heads/master
1,676,463,245,298
1,660,619,433,000
1,660,619,433,000
183,433,437
1
0
Apache-2.0
1,657,612,672,000
1,556,196,574,000
Lean
UTF-8
Lean
false
false
1,111
lean
@[defaultInstance] instance [Mul α] : HMul α (Array α) (Array α) where hMul a as := as.map (a * ·) instance [Mul α] : Mul (Array α) where mul as bs := (as.zip bs).map fun (a, b) => a * b #eval 2 * #[3, 4, 5] #eval (2:Nat) * #[3, 4, 5] #check fun x => x * 2 #check fun y : Int => let x := 1; x * y #check fun y :...
791b85e1b396ca89d988f7329c272f29c92a5e81
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/tactic/where.lean
af89ecb3318cf76917763e8a81918a5af9aedfb0
[ "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
7,335
lean
/- Copyright (c) 2019 Keeley Hoek. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Keeley Hoek -/ import tactic.core /-! # The `where` command When working in a Lean file with namespaces, parameters, and variables, it can be confusing to identify what the current "pa...
ee4f8713e63821848dc58a11d5dbbec23221cd86
77c5b91fae1b966ddd1db969ba37b6f0e4901e88
/src/algebra/pointwise.lean
8a442825c789c7d6e1fcfd2bd4a6aba2e98f80e6
[ "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
34,757
lean
/- Copyright (c) 2019 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Floris van Doorn -/ import algebra.module.basic import data.set.finite import group_theory.submonoid.basic /-! # Pointwise addition, multiplication, and scalar multipl...
8aa91cf3aeea8dbea56537b0646b5e5829131189
5412d79aa1dc0b521605c38bef9f0d4557b5a29d
/stage0/src/Leanpkg/LeanVersion.lean
6622486fd5111cb5f48c3996be5fff5f552e9a6f
[ "Apache-2.0" ]
permissive
smunix/lean4
a450ec0927dc1c74816a1bf2818bf8600c9fc9bf
3407202436c141e3243eafbecb4b8720599b970a
refs/heads/master
1,676,334,875,188
1,610,128,510,000
1,610,128,521,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
723
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 -/ namespace Leanpkg def leanVersionStringCore := s!"{Lean.version.major}.{Lean.version.minor}.{Lean.version.patch}" def leanVersionString :...
3b49fd775d966d79aafd4e441ed4de211abd1458
968e2f50b755d3048175f176376eff7139e9df70
/examples/pred_logic/unnamed_392.lean
e721acfb731fbb318896ecb473546088718f0687
[]
no_license
gihanmarasingha/mth1001_sphinx
190a003269ba5e54717b448302a27ca26e31d491
05126586cbf5786e521be1ea2ef5b4ba3c44e74a
refs/heads/master
1,672,913,933,677
1,604,516,583,000
1,604,516,583,000
309,245,750
1
0
null
null
null
null
UTF-8
Lean
false
false
139
lean
import data.int.basic -- BEGIN example : (∀ x : ℤ, x^2 ≥ 0) → ((-(4 : ℤ))^2 ≥ 0) := begin intro h, exact h (-4), end -- END
0540eb255d9c3df5db3351e91fda3d5c52016307
63abd62053d479eae5abf4951554e1064a4c45b4
/src/combinatorics/adj_matrix.lean
1c7f34d915d7ab1f155d2d7cce28ad376798ada4
[ "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,149
lean
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Aaron Anderson, Jalex Stark. -/ import linear_algebra.matrix import data.rel import combinatorics.simple_graph /-! # Adjacency Matrices This module defines the adjacency matrix of a ...
f4a7026e71243accc8171ae6ebd5efce249217c6
1abd1ed12aa68b375cdef28959f39531c6e95b84
/src/data/polynomial/eval.lean
de3d21442d62735e5853005424bd91d36a22215e
[ "Apache-2.0" ]
permissive
jumpy4/mathlib
d3829e75173012833e9f15ac16e481e17596de0f
af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13
refs/heads/master
1,693,508,842,818
1,636,203,271,000
1,636,203,271,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
28,790
lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker -/ import data.polynomial.degree.definitions /-! # Theory of univariate polynomials The main defs here are `eval₂`, `eval`,...
0cda5ba8972585fc205ae41c3e36f6b9f66d608a
5bcdf53ae59d93bf05c4a6b7780107f9bba8a987
/4_Predicates.lean
eae6df94b193ec57eed21a45bc2b1dfb728726ae
[]
no_license
joshpoll/CPDT-examples-in-Lean
3241734e80c8507934a9fbf2ddfed9eedc1ed27b
287aebec9a4a9dc4a07b8e4cc885c81afe400f1a
refs/heads/master
1,611,267,038,438
1,498,610,301,000
1,498,610,301,000
95,181,904
0
0
null
null
null
null
UTF-8
Lean
false
false
3,997
lean
import mini_crush namespace hide -- *Inductive Predicates #print unit #print true -- term T : Type is a type of programs -- it is inhabited by programs -- term T : Prop is a logical proposition -- it is inhabited by proofs -- there *is* a difference between programming and proving in practice -- proof irrelevance ...
f19b855cc9b434d9e86eaa006178059f099829a1
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/tests/lean/trace2.lean
44b26f45fd96eb06b05096502a13814d811b6b0c
[ "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
307
lean
open tactic declare_trace foo.bla example : true := by do when_tracing `foo.bla $ do { trace "hello", trace "world" }, constructor set_option trace.foo.bla true print "------------" example : true := by do when_tracing `foo.bla $ do { trace "hello", trace "world" }, constructor
8ebc0aa8a4f9f7be70f9e8ffe0233d0b3b6539d5
c777c32c8e484e195053731103c5e52af26a25d1
/src/analysis/normed_space/banach_steinhaus.lean
215a4b76028b6382a85a55da5926953b411172ed
[ "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
6,380
lean
/- Copyright (c) 2021 Jireh Loreaux. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jireh Loreaux -/ import analysis.normed_space.operator_norm import topology.metric_space.baire import topology.algebra.module.basic /-! # The Banach-Steinhaus theorem: Uniform Boundedne...
6cedf2fb223fd29f23b85217c055e841c386613b
c777c32c8e484e195053731103c5e52af26a25d1
/src/analysis/special_functions/integrals.lean
9291d26b5273a74de8c0a1ed58fceb2cdc044ee4
[ "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
32,658
lean
/- Copyright (c) 2021 Benjamin Davidson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Benjamin Davidson -/ import measure_theory.integral.fund_thm_calculus import analysis.special_functions.trigonometric.arctan_deriv /-! # Integration of specific interval integrals ...
bf8d2a77afd961108b2e396bb3c8e96a8bb54a46
491068d2ad28831e7dade8d6dff871c3e49d9431
/hott/types/pointed.hlean
c9f5353947160a27361ed2b8dde9ca34079bef7e
[ "Apache-2.0" ]
permissive
davidmueller13/lean
65a3ed141b4088cd0a268e4de80eb6778b21a0e9
c626e2e3c6f3771e07c32e82ee5b9e030de5b050
refs/heads/master
1,611,278,313,401
1,444,021,177,000
1,444,021,177,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
9,866
hlean
/- Copyright (c) 2014 Jakob von Raumer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jakob von Raumer, Floris van Doorn Ported from Coq HoTT -/ import arity .eq .bool .unit .sigma open is_trunc eq prod sigma nat equiv option is_equiv bool unit structure pointed [c...
baeba083048bafa5d8385389f72a1f046aa093f5
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/data/vector3.lean
925a9cb462d7736a0868a10b6c3674417ee33ff0
[ "Apache-2.0" ]
permissive
alreadydone/mathlib
dc0be621c6c8208c581f5170a8216c5ba6721927
c982179ec21091d3e102d8a5d9f5fe06c8fafb73
refs/heads/master
1,685,523,275,196
1,670,184,141,000
1,670,184,141,000
287,574,545
0
0
Apache-2.0
1,670,290,714,000
1,597,421,623,000
Lean
UTF-8
Lean
false
false
8,024
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.fin.fin2 import tactic.localized /-! # Alternate definition of `vector` in terms of `fin2` This file provides a locale `vector3` which overrides the `[a...
f2fcfb27be3bb8238a621ff85059b4f2bf720699
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/level1.lean
257fe6e79eb92ce183596e062544e467c510b715
[ "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
35
lean
variable T : (Type (max U+1 U+2)).
8ae335ba3aac10273635b831f2e60e93ce49accf
d9d511f37a523cd7659d6f573f990e2a0af93c6f
/src/analysis/specific_limits.lean
e8642844330a56b6ad401b6bc11d9ede2375f66a
[ "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
45,391
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 analysis.asymptotics.asymptotics import order.filter.archimedean import order.iterate import topology.instances.ennreal /-! # A collec...
50d566c6e71bffb7126648918232e0b6b44879f1
e00ea76a720126cf9f6d732ad6216b5b824d20a7
/src/algebra/punit_instances.lean
c8646f87c12aee402f23dca0c2d6bf34582e234d
[ "Apache-2.0" ]
permissive
vaibhavkarve/mathlib
a574aaf68c0a431a47fa82ce0637f0f769826bfe
17f8340912468f49bdc30acdb9a9fa02eeb0473a
refs/heads/master
1,621,263,802,637
1,585,399,588,000
1,585,399,588,000
250,833,447
0
0
Apache-2.0
1,585,410,341,000
1,585,410,341,000
null
UTF-8
Lean
false
false
3,434
lean
/- Copyright (c) 2019 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau Instances on punit. -/ import algebra.module universes u namespace punit variables (x y : punit.{u+1}) (s : set punit.{u+1}) @[to_additive add_comm_group] instance : comm_gro...
6650ba4add763f13c7af765326e19b25b2b766b2
37da0369b6c03e380e057bf680d81e6c9fdf9219
/hott/homotopy/vankampen.hlean
71dd3850860800613a92d8afadcf76aca8ffbb5a
[ "Apache-2.0" ]
permissive
kodyvajjha/lean2
72b120d95c3a1d77f54433fa90c9810e14a931a4
227fcad22ab2bc27bb7471be7911075d101ba3f9
refs/heads/master
1,627,157,512,295
1,501,855,676,000
1,504,809,427,000
109,317,326
0
0
null
1,509,839,253,000
1,509,655,713,000
C++
UTF-8
Lean
false
false
14,775
hlean
/- Copyright (c) 2016 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn -/ import hit.pushout hit.prop_trunc algebra.category.constructions.pushout algebra.category.constructions.fundamental_groupoid algebra.category.functor.equi...
e85edbebebafd2c673339a7eb0137124b1e401e9
80746c6dba6a866de5431094bf9f8f841b043d77
/src/topology/instances/nnreal.lean
3272ac2f11d3f9e89726f5d800ce47561db04185
[ "Apache-2.0" ]
permissive
leanprover-fork/mathlib-backup
8b5c95c535b148fca858f7e8db75a76252e32987
0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0
refs/heads/master
1,585,156,056,139
1,548,864,430,000
1,548,864,438,000
143,964,213
0
0
Apache-2.0
1,550,795,966,000
1,533,705,322,000
Lean
UTF-8
Lean
false
false
3,970
lean
/- Copyright (c) 2018 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin Nonnegative real numbers. -/ import data.real.nnreal topology.instances.real topology.algebra.infinite_sum noncomputable theory open set topological_space metric names...
aedbf9e9dc19b64992543a1dcc94c5f11d30fd8f
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/binsearch.lean
e39767faa4255c76d9f2f861e9956bb4a804cdae
[ "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
441
lean
partial def mkAssocArray : Nat → Array (Nat × Bool) → Array (Nat × Bool) | 0, as => as | i+1, as => mkAssocArray i (as.push (i, i % 2 == 0)) def tst (n : Nat) : IO Unit := do let as := mkAssocArray n Array.empty; IO.println as; let as := as.qsort (fun a b => a.1 < b.1); for i in [:2*n] do let entry := as.binSearc...
5f5cc75e9f892690196be8d3e17a2f8334baeb46
6fbf10071e62af7238f2de8f9aa83d55d8763907
/answers/hw1.lean
cba24904826fd4a82951a9cb7d977850dc788aa6
[]
no_license
HasanMukati/uva-cs-dm-s19
ee5aad4568a3ca330c2738ed579c30e1308b03b0
3e7177682acdb56a2d16914e0344c10335583dcf
refs/heads/master
1,596,946,213,130
1,568,221,949,000
1,568,221,949,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,275
lean
section hw1 /- 1a. (10 pts) Define a binding from the name "seven" to the value 7. -/ def seven: ℕ := 7 /- 1b. (10 pts) Use #check to determine the type of "seven" -/ #check seven /- 2a. (15 pts) Define a function in "C Style" (see section 2.4.6.2) called "cube" that takes a single argument, x, and returns the val...
a351ebf1bf8a6e40951cf8be9e2390c209016951
bb31430994044506fa42fd667e2d556327e18dfe
/src/probability/kernel/basic.lean
6dba6cfff2e73906194b5004e3eddd102c62ba08
[ "Apache-2.0" ]
permissive
sgouezel/mathlib
0cb4e5335a2ba189fa7af96d83a377f83270e503
00638177efd1b2534fc5269363ebf42a7871df9a
refs/heads/master
1,674,527,483,042
1,673,665,568,000
1,673,665,568,000
119,598,202
0
0
null
1,517,348,647,000
1,517,348,646,000
null
UTF-8
Lean
false
false
22,490
lean
/- Copyright (c) 2022 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.constructions.prod /-! # Markov Kernels A kernel from a measurable space `α` to another measurable space `β` is a measurable map `α → measure β`,...
392f43b6a4e7694dbf217c0df08f0f31e8ef09aa
b561a44b48979a98df50ade0789a21c79ee31288
/stage0/src/Lean/Parser/Term.lean
03f060740edd6a33acb085403f03cf6283720ef5
[ "Apache-2.0" ]
permissive
3401ijk/lean4
97659c475ebd33a034fed515cb83a85f75ccfb06
a5b1b8de4f4b038ff752b9e607b721f15a9a4351
refs/heads/master
1,693,933,007,651
1,636,424,845,000
1,636,424,845,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
19,546
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 -/ import Lean.Parser.Attr import Lean.Parser.Level namespace Lean namespace Parser namespace Command def commentBody : Parser := { fn := ...
a014beccc40d23fcb4b40c5c53302ab2a87c173a
1abd1ed12aa68b375cdef28959f39531c6e95b84
/src/linear_algebra/multilinear/basic.lean
343cbdbab88b01646bc847d1fc9316242fac45fd
[ "Apache-2.0" ]
permissive
jumpy4/mathlib
d3829e75173012833e9f15ac16e481e17596de0f
af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13
refs/heads/master
1,693,508,842,818
1,636,203,271,000
1,636,203,271,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
52,298
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 import algebra.algebra.basic import algebra.big_operators.order import algebra.big_operators.ring import data.fintype.card import da...
70e4ffdc87a356185631fb5aabfbcf9157281e0a
aa3f8992ef7806974bc1ffd468baa0c79f4d6643
/library/algebra/binary.lean
452fb63311587cc08b42ba9bb7d0c8b6836c31aa
[ "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
1,263
lean
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Author: Leonardo de Moura import logic.eq open eq.ops namespace binary context variable {A : Type} variable f : A → A → A infixl `*` := f definition commutative ...
fbbea1e9d8ac77027274c93b35ee9fa7895d9d4c
968e2f50b755d3048175f176376eff7139e9df70
/examples/prop_logic_lean_summary/unnamed_364.lean
c47e9e25b03e2a9750d3bca2ab77a1f9727a118f
[]
no_license
gihanmarasingha/mth1001_sphinx
190a003269ba5e54717b448302a27ca26e31d491
05126586cbf5786e521be1ea2ef5b4ba3c44e74a
refs/heads/master
1,672,913,933,677
1,604,516,583,000
1,604,516,583,000
309,245,750
1
0
null
null
null
null
UTF-8
Lean
false
false
281
lean
variables p q r : Prop -- BEGIN example (h : p ∨ q) (h₂ : p → r) (h₃ : q → r) : r := begin cases h with hp hq, { exact h₂ hp, }, -- `h₂ hp` is implication elimination to give `r`. { apply h₃, exact hq, }, -- A tactic-style implication elimination. end -- END
eb620b3edff9fe1dbc4dd4119df71c8921e85a73
d1a52c3f208fa42c41df8278c3d280f075eb020c
/src/Lean/Widget/TaggedText.lean
7b1992c1d3c927c49ba0cc7cebd19de76ba1f85f
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
cipher1024/lean4
6e1f98bb58e7a92b28f5364eb38a14c8d0aae393
69114d3b50806264ef35b57394391c3e738a9822
refs/heads/master
1,642,227,983,603
1,642,011,696,000
1,642,011,696,000
228,607,691
0
0
Apache-2.0
1,576,584,269,000
1,576,584,268,000
null
UTF-8
Lean
false
false
4,251
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ import Lean.Data.Json.FromToJson import Lean.Server.Rpc.Basic namespace Lean.Widget open Server /-- The minimal structure needed to represent "string wit...
65820a2a4fbdba7c7e1a8b5bf91220be668c9be6
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/src/Init/Lean/Elab/DoNotation.lean
4f6095889a6b255ac4127b3ea5607439ded3e16b
[ "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
8,918
lean
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import Init.Lean.Elab.Term import Init.Lean.Elab.Binders import Init.Lean.Elab.Quotation namespace Lean namespace Elab namespace Term structure Ex...
257c1b0d2c569d97c0fd27cbd7c79231d95c38ef
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/category_theory/action.lean
1b12ce516042b5b809a889af8804333bb0a93f9d
[ "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
3,267
lean
/- Copyright (c) 2020 David Wärn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Wärn -/ import category_theory.groupoid import category_theory.endomorphism import category_theory.elements import group_theory.group_action import category_theory.single_obj /-! #...
36cdad255dbc677168aee6b896965dacbf5eca46
022547453607c6244552158ff25ab3bf17361760
/src/ring_theory/ideal/operations.lean
96d00790d52fc540892e50133f4a1c56f0bd4223
[ "Apache-2.0" ]
permissive
1293045656/mathlib
5f81741a7c1ff1873440ec680b3680bfb6b7b048
4709e61525a60189733e72a50e564c58d534bed8
refs/heads/master
1,687,010,200,553
1,626,245,646,000
1,626,245,646,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
67,360
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau -/ import algebra.algebra.operations import algebra.algebra.tower import data.equiv.ring import data.nat.choose.sum import ring_theory.ideal.basic import ring_theory.non_zero_divi...
472c567ea8d7e28ad2e1192e54ed2d51c1df8954
e0f9ba56b7fedc16ef8697f6caeef5898b435143
/src/logic/function/basic.lean
cb6c49ba8245be15dfcb4480fdc827970747f4fa
[ "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
12,344
lean
/- Copyright (c) 2016 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 logic.basic import data.option.defs /-! # Miscellaneous function constructions and lemmas -/ universes u v w namespace function section var...
c4b75a2e682463db400db36bc7e1f63ddabc1b46
f3a5af2927397cf346ec0e24312bfff077f00425
/experiments/UFD_experiments.lean
ccb69f569d1c51a687f65b83094a41eee5faf025
[ "Apache-2.0" ]
permissive
ImperialCollegeLondon/natural_number_game
05c39e1586408cfb563d1a12e1085a90726ab655
f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd
refs/heads/master
1,688,570,964,990
1,636,908,242,000
1,636,908,242,000
195,403,790
277
84
Apache-2.0
1,694,547,955,000
1,562,328,792,000
Lean
UTF-8
Lean
false
false
730
lean
-- WIP -- this might be awful to do without int. import solutions.world3_le import data.nat.basic #print prefix nat namespace mynat def divides (a b : mynat) := ∃ c, a * c = b instance : has_dvd mynat := ⟨mynat.divides⟩ def is_prime (n : mynat) : Prop := n ≠ 1 ∧ ∀ d, d ∣ n → d = 1 ∨ d = n theorem has_prime_factor...
9551952ec51adc4d9667acd76faa8f1f353c24b8
618003631150032a5676f229d13a079ac875ff77
/src/category_theory/reflect_isomorphisms.lean
24c588af4467ca7b37c9fd3a53b45b766e73551d
[ "Apache-2.0" ]
permissive
awainverse/mathlib
939b68c8486df66cfda64d327ad3d9165248c777
ea76bd8f3ca0a8bf0a166a06a475b10663dec44a
refs/heads/master
1,659,592,962,036
1,590,987,592,000
1,590,987,592,000
268,436,019
1
0
Apache-2.0
1,590,990,500,000
1,590,990,500,000
null
UTF-8
Lean
false
false
2,658
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 open category_theory category_theory.limits namespace category_theory universes v₁ v₂ u₁ u₂ variables {C : Type u₁} [category....
3e689a6da0c28db0206f68c140b07aeeab86cd5e
5412d79aa1dc0b521605c38bef9f0d4557b5a29d
/tests/bench/binarytrees.lean
5e5e4e6d4096dd2deee080cc3acd080ef6f3881f
[ "Apache-2.0" ]
permissive
smunix/lean4
a450ec0927dc1c74816a1bf2818bf8600c9fc9bf
3407202436c141e3243eafbecb4b8720599b970a
refs/heads/master
1,676,334,875,188
1,610,128,510,000
1,610,128,521,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,709
lean
#lang lean4 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 -...
538cb6a9b5c9d2fbeb4d3a1a6aa9273fde7457f3
367134ba5a65885e863bdc4507601606690974c1
/src/algebra/category/CommRing/colimits.lean
686f037027f53caeada74a71a0aa4ae81ad34f70
[ "Apache-2.0" ]
permissive
kodyvajjha/mathlib
9bead00e90f68269a313f45f5561766cfd8d5cad
b98af5dd79e13a38d84438b850a2e8858ec21284
refs/heads/master
1,624,350,366,310
1,615,563,062,000
1,615,563,062,000
162,666,963
0
0
Apache-2.0
1,545,367,651,000
1,545,367,651,000
null
UTF-8
Lean
false
false
12,907
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 algebra.category.CommRing.basic import category_theory.limits.limits import category_theory.limits.concrete_category /-! # The category of commutative rings h...
8fd33bf0d246b71571b93fb4a576437033a3104d
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/tests/lean/run/match_convoy.lean
661d109e343c326e2d7252b5d706b383472d1ba4
[ "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
2,699
lean
definition foo (a b : bool) : bool := match a, b with | tt, ff := tt | tt, tt := tt | ff, tt := tt | ff, ff := ff end example : foo tt tt = tt := rfl example : foo tt ff = tt := rfl example : foo ff tt = tt := rfl example : foo ff ff = ff := rfl inductive vec (A : Type) : nat → Type | nil {} : vec nat.zero | cons :...
3d694a301b144a54ba8a1a0a715639cbb1cc7c58
367134ba5a65885e863bdc4507601606690974c1
/src/measure_theory/ae_eq_fun.lean
cfb6b9e09869ddf8d5ae30c61a268a11b2df9c31
[ "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
18,485
lean
/- Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Zhouhang Zhou -/ import measure_theory.integration import order.filter.germ /-! # Almost everywhere equal functions Two measurable functions are treat...
af35c0fc072ab123e08d63ff7ae02f0b3e2af3ce
9028d228ac200bbefe3a711342514dd4e4458bff
/src/analysis/special_functions/exp_log.lean
f2681bcec96ecea6269b1ff0469fa7b0647e3684
[ "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
23,281
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 -/ import data.complex.exponential import analysis.complex.basic import analysis.calculus.mean_value import measure_theory.bo...
7383a0330ebe29a0c62d6b553b9ac135fac54edd
122543640bfbfedbcee1318bfdbd466ead2716a7
/src/p3.lean
ee54b73dcd07e6b39310c6c0c76ad4b8e4bdb8e6
[]
no_license
jsm28/bmo2-2020-lean
f038489093312c97b9cae3cdb9410b2683ccb11f
ff87ce51ed080d462e63c5549d5f2b377ad83204
refs/heads/master
1,692,783,059,184
1,689,807,657,000
1,689,807,657,000
239,362,030
9
0
null
null
null
null
UTF-8
Lean
false
false
112,814
lean
-- BMO2 2020 problem 3. import data.fintype.basic import data.nat.parity import logic.function.basic import tactic.interval_cases import tactic.linarith import tactic.ring_exp noncomputable theory open_locale classical open finset -- The grid. abbreviation grid (n : ℕ) := fin n × fin n -- A colouring of the grid (...
8de7a3b4c44d4aed48f66e814922ba7ab71d389a
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/topology/continuous_function/ordered.lean
a1dda9e2021ef6e7c2e9301d4137d411bfa67f8a
[ "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
4,673
lean
/- Copyright © 2021 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Shing Tak Lam -/ import topology.algebra.ordered.proj_Icc import topology.continuous_function.basic /-! # Bundled continuous maps into orders, with order-compatible top...
4f9c0fc767f8d9a232774f39ac8bdba17d93877e
df561f413cfe0a88b1056655515399c546ff32a5
/8-inequality-world/l12.lean
bf3564c659c92382955a00f635e869ab7f820146
[]
no_license
nicholaspun/natural-number-game-solutions
31d5158415c6f582694680044c5c6469032c2a06
1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0
refs/heads/main
1,675,123,625,012
1,607,633,548,000
1,607,633,548,000
318,933,860
3
1
null
null
null
null
UTF-8
Lean
false
false
280
lean
theorem le_of_succ_le_succ (a b : mynat) : succ a ≤ succ b → a ≤ b := begin intro h, repeat { rw succ_eq_add_one at h }, cases h with c hc, rw add_assoc a 1 c at hc, rw add_comm 1 c at hc, rw ← add_assoc a c 1 at hc, rw add_right_cancel_iff at hc, rw hc, use c, refl, end
f204d3cdb2a20af346202de36dded39569d9993a
d9d511f37a523cd7659d6f573f990e2a0af93c6f
/src/tactic/interval_cases.lean
85349e969e3379b1d599edde3a2e767cca8959d2
[ "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
10,951
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison Case bashing on variables in finite intervals. In particular, `interval_cases n` 1) inspects hypotheses looking for lower and upper bounds of the form `a ≤ n` and `n <...
b3501339428e59f9cc0ccb06fe7639c3286618e5
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/ring_theory/valuation/basic.lean
929c71e77aa42a5d84c6265191c0386154d8a8d7
[]
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
19,015
lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Buzzard, Johan Commelin, Patrick Massot -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebra.linear_ordered_comm_group_with_zero import Mathlib.a...
d9fe26f182215ba9bc35a8d27377d4469d229581
9b9a16fa2cb737daee6b2785474678b6fa91d6d4
/src/algebra/archimedean.lean
ec056444c297f779141f644156fd33be7e031bdd
[ "Apache-2.0" ]
permissive
johoelzl/mathlib
253f46daa30b644d011e8e119025b01ad69735c4
592e3c7a2dfbd5826919b4605559d35d4d75938f
refs/heads/master
1,625,657,216,488
1,551,374,946,000
1,551,374,946,000
98,915,829
0
0
Apache-2.0
1,522,917,267,000
1,501,524,499,000
Lean
UTF-8
Lean
false
false
13,671
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro Archimedean groups and fields. -/ import algebra.group_power data.rat tactic.linarith tactic.abel local infix ` • ` := add_monoid.smul variables {α : Type*} class fl...
75c003f27b113bc2eb282d2e822b4c1894ff119c
9dc8cecdf3c4634764a18254e94d43da07142918
/src/analysis/normed/group/seminorm.lean
abf47e5688a0501213f2551e371de1475324cad1
[ "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
20,163
lean
/- Copyright (c) 2022 María Inés de Frutos-Fernández, Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: María Inés de Frutos-Fernández, Yaël Dillies -/ import algebra.order.hom.basic import data.real.nnreal /-! # Group seminorms This file defines norms and...
5cee6fe782b1e470fa6080f0c532032f6f70717d
f1a12d4db0f46eee317d703e3336d33950a2fe7e
/common/auxiliary.lean
735c8e4fa1b4bf5b7a04b690d1141a205c769ded
[ "Apache-2.0" ]
permissive
avigad/qelim
bce89b79c717b7649860d41a41a37e37c982624f
b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60
refs/heads/master
1,584,548,938,232
1,526,773,708,000
1,526,773,708,000
134,967,693
2
0
null
null
null
null
UTF-8
Lean
false
false
6,087
lean
variables {α β γ : Type} lemma le_iff_le (x1 x2 y1 y2 : int) : x1 = x2 → y1 = y2 → (x1 ≤ y1 ↔ x2 ≤ y2) := begin intros h1 h2, rewrite h1, rewrite h2 end lemma or_of_not_imp_right {p q} : (¬ q → p) → p ∨ q := begin intro h, cases (classical.em q) with hq hq, apply or.inr hq, apply or.inl (h hq) end lemma...
9017a8df721ac923e32806b4301b050752449a80
6094e25ea0b7699e642463b48e51b2ead6ddc23f
/hott/types/trunc.hlean
818473643cad10667d248943cdef2eb132c8b02a
[ "Apache-2.0" ]
permissive
gbaz/lean
a7835c4e3006fbbb079e8f8ffe18aacc45adebfb
a501c308be3acaa50a2c0610ce2e0d71becf8032
refs/heads/master
1,611,198,791,433
1,451,339,111,000
1,451,339,111,000
48,713,797
0
0
null
1,451,338,939,000
1,451,338,939,000
null
UTF-8
Lean
false
false
10,135
hlean
/- Copyright (c) 2015 Jakob von Raumer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn Properties of is_trunc and trunctype -/ -- NOTE: the fact that (is_trunc n A) is a mere proposition is proved in .hprop_trunc import types.pi types.eq types.equiv...
de1b9624a1e9d5a209b4e072a693e905f6545fb1
26b8b0964ca8e1c2e203585ba5940f83fe05e48a
/src/tidy/repeat_at_least_once.lean
9225a68cfe675427913d23f58315e3405a5df50b
[]
no_license
jcommelin/lean-tidy
ef3cd32a3804221d93f0dff9e180bb2c52f4b143
9cecf497e90db64b5ea140ad6ae1603976dcd402
refs/heads/master
1,585,129,919,276
1,533,512,680,000
1,533,512,680,000
143,677,361
0
0
null
1,616,803,481,000
1,533,530,576,000
Lean
UTF-8
Lean
false
false
791
lean
-- Copyright (c) 2017 Scott Morrison. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Authors: Scott Morrison namespace tactic variable {α : Type} private meta def repeat_with_results_aux (t : tactic α) : list α → tactic (list α) | L := do r ← try_core t, matc...
4678408101528c6dc8a6d38e79e981915fc59644
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/analysis/calculus/specific_functions.lean
d02ba83483161cc35f840c13b27e257ecda281a9
[ "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
23,017
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, Floris van Doorn -/ import analysis.calculus.iterated_deriv import analysis.inner_product_space.euclidean_dist import measure_theory.function.locally_integrable i...
1facbdd1ceede17f22061d9fec1dc631e32ad306
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/library/init/fin.lean
36a14fff59abc275e3483372508567aa537bb05c
[ "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
845
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ prelude import init.nat open nat structure fin (n : nat) := (val : nat) (is_lt : val < n) namespace fin variable {n : nat} lemma eq_of_veq : ∀ {i j : fin ...
6f91f92bb27df39406851c7475bb9a61f00ea650
8b9f17008684d796c8022dab552e42f0cb6fb347
/library/data/countable.lean
dda63c4686dfdbe3a47c031ddb37494064ea5ff0
[ "Apache-2.0" ]
permissive
chubbymaggie/lean
0d06ae25f9dd396306fb02190e89422ea94afd7b
d2c7b5c31928c98f545b16420d37842c43b4ae9a
refs/heads/master
1,611,313,622,901
1,430,266,839,000
1,430,267,083,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
323
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Module: data.countable Author: Leonardo de Moura Define countable types -/ import algebra.function open function definition countable (A : Type) : Prop := ∃ f : A → nat, injective f
9085a4ed12bb1b2a7c78ea016203264a0ef6c669
1fbca480c1574e809ae95a3eda58188ff42a5e41
/src/util/meta/tactic/monotonicity/default.lean
2bb8e4697d39a719b3b3f3004939143e444b493e
[]
no_license
unitb/lean-lib
560eea0acf02b1fd4bcaac9986d3d7f1a4290e7e
439b80e606b4ebe4909a08b1d77f4f5c0ee3dee9
refs/heads/master
1,610,706,025,400
1,570,144,245,000
1,570,144,245,000
99,579,229
5
0
null
null
null
null
UTF-8
Lean
false
false
75
lean
import util.meta.tactic.monotonicity.predicate import tactic.monotonicity
a50ef7221a9678cae726ca8c09e0648167bc4282
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/category_theory/limits/preserves/shapes/terminal.lean
15214fa3dda50bcad05d9c936a405b7bacf6d218
[ "Apache-2.0" ]
permissive
alreadydone/mathlib
dc0be621c6c8208c581f5170a8216c5ba6721927
c982179ec21091d3e102d8a5d9f5fe06c8fafb73
refs/heads/master
1,685,523,275,196
1,670,184,141,000
1,670,184,141,000
287,574,545
0
0
Apache-2.0
1,670,290,714,000
1,597,421,623,000
Lean
UTF-8
Lean
false
false
8,223
lean
/- Copyright (c) 2020 Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta -/ import category_theory.limits.shapes.terminal import category_theory.limits.preserves.basic /-! # Preserving terminal object Constructions to relate the notions of pres...
5bd40080302f8c57bfc3b4b2bd14ce9641685b0d
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/ring_theory/graded_algebra/basic.lean
86eebeb51333aee4754411c74af9ffb4af20b863
[ "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,126
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 /-...
6635f625614b191fee29c0a174a242115da17c25
0ec6b5eb2131429a4464b8e6c6f09897abba3de1
/src/abelianization.lean
0c336355631e67a6689661dfd7ccc0d6c2722692
[]
no_license
kckennylau/local-langlands-abelian
ba1b86e9d956778cd28ac900ffec02b0f0ba172a
ee22666898357dab800a0432214a22c519ed26a9
refs/heads/master
1,584,671,060,846
1,545,151,246,000
1,545,151,246,000
137,111,892
8
0
null
null
null
null
UTF-8
Lean
false
false
4,106
lean
-- Hausdorff abelianization, i.e. -- quotient by the closure of the commutator import group_theory.abelianization import .topological_group universes u v theorem list.prod_map {G : Type u} {H : Type v} [group G] [group H] (f : G → H) [is_group_hom f] {L : list G} : (L.map f).prod = f L.prod := list.re...
6a38fb53aea7151c76a9e3e8c23418271c535b88
36c7a18fd72e5b57229bd8ba36493daf536a19ce
/library/theories/combinatorics/choose.lean
2815ec80a6a1138fe2e6153e2ebd7c0bd3f03f9f
[ "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
8,543
lean
/- Copyright (c) 2015 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad Binomial coefficients, "n choose k". -/ import data.nat.div data.nat.fact data.finset open decidable open algebra namespace nat /- choose -/ definition choose : ℕ → ℕ →...
bbad085a0191b0563b0317c522c2397410f69c35
e898bfefd5cb60a60220830c5eba68cab8d02c79
/uexp/src/uexp/rules/transitiveInferenceConstantEquiPredicate.lean
f3c22dff39369cdad3ad645efd6565ed4dee6c32
[ "BSD-2-Clause" ]
permissive
kkpapa/Cosette
9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce
fda8fdbbf0de6c1be9b4104b87bbb06cede46329
refs/heads/master
1,584,573,128,049
1,526,370,422,000
1,526,370,422,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,898
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_1: const datatypes.int theorem rule: forall ( Γ scm_t scm_account scm_bonus scm_dept sc...
aa4167027685546d585a85a0d25dedc2c2f01964
618003631150032a5676f229d13a079ac875ff77
/src/algebra/group_power.lean
7f60e507f9b8d683aaa441bc576e1550064e9f70
[ "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
29,714
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 data.int.basic import data.equiv.basic import deprecated.ring /-! # Power operations on monoids and groups The power operation on monoids and ...
8c2793ccee9316d6406eca91f58bcff487f417a7
bb31430994044506fa42fd667e2d556327e18dfe
/src/linear_algebra/matrix/adjugate.lean
9652c44789d95d0af5758af2a0c6359ad4ebc50d
[ "Apache-2.0" ]
permissive
sgouezel/mathlib
0cb4e5335a2ba189fa7af96d83a377f83270e503
00638177efd1b2534fc5269363ebf42a7871df9a
refs/heads/master
1,674,527,483,042
1,673,665,568,000
1,673,665,568,000
119,598,202
0
0
null
1,517,348,647,000
1,517,348,646,000
null
UTF-8
Lean
false
false
19,068
lean
/- Copyright (c) 2019 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import algebra.regular.basic import linear_algebra.matrix.mv_polynomial import linear_algebra.matrix.polynomial import ring_theory.polynomial.basic /-! # Cramer's rule and...
0ae0e62523d6571257c5f838212bd02a57293d24
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/568.lean
326c186e6f91e09e77994f4922c631eea79f1c32
[ "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
227
lean
namespace f1 definition flip := (20:num) end f1 namespace f2 definition flip := (10:num) end f2 namespace f3 export [declaration] f1 export - [declaration] f2 end f3 export [declaration] f1 export - [declaration] f2
2c4cb613e870eb77158ab4c23f8cabb200e6af92
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/default_param2.lean
c5bb9b416bbea31a2e633f452af8ec080f2fbe8b
[ "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,063
lean
universe variable u def f (a : nat) (o : nat := 5) := a + o example : f 1 = f 1 5 := rfl #check f 1 structure config := (v1 := 10) (v2 := 20) (flag := tt) (ps := ["hello", "world"]) def g (a : nat) (c : config := {}) : nat := if c^.flag then a + c^.v1 else a + c^.v2 example : g 1 = 11 := rfl example : g 1 ...
1e86b85c4b57e153c2257b13c038a92a831674a7
9dc8cecdf3c4634764a18254e94d43da07142918
/src/analysis/special_functions/gamma.lean
da22edf4b5bb95abc1a5ea1596d9bb884040ec43
[ "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
23,737
lean
/- Copyright (c) 2022 David Loeffler. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Loeffler -/ import measure_theory.integral.exp_decay import analysis.calculus.parametric_integral /-! # The Gamma function This file defines the `Γ` function (of a real or comp...
5acd7af9aec76473f461f81f709b4ae851047cd5
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/analysis/calculus/times_cont_diff.lean
81f84c1acc17032df47b5e52be61bb632fd2ee76
[ "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
143,898
lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel -/ import analysis.calculus.mean_value import analysis.normed_space.multilinear import analysis.calculus.formal_multilinear_series /-! # Higher differentiability ...
22cf59eb9575bd53a912988206b5cadafc755a11
a45212b1526d532e6e83c44ddca6a05795113ddc
/test/fin_cases.lean
dbf68f28fd3cd30c2665334cd706b20944ce1578
[ "Apache-2.0" ]
permissive
fpvandoorn/mathlib
b21ab4068db079cbb8590b58fda9cc4bc1f35df4
b3433a51ea8bc07c4159c1073838fc0ee9b8f227
refs/heads/master
1,624,791,089,608
1,556,715,231,000
1,556,715,231,000
165,722,980
5
0
Apache-2.0
1,552,657,455,000
1,547,494,646,000
Lean
UTF-8
Lean
false
false
1,846
lean
import tactic.fin_cases import data.nat.prime import group_theory.perm.sign import tactic.norm_num example (f : ℕ → Prop) (p : fin 3) (h0 : f 0) (h1 : f 1) (h2 : f 2) : f p.val := begin fin_cases *, simp, assumption, simp, assumption, simp, assumption, end example (x2 : fin 2) (x3 : fin 3) (n : nat) (y : fin ...
22ee0f309ab1db48942c128d1a9e3a6163a74762
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/doc_string1.lean
51f6a4edb9c8a495ebc7aa5362e70ed925fc9d53
[ "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
705
lean
/-- Documentation for x ``` #reduce x + x ``` Testing... -/ def x := 10 + 20 def y := "alo" open tactic run_cmd do d ← doc_string `x, trace d run_cmd add_doc_string `y "testing simple doc" run_cmd do d ← doc_string `y, trace d namespace foo namespace bla /-- Documentation for single testi...
a610482a4ac702d5f3fb1053b47e6eee2479a9aa
4efff1f47634ff19e2f786deadd394270a59ecd2
/src/data/padics/padic_numbers.lean
aa473f0cbc2ae045a3546e85ea5312d9f3d7660c
[ "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
37,645
lean
/- Copyright (c) 2018 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ import data.padics.padic_norm import analysis.normed_space.basic /-! # p-adic numbers This file defines the p-adic numbers (rationals) `ℚ_p` as the completion of...
3f4f94df742bef40ba282e16cca79ca81eb900d3
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/data/polynomial/degree/lemmas.lean
a5e766e58544f5535f931ea27902c511f04518b8
[ "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
8,718
lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker -/ import data.polynomial.eval import tactic.interval_cases /-! # Theory of degrees of polynomials Some of the main results...
18da71e4c6a9488c6a6793e4f5de50e1602441b6
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/compiler/init.lean
e83f7f519a7adee88270334057ddea95af43ea93
[ "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
551
lean
namespace Foo initialize ref : IO.Ref Nat ← IO.mkRef 10 initialize vals : IO.Ref (Array String) ← IO.mkRef #[] def registerVal (s : String) : IO Unit := do if (← vals.get).contains s then throw $ IO.userError "value already registered" vals.modify (·.push s) initialize IO.println "started the program" ref.m...
e19deb6358056799bdcb700cbab3107ca44ea5d9
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/category_theory/monoidal/free/coherence.lean
f2fdac8bbe094ffa1bdb4ca4e95979d0e9428af1
[ "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
12,095
lean
/- Copyright (c) 2021 Markus Himmel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel -/ import category_theory.monoidal.free.basic import category_theory.groupoid import category_theory.discrete_category /-! # The monoidal coherence theorem In this file,...
525ec18dc3f9dc376fb2b63287385c757f009241
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/doc/examples/Certora2022/ex12.lean
0dd359f0db407aaf07ed4fb7aee09ad918920f59
[ "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
649
lean
/- Type classes -/ namespace Example class ToString (α : Type u) where toString : α → String #check @ToString.toString -- {α : Type u_1} → [self : ToString α] → α → String instance : ToString String where toString s := s instance : ToString Bool where toString b := if b then "true" else "false" #eval ToStrin...
6b30039b55f7e4612993933f1569d84322d63188
b561a44b48979a98df50ade0789a21c79ee31288
/src/Lean/Elab/PreDefinition/WF/TerminationHint.lean
10cc9714d605a2758efccc3fb21fab13aa56dbfe
[ "Apache-2.0" ]
permissive
3401ijk/lean4
97659c475ebd33a034fed515cb83a85f75ccfb06
a5b1b8de4f4b038ff752b9e607b721f15a9a4351
refs/heads/master
1,693,933,007,651
1,636,424,845,000
1,636,424,845,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,138
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.Parser.Command namespace Lean.Elab.WF structure TerminationHintValue where ref : Syntax value : Syntax deriving Inhabited inductive T...
e2d24f802395255fe58e149b3601eb86ae4e4d8f
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/algebra/continued_fractions/computation/approximation_corollaries.lean
c7beb82197e1db5ed8726befab1d8847b802e662
[ "Apache-2.0" ]
permissive
AntoineChambert-Loir/mathlib
64aabb896129885f12296a799818061bc90da1ff
07be904260ab6e36a5769680b6012f03a4727134
refs/heads/master
1,693,187,631,771
1,636,719,886,000
1,636,719,886,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
6,548
lean
/- Copyright (c) 2021 Kevin Kappelmann. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Kappelmann -/ import algebra.continued_fractions.computation.approximations import algebra.continued_fractions.convergents_equiv import topology.algebra.ordered.basic /-! # Cor...
4736da0ce003912e058b93e20ce3e04e34b2a3e3
5ae26df177f810c5006841e9c73dc56e01b978d7
/src/topology/uniform_space/completion.lean
bf9a949adf6bb6072687fee14a859f834048851d
[ "Apache-2.0" ]
permissive
ChrisHughes24/mathlib
98322577c460bc6b1fe5c21f42ce33ad1c3e5558
a2a867e827c2a6702beb9efc2b9282bd801d5f9a
refs/heads/master
1,583,848,251,477
1,565,164,247,000
1,565,164,247,000
129,409,993
0
1
Apache-2.0
1,565,164,817,000
1,523,628,059,000
Lean
UTF-8
Lean
false
false
26,722
lean
/- Copyright (c) 2018 Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Patrick Massot, Johannes Hölzl Hausdorff completions of uniform spaces. The goal is to construct a left-adjoint to the inclusion of complete Hausdorff uniform spaces into all uniform...
4a1fa206cc3d1892a0554003024b5bc94947a59e
df561f413cfe0a88b1056655515399c546ff32a5
/6-advanced-addition-world/l7.lean
2a3d5f1adf95ac629cc1dfb9f50b5d52162bc0ba
[]
no_license
nicholaspun/natural-number-game-solutions
31d5158415c6f582694680044c5c6469032c2a06
1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0
refs/heads/main
1,675,123,625,012
1,607,633,548,000
1,607,633,548,000
318,933,860
3
1
null
null
null
null
UTF-8
Lean
false
false
252
lean
theorem add_right_cancel_iff (t a b : mynat) : a + t = b + t ↔ a = b := begin split, exact add_right_cancel a t b, induction t with k Pk, rw add_zero, rw add_zero, intro x, exact x, intro f, rw add_succ, rw add_succ, have g := Pk(f), rw g, refl, end
77aa1a0211fd5408ad59301b0c2586a366687960
5e3548e65f2c037cb94cd5524c90c623fbd6d46a
/src_icannos_totilas/anneaux/cpge_anneaux_1.lean
e474e296da4adf9f39de7ec68f3ba9bec606ede0
[]
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
230
lean
import algebra.ring.basic theorem cpge_anneaux_1 {A :Type*} [ring A] : (∀ a : A, a ≠ 0 → (∀ b : A, b ≠ 0 → a*b ≠ 0)) <-> ∀ a : A, (a ≠ 0 → ∀ x y : A, (a*x = a*y -> x =y) ∧ (x*a = y*a → x=y)):= sorry
c9ff81f8ec22e9d030eb25cbc602cbf08e6e3c54
6094e25ea0b7699e642463b48e51b2ead6ddc23f
/library/algebra/group_bigops.lean
21f6c41bf90b81b7dbf3b358e04266e1010561f9
[ "Apache-2.0" ]
permissive
gbaz/lean
a7835c4e3006fbbb079e8f8ffe18aacc45adebfb
a501c308be3acaa50a2c0610ce2e0d71becf8032
refs/heads/master
1,611,198,791,433
1,451,339,111,000
1,451,339,111,000
48,713,797
0
0
null
1,451,338,939,000
1,451,338,939,000
null
UTF-8
Lean
false
false
12,799
lean
/- Copyright (c) 2015 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Jeremy Avigad Finite products on a monoid, and finite sums on an additive monoid. There are three versions: Prodl, Suml : products and sums over lists Prod, Sum...
a0f5493b65e4d91d4ae0c364b7ef88e8317574ce
5d166a16ae129621cb54ca9dde86c275d7d2b483
/tests/lean/auto_quote_error2.lean
47f28326544bfd861ff0cb07cf8bab06c210a8bb
[ "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,047
lean
example (a b c : nat) : a = b → b = c → c = a := begin tactic.intros, apply eq.symm, apply eq.refl, -- Error: unification assumption, assumption end example (a b c : nat) : a = b → b = c → c = a := begin tactic.intros, apply eq.symm, begin tactic.trace "hello world", end, -- Error unsolved goals ...
2b8620bfca13ea086c1f9a76d9538a714370b8e3
206422fb9edabf63def0ed2aa3f489150fb09ccb
/src/logic/basic.lean
d245f0b6eca1337c28e7604bec430cdcb2c15263
[ "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
52,994
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 -/ import tactic.doc_commands import tactic.reserved_notation /-! # Basic logic properties This file is one of the earliest imports in mathlib. ## Im...
ec3acc33f7500eb6a55bf3814d2506453dba164a
968e2f50b755d3048175f176376eff7139e9df70
/examples/prop_logic_theory/unnamed_1201.lean
98b32daae2c13b9973ad644a02c3809dd384dd93
[]
no_license
gihanmarasingha/mth1001_sphinx
190a003269ba5e54717b448302a27ca26e31d491
05126586cbf5786e521be1ea2ef5b4ba3c44e74a
refs/heads/master
1,672,913,933,677
1,604,516,583,000
1,604,516,583,000
309,245,750
1
0
null
null
null
null
UTF-8
Lean
false
false
538
lean
variables p q s r : Prop theorem and_of_and : p ∧ q → q ∧ p := begin intro h, -- Assume `h : p ∧ q`. It suffices to prove `q ∧ p`. split, -- By `∧` intro., it suffices to prove both `q` and `p`. { show q, from h.right, }, -- We show `q` from right `∧` elimination on `h`. { ...