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
d905803698354552c8bb6f0d82ec18c1d815c14d
d9d511f37a523cd7659d6f573f990e2a0af93c6f
/src/group_theory/group_action/group.lean
d46ec78744272ac90c510d229772af91c19a623a
[ "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
7,523
lean
/- Copyright (c) 2018 Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Chris Hughes -/ import data.equiv.mul_add_aut import group_theory.group_action.units /-! # Group actions applied to various types of group This file contains lemmas about `smul` on `gr...
97810dfb6ef0eba69e0e1634f830f507c2a6bf9f
55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5
/src/linear_algebra/basis.lean
ed6a596040a3cec0891de140ab8b33ed1756bf8b
[ "Apache-2.0" ]
permissive
dupuisf/mathlib
62de4ec6544bf3b79086afd27b6529acfaf2c1bb
8582b06b0a5d06c33ee07d0bdf7c646cae22cf36
refs/heads/master
1,669,494,854,016
1,595,692,409,000
1,595,692,409,000
272,046,630
0
0
Apache-2.0
1,592,066,143,000
1,592,066,142,000
null
UTF-8
Lean
false
false
54,961
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp -/ import linear_algebra.finsupp import linear_algebra.projection import order.zorn import data.fintype.card import data.finset.order...
e4780136e76f0ccb4a0dd7c56df0bcc802c0b62e
1abd1ed12aa68b375cdef28959f39531c6e95b84
/src/order/bounded_lattice.lean
e4b32a79e8c5ad52af7efe9bcf0b1c475cffa0e1
[ "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
48,340
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl -/ import data.option.basic import logic.nontrivial import order.lattice import order.order_dual import tactic.pi_instances /-! # ⊤ and ⊥, bounded lattices and variants...
45309dde51d30f0128c271ef39e9fd0d5532e79f
2731214ea32f2a1a985300e281fb3117640a16c3
/portmanteau_open_closed_imp_borel.lean
9e05556ff18eb10297268de0414711711f414a58
[ "Apache-2.0" ]
permissive
kkytola/lean_portmanteau
5d6a156db959974ebc4f5bed9118a7a2438a33fa
ac55eb4e24be43032cbc082e2b68d8fb8bd63f22
refs/heads/main
1,686,107,117,334
1,625,177,052,000
1,625,177,052,000
381,514,032
1
0
null
null
null
null
UTF-8
Lean
false
false
3,503
lean
/- Copyright (c) 2021 Kalle Kytölä. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kalle Kytölä -/ import portmanteau_definitions import portmanteau_topological_lemmas import portmanteau_open_equiv_closed noncomputable theory open measure_theory namespace portman...
2d7277df467030ea3ff9079f20b4f5e96e370ea4
57c233acf9386e610d99ed20ef139c5f97504ba3
/archive/100-theorems-list/16_abel_ruffini.lean
df1cae623a49dc269f63ffc67a94f0bea977363d
[ "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,296
lean
/- Copyright (c) 2021 Thomas Browning. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Thomas Browning -/ import field_theory.abel_ruffini import analysis.calculus.local_extr import ring_theory.eisenstein_criterion /-! Construction of an algebraic number that is not sol...
b839942987d0af4b66c0b5dc39d461ea75bb5176
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/tactic/obviously.lean
d103fbf707eea6f89330ee77fb4b47d3cf88a642
[ "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
1,704
lean
/- Copyright (c) 2017 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import tactic.tidy import tactic.replacer /-! # The `obviously` tactic This file sets up a tactic called `obviously`, which is subsequently used throughout the cate...
93caffbda4d79ab740071a9f567030d89519892f
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/slow/deep.lean
51f935b00d993a63af6d852d56e79ee4fe9ea5a9
[ "Apache-2.0" ]
permissive
codyroux/lean0.1
1ce92751d664aacff0529e139083304a7bbc8a71
0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef
refs/heads/master
1,610,830,535,062
1,402,150,480,000
1,402,150,480,000
19,588,851
2
0
null
null
null
null
UTF-8
Lean
false
false
316
lean
import Int. definition f1 (f : Int -> Int) (x : Int) : Int := f (f (f (f x))) definition f2 (f : Int -> Int) (x : Int) : Int := f1 (f1 (f1 (f1 f))) x definition f3 (f : Int -> Int) (x : Int) : Int := f1 (f2 (f2 f)) x variable f : Int -> Int. set_option pp::width 80. set_option lean::pp::max_depth 2000. eval f3 f 0.
d7d0369b271cbf999767af688199e25164d57816
dd0f5513e11c52db157d2fcc8456d9401a6cd9da
/08_Building_Theories_and_Proofs.org.17.lean
f3ecd0ed58bd7b4fdd34af5a2668e106a8a9ba5e
[]
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
96
lean
import standard definition pr2 (A : Type) (a b : A) : A := b local attribute pr2 [irreducible]
d6d08bf5f9626b9fb1d40b51b4968595a35ceb66
c45b34bfd44d8607a2e8762c926e3cfaa7436201
/uexp/src/uexp/canonize.lean
4db09d221266f978a12ad326fd3d89ae694eb309
[ "BSD-2-Clause" ]
permissive
Shamrock-Frost/Cosette
b477c442c07e45082348a145f19ebb35a7f29392
24cbc4adebf627f13f5eac878f04ffa20d1209af
refs/heads/master
1,619,721,304,969
1,526,082,841,000
1,526,082,841,000
121,695,605
1
0
null
1,518,737,210,000
1,518,737,210,000
null
UTF-8
Lean
false
false
2,801
lean
import tactic import .cosette_tactics .TDP open tactic section canonize meta inductive canonize_term_repr : Type | sig : expr → list name → canonize_term_repr | prod : list expr → canonize_term_repr meta def expr_to_canonize_term_repr (ex : expr) : tactic canonize_term_repr := match sigma_expr_to_sigma_repr ex ...
8975d27b56378ddaa0a281e3e27fe2aad56d2000
947b78d97130d56365ae2ec264df196ce769371a
/src/Lean/Meta/Match/CaseArraySizes.lean
53d51c2145d23539d8fc438f696141fb06d8e9d3
[ "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
3,827
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.Meta.Tactic.Assert import Lean.Meta.Match.CaseValues namespace Lean namespace Meta structure CaseArraySizesSubgoal := (mvarId : MVarId) (elems...
b7b6a72f6ce360810d487bf9075a9c717e56249b
02005f45e00c7ecf2c8ca5db60251bd1e9c860b5
/src/data/qpf/multivariate/constructions/cofix.lean
2bea5b6d2aa2bfe316e51326c39a4d3aef8c2c11
[ "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
19,009
lean
/- Copyright (c) 2018 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad, Simon Hudon -/ import control.functor.multivariate import data.pfunctor.multivariate.basic import data.pfunctor.multivariate.M import data.qpf.multivariate.basic /-! # T...
eca3b6ef58c4bc6307f87add1f6879dcd2ebaeb2
957a80ea22c5abb4f4670b250d55534d9db99108
/library/init/data/bool/lemmas.lean
9426c81dee84311f2deeb8a05f418a3137c63878
[ "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
4,124
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 -/ prelude import init.data.bool.basic init.meta attribute [simp] cond bor band bnot bxor @[simp] lemma {u} cond_a_a {α : Type u} (b : bool) (a : α) : cond b...
93dca854028be67bb728459e4630853c535b3358
07c6143268cfb72beccd1cc35735d424ebcb187b
/src/topology/metric_space/gromov_hausdorff_realized.lean
08dec722585caed6ab9f33995fb6a0231c15827a
[ "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
26,991
lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Sébastien Gouëzel Construction of a good coupling between nonempty compact metric spaces, minimizing their Hausdorff distance. This construction is instrumental to study the Gromov-...
8f3f45a8474abae9a598a74a90a13eae90cd1715
bb31430994044506fa42fd667e2d556327e18dfe
/src/set_theory/cardinal/basic.lean
880b32b1fcaf4859b197c786a011a5c3cb54e204
[ "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
71,030
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.fintype.big_operators import data.finsupp.defs import data.nat.part_enat import data.set.countable import logic.small.ba...
b4c94d66ea30ee40e1c86039c8f19e173814f40f
46125763b4dbf50619e8846a1371029346f4c3db
/src/algebra/euclidean_domain.lean
42b467f49fcd42148bb318d79495be2ad7c1ca4e
[ "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
13,887
lean
/- Copyright (c) 2018 Louis Carlin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Louis Carlin, Mario Carneiro Euclidean domains and Euclidean algorithm (extended to come) A lot is based on pre-existing code in mathlib for natural number gcds -/ import data.int.basic...
cafff4866b1422347c5b5a725f02ae27223ec7eb
432d948a4d3d242fdfb44b81c9e1b1baacd58617
/src/measure_theory/measure_space.lean
9c4d751342e01151e2e4d5d62eff37d14fee39df
[ "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
117,329
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.outer_measure import order.filter.countable_Inter import data.set.accumulate /-! # Measure spaces Given a measurable space `α`...
21235e1176a430b2ab7d3cae289c8b01922170aa
82e44445c70db0f03e30d7be725775f122d72f3e
/src/field_theory/intermediate_field.lean
65ddce1f7d00d6aebb6d8e47aed167643072e43a
[ "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
13,948
lean
/- Copyright (c) 2020 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anne Baanen -/ import field_theory.subfield import field_theory.tower import ring_theory.algebraic /-! # Intermediate fields Let `L / K` be a field extension, given as an instance `alg...
e2ecefead28fc45c2942686fbd6f8985fbe5ae96
9dc8cecdf3c4634764a18254e94d43da07142918
/src/category_theory/monoidal/free/coherence.lean
a1314d9cb820a5727a50dc03f6275060a0a6ec97
[ "Apache-2.0" ]
permissive
jcommelin/mathlib
d8456447c36c176e14d96d9e76f39841f69d2d9b
ee8279351a2e434c2852345c51b728d22af5a156
refs/heads/master
1,664,782,136,488
1,663,638,983,000
1,663,638,983,000
132,563,656
0
0
Apache-2.0
1,663,599,929,000
1,525,760,539,000
Lean
UTF-8
Lean
false
false
12,093
lean
/- Copyright (c) 2021 Markus Himmel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Markus Himmel -/ import category_theory.monoidal.free.basic import category_theory.groupoid import category_theory.discrete_category /-! # The monoidal coherence theorem In this file,...
4c30a52bc92c3ecbebbf90907fd576fef155a7bc
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/contra1.lean
bacc9b0a5eab831a93a72e881d78a786f6b4291f
[ "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
346
lean
open nat example (a b : nat) (h : false) : a = b := by contradiction example : ∀ (a b : nat), false → a = b := by contradiction example : ∀ (a b : nat), (0:nat) = 1 → a = b := by contradiction example : ∀ (a b : nat), id false → a = b := by contradiction example : ∀ (a b : nat), id ((0:nat) = 1) → a = b := by cont...
644697de041f22322ffd5988e53b9d03feef65d7
5ae26df177f810c5006841e9c73dc56e01b978d7
/src/algebra/direct_limit.lean
b7597f916d5800e32cd0585e70556d92b7782e27
[ "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
25,287
lean
/- Copyright (c) 2019 Kenny Lau, Chris Hughes. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Chris Hughes Direct limit of modules, abelian groups, rings, and fields. See Atiyah-Macdonald PP.32-33, Matsumura PP.269-270 Generalizes the notion of "union", o...
06e6733bf9119240583c6fc524ab2859a1f80178
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/group_theory/perm/via_embedding.lean
432d161f65be8b2cb46588cb15808f71795e6c73
[ "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,345
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, Mario Carneiro -/ import group_theory.perm.basic import logic.equiv.set /-! # `equiv.perm.via_embedding`, a noncomputable analogue of `equiv.perm.via_fintype...
5597ccba888b15e78b98f242fd2b1b0aba0197f0
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/ring_theory/polynomial/cyclotomic/eval.lean
266c5c6c3698c553f1e07dca03df450f12efee76
[ "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
16,423
lean
/- Copyright (c) 2021 Eric Rodriguez. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Eric Rodriguez -/ import ring_theory.polynomial.cyclotomic.roots import tactic.by_contra import topology.algebra.polynomial import number_theory.padics.padic_val import analysis.compl...
670c446a3b74f8941dfba8d29d1a770f190803cf
5fbbd711f9bfc21ee168f46a4be146603ece8835
/lean/natural_number_game/addition/1.lean
25a5f5c547f92cdaaafa8aaf507adf3fb454b527
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
goedel-gang/maths
22596f71e3fde9c088e59931f128a3b5efb73a2c
a20a6f6a8ce800427afd595c598a5ad43da1408d
refs/heads/master
1,623,055,941,960
1,621,599,441,000
1,621,599,441,000
169,335,840
0
0
null
null
null
null
UTF-8
Lean
false
false
119
lean
lemma zero_add (n : mynat) : 0 + n = n := begin induction n with m hm, rwa add_zero, rw add_succ, rwa hm, end
fd58bf72eb0d1f87dfb85e4bc5059a8e03204911
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/algebra/algebra/subalgebra.lean
e0dad7043ab6513a4a7c65b247dc2a08a475079e
[]
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
23,596
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Yury Kudryashov -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.algebra.algebra.operations import Mathlib.PostPort universes u v l w u_1 u_2 u_3 ...
bcef4a4dfe2cc55dc64b21bce32081944202066c
a047a4718edfa935d17231e9e6ecec8c7b701e05
/src/linear_algebra/finsupp.lean
9f7654935c420307a8ee59af5bf25366ac456119
[ "Apache-2.0" ]
permissive
utensil-contrib/mathlib
bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767
b91909e77e219098a2f8cc031f89d595fe274bd2
refs/heads/master
1,668,048,976,965
1,592,442,701,000
1,592,442,701,000
273,197,855
0
0
null
1,592,472,812,000
1,592,472,811,000
null
UTF-8
Lean
false
false
17,107
lean
/- Copyright (c) 2019 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Johannes Hölzl Linear structures on function with finite support `α →₀ M`. -/ import data.monoid_algebra noncomputable theory open set linear_map submodule open_locale classical na...
b29ae750d2c299b7b2065484369619599f8d7cce
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/topology/uniform_space/separation.lean
8b7225b40622071cf72a25999231b009f3306751
[]
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
14,270
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, Patrick Massot -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.topology.uniform_space.basic import Mathlib.tactic.apply_fun import Mathlib...
ba3be247ddc44045e7eee7b025e162d1d5d73613
37583bc2df4ea4f4e29b43ee1302f004c24cfa59
/tut3.lean
26c5a0ec0fdc0c6b75d9dcc3aa18aa486059c63e
[ "MIT" ]
permissive
Vtec234/tpil-solutions
9cd8576953eb7ea34e5959878bf00f73b035ba4e
70c1b5c5e33a9c26296edb17cf828327d7f69842
refs/heads/master
1,585,389,330,863
1,540,413,754,000
1,540,413,754,000
148,069,811
1
0
null
null
null
null
UTF-8
Lean
false
false
9,678
lean
import tactic.find -- super useful! section ex1 variables {p q r s: Prop} -- commutativity of ∧ and ∨ example : p ∧ q ↔ q ∧ p := iff.intro (assume h: p ∧ q, and.intro h.right h.left) (assume h: q ∧ p, and.intro h.right h.left) -- in one direction theorem or_comm_1: p ∨ q → q ∨ p := (as...
becc19fd4d61aad1c5d319f5d92bd081b35296fa
a6b711a4e8db20755026231f7ed529a9014b2b6d
/00_Foundations/04_axioms.lean
c7fb3b1b21d7814fb4862e084b5b643002f6381e
[]
no_license
chaseboettner/cs-dm-1
b67d4a7e86f56bce59d2af115503769749d423b2
80b35f2957ffaa45b8b7a4479a3570a2d6eb4db0
refs/heads/master
1,585,367,603,488
1,536,235,675,000
1,536,235,675,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
6,819
lean
/- *** Axioms *** -/ /- In a mathematical or logical system, some propositions are taken to be true unconditionally: without the need for any prior "input" proofs. An inference rule that requires no proof inputs, and that nevertheless lets you judge some proposition to be true, is called an axiom. We also use the...
3c0e1410a1dfa8ed4bfd97c52bd07eaa80d140e7
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/ring_theory/prime_auto.lean
835be35845f72438a37bb1ec946aad4fd047261e
[]
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,706
lean
/- Copyright (c) 2020 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.associated import Mathlib.algebra.big_operators.basic import Mathlib.PostPort universe...
b802eaca3581c08d71aa13ec0035601c29ba15c2
9dc8cecdf3c4634764a18254e94d43da07142918
/src/set_theory/ordinal/principal.lean
672c33df46ba91435f34bde7bf7b35633bae83e1
[ "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
16,472
lean
/- Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Violeta Hernández Palacios -/ import set_theory.ordinal.fixed_point /-! ### Principal ordinals We define principal or indecomposable ordinals, and we prove the standard ...
40e0f872232067dad6a86c2b0c6e29b1bfe36416
77c5b91fae1b966ddd1db969ba37b6f0e4901e88
/src/data/equiv/mul_add.lean
5a65cccc6f55f83a8a647a1b60ab5405127ca2e2
[ "Apache-2.0" ]
permissive
dexmagic/mathlib
ff48eefc56e2412429b31d4fddd41a976eb287ce
7a5d15a955a92a90e1d398b2281916b9c41270b2
refs/heads/master
1,693,481,322,046
1,633,360,193,000
1,633,360,193,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
24,694
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, Callum Sutton, Yury Kudryashov -/ import algebra.group.type_tags import algebra.group_with_zero /-! # Multiplicative and additive equivs In this file we define two ex...
40f6b8407d07f71ee285607eeab42848df0a3f1d
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/1804a.lean
76733e1c682081013af7fc30e78de998b9feae4f
[ "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
684
lean
section parameter P : match unit.star with | unit.star := true end include P example : false := begin dsimp [_match_1] at P, guard_hyp P : true, admit end end section parameter P : match unit.star with | unit.star := true end include P example : false := begin dsimp [_match_1] at P, guard_hyp P : true, ...
54105adb347df001e0cdd03b3ae09ea6b2eac11e
8e381650eb2c1c5361be64ff97e47d956bf2ab9f
/src/spectrum_of_a_ring/induced_homeomorphism.lean
3087b33c13a7e7c1b72e9465d548b3fcad74d39f
[]
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
13,756
lean
/- The map R → R[1/f] induces a homeomorphism Spec(R[1/f]) → D(f). https://stacks.math.columbia.edu/tag/00E4 -/ import topology.basic import ring_theory.localization import to_mathlib.localization.localization_alt import to_mathlib.localization.localization_ideal import spectrum_of_a_ring.zariski_topology import ...
3a06e91d3876ae83e30f31ab82f7f3c9c65049bc
94e33a31faa76775069b071adea97e86e218a8ee
/src/linear_algebra/multilinear/basic.lean
409b7078e5098d7d2544a17b87e34b8fb9ae0360
[ "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
58,324
lean
/- Copyright (c) 2020 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel -/ import linear_algebra.basic import algebra.algebra.basic import algebra.big_operators.order import algebra.big_operators.ring import data.fin.tuple import data....
ccffb616a664b5c907f2b753a4b8708635494b5f
4727251e0cd73359b15b664c3170e5d754078599
/src/topology/continuous_on.lean
4439b2fe39c4d83ee3e0c58fdb5b8ddf1b6341f6
[ "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
52,832
lean
/- Copyright (c) 2019 Reid Barton. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel -/ import topology.constructions /-! # Neighborhoods and continuity relative to a subset This file defines relative versions * `nhds_within` of `nhds` * `co...
8a373b58e2087846044cc09fb0a7dd4c8d3f963d
367134ba5a65885e863bdc4507601606690974c1
/src/topology/category/Compactum.lean
8b9a69f47447abaa25a8380f1a5a3dc6cc9ae12d
[ "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
16,516
lean
/- Copyright (c) 2020 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz -/ import category_theory.monad.types import category_theory.monad.limits import category_theory.equivalence import topology.category.CompHaus import data.set.constructions /-...
e44343beca62ad48570ac32bb7630d1b904522cd
22e97a5d648fc451e25a06c668dc03ac7ed7bc25
/src/ring_theory/ideal_operations.lean
a45c4c3eb581e067c54e4a3b8de59c9378178b0d
[ "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
34,472
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau More operations on modules and ideals. -/ import data.nat.choose import data.equiv.ring import ring_theory.algebra_operations universes u v w x namespace submodule variables ...
2405e21a0e6ac8740f959a9ff2378aa6b05cf1a5
4950bf76e5ae40ba9f8491647d0b6f228ddce173
/src/analysis/analytic/basic.lean
a45b0749bd68864eb6e4ef4a9cd627dcf5f34e95
[ "Apache-2.0" ]
permissive
ntzwq/mathlib
ca50b21079b0a7c6781c34b62199a396dd00cee2
36eec1a98f22df82eaccd354a758ef8576af2a7f
refs/heads/master
1,675,193,391,478
1,607,822,996,000
1,607,822,996,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
37,787
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 analysis.calculus.times_cont_diff import tactic.omega import analysis.special_functions.pow /-! # Analytic functions A function is analytic in one dime...
b7c34a4ac52f56a082519c80ae09d8bd038ab78b
b7f22e51856f4989b970961f794f1c435f9b8f78
/hott/types/lift.hlean
6ecf37fe04a68f259f3f3a1975c926d9ae2141d7
[ "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
6,136
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 lift -/ import ..function open eq equiv is_equiv is_trunc pointed namespace lift universe variables u v variables {A : Type.{u}} (z z' : lift.{...
eaf5ee8a842a4a21a83fbf62324af7ee8cb9da61
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/coe2.lean
58a341154aff413d6ab53ad1dbf5a39460e4e903
[ "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
489
lean
import logic namespace setoid inductive setoid : Type := mk_setoid: Π (A : Type), (A → A → Prop) → setoid definition carrier (s : setoid) := setoid.rec (λ a eq, a) s definition eqv {s : setoid} : carrier s → carrier s → Prop := setoid.rec (λ a eqv, eqv) s infix `≈` := eqv attribute carrier [coercio...
9861ced6303d6706779a86cd737dbb1a59db76fa
9dd3f3912f7321eb58ee9aa8f21778ad6221f87c
/library/init/category/monad.lean
462a1d1e8629d5261164a8d4d7c1de812a2d133d
[ "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
1,305
lean
/- Copyright (c) Luke Nelson and Jared Roesch. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Luke Nelson and Jared Roesch -/ prelude import init.category.applicative universes u v class pre_monad (m : Type u → Type v) := (bind : Π {a b : Type u}, m a → (a → m b) → m ...
32c47a024974540cccd4f92dd709bb0b08bf4eb5
ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5
/tests/lean/run/proofIrrelFVar.lean
a91a28bcbf58cb03d9f0392b0797ac292dce01e5
[ "Apache-2.0" ]
permissive
dupuisf/lean4
d082d13b01243e1de29ae680eefb476961221eef
6a39c65bd28eb0e28c3870188f348c8914502718
refs/heads/master
1,676,948,755,391
1,610,665,114,000
1,610,665,114,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
171
lean
universes u variables {α : Type u} {p : α → Prop} theorem ex (a : α) (h1 h2 : p a) (h : Subtype.mk a h1 = Subtype.mk a h1) : Subtype.mk a h1 = Subtype.mk a h2 := h
a4da7d372fc5983cbc135b820f60c1b7830622dc
70f8755415fa7a17f87402cde4651e9f4db1b5bb
/src/mvpfunctor/basic.lean
6756324fc82b55af62ffd7067733d4ec028bd11e
[ "Apache-2.0" ]
permissive
shingarov/qpf
ab935dc2298db12c87ac011a2e4d2c27e0bdef4b
debe2eacb8cf46b21aba2eaf3f2e20940da0263b
refs/heads/master
1,653,705,576,607
1,570,136,035,000
1,570,136,035,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,935
lean
/- Copyright (c) 2018 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad Multivariate polynomial functors. Note: eventually the W and M constructions as multivariate polynomial functors will go here. -/ import ..mvfunctor ..pfunctor import for...
1f237e3e7a520dbbbf9de1211c78924e22f9746f
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/lua2.lean
05070da9a31d2549e903ea6dd51b35cda6988c6a
[ "Apache-2.0" ]
permissive
codyroux/lean0.1
1ce92751d664aacff0529e139083304a7bbc8a71
0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef
refs/heads/master
1,610,830,535,062
1,402,150,480,000
1,402,150,480,000
19,588,851
2
0
null
null
null
null
UTF-8
Lean
false
false
134
lean
variable x : Bool (* a = {} print("hello world") print ("ok") a = { x = 10, y = 20 } rint ("ok") *) variable y : Bool
04e1975cc69c3397d5af54068c672f9e64ca10d7
e151e9053bfd6d71740066474fc500a087837323
/src/hott/types/2_adj/adj.lean
a863c0089b67a85efd5912b5bfcdaf850e23e27d
[ "Apache-2.0" ]
permissive
daniel-carranza/hott3
15bac2d90589dbb952ef15e74b2837722491963d
913811e8a1371d3a5751d7d32ff9dec8aa6815d9
refs/heads/master
1,610,091,349,670
1,596,222,336,000
1,596,222,336,000
241,957,822
0
0
Apache-2.0
1,582,222,839,000
1,582,222,838,000
null
UTF-8
Lean
false
false
8,043
lean
/- Authors: Daniel Carranza, Jonathon Chang, Ryan Sandford Under the supervision of Chris Kapulkin Theorems about half-adjoint equivalences, including a proof that the left half-adjoint type is a proposition and is equivalent to the built-in equivalence type Last updated: 2020-07-31 -/ import hott.init hott.ty...
388b267f4f1395d81557283a9b812bfb0ddb691b
36938939954e91f23dec66a02728db08a7acfcf9
/lean4/simulator/Runelf.lean
0bc276d8e07652ab052f462274666db7816ca9c0
[]
no_license
pnwamk/reopt-vcg
f8b56dd0279392a5e1c6aee721be8138e6b558d3
c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d
refs/heads/master
1,631,145,017,772
1,593,549,019,000
1,593,549,143,000
254,191,418
0
0
null
1,586,377,077,000
1,586,377,077,000
null
UTF-8
Lean
false
false
3,267
lean
/- This file ties together the evaluator, elf support, and the decoder -/ -- import system.io import Galois.Init.Io import X86Semantics.MachineMemory import Main.Elf import Main.Translate import X86Semantics.ConcreteBackend import DecodeX86.DecodeX86 open x86 -- def evaluate_one (s : machine_state) : (Nat × sum u...
c691c1b60343d8fee73afd98042a0463480c055e
367134ba5a65885e863bdc4507601606690974c1
/src/ring_theory/dedekind_domain.lean
8fe0200a4b4009540a51f94ec859c4e9a64723a3
[ "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
10,142
lean
/- Copyright (c) 2020 Kenji Nakagawa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio -/ import ring_theory.discrete_valuation_ring import ring_theory.fractional_ideal import ring_theory.ideal.over /-! # Dedekind domain...
db789e29a91f11d9f35e5dbff830e8f15cebeacf
1a2aed113dcb5f1c07ae98040953fba5e6563624
/lean_root/src/first_proofs.lean
ded6435fe2352572394d47a4cc0b4ce9adc5f0f3
[ "Apache-2.0" ]
permissive
kevindoran/lean
61d9fb90363b04587624036136482b29e3c16ebd
77e755095a31e3a214010eb48a61e48d65dfdec9
refs/heads/master
1,670,372,072,769
1,598,920,365,000
1,598,920,365,000
264,824,992
0
0
null
null
null
null
UTF-8
Lean
false
false
18,047
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...
049c25bbf0260cc38c7b30fd96a4d16df78c42cd
9cba98daa30c0804090f963f9024147a50292fa0
/old/metrology/scalar.lean
4f345954f9bfc8600fe8b5d57195b17aab627fb4
[]
no_license
kevinsullivan/phys
dcb192f7b3033797541b980f0b4a7e75d84cea1a
ebc2df3779d3605ff7a9b47eeda25c2a551e011f
refs/heads/master
1,637,490,575,500
1,629,899,064,000
1,629,899,064,000
168,012,884
0
3
null
1,629,644,436,000
1,548,699,832,000
Lean
UTF-8
Lean
false
false
2,564
lean
--import .....math.affine.aff_coord_space import data.real.basic namespace scalar /- Algebraic types of scalars for different physical dimensions. Deprecated. Use basicDimScalarType. TODO: Rethink use of abbreviation -/ abbreviation length := ℝ abbreviation time := ℝ abbreviation mass := { r : ℝ // r >= 0} abbrevi...
26d555da02a97e8982d8ca6ee391eeeffdbb8de4
7cef822f3b952965621309e88eadf618da0c8ae9
/src/tactic/ring2.lean
1d3f1f58a8af15b0c54749d2142d6107cc63bcb5
[ "Apache-2.0" ]
permissive
rmitta/mathlib
8d90aee30b4db2b013e01f62c33f297d7e64a43d
883d974b608845bad30ae19e27e33c285200bf84
refs/heads/master
1,585,776,832,544
1,576,874,096,000
1,576,874,096,000
153,663,165
0
2
Apache-2.0
1,544,806,490,000
1,539,884,365,000
Lean
UTF-8
Lean
false
false
20,528
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import tactic.ring data.num.lemmas data.tree import tactic.converter.interactive /-! # ring2 An experimental variant on the `ring` tactic that uses computational r...
ca548e828a867abdf473bda29b049eb4380b8ed5
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/revertlet.lean
4d3de8184b664c613e8e4a2a66028836d849d17f
[ "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
155
lean
theorem ex (n : Nat) (h : n = 0) : 0 + n = 0 := by let m := n + 1 let v := m + 1 have : v = n + 2 := rfl trace_state subst h trace_state rfl
5c327b1bf8571be5e3ac5b83687bb6e0e643f1c8
4950bf76e5ae40ba9f8491647d0b6f228ddce173
/src/data/finset/basic.lean
9f9fff481b6fc3bbfa16e6d422fdc085231c12b4
[ "Apache-2.0" ]
permissive
ntzwq/mathlib
ca50b21079b0a7c6781c34b62199a396dd00cee2
36eec1a98f22df82eaccd354a758ef8576af2a7f
refs/heads/master
1,675,193,391,478
1,607,822,996,000
1,607,822,996,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
101,747
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, Minchao Wu, Mario Carneiro -/ import data.multiset.finset_ops import tactic.monotonicity import tactic.apply import tactic.nth_rewrite /-! # F...
862490dfdbbd90d3e1f8aeda4078b3020e6f5bb1
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/locally_convex/balanced_core_hull.lean
0533613a15d02315a4f236aa98abf58e32cafae7
[ "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
9,732
lean
/- Copyright (c) 2022 Moritz Doll. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Moritz Doll -/ import analysis.locally_convex.basic /-! # Balanced Core and Balanced Hull > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresponding P...
d169e08879a761430ee3569201e6b2f78f8997a9
690889011852559ee5ac4dfea77092de8c832e7e
/src/data/fintype/intervals.lean
869553c57a877ebb52e492ca55df3ba021290e23
[ "Apache-2.0" ]
permissive
williamdemeo/mathlib
f6df180148f8acc91de9ba5e558976ab40a872c7
1fa03c29f9f273203bbffb79d10d31f696b3d317
refs/heads/master
1,584,785,260,929
1,572,195,914,000
1,572,195,913,000
138,435,193
0
0
Apache-2.0
1,529,789,739,000
1,529,789,739,000
null
UTF-8
Lean
false
false
752
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 data.set.intervals import data.set.finite import data.fintype import tactic /-! # fintype instances for intervals We provide `fintype` instances for `Ico l u...
c0e23306d3df2bba86b41268462c88c285471521
ff5230333a701471f46c57e8c115a073ebaaa448
/library/init/meta/interactive.lean
87f0444f57dd43b127bcb3a3557a8c4db8167bf4
[ "Apache-2.0" ]
permissive
stanford-cs242/lean
f81721d2b5d00bc175f2e58c57b710d465e6c858
7bd861261f4a37326dcf8d7a17f1f1f330e4548c
refs/heads/master
1,600,957,431,849
1,576,465,093,000
1,576,465,093,000
225,779,423
0
3
Apache-2.0
1,575,433,936,000
1,575,433,935,000
null
UTF-8
Lean
false
false
68,305
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import init.meta.tactic init.meta.rewrite_tactic init.meta.simp_tactic import init.meta.smt.congruence_closure init.category.combinators import init...
4ec513d71e012bbb6a4a0daff9e4bedc2abbc119
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/ind_whnf.lean
b662baf678e23415fb4add04e7648749aaf01683
[ "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
764
lean
inductive Expr : id Type | var : Nat → Expr | app : String → List Expr → Expr partial def Expr.fold (f : Nat → α → α) : Expr → α → α | var n, a => f n a | app s as, a => as.foldl (init := a) fun a e => fold f e a def Expr.isVar : Expr → Bool | var _ => true | _ => false inductive Lst (α : Type u) ...
b29e1e0d59afaed496aa3e876666e76b42942b95
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/tests/playground/termparsertest1.lean
5e189dfaf217056c6b03dfb355761f3bc2265ccf
[ "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
2,709
lean
import init.lean.parser.term open Lean open Lean.Parser def testParser (input : String) : IO Unit := do env ← mkEmptyEnvironment; termPTables ← builtinTermParsingTable.get; stx ← IO.ofExcept $ runParser env termPTables input "<input>" "expr"; IO.println stx def test (is : List String) : IO Unit := is.mfor $ fun input...
14677dd65e4ab103e72b09d92178454b9e877a5c
8b9f17008684d796c8022dab552e42f0cb6fb347
/library/data/nat/sub.lean
2b3a67df9b1922373a99b3141baa1218f69ab457
[ "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
17,091
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 Module: data.nat.sub Subtraction on the natural numbers, as well as min, max, and distance. -/ import .order import tools.fake_simplifier open eq.op...
01abe8b0f6504cf2ebb072863b69d331586cd1fc
41ebf3cb010344adfa84907b3304db00e02db0a6
/uexp/tactic_paper_supplemental_material/monoid_cancellation/smt.lean
2f3e41aae691c481082512efb9eca9fdbefbe311
[ "BSD-2-Clause" ]
permissive
ReinierKoops/Cosette
e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb
eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29
refs/heads/master
1,686,483,953,198
1,624,293,498,000
1,624,293,498,000
378,997,885
0
0
BSD-2-Clause
1,624,293,485,000
1,624,293,484,000
null
UTF-8
Lean
false
false
204
lean
import .monoid local infix * := star -- necessary instances for the AC support in the SMT state instance : is_associative _ star := ⟨star_assoc⟩ instance : is_commutative _ star := ⟨star_comm⟩
1f0798702e7c1b32299152646f3eda98b8f06c0c
9dc8cecdf3c4634764a18254e94d43da07142918
/src/tactic/interval_cases.lean
d923e76a6d4bc536b20d2bd08ae18da007f786c5
[ "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
11,221
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 tactic.fin_cases import data.fin.interval -- These imports aren't required to compile this file, import data.int.interval -- but they are needed at the use sit...
5b59dbc97dded08f897e35414490ebf08d8cf81e
abd85493667895c57a7507870867b28124b3998f
/src/data/complex/basic.lean
ba71d2ad1496d1c38c9ff51aa9fb2cb9af8cc3ad
[ "Apache-2.0" ]
permissive
pechersky/mathlib
d56eef16bddb0bfc8bc552b05b7270aff5944393
f1df14c2214ee114c9738e733efd5de174deb95d
refs/heads/master
1,666,714,392,571
1,591,747,567,000
1,591,747,567,000
270,557,274
0
0
Apache-2.0
1,591,597,975,000
1,591,597,974,000
null
UTF-8
Lean
false
false
19,526
lean
/- Copyright (c) 2017 Kevin Buzzard. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Buzzard, Mario Carneiro The complex numbers, modelled as R^2 in the obvious way. -/ import data.real.basic import deprecated.field structure complex : Type := (re : ℝ) (im : ℝ) ...
423d6932a4df703bddebd59c9543bc58ce29d7d6
8e6cad62ec62c6c348e5faaa3c3f2079012bdd69
/src/topology/instances/ennreal.lean
0b2452c2153d428b5141145d9e8263a33e0747c7
[ "Apache-2.0" ]
permissive
benjamindavidson/mathlib
8cc81c865aa8e7cf4462245f58d35ae9a56b150d
fad44b9f670670d87c8e25ff9cdf63af87ad731e
refs/heads/master
1,679,545,578,362
1,615,343,014,000
1,615,343,014,000
312,926,983
0
0
Apache-2.0
1,615,360,301,000
1,605,399,418,000
Lean
UTF-8
Lean
false
false
46,374
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Johannes Hölzl -/ import topology.instances.nnreal /-! # Extended non-negative reals -/ noncomputable theory open classical set filter metric open_locale classical topological_space e...
0ff0a61ff3132d8284d9227533df16786aa11dd3
6dc0c8ce7a76229dd81e73ed4474f15f88a9e294
/src/Lean/Meta/DiscrTree.lean
d68d56d36ebcc53a72589009d99100a8bfa4fac1
[ "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
15,647
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.Meta.Basic import Lean.Meta.FunInfo import Lean.Meta.InferType namespace Lean.Meta.DiscrTree /- (Imperfect) discrimination trees. We use a ...
6a01f73f9d18524f9e19288063c1605399021569
70f8755415fa7a17f87402cde4651e9f4db1b5bb
/src/mvqpf/basic.lean
4ba663b2152be0275f3af5b2b8530688cb3c16bc
[ "Apache-2.0" ]
permissive
shingarov/qpf
ab935dc2298db12c87ac011a2e4d2c27e0bdef4b
debe2eacb8cf46b21aba2eaf3f2e20940da0263b
refs/heads/master
1,653,705,576,607
1,570,136,035,000
1,570,136,035,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,640
lean
/- Copyright (c) 2018 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad Multivariate quotients of polynomial functors. -/ import ..mvpfunctor.W universe u class mvqpf {n : ℕ} (F : typevec.{u} n → Type*) [mvfunctor F] := (P : mvpfuncto...
abe54fb5764cc689c75d121fd6855e586b9a8a2c
271e26e338b0c14544a889c31c30b39c989f2e0f
/src/Init/Lean/Meta/Tactic/Intro.lean
19d957e5eb0733d9ab84a1139ea3bbe7e7b8019f
[ "Apache-2.0" ]
permissive
dgorokho/lean4
805f99b0b60c545b64ac34ab8237a8504f89d7d4
e949a052bad59b1c7b54a82d24d516a656487d8a
refs/heads/master
1,607,061,363,851
1,578,006,086,000
1,578,006,086,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,028
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.Tactic.Util namespace Lean namespace Meta @[specialize] def introNCoreAux {σ} (mvarId : MVarId) (mkName : LocalContext → Nam...
4a1ed15e7e26676e9104b4b7e46fbc79499e6393
9dc8cecdf3c4634764a18254e94d43da07142918
/src/analysis/normed_space/weak_dual.lean
03f09ac7728032831a26f5355326b74003c64bc9
[ "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
10,021
lean
/- Copyright (c) 2021 Kalle Kytölä. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kalle Kytölä, Yury Kudryashov -/ import topology.algebra.module.weak_dual import analysis.normed_space.dual import analysis.normed_space.operator_norm /-! # Weak dual of normed space L...
2893013295ba56b714cf345e0e1365d2dd22b7df
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/data/fintype/pi.lean
2c5a26cf37d817f8c7cc4ddcb3ddabab800ea128
[ "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,701
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import data.fintype.basic import data.finset.pi /-! # fintype instances for pi types > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a...
534973c94461cb36cee6db669b648df72c101381
65d1df074ed9cf826df35e38c866570c4276bea4
/src/bv_tauto.lean
ec2c7656a75732f08f46220efdc2e83e2836fe73
[ "Apache-2.0" ]
permissive
fpvandoorn/flypitch
8ad6af930a1f7d95da21669a14f3fb3a59afc8f6
d09a1f428bdf54c4aebd785f7c842e0fac17b094
refs/heads/master
1,585,602,974,244
1,575,699,535,000
1,575,699,535,000
151,622,978
1
0
null
1,538,680,215,000
1,538,680,215,000
null
UTF-8
Lean
false
false
3,256
lean
import .to_mathlib local infix ` ⟹ `:65 := lattice.imp namespace lattice lemma context_or_elim' {β} [complete_boolean_algebra β] {Γ a b c : β} (H : Γ ≤ a ⊔ b) (H_left : ∀ {Γ'} (H_le : Γ' ≤ Γ) (H_le' : Γ' ≤ a), Γ' ≤ c) (H_right : ∀ {Γ'} (H_le : Γ' ≤ Γ) (H_le' : Γ' ≤ b), Γ' ≤ c) : Γ ≤ c := begin bv_or_elim_at H, ...
14f149e3a1149072a2943171efa04b7031262852
2d34dfb0a1cc250584282618dc10ea03d3fa858e
/src/locally_constant/analysis.lean
274d6aede4737ebbacc2906ef993888b259933b1
[]
no_license
zeta1999/lean-liquid
61e294ec5adae959d8ee1b65d015775484ff58c2
96bb0fa3afc3b451bcd1fb7d974348de2f290541
refs/heads/master
1,676,579,150,248
1,610,771,445,000
1,610,771,445,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
9,740
lean
import locally_constant.algebra import normed_group_hom noncomputable theory -- move this section for_mathlib lemma real.Sup_exists_of_finite (s : set ℝ) (hs : s.finite) : ∃ (x : ℝ), ∀ (y : ℝ), y ∈ s → y ≤ x := begin rcases hs.exists_finset with ⟨t, ht⟩, use t.fold max 0 id, intros y hy, exact (finset.fold...
31d55372a533262c5eab27dec4d25d92ac1ea398
4727251e0cd73359b15b664c3170e5d754078599
/src/topology/metric_space/hausdorff_distance.lean
f402d7a00abca571167162a9ec79187a3aa8659d
[ "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
58,202
lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel -/ import analysis.specific_limits.basic import topology.metric_space.isometry import topology.instances.ennreal /-! # Hausdorff distance The Hausdorff distance ...
6e5e9f9c649b4c4dd3c9dae691f52e160d4f69d7
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/logic/relator_auto.lean
e3421d573b45d08a249b0fb6dbdf84947bdc3b95
[]
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,857
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 Relator for functions, pairs, sums, and lists. -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.tactic.reserved_notation import Mathlib.Pos...
bf122d4038d93f97a82110edb4449dbc98696ac5
7c92a46ce39266c13607ecdef7f228688f237182
/src/valuation/topology.lean
9b169617c264a66e24a4e214da832783050eb2d3
[ "Apache-2.0" ]
permissive
asym57/lean-perfectoid-spaces
3217d01f6ddc0d13e9fb68651749469750420767
359187b429f254a946218af4411d45f08705c83e
refs/heads/master
1,609,457,937,251
1,577,542,616,000
1,577,542,675,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
6,803
lean
import for_mathlib.nonarchimedean.is_subgroups_basis import for_mathlib.uniform_space.group_basis import valuation.basic /-! # The topology on a valued ring In this file, we define the topology induced by a valuation on a ring. -/ local attribute [instance] classical.prop_decidable noncomputable theory local attrib...
954b107b17206932310ffc52455d33dec3446ce2
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/ring_theory/witt_vector/mul_coeff.lean
c5973058f8a56c80226a7ec5a97b4ea8730f785e
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
12,838
lean
/- Copyright (c) 2022 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis, Heather Macbeth -/ import ring_theory.witt_vector.truncated import data.mv_polynomial.supported /-! # Leading terms of Witt vector multiplication > THIS FILE IS SY...
072413d4cf6ca17c7dc7b6733869579d64a4946c
f3a5af2927397cf346ec0e24312bfff077f00425
/src/game/world3/level7.lean
6d997046063f28869845a553a93e589806859d21
[ "Apache-2.0" ]
permissive
ImperialCollegeLondon/natural_number_game
05c39e1586408cfb563d1a12e1085a90726ab655
f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd
refs/heads/master
1,688,570,964,990
1,636,908,242,000
1,636,908,242,000
195,403,790
277
84
Apache-2.0
1,694,547,955,000
1,562,328,792,000
Lean
UTF-8
Lean
false
false
1,923
lean
import game.world3.level6 -- hide namespace mynat -- hide /- # Multiplication World ## Level 7: `add_mul` We proved `mul_add` already, but because we don't have commutativity yet we also need to prove `add_mul`. We have a bunch of tools now, so this won't be too hard. You know what -- you can do this one by inductio...
3ef00d76d85ab7c1dcabae551ef68e2b16e5049a
0c1546a496eccfb56620165cad015f88d56190c5
/library/init/algebra/norm_num.lean
74ead18775a2a8c57d92a8933e133f5e0216c566
[ "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
8,754
lean
/- Copyright (c) 2016 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Lewis and Leonardo de Moura -/ prelude import init.algebra.field init.algebra.ordered_ring namespace norm_num universe variable u variable {α : Type u} def add1 [has_ad...
68ac06de002672fc8317b1aa9b778ebfa21887c4
e61a235b8468b03aee0120bf26ec615c045005d2
/src/Init/Lean/Meta/Check.lean
b289c85e6a31cc7af6ad4d910da7f7b903489f8a
[ "Apache-2.0" ]
permissive
SCKelemen/lean4
140dc63a80539f7c61c8e43e1c174d8500ec3230
e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc
refs/heads/master
1,660,973,595,917
1,590,278,033,000
1,590,278,033,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,782
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.InferType /- This is not the Kernel type checker, but an auxiliary method for checking whether terms produced by tactics and ...
83d848f7b095b0498aba589ead259ec7b15c51cc
0c1546a496eccfb56620165cad015f88d56190c5
/tests/lean/run/doc_string4.lean
930617d6761420f243746b3ff0be77e9890ec31e
[ "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
3,728
lean
/-! # Arithmetic expressions for a simple imperative language. -/ namespace imp open tactic /-- Variable names -/ @[reducible] def uname := string /-- #brief Arithmetic expressions abstract syntax tree. We encode x + 1 as ``` check aexp.plus (aexp.var "x") (aexp.val 1) ``` -/ inductive aexp | val : nat → aexp | va...
7c7f5d9838222ee2260bee040490fb390627e032
e21db629d2e37a833531fdcb0b37ce4d71825408
/src/parlang/rhl.lean
e14a3d0c97e4a17abb7d07c9e65c7d3e76b42f60
[]
no_license
fischerman/GPU-transformation-verifier
614a28cb4606a05a0eb27e8d4eab999f4f5ea60c
75a5016f05382738ff93ce5859c4cfa47ccb63c1
refs/heads/master
1,586,985,789,300
1,579,290,514,000
1,579,290,514,000
165,031,073
1
0
null
null
null
null
UTF-8
Lean
false
false
31,523
lean
import parlang.defs import parlang.lemmas_state import parlang.lemmas_exec import parlang.nonmono namespace parlang variables {σ σ₁ σ₂ σ₃ : Type} {ι₁ ι₂ : Type} {τ₁ : ι₁ → Type} {τ₂ : ι₂ → Type} [decidable_eq ι₁] [decidable_eq ι₂] @[reducible] def rhl_kernel_assertion := Π n₁:ℕ, state n₁ σ₁ τ₁ → vector bool n₁ → Π n...
9988e262e25e33382d63a2eb8b81627f91580363
4efff1f47634ff19e2f786deadd394270a59ecd2
/src/algebra/group_power.lean
69e66c22c5cb8558743fac8abe72c9e4b48dce6b
[ "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
38,645
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.opposites import data.list.basic import data.int.cast import data.equiv.basic import deprecated.group /-! # Power operations on monoids...
624920e3347be458217361d3e30721365c9a8ba0
86f6f4f8d827a196a32bfc646234b73328aeb306
/examples/logic/unnamed_1748.lean
edb712d8c1b64deb326e6583a9f6410f0fe6ba1d
[]
no_license
jamescheuk91/mathematics_in_lean
09f1f87d2b0dce53464ff0cbe592c568ff59cf5e
4452499264e2975bca2f42565c0925506ba5dda3
refs/heads/master
1,679,716,410,967
1,613,957,947,000
1,613,957,947,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
258
lean
import data.real.basic import data.nat.gcd open nat -- BEGIN example (x y : ℝ) : abs (x + 3) < 5 → -8 < x ∧ x < 2 := begin rw abs_lt, intro h, split; linarith end example : 3 ∣ gcd 6 15 := begin rw dvd_gcd_iff, split; norm_num end -- END
d30fbed72c3fffaa934c4770f39e94106c3e25d0
2fbe653e4bc441efde5e5d250566e65538709888
/src/topology/metric_space/basic.lean
1a11105e453ddf44f26ff7f3ffeb662c8944c6dc
[ "Apache-2.0" ]
permissive
aceg00/mathlib
5e15e79a8af87ff7eb8c17e2629c442ef24e746b
8786ea6d6d46d6969ac9a869eb818bf100802882
refs/heads/master
1,649,202,698,930
1,580,924,783,000
1,580,924,783,000
149,197,272
0
0
Apache-2.0
1,537,224,208,000
1,537,224,207,000
null
UTF-8
Lean
false
false
67,695
lean
/- Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Metric spaces. Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel Many definitions and theorems expected on metric spaces are already introduced o...
22bf26c7b3226540eac99f524abd236e24813c55
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/test/equiv_rw.lean
ba878dfed9cd47b53a07138d2974eadcaf845f8c
[ "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,781
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 tactic.equiv_rw import control.equiv_functor.instances -- these make equiv_rw more powerful! -- Uncomment this line to observe the steps of constructing appro...
afbec31847afc17bae925d781c40f2f5fa0ea071
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/string.lean
5cbbd5cf31210f51f7515a0fefc801b6c30a124a
[ "Apache-2.0" ]
permissive
soonhokong/lean
cb8aa01055ffe2af0fb99a16b4cda8463b882cd1
38607e3eb57f57f77c0ac114ad169e9e4262e24f
refs/heads/master
1,611,187,284,081
1,450,766,737,000
1,476,122,547,000
11,513,992
2
0
null
1,401,763,102,000
1,374,182,235,000
C++
UTF-8
Lean
false
false
40
lean
import data.string check "aaa" check "B"
2a75271e3d3b3cd0f9b3cee4bdfadecde858acb4
a4673261e60b025e2c8c825dfa4ab9108246c32e
/src/Lean/ParserCompiler.lean
459c4987d829e7eb510725e770199cd9cf5526bd
[ "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
7,022
lean
/- Copyright (c) 2020 Sebastian Ullrich. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ /-! Gadgets for compiling parser declarations into other programs, such as pretty printers. -/ import Lean.Util.ReplaceExpr import Lean.Meta.Basic import Lean...
fcc3d29b4ea2094d36d47069011b836dcb75de55
b2363dbdedecce9d05f15cdb1ecba3a7acfebb4a
/src/arithcc.lean
8ce1dea6137a2901718fc6894599e901aa9f462c
[ "Apache-2.0" ]
permissive
xiw/arithcc
dcaf4720829f1e37e28fe32785e7d1efbbdcc78b
f3e0e689d3d5b53b54005303e495e49019e77532
refs/heads/master
1,672,711,806,073
1,603,320,081,000
1,603,320,081,000
304,186,195
14
0
null
null
null
null
UTF-8
Lean
false
false
11,596
lean
/- Copyright (c) 2020 Xi Wang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Xi Wang. -/ import tactic.basic /-! # A compiler for arithmetic expressions A formalization of the correctness of a compiler from arithmetic expressions to assembly code described by McCart...
3dd9f96215468ef4cc8e1d11c4599e49b9e4d389
5d166a16ae129621cb54ca9dde86c275d7d2b483
/tests/lean/defeq_simp1.lean
9f921819c158575073b3c850bc88308a9e110b55
[ "Apache-2.0" ]
permissive
jcarlson23/lean
b00098763291397e0ac76b37a2dd96bc013bd247
8de88701247f54d325edd46c0eed57aeacb64baf
refs/heads/master
1,611,571,813,719
1,497,020,963,000
1,497,021,515,000
93,882,536
1
0
null
1,497,029,896,000
1,497,029,896,000
null
UTF-8
Lean
false
false
708
lean
@[reducible] def nat_has_add2 : has_add nat := ⟨λ x y : nat, nat.add x y⟩ set_option pp.all true open tactic example (a b : nat) (H : @has_add.add nat (id (id nat.has_add)) a b = @has_add.add nat nat_has_add2 a b) : true := by do s ← simp_lemmas.mk_default, get_local `H >>= infer_type >>= s^.dsimplify >>= trace,...
7a07cce4d74d09cac480311cef6b8fc5fa2b43d6
59aed81a2ce7741e690907fc374be338f4f88b6f
/src/math-688/lectures/lec-7.lean
2da8b843ba1a1066e83e0a7e135f00231d6a82a3
[]
no_license
agusakov/math-688-lean
c84d5e1423eb208a0281135f0214b91b30d0ef48
67dc27ebff55a74c6b5a1c469ba04e7981d2e550
refs/heads/main
1,679,699,340,788
1,616,602,782,000
1,616,602,782,000
332,894,454
0
0
null
null
null
null
UTF-8
Lean
false
false
72
lean
/- 13 Sep 2019 -/ -- generating functions -- fibonacci sequence example
7a92713e0d8fd340a84a9e07f21ab3a12ac61072
d0f9af2b0ace5ce352570d61b09019c8ef4a3b96
/notes/2020.02.06-polymorphic.lean
624813934a41547bba7698e78c3366cefe79e2b7
[]
no_license
jngo13/Discrete-Mathematics
8671540ef2da7c75915d32332dd20c02f001474e
bf674a866e61f60e6e6d128df85fa73819091787
refs/heads/master
1,675,615,657,924
1,609,142,011,000
1,609,142,011,000
267,190,341
0
0
null
null
null
null
UTF-8
Lean
false
false
2,953
lean
/- We've seen identity functions for specific types. For example, here are identity functions for the types, ℕ, bool, and string. -/ def id_nat (a : ℕ) : ℕ := a def id_bool (a : bool) : bool := a def id_string (a : string) : string := a /- These functions differ only in the types of va...
89f8a7e9dcb13981670915e394be209fec442b39
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/set_theory/lists.lean
ad1937e5efb49b2014032a3ad010d417b312d34c
[]
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
8,173
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro A computable model of hereditarily finite sets with atoms (ZFA without infinity). This is useful for calculations in naive set theory. -/ import Mathlib.PrePort import M...
172bf6513473e095e1a19df899d333a44000ee8e
4727251e0cd73359b15b664c3170e5d754078599
/src/model_theory/definability.lean
529c0e5338890ed963b77004c4b1ad9508c9c1c5
[ "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
12,280
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.set_like.basic import logic.equiv.fintype import model_theory.semantics /-! # Definable Sets This file defines what it means for a set over a first-order...
d852f79150f1e6527a318be4e406d458040e6db8
367134ba5a65885e863bdc4507601606690974c1
/src/tactic/core.lean
aa53be7fb8578d99b7e110a1d78d06c44a61a509
[ "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
92,207
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek -/ import data.dlist.basic import logic.function.basic import control.basic import meta.expr import meta.rb_map import data.boo...
61f2ca443d36b122fbfb8cc22ff4cae1ad45a7e3
94e33a31faa76775069b071adea97e86e218a8ee
/src/algebra/order/nonneg.lean
aeb62e116e86c27c67ac4c9a094ee0ded24b0815
[ "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
14,756
lean
/- Copyright (c) 2021 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn -/ import algebra.order.archimedean import algebra.order.floor import algebra.order.sub import algebra.order.with_zero import order.lattice_intervals import order.co...
d6ab1c935eacc1d0e0e12deed990bf726ff28c6e
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/ring_theory/derivation.lean
5efdb45fba06ad203b902a70f590b370d8c05fc6
[ "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
10,506
lean
/- Copyright © 2020 Nicolò Cavalleri. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Nicolò Cavalleri -/ import algebra.lie.of_associative import ring_theory.adjoin.basic import ring_theory.algebra_tower /-! # Derivations This file defines derivation. A derivation `...
e209a5644cf1a0fea4f3ecbc3ce0cb7d9754b13d
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/algebra/algebra/operations.lean
dcd62747f721eca8df6d7ee503d94470678bd8a4
[ "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
24,468
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.bilinear import algebra.module.submodule.pointwise import algebra.module.submodule.bilinear import algebra.module.opposites import data.finset.pointwise ...
e1fc28cdd9758fa711a883112b1367e04e08270e
302c785c90d40ad3d6be43d33bc6a558354cc2cf
/src/data/padics/ring_homs.lean
fa4b54d7e49422b773fbef8371013530ab2df3b1
[ "Apache-2.0" ]
permissive
ilitzroth/mathlib
ea647e67f1fdfd19a0f7bdc5504e8acec6180011
5254ef14e3465f6504306132fe3ba9cec9ffff16
refs/heads/master
1,680,086,661,182
1,617,715,647,000
1,617,715,647,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
24,635
lean
/- Copyright (c) 2020 Johan Commelin, Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Robert Y. Lewis -/ import data.padics.padic_integers /-! # Relating `ℤ_[p]` to `zmod (p ^ n)` In this file we establish connections between the `p`...
73812892b135072dbd39ec95956becdeaa6129fd
ce89339993655da64b6ccb555c837ce6c10f9ef4
/ukikagi/newman.lean
0d933621708771d77259af05a6439d48928c0ae8
[]
no_license
zeptometer/LearnLean
ef32dc36a22119f18d843f548d0bb42f907bff5d
bb84d5dbe521127ba134d4dbf9559b294a80b9f7
refs/heads/master
1,625,710,824,322
1,601,382,570,000
1,601,382,570,000
195,228,870
2
0
null
null
null
null
UTF-8
Lean
false
false
1,557
lean
inductive rtc {α : Type} (r : α → α → Prop) : α → α → Prop | base : ∀ a, rtc a a | trans : ∀ {a b c}, r a b → rtc b c → rtc a c lemma rtc_is_transitive {α : Type} {a b c: α} {r : α → α → Prop}: rtc r a b → rtc r b c → rtc r a c := begin intros hab hbc, induction hab with a a p b hap hpb hbcpc, exact hbc, ex...
e8e4eef76cd5ae87384f38b8af6f514650ff0830
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/data/pfunctor/multivariate/M.lean
69e5a8dc3aa9a85fccef1eeeea2de1c796d6e870
[ "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
11,488
lean
/- Copyright (c) 2018 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Mario Carneiro, Simon Hudon -/ import data.pfunctor.univariate import data.pfunctor.multivariate.basic /-! # The M construction as a multivariate polynomial functor. M ...
4e9f664f069ac52787c2f9675fddf57c60902d74
c31182a012eec69da0a1f6c05f42b0f0717d212d
/src/polyhedral_lattice/cosimplicial.lean
971361aebe9814adfe10fdcbe1b33b424c2e4947
[]
no_license
Ja1941/lean-liquid
fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc
8e80ed0cbdf5145d6814e833a674eaf05a1495c1
refs/heads/master
1,689,437,983,362
1,628,362,719,000
1,628,362,719,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
4,048
lean
import rescale.polyhedral_lattice import polyhedral_lattice.cech import facts.nnreal /-! # The cosimplicial polyhedral lattice attached to `Λ → Λ'` Let `Λ` be a polyhedral lattice, and let `0 < n` be a natural number. Let `Λ' := rescale n (fin n →₀ Λ)` be the polyhedral lattice that is the `n`-fold direct sum of `Λ`...
5b302852edfc949f72d84f1940488403755ed4f0
58d00ddf42e87fdba91a6057c0b803d889c85901
/src/solutions/wednesday/topological_spaces.lean
f42f9091dc4167ed0ac42c43ada789495118452a
[]
no_license
zeta1999/lftcm2020
213d0324ec8d4425bd3320a631e906da1c28e230
a2eea082d479d82e300ca85d77b87b597e6330d6
refs/heads/master
1,671,857,495,610
1,602,037,058,000
1,602,037,058,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
19,512
lean
import tactic import data.set.finite import data.real.basic -- for metrics /- # (Re)-Building topological spaces in Lean Mathlib has a large library of results on topological spaces, including various constructions, separation axioms, Tychonoff's theorem, sheaves, Stone-Čech compactification, Heine-Cantor, to name bu...
faad35ceb3e0d74e536b792d4023e5be40d013b8
09b3e1beaeff2641ac75019c9f735d79d508071d
/Mathlib/Data/Nat/Basic.lean
aac0adbfe13a78b0605bc4fe83aa92366a190590
[ "Apache-2.0" ]
permissive
abentkamp/mathlib4
b819079cc46426b3c5c77413504b07541afacc19
f8294a67548f8f3d1f5913677b070a2ef5bcf120
refs/heads/master
1,685,309,252,764
1,623,232,534,000
1,623,232,534,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
30,756
lean
import Mathlib.Tactic.Basic import Mathlib.Logic.Basic notation "ℕ" => Nat namespace Nat -- Edits to the naming convention pending upstream def eq_of_beq_eq_true := @eqOfBeqEqTrue def ne_of_beq_eq_false := @neOfBeqEqFalse @[simp] lemma not_succ_le_zero : ∀ n, ¬ succ n ≤ 0 := @notSuccLeZero def not_lt_zero := @notLtZ...