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
1efcb36626a0135012f8e82ca4dcc73876dc039f
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/group_theory/submonoid/basic.lean
cf82c99c0e3b7863728e9bf1695e0d811dad43f9
[ "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
22,091
lean
/- Copyright (c) 2018 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard, Amelia Livingston, Yury Kudryashov -/ import algebra.hom.group -- Only needed for notation import algebra.gro...
d6b99306ff00cd141a658c31f9922d0f76acd486
d1a52c3f208fa42c41df8278c3d280f075eb020c
/src/Lean/CoreM.lean
4f77d46c5e93f46416e0efb492e4a24a168d5057
[ "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
6,269
lean
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Util.RecDepth import Lean.Util.Trace import Lean.Data.Options import Lean.Environment import Lean.Exception import Lean.InternalExceptionId impo...
13bd3471e6b11cf5fb6735b9bdbf269ff3b7c4b3
8b9f17008684d796c8022dab552e42f0cb6fb347
/library/algebra/ordered_ring.lean
dd9d5e91e69f1737a2110452b4ae1ae44364082f
[ "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
21,947
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Module: algebra.ordered_ring Authors: Jeremy Avigad Here an "ordered_ring" is partially ordered ring, which is ordered with respect to both a weak order and an associated strict order. Our num...
bbd18457e5105d75d5e3fcd464cac62de2eb4af3
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/ring_theory/int/basic.lean
22faf207833029bd36b6779221e155cc0ebbe53c
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
6,158
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, Jens Wagemaker, Aaron Anderson -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.int.gcd import Mathlib.ring_theory.multiplicity import...
3b3bbeff260c96c842703ff2c12e76dcc3982aef
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/group_theory/p_group.lean
5b070e70c3d0aa5a12d33aa45d26b6442dfa5608
[ "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
10,187
lean
/- Copyright (c) 2018 . All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes, Thomas Browning -/ import group_theory.index import group_theory.group_action.conj_act import group_theory.perm.cycle_type import group_theory.quotient_group /-! # p-groups This fil...
07cec1719f8d82e0753f1eaec730dad502cb1209
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/pkg/frontend/Frontend/Main_with_eval.lean
37c7e32d7c855a8971107798ac77d37f021d7b79
[ "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
151
lean
import Frontend.Main #eval show IO _ from do let r ← main ["Frontend.Import1"] if r ≠ 0 then throw <| IO.userError "Messages were generated!"
4cd4ebf061e5c9edebd11db80fa69db9b711d0f7
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/meta2.lean
1aca9eba005aaa2e27646e4dcd7cbb3ccd2d8010
[ "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
18,266
lean
import Lean.Meta open Lean open Lean.Meta -- set_option trace.Meta true --set_option trace.Meta.isDefEq.step false -- set_option trace.Meta.isDefEq.delta false set_option trace.Meta.debug true def print (msg : MessageData) : MetaM Unit := do trace[Meta.debug] msg def checkM (x : MetaM Bool) : MetaM Unit := unless (←...
bcf6188294221db5a42b13ec9ba3897f7e274084
4727251e0cd73359b15b664c3170e5d754078599
/src/ring_theory/polynomial/dickson.lean
76e01282385bd0a2679c0a81faca5b7f78c92a74
[ "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
10,686
lean
/- Copyright (c) 2021 Julian Kuelshammer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Julian Kuelshammer -/ import algebra.char_p.invertible import data.zmod.basic import field_theory.finite.basic import ring_theory.localization.fraction_ring import ring_theory.poly...
4f9b539722a45c28846950def5202cc66a4c79f9
ecdf4e083eb363cd3a0d6880399f86e2cd7f5adb
/src/group_theory/mathieu_group.lean
73cda7cbf5000c6e17c8aa74edf1da433fa24bcb
[]
no_license
fpvandoorn/formalabstracts
29aa71772da418f18994c38379e2192a6ef361f7
cea2f9f96d89ee1187d1b01e33f22305cdfe4d59
refs/heads/master
1,609,476,761,601
1,558,130,287,000
1,558,130,287,000
97,261,457
0
2
null
1,550,879,230,000
1,500,056,313,000
Lean
UTF-8
Lean
false
false
4,115
lean
import group_theory.basic import data.finset group_theory.group_action open finset fintype universes u v local attribute [instance, priority 0] classical.prop_decidable variables {α : Type u} {β : Type v} {t k v : ℕ} namespace mathieu_group /-- A Steiner system $S(t,k,v)$, where $t < k < v$ are positive integers i...
e340eb21ece7a67cb280a3b00a939153590db4f9
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/ring_theory/laurent_series.lean
0435cc96b3c9366fb4500e9dce194f543c846e67
[ "Apache-2.0" ]
permissive
robertylewis/mathlib
3d16e3e6daf5ddde182473e03a1b601d2810952c
1d13f5b932f5e40a8308e3840f96fc882fae01f0
refs/heads/master
1,651,379,945,369
1,644,276,960,000
1,644,276,960,000
98,875,504
0
0
Apache-2.0
1,644,253,514,000
1,501,495,700,000
Lean
UTF-8
Lean
false
false
8,138
lean
/- Copyright (c) 2021 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import ring_theory.hahn_series import ring_theory.localization /-! # Laurent Series ## Main Definitions * Defines `laurent_series` as an abbreviation for `hahn_seri...
0df65c6ce400e23f4fe4c586693438339107cb20
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/algebra/category/Module/products.lean
1db567c7430491eb95607423359ebef7bb8791d4
[ "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
1,948
lean
/- Copyright (c) 2022 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import linear_algebra.pi import algebra.category.Module.basic /-! # The concrete products in the category of modules are products in the categorical sense. -/ open ...
e30202e29956fc7a5acb918d3a2badf0cb115d20
07c6143268cfb72beccd1cc35735d424ebcb187b
/src/tactic/lint/default.lean
f7a1e9f952473d5594566b61183992865d9d3da6
[ "Apache-2.0" ]
permissive
khoek/mathlib
bc49a842910af13a3c372748310e86467d1dc766
aa55f8b50354b3e11ba64792dcb06cccb2d8ee28
refs/heads/master
1,588,232,063,837
1,587,304,803,000
1,587,304,803,000
176,688,517
0
0
Apache-2.0
1,553,070,585,000
1,553,070,585,000
null
UTF-8
Lean
false
false
4,039
lean
/- Copyright (c) 2020 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner -/ import tactic.lint.frontend tactic.lint.simp tactic.lint.type_classes tactic.lint.misc open tactic add_tactic_doc { name ...
8a17589c8379ec007856015acd4d61382aca9ed5
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/eq21.lean
141a9c3571a599b4fa95879bbb1666ce6ad5ec5b
[ "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
413
lean
inductive formula | eqf : nat → nat → formula | impf : formula → formula → formula namespace formula definition denote : formula → Prop | (eqf n1 n2) := n1 = n2 | (impf f1 f2) := denote f1 → denote f2 theorem denote_eqf (n1 n2 : nat) : denote (eqf n1 n2) = (n1 = n2) := rfl theorem denote_impf (f1 f2 :...
3d6bae12c27d81976b97e724d41bab138a5a77e3
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/data/padics/padic_integers.lean
df485c83a582946a367baf6105c3ef59c3b8d486
[]
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
18,345
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, Mario Carneiro, Johan Commelin -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.int.modeq import Mathlib.data.zmod.basic import Math...
31849d6935741688b780aff9936126d24d962916
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/ctx.lean
803df0215f2ec55997f39ea3af04bf83b29ab885
[ "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
135
lean
open prod definition foo {A B : Type} (a1 a2 a3 a4 a5 a6 a7 a8 a9 a10 : nat) (b1 b2 b3 : bool) (h : A = B) (p1 p2 : A × B) : nat := _
4ae82d39110ab04232708bbdccd0206e33d04307
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/measure_theory/group/arithmetic.lean
cc22009185d5abf4283681d723fd72ea06dded3d
[ "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
28,178
lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import measure_theory.measure.measure_space /-! # Typeclasses for measurability of operations In this file we define classes `has_measurable_mul` etc and prove do...
1ed167dd4e0b445bc45e97d8b941af429fe77014
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/pkg/user_ext/UserExt/Tst1.lean
9c15cbfac203c0dbf4ab8c3c7372620565c1c19f
[ "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
185
lean
import UserExt.FooExt import UserExt.BlaExt set_option trace.myDebug true insert_foo hello set_option trace.myDebug false insert_foo world show_foo_set insert_bla abc show_bla_set
5919e966a5c0f12aaf872d7bf2bf5f1530970c64
3c9dc4ea6cc92e02634ef557110bde9eae393338
/src/Lean/Elab/Log.lean
5a3288bc58c04f8bf01060d9e69edc05b462f231
[ "Apache-2.0" ]
permissive
shingtaklam1324/lean4
3d7efe0c8743a4e33d3c6f4adbe1300df2e71492
351285a2e8ad0cef37af05851cfabf31edfb5970
refs/heads/master
1,676,827,679,740
1,610,462,623,000
1,610,552,340,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,088
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.Elab.Util import Lean.Util.Sorry import Lean.Elab.Exception namespace Lean.Elab class MonadFileMap (m : Type → Type) where getFileMap : m F...
85b577320f46bbab1aaabeb447e2f9710cba1bbf
4fa161becb8ce7378a709f5992a594764699e268
/src/analysis/normed_space/banach.lean
82497290c86c08950eb34dcef8c9ce7fbb5bc82d
[ "Apache-2.0" ]
permissive
laughinggas/mathlib
e4aa4565ae34e46e834434284cb26bd9d67bc373
86dcd5cda7a5017c8b3c8876c89a510a19d49aad
refs/heads/master
1,669,496,232,688
1,592,831,995,000
1,592,831,995,000
274,155,979
0
0
Apache-2.0
1,592,835,190,000
1,592,835,189,000
null
UTF-8
Lean
false
false
12,025
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 topology.metric_space.baire import analysis.normed_space.operator_norm /-! # Banach open mapping theorem This file contains the Banach open mapping the...
0a3955c8a26c99567d0854dcab65af8f89d38fad
69d4931b605e11ca61881fc4f66db50a0a875e39
/src/algebraic_geometry/Scheme.lean
ebbad3a6575d985c6f0f0bb0f52a57e5b156ece2
[ "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
3,757
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 algebraic_geometry.Spec /-! # The category of schemes A scheme is a locally ringed space such that every point is contained in some open set where there is a...
b84a78b74009ae2dde4ff28d186bf853d446ab67
9028d228ac200bbefe3a711342514dd4e4458bff
/src/algebra/archimedean.lean
5887a1a4740e287333dc616c330908934a8651a3
[ "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
11,791
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.field_power import data.rat variables {α : Type*} /-- An ordered additive commutative monoid is called `archimedean` ...
bdfb408b54340f03fff7aba69fe3052267385af5
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/topology/locally_constant/basic.lean
3a46a0fce005e1c5a4d5fc84ec3800f186b0aee2
[ "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
19,430
lean
/- Copyright (c) 2021 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import topology.subset_properties import topology.connected import topology.continuous_function.basic import algebra.indicator_function import tactic.tfae import tact...
89d7f588d417c16b5e69b1abb645249f0ce10f1e
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/control/bitraversable/instances_auto.lean
bf83fdda7d051dfa46f01c764312e8c92566fd97
[]
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,099
lean
/- Copyright (c) 2019 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author(s): Simon Hudon -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.control.bitraversable.lemmas import Mathlib.control.traversable.lemmas import Mathlib.PostPort ...
a9b18a1ee554bc88f360f66f447b006ce8fa9b5c
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/src/Init/Lean/Compiler/IR/ElimDeadBranches.lean
1e73e0d09a5dd7b54043be343eb9672187d3b4a4
[ "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
9,643
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import Init.Control.Reader import Init.Data.Option import Init.Data.Nat import Init.Lean.Compiler.IR.Format import Init.Lean.Compiler.IR.Basic impor...
452743222031097129b65f2f6283ac069bce23ba
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/logic/unique.lean
13c2b7cb7b2463b174f46286cbc67f1245738015
[ "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,332
lean
/- Copyright (c) 2019 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import tactic.basic import logic.is_empty /-! # Types with a unique term In this file we define a typeclass `unique`, which expresses that a type has a unique term....
b7e9540957b29c5f7c852d992c483f11b8ccfbe9
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/order/pilex.lean
6bb4a86552666ca59c87bf3d328b8554d87c2da0
[]
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
2,507
lean
/- Copyright (c) 2019 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebra.ordered_pi import Mathlib.order.well_founded import Mathlib.algebra.order_functions imp...
36eb429957ca0885148e9172adbbd767f3fd71f2
c5b07d17b3c9fb19e4b302465d237fd1d988c14f
/src/sampler.lean
c0a985a18ba650f39ad2a7f3e8ca67d4099659a0
[ "MIT" ]
permissive
skaslev/papers
acaec61602b28c33d6115e53913b2002136aa29b
f15b379f3c43bbd0a37ac7bb75f4278f7e901389
refs/heads/master
1,665,505,770,318
1,660,378,602,000
1,660,378,602,000
14,101,547
0
1
MIT
1,595,414,522,000
1,383,542,702,000
Lean
UTF-8
Lean
false
false
3,309
lean
import system.io import functors.generating class sampler (A : Type) := (gen : io A) def gen (A) [sampler A] := @sampler.gen A def genₛ {A} (s : sampler A) := @sampler.gen A s instance : functor sampler := {map := λ A B f s, ⟨do x <- genₛ s, return $ f x⟩} instance {n} : sampler (fin n) := {gen := do i <- io.rand...
5e7d34fc5272c451cfef0a1c7ebaaaba8298af49
e0b0b1648286e442507eb62344760d5cd8d13f2d
/tests/compiler/rbmap_library.lean
cba7ac5c54168f016e9aa1637b80d079ef9f9c60
[ "Apache-2.0" ]
permissive
MULXCODE/lean4
743ed389e05e26e09c6a11d24607ad5a697db39b
4675817a9e89824eca37192364cd47a4027c6437
refs/heads/master
1,682,231,879,857
1,620,423,501,000
1,620,423,501,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,291
lean
import Std open Std def check (b : Bool) : IO Unit := do unless b do IO.println "ERROR" def sz {α β : Type} {cmp : α → α → Ordering} (m : RBMap α β cmp) : Nat := m.fold (fun sz _ _ => sz+1) 0 def depth {α β : Type} {cmp : α → α → Ordering} (m : RBMap α β cmp) : Nat := m.depth Nat.max def tst1 : IO Unit := do let Ma...
03a40c0bad34e4698ef61618f61c355ccccec12e
36c7a18fd72e5b57229bd8ba36493daf536a19ce
/library/data/real/bigops.lean
10d6d3b66b13160889d07811ac64c42c796e480b
[ "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
7,950
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad Finite products and sums on the reals. -/ import data.real.division algebra.group_bigops algebra.group_set_bigops open list namespace real open [classes] algebra ...
7ecc1eb45f4e18107500edf8d0cfdc211db0b40e
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/record2.lean
34a47978d9fde6c6795475cdf94ccb0dc9ca1ad3
[ "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
283
lean
import logic data.unit set_option pp.universes true section parameter (A : Type) section parameter (B : Type) structure point := mk :: (x : A) (y : B) check point check point.mk check point.x end check point check point.mk check point.x end
10fd234eb083ac394a39173f27ee60ff40412dff
30b012bb72d640ec30c8fdd4c45fdfa67beb012c
/group_theory/subgroup.lean
9b076b885a9bc23796136102aea92dbc84603aa8
[ "Apache-2.0" ]
permissive
kckennylau/mathlib
21fb810b701b10d6606d9002a4004f7672262e83
47b3477e20ffb5a06588dd3abb01fe0fe3205646
refs/heads/master
1,634,976,409,281
1,542,042,832,000
1,542,319,733,000
109,560,458
0
0
Apache-2.0
1,542,369,208,000
1,509,867,494,000
Lean
UTF-8
Lean
false
false
18,485
lean
/- Copyright (c) 2018 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro -/ import group_theory.submonoid open set function variables {α : Type*} {β : Type*} {a a₁ a₂ b c: α} ...
434259818357ba097b34fbd6f480fe2e9841faba
e00ea76a720126cf9f6d732ad6216b5b824d20a7
/src/data/list/sort.lean
4a1d23d70838e7ccab97725a32e3f5980d6ec6e8
[ "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
11,453
lean
/- Copyright (c) 2016 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad Insertion sort and merge sort. -/ import data.list.perm open list.perm namespace list section sorted universe variable uu variables {α : Type uu} {r : α → α → Prop} /--...
ba3013bf010ed11fd9c12e6fc5f683386fea07bf
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/Lean3Lib/init/meta/vm_auto.lean
cdac47395612efba74ab0c59d7f65054addc55ee
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
1,805
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 -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.meta.tactic import Mathlib.Lean3Lib.init.control.option import Mathlib.Lean3Lib.init.meta.mk_dec_eq_inst...
791475d59de938631c858b7909700501e7779f00
9dc8cecdf3c4634764a18254e94d43da07142918
/src/set_theory/cardinal/ordinal.lean
7503ee6a185adf1c363cd26442099692247f058e
[ "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
47,886
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 data.finsupp.multiset import order.bounded import set_theory.ordinal.principal import tactic.linarith /-! # Cardinals and o...
82b1d703f3ee984e90f31c505397375bb6540708
4727251e0cd73359b15b664c3170e5d754078599
/src/algebra/lie/submodule.lean
c4794edc3829dbc62b9db48b74443d500375e2cd
[ "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
36,744
lean
/- Copyright (c) 2021 Oliver Nash. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Oliver Nash -/ import algebra.lie.subalgebra import ring_theory.noetherian /-! # Lie submodules of a Lie algebra In this file we define Lie submodules and Lie ideals, we construct the l...
ec6e8d207ab7e438d58e981521e3f57a56c5df05
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/set_theory/cardinal/finite.lean
9e98d2bb67b27577bf8e47e9dede10361158d4b0
[ "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,120
lean
/- Copyright (c) 2021 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson -/ import data.zmod.defs import set_theory.cardinal.basic /-! # Finite Cardinality Functions > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file requ...
2ea8e919600e8e8bf00dfaeb8c977e2f98c67bd2
8e2026ac8a0660b5a490dfb895599fb445bb77a0
/library/init/category/applicative.lean
a4d264fa3050b814e969d16824120b37410e2115
[ "Apache-2.0" ]
permissive
pcmoritz/lean
6a8575115a724af933678d829b4f791a0cb55beb
35eba0107e4cc8a52778259bb5392300267bfc29
refs/heads/master
1,607,896,326,092
1,490,752,175,000
1,490,752,175,000
86,612,290
0
0
null
1,490,809,641,000
1,490,809,641,000
null
UTF-8
Lean
false
false
3,038
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, Sebastian Ullrich -/ prelude import init.category.functor open function universes u v section set_option auto_param.check_exists false class applicative (f ...
4ae5cc408213b71cdc8d6325a1ca0d18c9532585
e8d6a03af236c510516281c3b076aa984c212a1f
/lean4/ModelCount/ModelCount/Iteg.lean
961584fb35a7f73065eb0649b486dd19f2f823d9
[ "MIT" ]
permissive
minsungc/model-counting
9918a1afb2ef4cc91e6be906956b4ae2b82d10be
02f650741bddb6a94a0729889dfeb8e9b0e8521a
refs/heads/main
1,686,421,950,907
1,624,283,093,000
1,624,283,093,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
12,401
lean
import ModelCount.Lib /- itegs-/ inductive IteElt | Tr : IteElt | Fls : IteElt | Var (i : Nat) : IteElt | Ite (c t f : Nat) : IteElt deriving Repr instance : Inhabited IteElt := ⟨IteElt.Tr⟩ open IteElt /-- `IteEltBounded x b` says that if `x` is an ite clause, then the bra...
013e28cb5ebf9dc702d0dd6f929402c3b73aef4d
618003631150032a5676f229d13a079ac875ff77
/src/data/string/basic.lean
4e1ca3d56ce9ba2ce8bfcf5579bd4376641cd084
[ "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,528
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 import data.char namespace string def ltb : iterator → iterator → bool | s₁ s₂ := begin cas...
d4234199e2f8a7b7e2345e3bab50b94b8fdd68ec
78269ad0b3c342b20786f60690708b6e328132b0
/src/library_dev/algebra/lattice/zorn.lean
8e0c81bbe7fc738646afa931d076047fca3d793c
[]
no_license
dselsam/library_dev
e74f46010fee9c7b66eaa704654cad0fcd2eefca
1b4e34e7fb067ea5211714d6d3ecef5132fc8218
refs/heads/master
1,610,372,841,675
1,497,014,421,000
1,497,014,421,000
86,526,137
0
0
null
1,490,752,133,000
1,490,752,132,000
null
UTF-8
Lean
false
false
8,656
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 Zorn's lemmas. Ported from Isabelle/HOL (written by Jacques D. Fleuriot, Tobias Nipkow, and Christian Sternagel). -/ import ...data.set noncomputable theory universes...
894d5766df4d1ed6d8864f22d0afce245a3b2aa7
7571914d3f4d9677288f35ab1a53a2ad70a62bd7
/library/init/data/nat/lemmas.lean
0c21d5fd200d951e89099d5c093de24672a43292
[ "Apache-2.0" ]
permissive
picrin/lean-1
a395fed5287995f09a15a190bb24609919a0727f
b50597228b42a7eaa01bf8cb7a4fb1a98e7a8aab
refs/heads/master
1,610,757,735,162
1,502,008,413,000
1,502,008,413,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
50,506
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Jeremy Avigad -/ prelude import init.data.nat.basic init.data.nat.div init.data.nat.pow init.meta init.algebra.functions universes u namespace nat attribute ...
6ecbbebbff9519ed8bbc9e84954716e1c51ab0ba
2eab05920d6eeb06665e1a6df77b3157354316ad
/src/ring_theory/integral_domain.lean
b38239823e1c8416f2e6ab8054c02e08ad511d02
[ "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
7,317
lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Chris Hughes -/ import data.fintype.card import data.polynomial.ring_division import group_theory.specific_groups.cyclic import algebra.geom_sum /-! # Integral domain...
77d2fe80f0825bd04528d3f71f37a0856dd0487a
f3be49eddff7edf577d3d3666e314d995f7a6357
/TBA/Exercises/Exercise6.lean
06d43cec920db1f1f1aa670eae06a10aa87b7c40
[]
no_license
IPDSnelting/tba-2021
8b930bcd2f4aae44a2ddc86e72b77f84e6d46e82
b6390e55b768423d3266969e81d19290129c5914
refs/heads/master
1,686,754,693,583
1,625,135,602,000
1,625,136,365,000
355,124,341
50
7
null
1,625,133,762,000
1,617,699,824,000
Lean
UTF-8
Lean
false
false
9,450
lean
/- Even more induction! -/ variable (r : α → α → Prop) -- The reflexive transitive closure of `r` as an inductive predicate inductive RTC : α → α → Prop where -- Notice how declaring `r` as a `variable` instead of as a parameter instead of declaring it -- directly as a parameter of `RTC` means we don't have to wr...
9f6d290b050256bde02e30d41a041d02be81f6f7
9dc8cecdf3c4634764a18254e94d43da07142918
/src/analysis/special_functions/gaussian.lean
f270da52503f38c7b824ba271bd6b399444d0ad4
[ "Apache-2.0" ]
permissive
jcommelin/mathlib
d8456447c36c176e14d96d9e76f39841f69d2d9b
ee8279351a2e434c2852345c51b728d22af5a156
refs/heads/master
1,664,782,136,488
1,663,638,983,000
1,663,638,983,000
132,563,656
0
0
Apache-2.0
1,663,599,929,000
1,525,760,539,000
Lean
UTF-8
Lean
false
false
7,655
lean
/- Copyright (c) 2022 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.special_functions.gamma import analysis.special_functions.polar_coord /-! # Gaussian integral We prove the formula `∫ x, exp (-b * x^2) = sqrt...
45a24fa38fbaf26f25542438fb3d017f561f1d0b
a8c03ed21a1bd6fc45901943b79dd6574ea3f0c2
/resolution.lean
00c601c2cd564960ac6c2edcde54808b1cf428ae
[]
no_license
gebner/resolution.lean
716c355fbb5204e5c4d0c5a7f3f3cc825892a2bf
c6fafe06fba1cfad73db68f2aa474b29fe892a2b
refs/heads/master
1,601,111,444,528
1,475,256,701,000
1,475,256,701,000
67,711,151
0
0
null
null
null
null
UTF-8
Lean
false
false
1,954
lean
import clause prover_state utils open tactic monad variable gt : expr → expr → bool variables (ac1 ac2 : active_cls) variables (c1 c2 : clause) variables (i1 i2 : nat) -- c1 : ... → ¬a → ... -- c2 : ... → a → ... meta def try_resolve : tactic clause := do qf1 ← c1↣open_metan c1↣num_quants, qf2 ← c2↣open_metan c2↣num...
1fa95a015928d25c91ad1f1d1cc20a5d697bcf94
271e26e338b0c14544a889c31c30b39c989f2e0f
/stage0/src/Init/Lean/Elab/Exception.lean
3bcc81f81dca33fa96c90ca693538d6b9b1567c9
[ "Apache-2.0" ]
permissive
dgorokho/lean4
805f99b0b60c545b64ac34ab8237a8504f89d7d4
e949a052bad59b1c7b54a82d24d516a656487d8a
refs/heads/master
1,607,061,363,851
1,578,006,086,000
1,578,006,086,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
771
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import Init.Lean.Meta namespace Lean namespace Elab abbrev Exception := Message def mkMessageCore (fileName : String) (fileMap : FileMap) (msgDat...
104d6f1237eaf843e6b5704b0960a71eb0142873
5ae26df177f810c5006841e9c73dc56e01b978d7
/src/category/bifunctor.lean
26ac2b1ab0432b24c359ec26286d63e82bd70fc3
[ "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
4,352
lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Simon Hudon Functors with two arguments -/ import logic.function data.sum category.basic category.functor tactic.basic universes u₀ u₁ u₂ v₀ v₁ v₂ open function class bi...
062d1bf24ae9f46af62da2323f7754be7d59843e
dd0f5513e11c52db157d2fcc8456d9401a6cd9da
/08_Building_Theories_and_Proofs.org.8.lean
b82677a9394c879a71a1ad23344844cb848c3ff0
[]
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
693
lean
import standard structure Semigroup : Type := (carrier : Type) (mul : carrier → carrier → carrier) (mul_assoc : ∀ a b c : carrier, mul (mul a b) c = mul a (mul b c)) notation a `*` b := Semigroup.mul _ a b attribute Semigroup.carrier [coercion] structure morphism (S1 S2 : Semigroup) : Type := (mor : S1 → S2) (resp_m...
494ba3f87abb3db3645466c525a34f6620c03f36
618003631150032a5676f229d13a079ac875ff77
/src/data/num/bitwise.lean
a89e892064278a0178c170f8da5802fdf48af6a0
[ "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
7,576
lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro Bitwise operations using binary representation of integers. -/ import data.num.basic import data.bitvec namespace pos_num def lor : pos_num → pos_num → pos_nu...
428b07ca8d7aadffdf355c8291658850dcd34088
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/src/Init/Data/ByteArray/Basic.lean
b99f4f3a28c5d1ff7bf8a3373e7bb1b2e5c73325
[ "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
1,643
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura -/ prelude import Init.Data.Array.Basic import Init.Data.UInt import Init.Data.Option.Basic universes u structure ByteArray := (data : Array UInt8) attribute ...
872a63864c07dbb7f68197b499a6e93c2da6605f
957a80ea22c5abb4f4670b250d55534d9db99108
/library/init/algebra/ordered_ring.lean
1e2cb09c2ecd82afc11c31915a632889bca658b5
[ "Apache-2.0" ]
permissive
GaloisInc/lean
aa1e64d604051e602fcf4610061314b9a37ab8cd
f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0
refs/heads/master
1,592,202,909,807
1,504,624,387,000
1,504,624,387,000
75,319,626
2
1
Apache-2.0
1,539,290,164,000
1,480,616,104,000
C++
UTF-8
Lean
false
false
16,384
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura -/ prelude import init.algebra.ordered_group init.algebra.ring /- Make sure instances defined in this file have lower priority than the ones ...
8cd516809b164a0094d56972727f3988a537a4ed
b7f22e51856f4989b970961f794f1c435f9b8f78
/library/data/nat/sub.lean
b850b62085c024d4dcac02ec32d1dfd62f38356e
[ "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
15,944
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 Subtraction on the natural numbers, as well as min, max, and distance. -/ import .order open eq.ops namespace nat /- subtraction -/ protected theo...
4213a9fcc59d23a43af5b95a8f8972c0c25fdc0c
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/specialize.lean
c8f65f76692b59439ccfdecbf819d478ada95601
[ "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
617
lean
open tactic lemma test1 (x y z : Prop) (f : x → y → z) (xp : x) (yp : y) : z := begin specialize (f xp yp), assumption end lemma test2 (B C : Prop) (f : forall (A : Prop), A → C) (x : B) : C := begin specialize f _ x, exact f, end lemma test3 (B C : Prop) (f : forall {A : Prop}, A → C) (x : B) : C := begin s...
40105eb3c4b6d9c20503bb479060f563bfcc0c54
22e97a5d648fc451e25a06c668dc03ac7ed7bc25
/src/topology/algebra/multilinear.lean
8288ac095d1d4b21da0083902b845b7a3fcc0c5d
[ "Apache-2.0" ]
permissive
keeferrowan/mathlib
f2818da875dbc7780830d09bd4c526b0764a4e50
aad2dfc40e8e6a7e258287a7c1580318e865817e
refs/heads/master
1,661,736,426,952
1,590,438,032,000
1,590,438,032,000
266,892,663
0
0
Apache-2.0
1,590,445,835,000
1,590,445,835,000
null
UTF-8
Lean
false
false
11,888
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 : ι...
6385861fc43c1c3bd0c4cba73ef48aa601bc2d37
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/inline_bug.lean
16701507462f520c30f41d79d6c93aeb214524a0
[ "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
98
lean
@[inline] def o (n : ℕ) := prod.mk n n set_option trace.compiler.inline true def f := (o 1).fst
b36aee42dd64484b97aa5e0c80b62c68bd528fdb
491068d2ad28831e7dade8d6dff871c3e49d9431
/library/theories/analysis/real_limit.lean
c11c7f6a5df204e43c6201cc075d58b8f520dfe0
[ "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
33,937
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 Instantiates the reals as a metric space, and expresses completeness, sup, and inf in a manner that is less constructive, but more convenient, than the w...
8f4a5e2addf54758bc7f53432781943bbf6d2a41
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/archive/100-theorems-list/83_friendship_graphs.lean
bf2f99f99942fcdc8007a16a7d531256d096f10f
[ "Apache-2.0" ]
permissive
waynemunro/mathlib
e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552
065a70810b5480d584033f7bbf8e0409480c2118
refs/heads/master
1,693,417,182,397
1,634,644,781,000
1,634,644,781,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
13,779
lean
/- Copyright (c) 2020 Aaron Anderson. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Aaron Anderson, Jalex Stark, Kyle Miller -/ import combinatorics.simple_graph.adj_matrix import linear_algebra.matrix.charpoly.coeff import data.int.modeq import data.zmod.basic import...
bf87323a792de1695cf35fe81a5d65c764f3a0f1
ee8cdbabf07f77e7be63a449b8483ce308d37218
/lean/src/valid/mathd-algebra-10.lean
8efb1b4258777a08b9593f9089ec8dcc1fbbb063
[ "MIT", "Apache-2.0" ]
permissive
zeta1999/miniF2F
6d66c75d1c18152e224d07d5eed57624f731d4b7
c1ba9629559c5273c92ec226894baa0c1ce27861
refs/heads/main
1,681,897,460,642
1,620,646,361,000
1,620,646,361,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
405
lean
/- Copyright (c) 2021 OpenAI. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kunhao Zheng -/ import data.real.basic example : abs ( (120:ℝ) / 100 * 30 - 130 / 100 * 20 ) = 10 := begin calc abs ( (120:ℝ) / 100 * 30 - 130 / 100 * 20 ) = abs 10 : by {ring} ...
19b104002f184bd2522d86477ed5177875596c80
b12fedd6f2d718a9a3bf95f8eeb27d592548c935
/xenalib/m1f/square_root.lean
1c38d0d0fa92c4a79fa670b037b05e0abd7883fe
[]
no_license
EllenArlt/xena
014727beff556fdc8e844f1c9a06bf399fd752a0
e372c75f1d59929aef750ce70448153c4b675760
refs/heads/master
1,630,567,635,968
1,514,648,885,000
1,514,648,885,000
115,862,301
0
0
null
1,515,693,953,000
1,514,723,974,000
Lean
UTF-8
Lean
false
false
13,515
lean
/- Copyright (c) 2017 Kevin Buzzard. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author : Kevin Buzzard A square root function. 1) The non-computable function square_root : Π (x : ℝ), x ≥ 0 → ℝ returns the non-negative square root of x, defined as the sup of all the re...
8d1ad46e4f077b63ae3fff01caa66921efd4db87
c777c32c8e484e195053731103c5e52af26a25d1
/archive/imo/imo1960_q1.lean
fa3ee7680092f695d7cf99d1c28edcf337276bc3
[ "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
3,389
lean
/- Copyright (c) 2020 Kevin Lacker. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Lacker -/ import data.nat.digits /-! # IMO 1960 Q1 Determine all three-digit numbers $N$ having the property that $N$ is divisible by 11, and $\dfrac{N}{11}$ is equal to the sum...
a2749e70f9b4335275e74a7958e570dece96970d
969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb
/src/ring_theory/localization.lean
4af78312c7ecf3e7caa19ef206c75f9473d9a325
[ "Apache-2.0" ]
permissive
SAAluthwela/mathlib
62044349d72dd63983a8500214736aa7779634d3
83a4b8b990907291421de54a78988c024dc8a552
refs/heads/master
1,679,433,873,417
1,615,998,031,000
1,615,998,031,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
69,505
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston -/ import data.equiv.ring import group_theory.monoid_localization import ring_theory.ideal.operations import ring_theory.algebr...
6461e7502aa93210a653fdbfdb22b557d774cb1b
a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940
/tests/lean/mvar3.lean
bc2914fc7a14f14c14d0b01d14ef24d4538af0f6
[ "Apache-2.0" ]
permissive
WojciechKarpiel/lean4
7f89706b8e3c1f942b83a2c91a3a00b05da0e65b
f6e1314fa08293dea66a329e05b6c196a0189163
refs/heads/master
1,686,633,402,214
1,625,821,189,000
1,625,821,258,000
384,640,886
0
0
Apache-2.0
1,625,903,617,000
1,625,903,026,000
null
UTF-8
Lean
false
false
2,861
lean
import Lean.MetavarContext open Lean def mkLambdaTest (mctx : MetavarContext) (ngen : NameGenerator) (lctx : LocalContext) (xs : Array Expr) (e : Expr) : Except MetavarContext.MkBinding.Exception (MetavarContext × NameGenerator × Expr) := match MetavarContext.mkLambda xs e false true lctx { mctx := mctx, ngen := ...
313e00a2525b5241b27a461d315bc8941a19ab44
02005f45e00c7ecf2c8ca5db60251bd1e9c860b5
/src/order/filter/basic.lean
338b495dc3c25a21740a4ed77a59b3261f97a369
[ "Apache-2.0" ]
permissive
anthony2698/mathlib
03cd69fe5c280b0916f6df2d07c614c8e1efe890
407615e05814e98b24b2ff322b14e8e3eb5e5d67
refs/heads/master
1,678,792,774,873
1,614,371,563,000
1,614,371,563,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
103,805
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, Jeremy Avigad -/ import order.zorn import order.copy import data.set.finite import tactic.monotonicity /-! # Theory of filters on sets ## Main definitions * `filter`...
353cc53a66cd8c2198c566eea5b618b8359732b0
bb31430994044506fa42fd667e2d556327e18dfe
/src/algebra/hom/freiman.lean
f55b01bfd49b5e8c691871572143b0c7329e7758
[ "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
17,494
lean
/- Copyright (c) 2022 Yaël Dillies. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yaël Dillies -/ import algebra.big_operators.multiset.basic import data.fun_like.basic /-! # Freiman homomorphisms In this file, we define Freiman homomorphisms. A `n`-Freiman homomorp...
4e54929d93a3522f9ceca68e70a3b03b880acc6e
8c9f90127b78cbeb5bb17fd6b5db1db2ffa3cbc4
/exists_easy.lean
4cd00d6b0492bf2bc9a783d7d7da85f447404ba8
[]
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
331
lean
section variable U : Type variable P : U → Prop variable p : Prop variable Hforall : (∀ v : U, P v → p) variable Hexist : (∃ u : U, P u) theorem t1 : p := have H : (Π a, P a → p) → p, from exists.elim Hexist, H Hforall check exists.elim Hexist end
96834113d74e19b3f5a871b5a46b98614a39ad7e
947b78d97130d56365ae2ec264df196ce769371a
/tests/lean/extract.lean
2756d01a7556e711e90b66c2ffddaf73d9756f87
[ "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
1,557
lean
new_frontend #eval "abc" /- some "a" -/ #eval let s₁ := "abcde"; let it₁ := s₁.mkIterator; let it₂ := it₁.next; it₁.extract it₂ /- some "" -/ #eval let s₁ := "abcde"; let it₁ := s₁.mkIterator; it₁.extract it₁ /- none -/ #eval let s₁ := "abcde"; let it₁ := s₁.mkIterator; let it₂ := it₁.next; it₂.extract...
484c9692fa170c6f50c174e73759fa24db5ecb84
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/tactic/explode_auto.lean
6ca1e10fb88cc8d3e26525ac1c499d3f3de023f7
[]
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,156
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro, Minchao Wu -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.tactic.core import Mathlib.PostPort universes l namespace Mathlib /-! # `#ex...
46f19215f2b0b94c97d40f6f151d48298718773a
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/ring_theory/derivation/basic.lean
95a1d1ed3e837d521a96bdd25b3740a18f9fe065
[ "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
13,866
lean
/- Copyright © 2020 Nicolò Cavalleri. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Nicolò Cavalleri, Andrew Yang -/ import ring_theory.adjoin.basic /-! # Derivations > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresponding PR t...
1ce0380ba983c64119344cec74ce85cb7379992b
1789ef53372ad44b5ce5db2341556f91c8c31395
/src/mathlib_tutorial.lean
ee64d813524b75fe980d476b48818f23b21bc303
[]
no_license
iceplant/Mermin_Peres
d0a0f4c9f27111b3fee4e0ab5119ef1eafc59dc2
d7ea59b5767157420b0fae9dfc09f22ad2826564
refs/heads/master
1,609,583,206,767
1,582,220,678,000
1,582,220,678,000
239,577,114
1
1
null
null
null
null
UTF-8
Lean
false
false
17,937
lean
/- This file is intended for Lean beginners. The goal is to demonstrate what it feels like to prove things using Lean and mathlib. Complicated definitions and theory building are not covered. -/ -- We want real numbers and their basic properties import data.real.basic -- We want to be able to define functions using t...
c9b61acfcf6e07bae0b321fcc12329a4560f0304
4efff1f47634ff19e2f786deadd394270a59ecd2
/src/tactic/wlog.lean
830906f2de4b21e07cb78431a59a68457491a0d9
[ "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
9,406
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 Without loss of generality tactic. -/ import data.list.perm open expr tactic lean lean.parser local postfix `?`:9001 := optional local postfix *:9001 := many namespa...
99dd6228506ff6851615d69d7aef00f1d924b329
26bff4ed296b8373c92b6b025f5d60cdf02104b9
/hott/types/sigma.hlean
6bae143891d6c0d598a81d8c997a1e0c2713afbd
[ "Apache-2.0" ]
permissive
guiquanz/lean
b8a878ea24f237b84b0e6f6be2f300e8bf028229
242f8ba0486860e53e257c443e965a82ee342db3
refs/heads/master
1,526,680,092,098
1,427,492,833,000
1,427,493,281,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
16,762
hlean
/- Copyright (c) 2014 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Module: types.sigma Author: Floris van Doorn Ported from Coq HoTT Theorems about sigma-types (dependent sums) -/ import types.prod open eq sigma sigma.ops equiv is_equiv namespace sigma ...
8ac7413948a2a26db45e4ed8812054b7ff455793
94e33a31faa76775069b071adea97e86e218a8ee
/src/analysis/convex/star.lean
3ef0ab4a502bb29bc4061b7ea11f2dbcc421a5dd
[ "Apache-2.0" ]
permissive
urkud/mathlib
eab80095e1b9f1513bfb7f25b4fa82fa4fd02989
6379d39e6b5b279df9715f8011369a301b634e41
refs/heads/master
1,658,425,342,662
1,658,078,703,000
1,658,078,703,000
186,910,338
0
0
Apache-2.0
1,568,512,083,000
1,557,958,709,000
Lean
UTF-8
Lean
false
false
16,741
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.basic /-! # Star-convex sets This files defines star-convex sets (aka star domains, star-shaped set, radially convex set). A set is star-convex ...
caa22eac7b7e87296a29e26b0aca028a07739f8b
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/data/nat/choose/default.lean
1b94964d592ee9dce82d4cc5c08862d35794f0f1
[ "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
54
lean
import data.nat.choose.dvd import data.nat.choose.sum
67a5d8a2246e389fb5093026c87a76fd448ef39b
4efff1f47634ff19e2f786deadd394270a59ecd2
/src/category_theory/limits/shapes/images.lean
ef61f57f9c364c13efd8fc2aa0a8647a4d75c5c3
[ "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
20,725
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Markus Himmel -/ import category_theory.limits.shapes.equalizers import category_theory.limits.shapes.strong_epi /-! # Categorical images We define the categorical im...
08d009cb0c9458f90165e016ba9ce595abb268e1
4efff1f47634ff19e2f786deadd394270a59ecd2
/src/order/rel_classes.lean
cb15319e6a830205bd61ff67090ee19ba0d35d0c
[ "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
17,532
lean
/- Copyright (c) 2020 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Mario Carneiro, Yury G. Kudryashov -/ import data.set.basic /-! # Unbundled relation classes In this file we prove some properties of `is_*` classes defined in `init.al...
6adbc4893b2e6f80660b060f9c09a6048c159db4
a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940
/tests/lean/run/nondet.lean
b566163cd2d697f510a89a62539788da0a45b0d9
[ "Apache-2.0" ]
permissive
WojciechKarpiel/lean4
7f89706b8e3c1f942b83a2c91a3a00b05da0e65b
f6e1314fa08293dea66a329e05b6c196a0189163
refs/heads/master
1,686,633,402,214
1,625,821,189,000
1,625,821,258,000
384,640,886
0
0
Apache-2.0
1,625,903,617,000
1,625,903,026,000
null
UTF-8
Lean
false
false
1,290
lean
import Std.Control.Nondet open Std namespace ex1 -- The state is not backtrackable abbrev M := NondetT $ StateT Nat $ IO def checkVal (x : Nat) : M Nat := do IO.println s!"x: {x}" guard (x % 2 == 0) pure x def f : M Nat := do let x ← NondetT.choose [1, 2, 3, 4, 5, 6, 7, 8] checkVal x def h : M Nat := do ...
2ccb44bec25be7a97f0a816161e9876b414c630b
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/qpf/multivariate/constructions/quot.lean
0869d40073f28f88a960d59500d15d9a5b44735b
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
2,400
lean
/- Copyright (c) 2018 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Simon Hudon -/ import data.qpf.multivariate.basic /-! # The quotient of QPF is itself a QPF > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file requi...
d5d33bda601078c5aab908570347ecde83e42374
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/tactic/scc.lean
cb5cd34cacf82b6059df1e5529d196cb94d84dd8
[ "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
13,230
lean
/- Copyright (c) 2018 Simon Hudon All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon -/ import tactic.tauto /-! # Strongly Connected Components This file defines tactics to construct proofs of equivalences between a set of mutually equivalent propositions. Th...
d42207f626bf9b5cc1f264b81abdcf709d0b6b6d
a45212b1526d532e6e83c44ddca6a05795113ddc
/src/data/int/basic.lean
4fb610560e59a2e296419695e8250b2853236b1c
[ "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
49,425
lean
/- Copyright (c) 2016 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad The integers, with addition, multiplication, and subtraction. -/ import data.nat.basic data.list.basic algebra.char_zero algebra.order_functions open nat namespace int ...
37e63924c6ea842a9c445b45370d7babbc57683f
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/t11.lean
d7a077f6199dc6c6d0613aae6efcec1ed5559533
[ "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
393
lean
prelude constant A : Type.{1} definition bool : Type.{1} := Type.{0} constant Exists (P : A → bool) : bool notation `exists` binders `, ` b:(scoped b, Exists b) := b notation `∃` binders `, ` b:(scoped b, Exists b) := b constant p : A → bool constant q : A → A → bool #check exists x : A, p x #check ∃ x y : A, q x y ...
da7cd65a2db5db992a5f2eb90a2ea9af1bf39f33
8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3
/src/measure_theory/measure/measure_space.lean
ea4d5fd3d447282ba843ded3938b117e26c12150
[ "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
117,954
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro -/ import measure_theory.measure.measure_space_def import measure_theory.measurable_space /-! # Measure spaces The definition of a measure and a measur...
cadca7923c790ef263df4e10be9bdecf41a27c9e
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/analysis/box_integral/basic.lean
971bd2284073cbcaa632ffce2a5fa46ecf1ee7d6
[ "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
43,292
lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import analysis.box_integral.partition.filter import analysis.box_integral.partition.measure import topology.uniform_space.compact /-! # Integrals of Riemann, Hens...
fd9dc9238973f524305cc55ce484a8aa9e1f0562
947b78d97130d56365ae2ec264df196ce769371a
/stage0/src/Lean/Compiler/IR/UnboxResult.lean
ec7de8284ae7a8f9cc936a51b07ca871ab9ed229
[ "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
864
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.Data.Format import Lean.Compiler.IR.Basic namespace Lean namespace IR namespace UnboxResult def mkUnboxAttr : IO TagAttribute := registerTagAt...
6528afd0017fe19f67cd9fe8072e3f8fe970b20b
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/matchMissingCasesAsStuckError.lean
9b1a4bccfd0f0279ae46ce39f35d4328a09ccce7
[ "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
97
lean
example (a : α) (f : α → Option α) : Bool := by match h:f a with | some _ => exact true
aaad0c2edec0dfc048be2ec2b4a10a57d4882582
fecda8e6b848337561d6467a1e30cf23176d6ad0
/src/category_theory/abelian/non_preadditive.lean
e4a22f5a99f0bc1d97628b058bba549ecaa567c0
[ "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
32,779
lean
/- Copyright (c) 2020 Markus Himmel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel -/ import category_theory.limits.shapes.finite_products import category_theory.limits.shapes.kernels import category_theory.limits.shapes.pullbacks import category_theory....
ba6c6216c08097f2af6cb09addefd305ef9a6fd8
8c433fccc85bae2c68bb34c8969dd5f6fe94945b
/src/mywork/hw4.lean
b792285c350ace4263f8bbc2b6f926c1e724f35e
[]
no_license
arh4uwe/cs2120f21
f2a844538124e9739b94bdb99a86221866c854ac
2cfb17c7b84a07a672b792fc85824f3de7c27e7a
refs/heads/main
1,691,945,681,056
1,632,839,762,000
1,632,839,762,000
400,231,555
0
0
null
null
null
null
UTF-8
Lean
false
false
6,125
lean
-- 1 example : 0 ≠ 1 := begin -- ¬ (0 = 1) -- (0 = 1) → false assume h, cases h, end -- 2 example : 0 ≠ 0 → 2 = 3 := begin assume h, have f : false := h (eq.refl 0), exact false.elim (f), end -- 3 example : ∀ (P : Prop), P → ¬¬P := begin assume P, assume (p : P), -- ¬¬P -- ¬P → false -- (P → ...
bc1c4d79faa39d4c30b6023990be3fbda114f18f
6b2a480f27775cba4f3ae191b1c1387a29de586e
/group_rep_2/permutation_representation/regular_representation.lean
a1f12ac881789f9b10acf4dae218fe8a27cdd94f
[]
no_license
Or7ando/group_representation
a681de2e19d1930a1e1be573d6735a2f0b8356cb
9b576984f17764ebf26c8caa2a542d248f1b50d2
refs/heads/master
1,662,413,107,324
1,590,302,389,000
1,590,302,389,000
258,130,829
0
1
null
null
null
null
UTF-8
Lean
false
false
2,310
lean
import permutation_representation.action_representation import Tools.tools import basic_definitions.matrix_representation open is_basis linear_map character universes u v w w' open general classical_basis open finite_action open fintype variables (G : Type u) [group G] (R : Type v) [comm_ring R] (...
56c92da824c877e6733820626c7048649a4e4cad
9dc8cecdf3c4634764a18254e94d43da07142918
/src/ring_theory/norm.lean
a4c3f9778722d4f1c461c536bd6a79be0bbcbbb2
[ "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
13,150
lean
/- Copyright (c) 2021 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import field_theory.primitive_element import linear_algebra.determinant import linear_algebra.finite_dimensional import linear_algebra.matrix.charpoly.minpoly import linea...
bd3134f3e4b35df39e58b75b8ea29906d637cd10
7541ac8517945d0f903ff5397e13e2ccd7c10573
/src/category_theory/universal/comma_categories.lean
05ac651aac04a03e7340bc1ce4dbf5ed9ec1ec05
[]
no_license
ramonfmir/lean-category-theory
29b6bad9f62c2cdf7517a3135e5a12b340b4ed90
be516bcbc2dc21b99df2bcb8dde0d1e8de79c9ad
refs/heads/master
1,586,110,684,637
1,541,927,184,000
1,541,927,184,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
5,379
lean
-- -- Copyright (c) 2017 Scott Morrison. All rights reserved. -- -- Released under Apache 2.0 license as described in the file LICENSE. -- -- Authors: Stephen Morgan, Scott Morrison -- import category_theory.functor_category -- import category_theory.walking -- import category_theory.discrete_category -- -- FIXME why...
453be36555a9641ec68fa269970e7ef86ab4e072
55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5
/src/data/multiset/nodup.lean
3228ef95e41730e6fcfa731dee0121eabec9f829
[ "Apache-2.0" ]
permissive
dupuisf/mathlib
62de4ec6544bf3b79086afd27b6529acfaf2c1bb
8582b06b0a5d06c33ee07d0bdf7c646cae22cf36
refs/heads/master
1,669,494,854,016
1,595,692,409,000
1,595,692,409,000
272,046,630
0
0
Apache-2.0
1,592,066,143,000
1,592,066,142,000
null
UTF-8
Lean
false
false
9,027
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro -/ import data.multiset.powerset import data.multiset.range /-! # The `nodup` predicate for multisets without duplicate elements. -/ namespace multiset open list...
d152879251ee3ce89fbe9f5338250cc4e6686a43
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/LiftMethodIssue.lean
250cf06296d7fed361672517ed68b23ef4969e98
[ "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
743
lean
def tst : IO (Option Nat) := do let x? : Option Nat ← pure none; pure x? def tst2 (x : Nat) : IO (Option Nat) := do let x? : Option Nat := x; if x?.isNone then /- We need the `some` because we propagate the expected type at `pure` applications. The expected type is `IO (Option Nat)`, and we elaborate `x+1`...
abdf8bcf6f3e63c8936bd5c3d33c7bbf35494f30
0003047346476c031128723dfd16fe273c6bc605
/src/linear_algebra/basic.lean
1bd9ac051860a5474bcf26057255f0d646239853
[ "Apache-2.0" ]
permissive
ChandanKSingh/mathlib
d2bf4724ccc670bf24915c12c475748281d3fb73
d60d1616958787ccb9842dc943534f90ea0bab64
refs/heads/master
1,588,238,823,679
1,552,867,469,000
1,552,867,469,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
57,362
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 Basics of linear algebra. This sets up the "categorical/lattice structure" of modules, submodules, and linear maps. -/ import algebra.pi...
b5a52dead03668f38907e21a1cb38a006bf49a31
e2c1ee9c02c59b832eb48536755242ce5f9b2c3e
/src/t3.lean
35c81134cbb4150df476025ff22fefa9f965e549
[]
no_license
yairgueta/Lean
cb5bb16d81674e8a07f85c9dbeb56dc2f543d4eb
af8a4fa24f76edfdd0dd33f013db194e611e6a86
refs/heads/master
1,676,275,529,938
1,610,289,661,000
1,610,289,661,000
328,405,309
0
0
null
null
null
null
UTF-8
Lean
false
false
3,964
lean
/- Yair Gueta : 208624908 : t3 Exercise 3 -/ import data.nat.basic import data.real.basic variables (α : Type*) (p q : α → Prop) ---- Q1 ---- example : (∀ x, p x ∧ q x) ↔ (∀ x, p x) ∧ (∀ x, q x) := iff.intro (assume h :∀ x, p x ∧ q x, have h₁ : ∀ x, p x, from assume y, show p...
0526d063289b3e87d89b1c323e17b283af4b1ae2
456e966f070b2628cdcf863a8eaf383504abb2c9
/Lean/src/Numerical/Array/Layout.lean
6b21d06e6c18d17190db724502c52e49b0bf037f
[]
no_license
wellposed/formal-numerical
1f964338577336ed731ed8d5b45c68a7e14e03ea
e54ff9cc72387595e8a18d62f5cf6ef9965eaeae
refs/heads/master
1,610,245,015,998
1,450,065,168,000
1,450,065,168,000
47,095,150
0
0
null
null
null
null
UTF-8
Lean
false
false
186
lean
import data.bool check bool inductive Var (a b : Type) : Type := | Free : a -> Var a b | Bound : b -> Var a b check Var inductive AST (a : Type) : Type := | V : a -> AST a
3ded54ef0ea202eecf77a27407876a901ab14f61
ec62863c729b7eedee77b86d974f2c529fa79d25
/14/b.lean
6a543e577706086f3388ee97736224cc87b3354a
[]
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
1,522
lean
import Std.Data.HashMap inductive Command | setMask (mask : String) : Command | setMem (addr : Nat) (val : Nat) : Command open Command instance : Inhabited Command := ⟨setMask ""⟩ structure St : Type where mask : String mem : Std.HashMap Nat Nat def initSt : St := { mask := "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX...
b9db85d7ee06a10c72592f36f956ff975fcce3d3
4727251e0cd73359b15b664c3170e5d754078599
/test/norm_swap.lean
48bde1f14e3067294d7cbd5de8f78ebb197ae9b6
[ "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
4,327
lean
import logic.equiv.basic import tactic.norm_swap open equiv tactic /-- To properly test that norm_swap works without the help of the simplifier, we turn off the simp lemmas that simplify swaps of the form `swap x y x = y` and `swap x y y = x`. -/ local attribute [-simp] swap_apply_left local attribute [-simp] swap_a...
0f691ac123fa7de10bf487f71be43d27d200b62c
4efff1f47634ff19e2f786deadd394270a59ecd2
/src/data/set/finite.lean
614c5b362dc72879f00c53154f24e926d102006a
[ "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
28,070
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro -/ import data.fintype.basic import algebra.big_operators.basic /-! # Finite sets This file defines predicates `finite : set α → Prop` and `infinite : ...
1409a48cf1e1901b85ce475f592a32a51d070fb5
63abd62053d479eae5abf4951554e1064a4c45b4
/src/category_theory/functor_category.lean
0d4632c974ec24f8f486a19294f53c154195de75
[ "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
4,899
lean
/- Copyright (c) 2017 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn -/ import category_theory.natural_transformation namespace category_theory universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v...
38bfc79a0372743878983c59d3d8c2e4eef1188b
367134ba5a65885e863bdc4507601606690974c1
/src/category_theory/full_subcategory.lean
3be4a3958a199d71959a779844b41b34f5ab35c3
[ "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
3,686
lean
/- Copyright (c) 2017 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Reid Barton -/ import category_theory.fully_faithful namespace category_theory universes v u₁ u₂ -- declare the `v`'s first; see `category_theory.category` for an exp...
0c9b2d62be8598d10dda45be5c38ca01873046fc
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/calc_tac.lean
9d7657367ebf1fe9ce5f6a33ded880fff2990721
[ "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
362
lean
axiom addz {A : Type} [has_add A] [has_zero A] : ∀ a : A, a + 0 = a axiom addc {A : Type} [has_add A] : ∀ a b : A, a + b = b + a example {A : Type} [has_add A] [has_zero A] [has_one A] (a b c : A) : b = 0 → a + b + c = c + a := assume h, calc a + b + c = a + 0 + c : by rw h ... = a + c : by rw addz ...