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
817170359283aab170c7f4f8f89d8250acf6cd5d
80162757f50b09d3cad5564907e4c9b00742e045
/rb_mut.lean
c8fa1a0b6bebba19f5d3ec2049b1a2484d9f5704
[]
no_license
EdAyers/edlib
cc30d0a54fed347a85b6df6045f68e6b48bc71a3
78b8c5d91f023f939c102837d748868e2f3ed27d
refs/heads/master
1,586,459,758,216
1,571,322,179,000
1,571,322,179,000
160,538,917
2
0
null
null
null
null
UTF-8
Lean
false
false
410
lean
/- Defining with mutual inductive datatypes is also a pain -/ universes u v inductive bnode (K : Type u) (A : Type v) : ℕ → Type max u v |Leaf {} : bnode 0 |Bk {n} (l : node n) (v : K×A) (r : node n): bnode (nat.succ n) with node : ℕ → Type max u v |Bk {n} : bnode n → node n |Rd {n} : rnode n → node n with rnode : ...
22930ad32e5b788a1a67f6018bf302896380a5ef
618003631150032a5676f229d13a079ac875ff77
/src/data/list/erase_dup.lean
ea49e8a5ec3e36e3bd96233d3a7eaf99b58d48fc
[ "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,287
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import data.list.nodup universes u variables {α : Type u} namespace list /- erase duplicates function -/ variable [decidable_eq α] @[simp] theorem erase_dup_nil ...
7f664b37f20528f6637f38d23aed4f50c4064cbb
f5f7e6fae601a5fe3cac7cc3ed353ed781d62419
/src/ring_theory/polynomial.lean
1cd9f9625a1616b2fb3ed468315e24d4334aab34
[ "Apache-2.0" ]
permissive
EdAyers/mathlib
9ecfb2f14bd6caad748b64c9c131befbff0fb4e0
ca5d4c1f16f9c451cf7170b10105d0051db79e1b
refs/heads/master
1,626,189,395,845
1,555,284,396,000
1,555,284,396,000
144,004,030
0
0
Apache-2.0
1,533,727,664,000
1,533,727,663,000
null
UTF-8
Lean
false
false
14,081
lean
/- Copyright (c) 2019 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau Ring-theoretic supplement of data.polynomial. Main result: Hilbert basis theorem, that if a ring is noetherian then so is its polynomial ring. -/ import data.polynomial data.mv...
0396a656ec260093bbf5bf796460e13f304481f1
a959f48a0621edea632487cf2130bbf70d301e05
/src/calculus.lean
cbecbd042182897c9d6a7791e7f641c1b81fe459
[]
no_license
cipher1024/lean-differential-topology
cf441b36af9fdb022f10afff6a2fdc5aa4afa379
1938b0a5d9e89faff89dac4bc51598698cae6dbb
refs/heads/master
1,619,477,568,536
1,527,790,354,000
1,527,790,354,000
124,159,851
0
0
null
1,520,385,485,000
1,520,385,485,000
null
UTF-8
Lean
false
false
6,068
lean
import analysis.real import analysis.limits import norms import continuous_linear_maps noncomputable theory local attribute [instance] classical.prop_decidable open filter is_bounded_linear_map local notation f `→_{`:50 a `}`:0 b := filter.tendsto f (nhds a) (nhds b) local notation `lim_{`:50 a`}`:0 f := lim (map f...
fd1943d7dd7804bc46d124f4214016ad51089293
5a8eb1c11f93715e070b588e85f2961065c3714d
/books/theorem-proving-in-lean/ch02-exercises.lean
25b7c60f365ac3dd695745b8d4ef95dfa4ad8062
[ "MIT" ]
permissive
luksamuk/study
0e19bf99d33e0793127c3d3f8ad3936fbeb36505
6a9417e071a8624c4cd9db696c16a3abcc430219
refs/heads/master
1,677,960,533,266
1,676,234,529,000
1,676,234,529,000
151,009,060
4
1
MIT
1,676,234,531,000
1,538,343,224,000
C++
UTF-8
Lean
false
false
2,226
lean
-- 1. Define Do_Twice def double (x : ℕ) : ℕ := x + x def do_twice (f : ℕ → ℕ) (x : ℕ) : ℕ := f (f x) def Do_Twice : ((ℕ → ℕ) → (ℕ → ℕ)) → (ℕ → ℕ) → (ℕ → ℕ) := λ f g x, (f g) x #check Do_Twice do_twice double #reduce Do_Twice do_twice double 2 -- 2. Define curry and uncurry def curry {α β γ : Type} (f : α × β → γ...
b3df55975534671af6f6bca0786f5500d7eff389
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/634c.lean
94ae3fb162fd3e0c93441396207d258dcc1753f1
[ "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
959
lean
open nat section parameter (X : Type) definition A {n : ℕ} : Type := X definition B : Type := X variable {n : ℕ} #check @A n #check _root_.A nat #check _root_.A (X × B) #check @_root_.A (X × B) 10 #check @_root_.A (_root_.B (@_root_.A X n)) n #check @_root_.A (@_root_.B (@_root_.A nat n)) n set_o...
fcf73b17c2137beb7f5a5113e3c9ba1820f0d956
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/998Export.lean
dd02b624667674b125ccddf9ee0a7a6eff10ac8d
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
leanprover/lean4
4bdf9790294964627eb9be79f5e8f6157780b4cc
f1f9dc0f2f531af3312398999d8b8303fa5f096b
refs/heads/master
1,693,360,665,786
1,693,350,868,000
1,693,350,868,000
129,571,436
2,827
311
Apache-2.0
1,694,716,156,000
1,523,760,560,000
Lean
UTF-8
Lean
false
false
2,302
lean
import Lean open Lean inductive Entry | name (n : Name) | level (n : Level) | expr (n : Expr) | defn (n : Name) deriving Inhabited structure Alloc (α) [BEq α] [Hashable α] where map : HashMap α Nat next : Nat deriving Inhabited namespace Export structure State where names : Alloc Name := ⟨HashMap.empty.insert...
658a64720121989e22ff6377160955366a372fcf
b392eb79fb36952401156496daa60628ccb07438
/MathPort/ActionItem.lean
6e78844c36756c348b40b50cccb376d26a353206
[ "Apache-2.0" ]
permissive
AurelienSaue/mathportsource
d9eabe74e3ab7774baa6a10a6dc8d4855ff92266
1a164e4fff7204c522c1f4ecc5024fd909be3b0b
refs/heads/master
1,685,214,377,305
1,623,621,223,000
1,623,621,223,000
364,191,042
0
0
null
null
null
null
UTF-8
Lean
false
false
2,936
lean
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Daniel Selsam -/ import MathPort.Util import MathPort.Path import Lean import Std.Data.HashSet import Std.Data.HashMap namespace MathPort open Lean inductive MixfixKind | «pr...
3c65349ffdbb7efa9fe158210912b7fcaa6ffcb0
82e44445c70db0f03e30d7be725775f122d72f3e
/src/category_theory/limits/shapes/zero.lean
408c3f7e5f76ecbc2fe6d9f4dc3b64577bbd9500
[ "Apache-2.0" ]
permissive
stjordanis/mathlib
51e286d19140e3788ef2c470bc7b953e4991f0c9
2568d41bca08f5d6bf39d915434c8447e21f42ee
refs/heads/master
1,631,748,053,501
1,627,938,886,000
1,627,938,886,000
228,728,358
0
0
Apache-2.0
1,576,630,588,000
1,576,630,587,000
null
UTF-8
Lean
false
false
18,257
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import category_theory.limits.shapes.products import category_theory.limits.shapes.images import category_theory.isomorphism_classes /-! # Zero morphisms and zero ob...
10db201429770931b608e0911bc53b35125c6bc8
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/measure_theory/category/Meas.lean
9833788b0317efe88643642a5c5dc3408348a32f
[ "Apache-2.0" ]
permissive
AntoineChambert-Loir/mathlib
64aabb896129885f12296a799818061bc90da1ff
07be904260ab6e36a5769680b6012f03a4727134
refs/heads/master
1,693,187,631,771
1,636,719,886,000
1,636,719,886,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
4,363
lean
/- Copyright (c) 2018 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl -/ import topology.category.Top.basic import measure_theory.measure.giry_monad import category_theory.monad.algebra /-! # The category of measurable spaces Measurable ...
ec63bda90c0c319425e0b48df7ffac8751e8d96e
c777c32c8e484e195053731103c5e52af26a25d1
/src/data/polynomial/unit_trinomial.lean
08a659408f6c1ea0db7a5848ebfb6576f6b1ed50
[ "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
16,191
lean
/- Copyright (c) 2022 Thomas Browning. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Thomas Browning -/ import analysis.complex.polynomial import data.polynomial.mirror /-! # Unit Trinomials This file defines irreducible trinomials and proves an irreducibility crit...
a875b7003a2887d12e31253bc527448a425c76e8
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/data/nat/basic.lean
bb19d1ada78afc98c536f9ef474cf5abe700e58c
[ "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
67,371
lean
/- Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro -/ import algebra.order.ring /-! # Basic operations on the natural numbers This fi...
45a8ccb75346773922e5674644a885c839bb27d1
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/hott/types/nat/hott.hlean
9b4cbddb6ca6e81a645d7d0f5d6be4a52c6ed031
[ "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
4,750
hlean
/- Copyright (c) 2015 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Floris van Doorn Theorems about the natural numbers specific to HoTT -/ import .order types.pointed open is_trunc unit empty eq equiv algebra pointed namespace nat definition is...
a586985b172056591eb19461aa02a572e1fd3874
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/algebra/group_power/order.lean
1f29a35d2683f6b14898c3e91a7705af5f84a507
[ "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
12,612
lean
/- Copyright (c) 2015 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Robert Y. Lewis -/ import algebra.order.ring import algebra.group_power.basic /-! # Lemmas about the interaction of power operations with order Note that some lemmas ar...
a9cb14ba7d3886c5f2769687221053f3477e25cc
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/ring_theory/adjoin_root.lean
7b7093055331774d4e2feeba6d9c616dcc3b9906
[ "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
12,120
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Chris Hughes -/ import data.polynomial.field_division import linear_algebra.finite_dimensional import ring_theory.adjoin.basic import ring_theory.power_basis import rin...
d7063dcbf947a754c851519fda27b09a902687ae
80cc5bf14c8ea85ff340d1d747a127dcadeb966f
/src/data/nat/basic.lean
fc1b65a7e7a96c56cef9bb036ce2ad4eaf0058a3
[ "Apache-2.0" ]
permissive
lacker/mathlib
f2439c743c4f8eb413ec589430c82d0f73b2d539
ddf7563ac69d42cfa4a1bfe41db1fed521bd795f
refs/heads/master
1,671,948,326,773
1,601,479,268,000
1,601,479,268,000
298,686,743
0
0
Apache-2.0
1,601,070,794,000
1,601,070,794,000
null
UTF-8
Lean
false
false
60,325
lean
/- Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro -/ import algebra.group_power.basic import algebra.order_functions /-! # Basic oper...
3864ca8b2730a4fb6163cba951db751bc37c9e23
432d948a4d3d242fdfb44b81c9e1b1baacd58617
/src/category_theory/path_category.lean
63cb129b81c3a5cfe3dbf5869c8ceb5d108d29fb
[ "Apache-2.0" ]
permissive
JLimperg/aesop3
306cc6570c556568897ed2e508c8869667252e8a
a4a116f650cc7403428e72bd2e2c4cda300fe03f
refs/heads/master
1,682,884,916,368
1,620,320,033,000
1,620,320,033,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,793
lean
/- Copyright (c) 2021 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import category_theory.category /-! # The category paths on a quiver. -/ universes v₁ v₂ u₁ u₂ namespace category_theory section /-- A type synonym for the categ...
666f80d1e74438f6bc4ad93a975ed2c9fb330d8c
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/lift2.lean
3b89e45984df133fde12f6442b262c29997f635f
[ "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
290
lean
namespace test inductive {u₁ u₂} lift (A : Type u₁) : Type (max 1 u₁ u₂) | inj : A → lift set_option pp.universes true variables (A : Type 3) (B : Type 1) #check A = lift.{1 3} B universe variables u variables (C : Type (u+2)) (D : Type u) #check C = lift.{u u+2} D end test
c2bb762c73151f53a235968e50aee172a88b132b
ad0c7d243dc1bd563419e2767ed42fb323d7beea
/order/zorn.lean
3c0911854099fc817828935f0752417426b8f64c
[ "Apache-2.0" ]
permissive
sebzim4500/mathlib
e0b5a63b1655f910dee30badf09bd7e191d3cf30
6997cafbd3a7325af5cb318561768c316ceb7757
refs/heads/master
1,585,549,958,618
1,538,221,723,000
1,538,221,723,000
150,869,076
0
0
Apache-2.0
1,538,229,323,000
1,538,229,323,000
null
UTF-8
Lean
false
false
10,106
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.lattice noncomputable theory univ...
bd192f16a190e593d4f4ec4f11f26dd602734507
9028d228ac200bbefe3a711342514dd4e4458bff
/src/data/polynomial/erase_lead.lean
791e299f97e8860b68b73b8d5236798e3fa9d6c9
[ "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
4,824
lean
/- Copyright (c) 2020 Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Damiano Testa -/ import data.polynomial.degree.basic import data.polynomial.degree.trailing_degree /-! # Erase the leading term of a univariate polynomial ## Definition * `erase_lead...
e2512eda7a029f1b7596997240ecc6de38aa41a1
2385ce0e3b60d8dbea33dd439902a2070cca7a24
/tests/lean/unification_hints2.lean
a9c8687d6407ced9efac77ee5d8f584874a07676
[ "Apache-2.0" ]
permissive
TehMillhouse/lean
68d6fdd2fb11a6c65bc28dec308d70f04dad38b4
6bbf2fbd8912617e5a973575bab8c383c9c268a1
refs/heads/master
1,620,830,893,339
1,515,592,479,000
1,515,592,997,000
116,964,828
0
0
null
1,515,592,734,000
1,515,592,734,000
null
UTF-8
Lean
false
false
1,110
lean
open nat constant F : nat → Type constant F.suc (n : nat) (f : F n) : F (succ n) constant F.raise (n m : nat) (f : F m) : F (m + n) example (m n : nat) (i : F m) : F.raise (succ n) m i = F.suc _ (F.raise n _ i) := begin trace_state, -- the result should not contain recursor applications because the stdlib contains ...
9baee9b8b916fb3b60c4f955fba7860fc7cc6b2b
0c1546a496eccfb56620165cad015f88d56190c5
/library/init/native/util.lean
3a539cbba60a1c4a3ef5c539557c5dd815b55673
[ "Apache-2.0" ]
permissive
Solertis/lean
491e0939957486f664498fbfb02546e042699958
84188c5aa1673fdf37a082b2de8562dddf53df3f
refs/heads/master
1,610,174,257,606
1,486,263,620,000
1,486,263,620,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,962
lean
/- Copyright (c) 2016 Jared Roesch. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jared Roesch -/ prelude import init.meta.format import init.meta.expr import init.data.string import init.category.state import init.native.result import init.native.internal import ini...
e08a812cc751cb2f6ae87016f6f4af35ca3d8f18
9a0b1b3a653ea926b03d1495fef64da1d14b3174
/tidy/rewrite_search/discovery/collector/everything.lean
51c5f735e4308c23282a124e6e8785bf73c8c638
[ "Apache-2.0" ]
permissive
khoek/mathlib-tidy
8623b27b4e04e7d598164e7eaf248610d58f768b
866afa6ab597c47f1b72e8fe2b82b97fff5b980f
refs/heads/master
1,585,598,975,772
1,538,659,544,000
1,538,659,544,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
1,653
lean
import tidy.rewrite_search.core.shared import ..types import .common open tactic open tidy.rewrite_search namespace tidy.rewrite_search.discovery -- TODO print the lemmas which were being added -- TODO use the metric to score the rewrites and pick the top few which are high-scoring -- TODO only try some of of the "...
20be05c0df62b5e49ee20db01dbea43e912f0f10
cc62cd292c1acc80a10b1c645915b70d2cdee661
/src/category_theory/path_category.lean
caa023dc0e104b899f1b7bb0888ad986e39297b5
[]
no_license
RitaAhmadi/lean-category-theory
4afb881c4b387ee2c8ce706c454fbf9db8897a29
a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e
refs/heads/master
1,651,786,183,402
1,565,604,314,000
1,565,604,314,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,183
lean
-- Copyright (c) 2017 Scott Morrison. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Authors: Stephen Morgan and Scott Morrison import category_theory.graphs.category -- FIXME why do we need this here? @[obviously] meta def obviously_4 := tactic.tidy { tactics := extend...
542cabf1bac11bc8e719c8942ac4530774bbcc7c
b2e508d02500f1512e1618150413e6be69d9db10
/src/linear_algebra/basic.lean
5c98cae2fb0526f1af3a2a75f75368549638d233
[ "Apache-2.0" ]
permissive
callum-sutton/mathlib
c3788f90216e9cd43eeffcb9f8c9f959b3b01771
afd623825a3ac6bfbcc675a9b023edad3f069e89
refs/heads/master
1,591,371,888,053
1,560,990,690,000
1,560,990,690,000
192,476,045
0
0
Apache-2.0
1,568,941,843,000
1,560,837,965,000
Lean
UTF-8
Lean
false
false
61,602
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...
30ba8009848ffd4b1d7e1c08349930107db8eaa9
c777c32c8e484e195053731103c5e52af26a25d1
/counterexamples/quadratic_form.lean
20af196c19f5276bc536e2c1c39e212ca3fa197c
[ "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
1,861
lean
/- Copyright (c) 2023 Eric Wieser. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Wieser -/ import linear_algebra.quadratic_form.basic import algebra.char_p.two import data.zmod.basic /-! # `quadratic_form R M` and `subtype bilin_form.is_symm` are distinct notion...
ecba4f8b3958d0b8a062c220a8998ee4c8525ed4
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/data/finset/default.lean
eb67d9d13773ae09ba3a26e510f29055edb78c92
[ "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
243
lean
import data.finset.basic import data.finset.fold import data.finset.intervals import data.finset.lattice import data.finset.nat_antidiagonal import data.finset.pi import data.finset.powerset import data.finset.sort import data.finset.preimage
c8e42ab565f1666492e431c57216e9cdadb84577
9dc8cecdf3c4634764a18254e94d43da07142918
/src/ring_theory/ideal/local_ring.lean
c1dccf7c0f3c7a8e81459596f5c32995a50c52ea
[ "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,325
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes, Mario Carneiro -/ import algebra.algebra.basic import algebra.category.Ring.basic import ring_theory.ideal.operations /-! # Local rings Define local rings as co...
0e116e7d052b2f38aed64dbb9cfc85edfdb20dae
9dc8cecdf3c4634764a18254e94d43da07142918
/src/representation_theory/character.lean
cee94f807d193f9376b5e70d5e2d59b42c02aeb2
[ "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
2,859
lean
/- Copyright (c) 2022 Antoine Labelle. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Antoine Labelle -/ import representation_theory.fdRep import linear_algebra.trace import representation_theory.basic import representation_theory.invariants /-! # Characters of repre...
fba2129fdbfae2286c868e9d0d551a47c28b880d
5ae26df177f810c5006841e9c73dc56e01b978d7
/src/data/list/perm.lean
2145735c14b963b950ed1a117cb1923898d0f3cc
[ "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
41,050
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro List permutations. -/ import data.list.basic logic.relation namespace list universe variables uu vv variables {α : Type uu} {β...
9449f491c1f06ac318a283fc144806580b152349
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/ring_theory/jacobson.lean
7e6c9a934bce213f12b12f72af46b93fe2eadbc0
[ "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
34,432
lean
/- Copyright (c) 2020 Devon Tuma. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Devon Tuma -/ import ring_theory.localization import ring_theory.ideal.over import ring_theory.jacobson_ideal /-! # Jacobson Rings The following conditions are equivalent for a ring `R`: ...
2328599cffe276f2ce8cc107dec1348d89a62399
649957717d58c43b5d8d200da34bf374293fe739
/src/category_theory/yoneda.lean
460e403bd8b3598360c954618d26a07c39b29d44
[ "Apache-2.0" ]
permissive
Vtec234/mathlib
b50c7b21edea438df7497e5ed6a45f61527f0370
fb1848bbbfce46152f58e219dc0712f3289d2b20
refs/heads/master
1,592,463,095,113
1,562,737,749,000
1,562,737,749,000
196,202,858
0
0
Apache-2.0
1,562,762,338,000
1,562,762,337,000
null
UTF-8
Lean
false
false
7,473
lean
-- Copyright (c) 2017 Scott Morrison. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Authors: Scott Morrison /- The Yoneda embedding, as a functor `yoneda : C ⥤ (Cᵒᵖ ⥤ Type v₁)`, along with an instance that it is `fully_faithful`. Also the Yoneda lemma, `yoneda_le...
1459ac9f30db6ed50845da2d5c0b651f64ce5431
33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354
/lia/normalize.lean
45f166b086427d9a37940e39bc1b6b44dcc899cf
[]
no_license
lclem/cooper
79554e72ced343c64fed24b2d892d24bf9447dfe
812afc6b158821f2e7dac9c91d3b6123c7a19faf
refs/heads/master
1,607,554,257,488
1,578,694,133,000
1,578,694,133,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
6,585
lean
import ..logic ..list .preformula .formula -- .has_ptm .has_atom open list def preterm_lia.const : preterm_lia → int | (preterm_lia.var k) := 0 | (preterm_lia.cst c) := c | (preterm_lia.lmul c k) := 0 | (preterm_lia.rmul k c) := 0 | (preterm_lia.neg t) := -t.const | (preterm_lia.add t1 t2) := t1.const +...
8a3fecce89a1acd007c2c354d69802014d0f1e69
e39f04f6ff425fe3b3f5e26a8998b817d1dba80f
/category_theory/functor.lean
4b32fbca3dc3b360f62956dce79a334c238b0b65
[ "Apache-2.0" ]
permissive
kristychoi/mathlib
c504b5e8f84e272ea1d8966693c42de7523bf0ec
257fd84fe98927ff4a5ffe044f68c4e9d235cc75
refs/heads/master
1,586,520,722,896
1,544,030,145,000
1,544,031,933,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,498
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 a functor between categories. (As it is a 'bundled' object rather than the `is_functorial` typeclass parametrised by the underlyin...
bb7234de47bd5e92ba6bae7894ce14fda48baff6
206422fb9edabf63def0ed2aa3f489150fb09ccb
/src/computability/tm_computable.lean
a499db7266238b11cdca284ccc78f97ce089fe75
[ "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
11,344
lean
/- Copyright (c) 2020 Pim Spelier, Daan van Gent. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Pim Spelier, Daan van Gent. -/ import computability.encoding import computability.turing_machine import data.polynomial.basic import data.polynomial.eval /-! # Computable...
a379db67af6cac2efa280c5d1fa66ce429509d81
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/linear_algebra/basic.lean
b69d6ba461d4e1783c3f1e727c1ddfb5261e1b5d
[ "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
86,486
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov, Frédéric Dupuis, Heather Macbeth -/ import algebra.big_operators.pi import algebra.module.hom import algebra.module.pr...
7dd6cf8582e94e3932a3ed3e5ed9b66c22f3d51f
958488bc7f3c2044206e0358e56d7690b6ae696c
/lean/funext.lean
3cf7cff8f5ddf16d9a569d54a84dce9003d61448
[]
no_license
possientis/Prog
a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4
d4b3debc37610a88e0dac3ac5914903604fd1d1f
refs/heads/master
1,692,263,717,723
1,691,757,179,000
1,691,757,179,000
40,361,602
3
0
null
1,679,896,438,000
1,438,953,859,000
Coq
UTF-8
Lean
false
false
778
lean
universes u v axiom funext2 : ∀ {α : Sort u} {β : α → Sort v} {f g : ∀ (x:α), β x}, (∀ (x:α), f x = g x) → f = g --#check @funext2 --#check @funext lemma L1 : Prop = Sort 0 := rfl lemma L2 : Type u = Sort (u + 1) := rfl def f₁ (x : ℕ) := x def f₂ (x : ℕ) := 0 + x lemma feq : f₁ = f₂ := begin apply funext, in...
94ad49b2abb2135c0735a6fb5a170563a4cdbd99
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/data/polynomial/basic.lean
8b6a734cb0eb9822f15ef44ea0590e66664757bb
[]
no_license
AurelienSaue/Mathlib4_auto
f538cfd0980f65a6361eadea39e6fc639e9dae14
590df64109b08190abe22358fabc3eae000943f2
refs/heads/master
1,683,906,849,776
1,622,564,669,000
1,622,564,669,000
371,723,747
0
0
null
null
null
null
UTF-8
Lean
false
false
7,835
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 Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.tactic.ring_exp import Mathlib.tactic.chain imp...
b1fbee1626ebb665e97ab7de40e96fe38337a568
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/adjunction/fully_faithful.lean
863d933a046eeee35a00d3aabe0a5fabfb49a917
[ "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,555
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import category_theory.adjunction.basic import category_theory.conj import category_theory.yoneda /-! # Adjoints of fully faithful functors > THIS FILE IS SYNCHRONI...
30a2c2cb6832e97e16e6572fffaac1a9a6b2a1eb
8b9f17008684d796c8022dab552e42f0cb6fb347
/library/data/vector.lean
2231063a806603fd1463f94d96c02c2895865973
[ "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
9,340
lean
/- Copyright (c) 2014 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Module: data.vector Author: Floris van Doorn, Leonardo de Moura -/ import data.nat data.list data.fin open nat prod fin inductive vector (A : Type) : nat → Type := | nil {} : vector A zero ...
d528de04957d8a8e4b425f2597678cee8a01dd45
55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5
/src/category_theory/limits/limits.lean
7f4cad60009afceb2fbdf96923aa0067791e037e
[ "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
51,328
lean
/- Copyright (c) 2018 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Reid Barton, Mario Carneiro, Scott Morrison, Floris van Doorn -/ import category_theory.adjunction.basic import category_theory.reflect_isomorphisms open category_theory category_theo...
7ea18a6aa36f3fb0f53689410984d50235a917cd
c777c32c8e484e195053731103c5e52af26a25d1
/src/topology/metric_space/partition_of_unity.lean
9b79f18b41305dd6e1e563d29f473b639e294718
[ "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
8,191
lean
/- Copyright (c) 2022 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import topology.metric_space.emetric_paracompact import analysis.convex.partition_of_unity /-! # Lemmas about (e)metric spaces that need partition of unity The ma...
fc884f827ff73d2da5f20f511ac856fe91ee88bd
59a4b050600ed7b3d5826a8478db0a9bdc190252
/src/category_theory/limits/terminal.lean
dca93dbf7bca2fd8afcda0f5fa4026c27b903bc9
[]
no_license
rwbarton/lean-category-theory
f720268d800b62a25d69842ca7b5d27822f00652
00df814d463406b7a13a56f5dcda67758ba1b419
refs/heads/master
1,585,366,296,767
1,536,151,349,000
1,536,151,349,000
147,652,096
0
0
null
1,536,226,960,000
1,536,226,960,000
null
UTF-8
Lean
false
false
2,956
lean
-- Copyright (c) 2018 Scott Morrison. All rights reserved. -- Released under Apache 2.0 license as described in the file LICENSE. -- Authors: Scott Morrison, Reid Barton, Mario Carneiro import category_theory.limits.shape import category_theory.filtered open category_theory namespace category_theory.limits universe...
0f42648125ab7e39c7a0a766dc94d0d77700bb1d
32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7
/tests/lean/run/new_frontend2.lean
b6ddbd1786e59d58026564f6a5ca70c989c90942
[ "Apache-2.0" ]
permissive
walterhu1015/lean4
b2c71b688975177402758924eaa513475ed6ce72
2214d81e84646a905d0b20b032c89caf89c737ad
refs/heads/master
1,671,342,096,906
1,599,695,985,000
1,599,695,985,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
403
lean
new_frontend declare_syntax_cat foo variable {m : Type → Type} variable [s : Functor m] #check @Nat.rec #check s.map /- The following doesn't work because ``` variable [r : Monad m] #check r.map ``` because `Monad.to* methods have bad binder annotations -/ theorem aux (a b c : Nat) (h₁ : a = b) (h₂ : c = b) : a =...
94b3f8b55eec976f84d6cd2ff278c8290b95e8f9
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/tests/lean/elab12.lean
0028a87e0ab596a27d11ba6ad07ba061e7363ded
[ "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
388
lean
check (take a : nat, have H : 0, from rfl a, (H a a) : ∀ a : nat, a = a) check (take a : nat, have H : a = a, from rfl a, (H a a) : ∀ a : nat, a = a) check (take a : nat, have H : a = a, from a + 0, (H a a) : ∀ a : nat, a = a) check (take a : nat, have H : a = a, from rfl, (H a) : ∀ a : nat, a = a) check (take ...
681446f8c21ce62e80e02ca0110b3775e0a985be
a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940
/stage0/src/Lean/Attributes.lean
26d36b60df591bc0d6c6a40c4b5b3fdccd8cd74d
[ "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
18,836
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.Syntax import Lean.CoreM import Lean.ResolveName namespace Lean inductive AttributeApplicationTime where | afterTypeChecking | afterCompilat...
41acfd2bf6ababcc10256b6be3d2ec93dde0726c
94637389e03c919023691dcd05bd4411b1034aa5
/src/inClassNotes/higherOrderFunctions/compose.lean
f8c8cebdb0bdc350b35d5f57f2903fc8fd88a1e0
[]
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
504
lean
/- Higher-order, universe-agnostic function composition function. In Lean this function is defined as function.comp. It can be applied using the infix notation, ∘, as in the expression (g ∘ f), which would be a function that first applies f to its argument, then applies g to the result, finally returning that resulti...
fe9de99d108424716bd7dbafa6418194e9378de1
a721fe7446524f18ba361625fc01033d9c8b7a78
/src/principia/topology/quotients.lean
d5d144128d72363940986c43121f15a0a8cf84d5
[]
no_license
Sterrs/leaning
8fd80d1f0a6117a220bb2e57ece639b9a63deadc
3901cc953694b33adda86cb88ca30ba99594db31
refs/heads/master
1,627,023,822,744
1,616,515,221,000
1,616,515,221,000
245,512,190
2
0
null
1,616,429,050,000
1,583,527,118,000
Lean
UTF-8
Lean
false
false
1,149
lean
import .topological_space import .continuity namespace hidden namespace topological_space variables {α β γ: Type} open classical local attribute [instance] classical.prop_decidable def quotient_topology (X: topological_space α) (R: setoid α): topological_space (quotient R) := { is_open := {V | X.is_open (myset....
e60d4f6142ea980d6e7c6e7d5a107a12fbda7399
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/library/init/alternative.lean
5624e61cb3e5b2b879cb5b8dc6711a657e49a28f
[ "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
839
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.logic init.applicative universe variables u v structure [class] alternative (F : Type u → Type v) extends applicative F : Type (max u+1 ...
669c54bce5a5e4b3b2a054cae3957955a8b95681
dc253be9829b840f15d96d986e0c13520b085033
/univalent_subcategory.hlean
e3425ca0258f1bfb9b08bc87c0dd26226e12845b
[ "Apache-2.0" ]
permissive
cmu-phil/Spectral
4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea
3b078f5f1de251637decf04bd3fc8aa01930a6b3
refs/heads/master
1,685,119,195,535
1,684,169,772,000
1,684,169,772,000
46,450,197
42
13
null
1,505,516,767,000
1,447,883,921,000
Lean
UTF-8
Lean
false
false
14,833
hlean
import homotopy.sphere2 algebra.category.functor.attributes open eq pointed sigma is_equiv equiv fiber algebra group is_trunc function prod prod.ops iso functor namespace category section univ_subcat parameters {C : Precategory} {D : Category} (F : functor C D) (p : is_embedding F) (q : fully_faithful F) variab...
1ccab1283420fb1ff3599dd93674d3a781bd6bcd
510e96af568b060ed5858226ad954c258549f143
/algebra/ring.lean
2f31dd5f07ee98c8fe6f9d16567f60c380e4baab
[]
no_license
Shamrock-Frost/library_dev
cb6d1739237d81e17720118f72ba0a6db8a5906b
0245c71e4931d3aceeacf0aea776454f6ee03c9c
refs/heads/master
1,609,481,034,595
1,500,165,215,000
1,500,165,347,000
97,350,162
0
0
null
1,500,164,969,000
1,500,164,969,000
null
UTF-8
Lean
false
false
5,930
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn -/ open eq universe variable uu variable {A : Type uu} /- ring -/ section variables [ring A] (a b c d e : A) theorem mul_add_e...
95a4be3a310b26743d5b2f176b7fafc21b465690
f20db13587f4dd28a4b1fbd31953afd491691fa0
/tests/lean/run/my_tac_class.lean
c7990587abb20e1acf370cd16c15e81a91124cb7
[ "Apache-2.0" ]
permissive
AHartNtkn/lean
9a971edfc6857c63edcbf96bea6841b9a84cf916
0d83a74b26541421fc1aa33044c35b03759710ed
refs/heads/master
1,620,592,591,236
1,516,749,881,000
1,516,749,881,000
118,697,288
1
0
null
1,516,759,470,000
1,516,759,470,000
null
UTF-8
Lean
false
false
1,774
lean
meta def mytac := state_t nat tactic meta instance : monad mytac := state_t.monad _ _ meta instance : monad.has_monad_lift tactic mytac := monad.monad_transformer_lift (state_t nat) tactic meta instance (α : Type) : has_coe (tactic α) (mytac α) := ⟨monad.monad_lift⟩ namespace mytac meta def step {α : Type} (t : my...
6474a1f4c00d8c277aeca8881c9015538a1fdec2
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/polynomial/field_division.lean
ea42eea04f17cb9b4d9185622cbb25bc66265e60
[ "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,512
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.derivative import data.polynomial.ring_division import ring_theory.euclidean_domain /-! # Theory o...
c0350e4dbdc6887d8c3324cfd277ab00c6faf483
61c3861020ef87c6c325fc3c3dcbabf5d6b07985
/types/W.lean
602af52957fc2d41545502cb1bd1741dadb9e575
[ "Apache-2.0" ]
permissive
jonas-frey/hott3
a623be2959e8a713c03fa1b0f34bf76a561dfa87
a944051b4eb5919bdc70978ee15fcbb48a824811
refs/heads/master
1,628,408,720,559
1,510,267,042,000
1,510,267,042,000
106,760,764
0
0
null
1,507,856,238,000
1,507,856,238,000
null
UTF-8
Lean
false
false
6,018
lean
/- Copyright (c) 2014 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Floris van Doorn Theorems about W-types (well-founded trees) -/ import .sigma .pi universes u v w hott_theory namespace hott open decidable open eq equiv is_equiv sigma inductiv...
2089346d2e9372b568076971cc62d0f18856dee8
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/ring_theory/coprime_auto.lean
876e43c8d5b76bba0fc1501fd5b1edced72e402d
[]
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
13,978
lean
/- Copyright (c) 2020 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Ken Lee, Chris Hughes -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.tactic.ring import Mathlib.algebra.big_operators.basic import Mathlib.data.fin...
0a38872209f048bc8f2cef6466f8cf497baaf961
ce6917c5bacabee346655160b74a307b4a5ab620
/src/ch2/ex0203.lean
2028511ac96c37b21b129529151eb68bc3ae501a
[]
no_license
Ailrun/Theorem_Proving_in_Lean
ae6a23f3c54d62d401314d6a771e8ff8b4132db2
2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68
refs/heads/master
1,609,838,270,467
1,586,846,743,000
1,586,846,743,000
240,967,761
1
0
null
null
null
null
UTF-8
Lean
false
false
63
lean
constants α β : Type #check prod α β #check prod nat nat
271e5cd60ec2c7fe512f9f62aba32bd96920e785
07f5f86b00fed90a419ccda4298d8b795a68f657
/library/data/rbtree/basic.lean
ea851e953f6e6f2568d3906a30417eaa5e0bdea2
[ "Apache-2.0" ]
permissive
VBaratham/lean
8ec5c3167b4835cfbcd7f25e2173d61ad9416b3a
450ca5834c1c35318e4b47d553bb9820c1b3eee7
refs/heads/master
1,629,649,471,814
1,512,060,373,000
1,512,060,469,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
9,500
lean
/- Copyright (c) 2017 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ universe u /- TODO(Leo): remove after we cleanup stdlib simp lemmas -/ local attribute [-simp] or.comm or.left_comm or.assoc and.comm and.left_comm and.ass...
b91be4288800599731df7ed55b4f3726941b8648
8e381650eb2c1c5361be64ff97e47d956bf2ab9f
/src/to_mathlib/localization/localization_of.lean
30e88520236eb3cd4e1f570649f30b0cf42a365c
[]
no_license
alreadydone/lean-scheme
04c51ab08eca7ccf6c21344d45d202780fa667af
52d7624f57415eea27ed4dfa916cd94189221a1c
refs/heads/master
1,599,418,221,423
1,562,248,559,000
1,562,248,559,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
968
lean
/- is_localization from is_localization_data. -/ import ring_theory.localization import to_mathlib.localization.localization_alt universe u open localization_alt variables {α : Type u} [comm_ring α] variables (S : set α) [is_submonoid S] noncomputable lemma localization.of.is_localization_data : @is_localizat...
1c159a1596e467acae7f8211e59cfd94337e1190
572fb32b6f5b7c2bf26921ffa2abea054cce881a
/src/week_1/kb_solutions/Part_D_relations_solutions.lean
8583eb9f38b78a79458ccfda933333e52d43d9a8
[ "Apache-2.0" ]
permissive
kgeorgiy/lean-formalising-mathematics
2deb30756d5a54bee1cfa64873e86f641c59c7dc
73429a8ded68f641c896b6ba9342450d4d3ae50f
refs/heads/master
1,683,029,640,682
1,621,403,041,000
1,621,403,041,000
367,790,347
0
0
null
null
null
null
UTF-8
Lean
false
false
10,382
lean
import tactic /-! # Equivalence relations are the same as partitions In this file we prove that there's a bijection between the equivalence relations on a type, and the partitions of a type. Three sections: 1) partitions 2) equivalence classes 3) the proof ## Overview Say `α` is a type, and `R : α → α → Prop` i...
6b9552ecc1d4490279e2fbc167f3856cc7c601ce
1b8f093752ba748c5ca0083afef2959aaa7dace5
/src/category_theory/universal/kernels.lean
4de5b90ed32427b8912a9092484ea1ddca03b538
[]
no_license
khoek/lean-category-theory
7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386
63dcb598e9270a3e8b56d1769eb4f825a177cd95
refs/heads/master
1,585,251,725,759
1,539,344,445,000
1,539,344,445,000
145,281,070
0
0
null
1,534,662,376,000
1,534,662,376,000
null
UTF-8
Lean
false
false
2,388
lean
import category_theory.universal.zero import category_theory.limits.equalizers import category_theory.over open category_theory universes u v namespace category_theory.limits variables {C : Type u} [𝒞 : category.{u v} C] [has_zero_object.{u v} C] include 𝒞 variables {X Y Z : C} structure is_kernel (f : Y ⟶ Z) (ι...
6d15906045b5acf03bcf417ec63a15505a82d3cc
2a70b774d16dbdf5a533432ee0ebab6838df0948
/_target/deps/mathlib/src/measure_theory/borel_space.lean
2319a554e85ea17be8c2ef8b215d6673087df4f6
[ "Apache-2.0" ]
permissive
hjvromen/lewis
40b035973df7c77ebf927afab7878c76d05ff758
105b675f73630f028ad5d890897a51b3c1146fb0
refs/heads/master
1,677,944,636,343
1,676,555,301,000
1,676,555,301,000
327,553,599
0
0
null
null
null
null
UTF-8
Lean
false
false
55,494
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, Yury Kudryashov -/ import measure_theory.measure_space import analysis.complex.basic import analysis.normed_space.finite_dimension import topology.G_delta /-! # Borel ...
688a6d0226b7d9d09adc95162397dbe786349061
4e0d7c3132ce31edc5829849735dd25db406b144
/lean/love04_functional_programming_exercise_sheet.lean
b8eaaa20368806237e934097eadd4b95f86942e7
[]
no_license
gonzalgu/logical_verification_2020
a0013a6c22ea254e9f4d245f2948f0f4d44df4bb
724d0457dff2c3ff10f9ab2170388f4c5e958b75
refs/heads/master
1,660,886,374,533
1,589,859,641,000
1,589,859,641,000
256,069,971
0
0
null
1,586,997,430,000
1,586,997,429,000
null
UTF-8
Lean
false
false
8,357
lean
import .love03_forward_proofs_demo /-! # LoVe Exercise 4: Functional Programming -/ set_option pp.beta true namespace LoVe /-! ## Question 1: Reverse of a List We define a new accumulator-based version of `reverse`. The first argument, `as`, serves as the accumulator. This definition is __tail-recursive__, mean...
29e345befd8ddf0b13731a0e9bbefb75fbb91bab
dd0f5513e11c52db157d2fcc8456d9401a6cd9da
/12_Axioms.org.18.lean
4059b5424dec37d7546d58457aa51625e05a609c
[]
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
763
lean
import standard import logic.quantifiers open subtype nonempty namespace hide axiom strong_indefinite_description {A : Type} (P : A → Prop) (H : nonempty A) : { x | (∃ y : A, P y) → P x} -- BEGIN noncomputable definition epsilon {A : Type} [H : nonempty A] (P : A → Prop) : A := let u : {x | (∃ y, P y) → P x} := stro...
bd9b52d43f60357ef122bef05c56b28bc77225bd
618003631150032a5676f229d13a079ac875ff77
/src/control/traversable/basic.lean
451ed1926913fc95add55ae0084d75cd19392658
[ "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
5,768
lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Simon Hudon -/ import control.functor /-! # Traversable type class Type classes for traversing collections. The concepts and laws are taken from <http://hackage.haskell.org/package/base-...
070eebe181845b5d029d02b2fececc38350a7e4b
4727251e0cd73359b15b664c3170e5d754078599
/src/data/pequiv.lean
972107c78cf59efd4b3b12bc89d32c4f32d2fd11
[ "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
14,132
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 data.set.basic /-! # Partial Equivalences In this file, we define partial equivalences `pequiv`, which are a bijection between a subset of `α` and a subset of `...
626389bb8e803a429813a1ba6ab36759d80033ba
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/eq2.lean
1034969524f80551163fb78752ed0be0e3f79026
[ "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
196
lean
definition symm {A : Type} : Π {a b : A}, a = b → b = a | a a (eq.refl a) := rfl definition trans {A : Type} : Π {a b c : A}, a = b → b = c → a = c | a a a (eq.refl a) (eq.refl a) := rfl
7808702cfccb72b40c8f653b5687232798cab272
80cc5bf14c8ea85ff340d1d747a127dcadeb966f
/src/data/mv_polynomial/monad.lean
5226887ca6703f56a033e7548cdae5d0f5ff74f2
[ "Apache-2.0" ]
permissive
lacker/mathlib
f2439c743c4f8eb413ec589430c82d0f73b2d539
ddf7563ac69d42cfa4a1bfe41db1fed521bd795f
refs/heads/master
1,671,948,326,773
1,601,479,268,000
1,601,479,268,000
298,686,743
0
0
Apache-2.0
1,601,070,794,000
1,601,070,794,000
null
UTF-8
Lean
false
false
13,947
lean
/- Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin and Robert Y. Lewis -/ import data.mv_polynomial.rename /-! # Monad operations on `mv_polynomial` This file defines two monadic operations on `mv...
119d2c3d237cadb399bfd40f2c959fa012dd6075
54f4ad05b219d444b709f56c2f619dd87d14ec29
/my_project/src/love05_inductive_predicates_exercise_sheet.lean
8a18569df6cc9248415a046e329a680781486cfc
[]
no_license
yizhou7/learning-lean
8efcf838c7276e235a81bd291f467fa43ce56e0a
91fb366c624df6e56e19555b2e482ce767cd8224
refs/heads/master
1,675,649,087,737
1,609,022,281,000
1,609,022,281,000
272,072,779
0
0
null
null
null
null
UTF-8
Lean
false
false
2,237
lean
import .love05_inductive_predicates_demo /-! # LoVe Exercise 5: Inductive Predicates -/ set_option pp.beta true namespace LoVe /-! ## Question 1: Even and Odd The `even` predicate is true for even numbers and false for odd numbers. -/ #check even /-! We define `odd` as the negation of `even`: -/ def odd (n :...
6fc9889759186718d9c360c6695d66a9783b3158
a4673261e60b025e2c8c825dfa4ab9108246c32e
/src/Lean/Data/Position.lean
0dd50d0419b5560371fc7646b40e18d9e5329e98
[ "Apache-2.0" ]
permissive
jcommelin/lean4
c02dec0cc32c4bccab009285475f265f17d73228
2909313475588cc20ac0436e55548a4502050d0a
refs/heads/master
1,674,129,550,893
1,606,415,348,000
1,606,415,348,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,712
lean
/- Copyright (c) 2018 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.Data.Format namespace Lean structure Position := (line : Nat) (column : Nat) namespace Position instance : Decidable...
00174309ca482cc051366734bf6f2d766d03c059
4727251e0cd73359b15b664c3170e5d754078599
/src/order/compare.lean
0d2829426520d9c93a3424526a346a750b70016b
[ "Apache-2.0" ]
permissive
Vierkantor/mathlib
0ea59ac32a3a43c93c44d70f441c4ee810ccceca
83bc3b9ce9b13910b57bda6b56222495ebd31c2f
refs/heads/master
1,658,323,012,449
1,652,256,003,000
1,652,256,003,000
209,296,341
0
1
Apache-2.0
1,568,807,655,000
1,568,807,655,000
null
UTF-8
Lean
false
false
7,526
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 order.synonym /-! # Comparison This file provides basic results about orderings and comparison in linear orders. ## Definitions * `cmp_le`: An `ordering` ...
a9e07d3953ffd25bfbce77385f0ae96f6be1a71b
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/data/W/basic.lean
eeb9ae19deaebdd5478fc2a6e1d2bd0cd322811b
[ "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
6,805
lean
/- Copyright (c) 2019 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad -/ import data.equiv.list /-! # W types Given `α : Type` and `β : α → Type`, the W type determined by this data, `W_type β`, is the inductively defined type of trees whe...
b85488280bb5e771057b0e3fd311b2b26d9b2499
26ac254ecb57ffcb886ff709cf018390161a9225
/src/data/monoid_algebra.lean
ca18a515e7795329aa168bbbb9f22ef3b5c7395e
[ "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
27,172
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, Yury G. Kudryashov, Scott Morrison -/ import data.finsupp import ring_theory.algebra /-! # Monoid algebras When the domain of a `finsupp` has a multiplicative or addi...
0360a0112cc0ab3e154693898125175e664f665a
c777c32c8e484e195053731103c5e52af26a25d1
/src/geometry/manifold/complex.lean
5e3d546fa2a7142ef89cb01062099ece10653bb5
[ "Apache-2.0" ]
permissive
kbuzzard/mathlib
2ff9e85dfe2a46f4b291927f983afec17e946eb8
58537299e922f9c77df76cb613910914a479c1f7
refs/heads/master
1,685,313,702,744
1,683,974,212,000
1,683,974,212,000
128,185,277
1
0
null
1,522,920,600,000
1,522,920,600,000
null
UTF-8
Lean
false
false
5,997
lean
/- Copyright (c) 2022 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ import analysis.complex.abs_max import analysis.locally_convex.with_seminorms import geometry.manifold.mfderiv import topology.locally_constant.basic /-! # Holomor...
ddc3a961c44e42118e2b7e0733348a998ab317e0
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/control/monad/cont.lean
d89c404c2ed9c9055327b43f8a400b7a617da43f
[ "Apache-2.0" ]
permissive
jjgarzella/mathlib
96a345378c4e0bf26cf604aed84f90329e4896a2
395d8716c3ad03747059d482090e2bb97db612c8
refs/heads/master
1,686,480,124,379
1,625,163,323,000
1,625,163,323,000
281,190,421
2
0
Apache-2.0
1,595,268,170,000
1,595,268,169,000
null
UTF-8
Lean
false
false
9,372
lean
/- Copyright (c) 2019 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon Monad encapsulating continuation passing programming style, similar to Haskell's `Cont`, `ContT` and `MonadCont`: <http://hackage.haskell.org/package/mtl-2.2.2/docs/Control-M...
ccd976f42e5f544f262857b1c068c269a0c1c9b9
a45212b1526d532e6e83c44ddca6a05795113ddc
/src/data/set/finite.lean
ef1a5cb398730332422a64818cc8b5cf4cc979a6
[ "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
18,559
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 Finite sets. -/ import logic.function import data.nat.basic data.fintype data.set.lattice data.set.function open set lattice function universes u v w ...
1cd86ce438fe4ff71cfb774a0a222b24e08c4c43
6dc0c8ce7a76229dd81e73ed4474f15f88a9e294
/src/Lean/PrettyPrinter/Formatter.lean
31ae88dea06e53cb3133725751b7bf94288c8f04
[ "Apache-2.0" ]
permissive
williamdemeo/lean4
72161c58fe65c3ad955d6a3050bb7d37c04c0d54
6d00fcf1d6d873e195f9220c668ef9c58e9c4a35
refs/heads/master
1,678,305,356,877
1,614,708,995,000
1,614,708,995,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
21,191
lean
/- Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ /-! The formatter turns a `Syntax` tree into a `Format` object, inserting both mandatory whitespace (to separate adjacent tokens) as well as "pretty" optional ...
366955d398a9d6de21cdda3f9eb991dad26818ea
c777c32c8e484e195053731103c5e52af26a25d1
/src/ring_theory/witt_vector/frobenius.lean
a5b97d84730a9a3d9dd0e153c0b7f79a9e206e18
[ "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
13,411
lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import data.nat.multiplicity import data.zmod.algebra import ring_theory.witt_vector.basic import ring_theory.witt_vector.is_poly import field_theory.perfect_closure...
5d17811cc49d8d163c849648d75a49e445cb3482
e00ea76a720126cf9f6d732ad6216b5b824d20a7
/src/data/matrix/basic.lean
2d02babddb2ca4a666774aedeed5c07bc13556ff
[ "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
13,173
lean
/- Copyright (c) 2018 Ellen Arlt. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin Matrices -/ import algebra.module algebra.pi_instances import data.fintype universes u v w def matrix (m n : Type u) ...
90fa9a0ac945cc416f241acca035e8685fdb154d
957a80ea22c5abb4f4670b250d55534d9db99108
/tests/lean/run/term_app2.lean
299c0230e2961858f8e5d1cd05c3468fab924571
[ "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
2,205
lean
lemma nat.lt_add_of_lt {a b c : nat} : a < b → a < c + b := begin intro h, have aux₁ := nat.le_add_right b c, have aux₂ := lt_of_lt_of_le h aux₁, rwa [add_comm] at aux₂ end lemma nat.lt_one_add_of_lt {a b : nat} : a < b → a < 1 + b := begin intro h, have aux := lt.trans h (nat.lt_succ_self _), rwa [<- na...
3acf921445af671f3696af75dfc952eb3497806a
6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf
/src/game/world3/level4.lean
c61bf8a248a3fc37c1fb1046c4608a802c3d425b
[ "Apache-2.0" ]
permissive
arolihas/natural_number_game
4f0c93feefec93b8824b2b96adff8b702b8b43ce
8e4f7b4b42888a3b77429f90cce16292bd288138
refs/heads/master
1,621,872,426,808
1,586,270,467,000
1,586,270,467,000
253,648,466
0
0
null
1,586,219,694,000
1,586,219,694,000
null
UTF-8
Lean
false
false
1,211
lean
import game.world3.level3 -- hide namespace mynat -- hide /- # Multiplication World ## Level 4: `mul_add` Where are we going? Well we want to prove `mul_comm` and `mul_assoc`, i.e. that `a * b = b * a` and `(a * b) * c = a * (b * c)`. But we *also* want to establish the way multiplication interacts with addition, i....
706ffa68fddad03b7c3137b6d94db8d619bae5ce
98beff2e97d91a54bdcee52f922c4e1866a6c9b9
/src/category/binary_products.lean
f4bffd3725572c510c6779cd75f2fa48d855bdf2
[]
no_license
b-mehta/topos
c3fc43fb04ba16bae1965ce5c26c6461172e5bc6
c9032b11789e36038bc841a1e2b486972421b983
refs/heads/master
1,629,609,492,867
1,609,907,263,000
1,609,907,263,000
240,943,034
43
3
null
1,598,210,062,000
1,581,877,668,000
Lean
UTF-8
Lean
false
false
11,856
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.binary_products import category_theory.limits.preserves.shapes.binary_products import category_theory.limits.shapes.pullbacks import...
742290d4b0a6d55bacb9af1567fce1fed4813a49
592ee40978ac7604005a4e0d35bbc4b467389241
/Library/generated/mathscheme-lean/BinaryInverse.lean
3a7c1e5388bc842a66fa238d3517b97bfd082d47
[]
no_license
ysharoda/Deriving-Definitions
3e149e6641fae440badd35ac110a0bd705a49ad2
dfecb27572022de3d4aa702cae8db19957523a59
refs/heads/master
1,679,127,857,700
1,615,939,007,000
1,615,939,007,000
229,785,731
4
0
null
null
null
null
UTF-8
Lean
false
false
8,906
lean
import init.data.nat.basic import init.data.fin.basic import data.vector import .Prelude open Staged open nat open fin open vector section BinaryInverse structure BinaryInverse (A : Type) : Type := (linv : (A → (A → A))) (rinv : (A → (A → A))) (leftInverse : (∀ {x y : A} , (rinv (linv x y) x...
73bf8d7b62e385c03bb0ca8db773051014363e49
737dc4b96c97368cb66b925eeea3ab633ec3d702
/src/Lean/PrettyPrinter/Delaborator/Builtins.lean
e36cd2a4f8949318fbeacb07552cf1376597054d
[ "Apache-2.0" ]
permissive
Bioye97/lean4
1ace34638efd9913dc5991443777b01a08983289
bc3900cbb9adda83eed7e6affeaade7cfd07716d
refs/heads/master
1,690,589,820,211
1,631,051,000,000
1,631,067,598,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
30,455
lean
/- Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ import Lean.PrettyPrinter.Delaborator.Basic import Lean.PrettyPrinter.Delaborator.SubExpr import Lean.PrettyPrinter.Delaborator.TopDownAnalyze import Lean.Pars...
4fe4ab035d9250ab7d68f3cdc2e141fcc9ecf18f
d9d511f37a523cd7659d6f573f990e2a0af93c6f
/src/data/set/intervals/basic.lean
b3694b48a69513744ac9c259959f27dc2176cd45
[ "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
53,055
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot, Yury Kudryashov, Rémy Degenne -/ import algebra.ordered_group import data.set.basic import order.rel_iso /-! # Intervals In any preord...
379e620027f33225ac792e7ebecf35e2087995b5
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/linear_algebra/matrix/dot_product.lean
e3c81c8f65d1669d11be1462381ab5ce25741465
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
3,307
lean
/- Copyright (c) 2019 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen -/ import algebra.star.order import data.matrix.basic import linear_algebra.std_basis /-! # Dot product of two vectors > THI...
1e2a60a8d13db93e2544ff0fbed65c19618277a4
3c9dc4ea6cc92e02634ef557110bde9eae393338
/src/Lean/Message.lean
5190505f0c443fa4de9f2c9771ec7ce7d6ba91bf
[ "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
13,205
lean
/- Copyright (c) 2018 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Sebastian Ullrich, Leonardo de Moura Message Type used by the Lean frontend -/ import Lean.Data.Position import Lean.Data.OpenDecl import Lean.Syntax import Lean.MetavarContext ...
54c21bf8d6855c47da62985a04f04550347d3621
6e8de6b43162bef473b4a0bd93b71db886df98ce
/src/pregeom/basic.lean
49e0ef5aa170115c42d7d8f242bc4c96e27a30ad
[ "Unlicense" ]
permissive
adamtopaz/comb_geom
38ec6fde8d2543f56227ec50cdfb86cac6ac33c1
e16b629d6de3fbdea54a528755e7305dfb51e902
refs/heads/master
1,668,613,552,530
1,593,199,940,000
1,593,199,940,000
269,824,442
6
0
Unlicense
1,593,119,545,000
1,591,404,975,000
Lean
UTF-8
Lean
false
false
5,084
lean
import data.set import tactic import ..tactics /-! # Pregeometries This file defines the typeclass `pregeom` of pregeometries. These are types endowed with a "closure operator" `cl` acting on subsets, satisfying various axioms. A pregeometry is a geometry provided that the closure of ∅ is ∅ and that the closure of a ...
8efabe58ac68b392ef1cb7c457d99475706ca61f
f5f7e6fae601a5fe3cac7cc3ed353ed781d62419
/src/ring_theory/algebra_operations.lean
9b1c11cb3ee07d8a72dcaaa74bf106f325731b4d
[ "Apache-2.0" ]
permissive
EdAyers/mathlib
9ecfb2f14bd6caad748b64c9c131befbff0fb4e0
ca5d4c1f16f9c451cf7170b10105d0051db79e1b
refs/heads/master
1,626,189,395,845
1,555,284,396,000
1,555,284,396,000
144,004,030
0
0
Apache-2.0
1,533,727,664,000
1,533,727,663,000
null
UTF-8
Lean
false
false
5,612
lean
/- Copyright (c) 2019 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau Multiplication of submodules of an algebra. -/ import ring_theory.algebra algebra.pointwise ring_theory.ideals import tactic.chain universes u v open lattice algebra local at...
a5af73d49ac565b46db0ebc29c48695aef74aa9a
46125763b4dbf50619e8846a1371029346f4c3db
/src/tactic/simp_rw.lean
babbe89f8a3d377c6d3d8c7b8acac4bd45b95ca1
[ "Apache-2.0" ]
permissive
thjread/mathlib
a9d97612cedc2c3101060737233df15abcdb9eb1
7cffe2520a5518bba19227a107078d83fa725ddc
refs/heads/master
1,615,637,696,376
1,583,953,063,000
1,583,953,063,000
246,680,271
0
0
Apache-2.0
1,583,960,875,000
1,583,960,875,000
null
UTF-8
Lean
false
false
1,831
lean
/- Copyright (c) 2020 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen The `simp_rw` tactic, a mix of `simp` and `rewrite`. -/ import tactic.core /-! # The `simp_rw` tactic This module defines a tactic `simp_rw` which functions as a mix of `si...
b787c4b451a647ba3699da8ffb753e293d8abb06
32fa6b3db8c34b5b2996ed46f2eef23e6cd58023
/string.lean
eccf5f1963fb21035db1cdcd68f261dbe4f1c20c
[]
no_license
skbaek/strassen
3568459f9aa85beb9d3a653e92225bd9518985a5
396c94805360b10896d436813c1e4d0190885840
refs/heads/master
1,587,522,553,720
1,549,860,051,000
1,549,860,051,000
170,051,087
0
0
null
null
null
null
UTF-8
Lean
false
false
127
lean
def spaces : nat → string | 0 := "" | (n+1) := " " ++ spaces n def string.pad (l s) : string := s ++ spaces (l - s.length)
8370017c2f83b7d8b7ceeb0c4d055be020df4c46
9dd3f3912f7321eb58ee9aa8f21778ad6221f87c
/tests/lean/run/meta_env1.lean
8dfd7dc481e77a68fad062a99394372ca47a6831
[ "Apache-2.0" ]
permissive
bre7k30/lean
de893411bcfa7b3c5572e61b9e1c52951b310aa4
5a924699d076dab1bd5af23a8f910b433e598d7a
refs/heads/master
1,610,900,145,817
1,488,006,845,000
1,488,006,845,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,058
lean
open list meta definition e := environment.mk_std 0 definition hints := reducibility_hints.regular 10 tt vm_eval environment.trust_lvl e vm_eval (environment.add e (declaration.defn `foo [] (expr.sort (level.succ (level.zero))) ...
b3759ce7027dbb9543be31827577fddeb044a4a3
f9d775fd3e03626a42bf00ec5d0bc27ab0f77a4e
/src/Chapter 1.1.lean
45000cceb2e7f041b5db8df1f30f8d3cf721fe8b
[]
no_license
Nolrai/SummerCategory
d03d8340d431eb2b37c742dbe65f2611ba548430
ce74ae4487ca7c0791bde8d14da4e0ca0ff838af
refs/heads/master
1,588,316,039,936
1,553,374,940,000
1,553,374,940,000
177,340,028
0
0
null
null
null
null
UTF-8
Lean
false
false
606
lean
/-Partitions Part 1-/ section parameter α : Type structure part := (box : α -> α -> Prop) (is_equiv : is_equiv _ box) def refines (pl pr : part) := ∀ x y, pr.box x y -> pl.box x y lemma refines_refl : ∀ p, refines p p | p := begin simp [refines], intros, assumption end lemma refines_trans : ∀ a b c, refines a b -...
73c3445958f7b7b74dccf8ad82f0370d5d2d085f
75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2
/hott/homotopy/cellcomplex.hlean
63a45400f994985358e15b75fb3ea3d1b11911eb
[ "Apache-2.0" ]
permissive
jroesch/lean
30ef0860fa905d35b9ad6f76de1a4f65c9af6871
3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2
refs/heads/master
1,586,090,835,348
1,455,142,203,000
1,455,142,277,000
51,536,958
1
0
null
1,455,215,811,000
1,455,215,811,000
null
UTF-8
Lean
false
false
1,882
hlean
/- Copyright (c) 2015 Ulrik Buchholtz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Ulrik Buchholtz -/ import types.trunc homotopy.sphere hit.pushout open eq is_trunc is_equiv nat equiv trunc prod pushout sigma sphere_index unit -- where should this be? definition ...
77d963d8e7d66692cf3b583c0e4c49abccf028a0
d9d511f37a523cd7659d6f573f990e2a0af93c6f
/src/algebra/algebra/operations.lean
0aed542473aac668b75b2d411e1220bce1a634d9
[ "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
13,884
lean
/- Copyright (c) 2019 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau -/ import algebra.algebra.basic /-! # Multiplication and division of submodules of an algebra. An interface for multiplication and division of sub-R-modules of an R-algebra A is...
2de6c572af016954ba56f11ff1592c81640e4215
1abd1ed12aa68b375cdef28959f39531c6e95b84
/src/linear_algebra/affine_space/independent.lean
250475ff584037839a59f9ce281e3a9f8aa8d954
[ "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
31,033
lean
/- Copyright (c) 2020 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joseph Myers -/ import data.finset.sort import data.matrix.notation import linear_algebra.affine_space.combination import linear_algebra.affine_space.affine_equiv import linear_algebra.b...
26656013b0a019efc6855cde4867ac620daf85ad
958488bc7f3c2044206e0358e56d7690b6ae696c
/lean/Func.lean
432f172ebed81a58a887db7f41e3247ff046ca17
[]
no_license
possientis/Prog
a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4
d4b3debc37610a88e0dac3ac5914903604fd1d1f
refs/heads/master
1,692,263,717,723
1,691,757,179,000
1,691,757,179,000
40,361,602
3
0
null
1,679,896,438,000
1,438,953,859,000
Coq
UTF-8
Lean
false
false
387
lean
def compose (α β γ : Type) (g : β → γ) (f : α → β) (x : α) : γ := g (f x) def twice (α : Type) (f : α → α) (x : α) : α := f (f x) def thrice (α : Type) (f : α → α) (x : α) : α := f ( f (f x)) variables (α β γ : Type) def compose' (g : β → γ) (f : α → β) (x : α) : γ := g (f x) #check compose #check compose' #prin...
201cc9594e78b863a0eede9c09d501164aed5339
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/finset/sups.lean
0c2c69a05642722faba960c87bb4075e8c87f51a
[ "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,908
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 data.finset.n_ary import data.set.sups /-! # Set family operations > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresponding ...
ba42e290d0b428f850dfd295513b95f6301b4469
367134ba5a65885e863bdc4507601606690974c1
/src/data/set/function.lean
d18225edce0d947cbf2d19060ee9c8cff96da78c
[ "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
34,211
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov -/ import data.set.basic import logic.function.conjugate /-! # Functions over sets ## Main definitions ### Pr...
39c1caad6966764aa1944ef2e855993378f6818d
9dc8cecdf3c4634764a18254e94d43da07142918
/src/probability/probability_mass_function/uniform.lean
576be0142d8db558197c8150d2d3d09a71d06fa8
[ "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,189
lean
/- Copyright (c) 2022 Devon Tuma. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Devon Tuma -/ import probability.probability_mass_function.constructions /-! # Uniform Probability Mass Functions This file defines a number of uniform `pmf` distributions from various i...
e27bd229a9d5013a4479090ef643f93aa07bc648
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/algebraic_geometry/locally_ringed_space.lean
ab03f1d82675c7b633d05f05db28b3722ff30120
[ "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
10,267
lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin -/ import algebraic_geometry.ringed_space import algebraic_geometry.stalks import logic.equiv.transfer_instance /-! # The category of locally ringed spaces We define ...