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
af9f6264157e75e475d77260ddc1fb85397811e5
f3849be5d845a1cb97680f0bbbe03b85518312f0
/library/tools/super/prover_state.lean
380c1b1690a94a2e6e427928bbd3eae34feca846
[ "Apache-2.0" ]
permissive
bjoeris/lean
0ed95125d762b17bfcb54dad1f9721f953f92eeb
4e496b78d5e73545fa4f9a807155113d8e6b0561
refs/heads/master
1,611,251,218,281
1,495,337,658,000
1,495,337,658,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
15,528
lean
/- Copyright (c) 2016 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ import .clause .lpo .cdcl_solver open tactic functor monad expr namespace super structure score := (priority : ℕ) (in_sos : bool) (cost : ℕ) (age : ℕ) namespace scor...
cf5f5b958cd845923a798691f32dd4ee538455e2
82e44445c70db0f03e30d7be725775f122d72f3e
/src/algebra/euclidean_domain.lean
e7274a176448d892a15c96724bc7f25949779134
[ "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
17,179
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 -/ import data.int.basic import algebra.field /-! # Euclidean domains This file introduces Euclidean domains and provides the extended Euclidean algorithm...
e25b2beed17fb13abbac786e46d6658343dd19ba
4727251e0cd73359b15b664c3170e5d754078599
/src/data/polynomial/div.lean
d00f41b8ff3987dff80c7c387d1960f46055656e
[ "Apache-2.0" ]
permissive
Vierkantor/mathlib
0ea59ac32a3a43c93c44d70f441c4ee810ccceca
83bc3b9ce9b13910b57bda6b56222495ebd31c2f
refs/heads/master
1,658,323,012,449
1,652,256,003,000
1,652,256,003,000
209,296,341
0
1
Apache-2.0
1,568,807,655,000
1,568,807,655,000
null
UTF-8
Lean
false
false
21,078
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.inductions import data.polynomial.monic import ring_theory.multiplicity /-! # Division of univaria...
638b1d69d2a14535e3a10d86958e3a9a88435f4e
6dc0c8ce7a76229dd81e73ed4474f15f88a9e294
/src/Lean/Parser/Basic.lean
e5f8b2746984bcef5e98e7d0d16fc0abae28d165
[ "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
69,957
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura, Sebastian Ullrich -/ /-! # Basic Lean parser infrastructure The Lean parser was developed with the following primary goals in mind: * flexibility: Lean's g...
fb085b5922d95166723578bdff15d28fe2dbf098
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/stage0/src/Lean/Level.lean
c52afa33d027bc74b4222e99ab011a02c3a76199
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
EdAyers/lean4
57ac632d6b0789cb91fab2170e8c9e40441221bd
37ba0df5841bde51dbc2329da81ac23d4f6a4de4
refs/heads/master
1,676,463,245,298
1,660,619,433,000
1,660,619,433,000
183,433,437
1
0
Apache-2.0
1,657,612,672,000
1,556,196,574,000
Lean
UTF-8
Lean
false
false
21,862
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 -/ import Std.Data.HashMap import Std.Data.HashSet import Std.Data.PersistentHashMap import Std.Data.PersistentHashSet import Lean.Hygiene import Lean.Data.Nam...
2fbea9c0c2165db30c40a27360311ba9b7b138c1
302c785c90d40ad3d6be43d33bc6a558354cc2cf
/src/ring_theory/ideal/operations.lean
30a2357306cf9e77e67eac127c51b97cb2732e47
[ "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
66,490
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau -/ import algebra.algebra.operations import algebra.algebra.tower import data.equiv.ring import data.nat.choose.sum import ring_theory.ideal.basic import ring_theory.non_zero_divi...
8784bfb07e8e0c31749f45c62f6f26d32e386ffb
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/measure_theory/integral/integrable_on.lean
0fb400772b063f132485c87711ce1d7fae777f63
[ "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
22,576
lean
/- Copyright (c) 2021 Rémy Degenne. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Zhouhang Zhou, Yury Kudryashov -/ import measure_theory.function.l1_space import analysis.normed_space.indicator_function /-! # Functions integrable on a set and at a filter We define...
a2f6b38c235183f18ca2397ee4160bdf470abe4f
e00ea76a720126cf9f6d732ad6216b5b824d20a7
/src/order/basic.lean
2037538ace0ffd83bb71949e3d496d779f3deaac
[ "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
28,290
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Mario Carneiro -/ import logic.basic data.sum data.set.basic algebra.order open function /- TODO: automatic construction of dual definitions / theorems -/ universes u v...
0261a51cbdc3e8679fa387641f284c9ee62bf28f
f608b09bd951f29eccb4c27187f55223000fa85f
/2020/lean/love01_definitions_and_statements_demo.lean
9579fd37e3ad69de5764d525ccd3f8b267b91853
[]
no_license
bobismijnnaam/advent-of-code
9482d954b8f381b28a4823337e3688963fd05d6d
471b9cad04eba7010da79416aef7a3218b1f4541
refs/heads/master
1,639,530,767,572
1,639,425,773,000
1,639,425,773,000
225,140,719
0
0
null
null
null
null
UTF-8
Lean
false
false
10,753
lean
import .lovelib #eval 2 + 2 /- # LoVe Preface ## Proof Assistants Proof assistants (also called interactive theorem provers) * check and help develop formal proofs; * can be used to prove big theorems, not only logic puzzles; * can be tedious to use; * are highly addictive (think video games). A selection of proo...
4e641857d8833a74a04b886e7eb408310a505715
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/stage0/src/Lean/Elab/Deriving/Basic.lean
e3b35b6e6630072b31e79871b4e6270abbf86d22
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
EdAyers/lean4
57ac632d6b0789cb91fab2170e8c9e40441221bd
37ba0df5841bde51dbc2329da81ac23d4f6a4de4
refs/heads/master
1,676,463,245,298
1,660,619,433,000
1,660,619,433,000
183,433,437
1
0
Apache-2.0
1,657,612,672,000
1,556,196,574,000
Lean
UTF-8
Lean
false
false
3,818
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, Wojciech Nawrocki -/ import Lean.Elab.Command import Lean.Elab.MutualDef namespace Lean.Elab open Command def DerivingHandler := (typeNames : Array Name) → ...
0dd65989a72d235e71570dc8d9241ffdeefe516d
ed27983dd289b3bcad416f0b1927105d6ef19db8
/src/inClassNotes/type_library/list.lean
e8d37461c8ce173c37014e7b9192d5538d446ab1
[]
no_license
liuxin-James/complogic-s21
0d55b76dbe25024473d31d98b5b83655c365f811
13e03e0114626643b44015c654151fb651603486
refs/heads/master
1,681,109,264,463
1,618,848,261,000
1,618,848,261,000
337,599,491
0
0
null
1,613,141,619,000
1,612,925,555,000
null
UTF-8
Lean
false
false
651
lean
namespace hidden universe u inductive list (α : Type u) : Type u | nil {} : list | cons (h : α) (t : list) : list #check list #check list #check list nat #check list string #check list bool def l : list nat := list.nil def t : list nat := list.cons (3) (list.cons (4) (list.cons 5 ...
53bf67c5e6a06a6258db7b68fd507135acaa341c
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/combinatorics/simple_graph/connectivity.lean
1fd28aca8c8cc0596f72e0129e8fd8b972ccec79
[ "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
66,191
lean
/- Copyright (c) 2021 Kyle Miller. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kyle Miller -/ import combinatorics.simple_graph.basic import combinatorics.simple_graph.subgraph import data.list.rotate /-! # Graph connectivity In a simple graph, * A *walk* is a fi...
1741cbcee55895a2ddea26222cf795eb89987f10
ce6917c5bacabee346655160b74a307b4a5ab620
/src/ch3/ex0212.lean
38d2999cd3b353ae7344a9e2cf6e73650ce33a8f
[]
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
192
lean
theorem t1 (p q : Prop) (hp : p) (hq : q) : p := hp variables p q r s : Prop #check t1 p q #check t1 r s #check t1 (r → s) (s → r) variable h : r → s #check t1 (r → s) (s → r) h
d0fedbcfcaa5311eca3fcc2d49d546e416cdc8ab
e0b0b1648286e442507eb62344760d5cd8d13f2d
/src/Lean/Elab/Syntax.lean
72f1b41ada3ea4a4bc9368059e8c4623759d987a
[ "Apache-2.0" ]
permissive
MULXCODE/lean4
743ed389e05e26e09c6a11d24607ad5a697db39b
4675817a9e89824eca37192364cd47a4027c6437
refs/heads/master
1,682,231,879,857
1,620,423,501,000
1,620,423,501,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
29,640
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.Elab.Command import Lean.Parser.Syntax namespace Lean.Elab.Term /- Expand `optional «precedence»` where «precedence» := leading_parser " : " >...
d0753c729fe3379ed4be0fa07b2b451552199646
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/tactic/omega/nat/neg_elim.lean
eadcf20e35cf0267b05a7d55c8434f6d6cd3a7e0
[ "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,958
lean
/- Copyright (c) 2019 Seul Baek. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Seul Baek -/ /- Negation elimination. -/ import tactic.omega.nat.form namespace omega namespace nat open_locale omega.nat /-- push_neg p returns the result of normalizing ¬ p by pu...
b409b14b420966cd856a7853effcc1a9a93b404d
0845ae2ca02071debcfd4ac24be871236c01784f
/library/init/lean/compiler/ir/resetreuse.lean
2a71fb09aecbd05a942daaa992d1e7da4ee1f448
[ "Apache-2.0" ]
permissive
GaloisInc/lean4
74c267eb0e900bfaa23df8de86039483ecbd60b7
228ddd5fdcd98dd4e9c009f425284e86917938aa
refs/heads/master
1,643,131,356,301
1,562,715,572,000
1,562,715,572,000
192,390,898
0
0
null
1,560,792,750,000
1,560,792,749,000
null
UTF-8
Lean
false
false
6,070
lean
/- Copyright (c) 2019 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import init.control.state import init.control.reader import init.lean.compiler.ir.basic import init.lean.compiler.ir.livevars import init.lean.compi...
31a4cbe828db675d170c5dad1e82e36e35aa6151
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/hott/types/bool.hlean
f11b82261dfe3fbd4e97586431220444f06570a6
[ "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,919
hlean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura, Floris van Doorn Partially ported from the standard library -/ open eq eq.ops decidable namespace bool local attribute bor [reducible] local attribute b...
d52de93e8d55f424c6586998c505be2266ef5e09
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/data/list/sort.lean
92ba2fed19d5511a5aaacd6af88a9d29d58ef79e
[ "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
14,769
lean
/- Copyright (c) 2016 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad -/ import data.list.perm /-! # Sorting algorithms on lists In this file we define `list.sorted r l` to be an alias for `pairwise r l`. This alias is preferred in the cas...
2ce1420ac9ee4f8aca10de60cd3bcd9c52c9924f
431385f9e6a07bcb49fbcb5d7d1dc527cd33580a
/src/tls_tactic.lean
c9374da91da5ad555216f15779123b939b5e0652
[]
no_license
maxkaske/zfolean
c853044cbff465b92269fafe1bd8e078e192b2f0
b74bb7accf01b25a6efb3af6b06538f98e7e5a6c
refs/heads/master
1,677,841,414,729
1,613,649,566,000
1,613,649,566,000
336,965,499
1
0
null
null
null
null
UTF-8
Lean
false
false
332
lean
open tactic interactive interactive.types namespace tactic namespace interactive /- apply followed by simp with tls. not yet useful -/ meta def sapply (q : parse texpr) : tactic unit := concat_tags (do h ← i_to_expr_for_apply q, tactic.apply h) >> (simp none none ff {} {"tls"} (loc.ns [none]) ) end interactive ...
88179a2dc5f13b54e98ff1ec8505015491ead5cb
4727251e0cd73359b15b664c3170e5d754078599
/src/ring_theory/dedekind_domain/basic.lean
b5c2442176aab1c419f94b0bf717464267e390d9
[ "Apache-2.0" ]
permissive
Vierkantor/mathlib
0ea59ac32a3a43c93c44d70f441c4ee810ccceca
83bc3b9ce9b13910b57bda6b56222495ebd31c2f
refs/heads/master
1,658,323,012,449
1,652,256,003,000
1,652,256,003,000
209,296,341
0
1
Apache-2.0
1,568,807,655,000
1,568,807,655,000
null
UTF-8
Lean
false
false
4,318
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.ideal.over import ring_theory.polynomial.rational_root /-! # Dedekind domains This file defines the notion of ...
5db182c585cff8a31a6d7860e353e33f893e7663
cf798a5faaa43a993adcc42d1a99d5eab647e00b
/Basics.lean
a120d595f02eef7bf6c4aabaae25ac90180cea17
[]
no_license
myuon/lean-software-foundations
dbbcd37e3552b58c6e139370b16b25c69a42799b
a1a08810f2664493c920742c2d66a3131fb3ae75
refs/heads/master
1,610,261,785,986
1,459,922,839,000
1,459,922,839,000
50,269,716
4
1
null
null
null
null
UTF-8
Lean
false
false
3,843
lean
import data inductive day : Type := | monday : day | tuesday : day | wednesday : day | thursday : day | friday : day | saturday : day | sunday : day open day definition next_weekday : day → day | monday := tuesday | tuesday := wednesday | wednesday := thursday | thursday := friday | friday := monday | saturday := mon...
6609f33f803fc7556efba5dae6a29b19aba84569
bb31430994044506fa42fd667e2d556327e18dfe
/src/algebra/group/with_one/defs.lean
813e0abb03ac52d0a09eb9eda9494430c6200fac
[ "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
12,255
lean
/- Copyright (c) 2018 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Johan Commelin -/ import order.with_bot import algebra.ring.defs /-! # Adjoining a zero/one to semigroups and related algebraic structures > THIS FILE IS SYNCHRONIZED...
82d7b719e91b9020f63ec2293664102b5b4c9115
618003631150032a5676f229d13a079ac875ff77
/test/norm_cast_int.lean
b861ff123a7647d6a9245ac22eafdf0acada5403
[ "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
568
lean
import tactic.norm_cast import data.int.basic set_option pp.numerals false set_option pp.notation false -- set_option trace.simplify.rewrite true #eval norm_cast.numeral_to_coe `(0 : ℤ) #eval norm_cast.numeral_to_coe `(1 : ℤ) #eval norm_cast.numeral_to_coe `(2 : ℤ) #eval norm_cast.numeral_to_coe `(3 : ℤ) #eval norm_...
178c5769e0dbb12d68a3b62b7116ed0cd98c6897
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/category_theory/closed/ideal.lean
42d0b6e57085a5104b91b7707534cfd20bc54e9b
[ "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,796
lean
/- Copyright (c) 2021 Bhavik Mehta. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Bhavik Mehta -/ import category_theory.limits.preserves.shapes.binary_products import category_theory.limits.constructions.finite_products_of_binary_products import category_theory.monad...
87b438f23afc76ea26dfdee96015f582604a0dd3
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/algebra/order/group/type_tags.lean
684ca9f8b0ccf000e4b7575cd942c929655a8828
[ "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,002
lean
/- Copyright (c) 2016 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl -/ import algebra.order.group.instances import algebra.order.monoid.type_tags /-! # Ordered group structures on `multip...
9c61d959daa7b34304287d9c865db2d7660e07fa
c777c32c8e484e195053731103c5e52af26a25d1
/src/probability/process/hitting_time.lean
7881a97d1152d585019209c6a322a144bfea69e8
[ "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,089
lean
/- Copyright (c) 2022 Kexing Ying. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kexing Ying, Rémy Degenne -/ import probability.process.stopping /-! # Hitting time Given a stochastic process, the hitting time provides the first time the process ``hits'' some subset...
c476b369c0d37809a88b89d67b71e44289038ca9
06be757c84c5c318d56b5d07f1dff4eb19b949d8
/src/power_bounded.lean
c8759e9dd17eacf139a07e8bc1d3cc5b13f3195e
[ "Apache-2.0" ]
permissive
mr-infty/perfectoid-spaces
ea3e5d161072f6de646b660cc55217838d3ceded
1a49b3897ec3c7b871d8c970926c00f727a4e2a6
refs/heads/master
1,587,252,317,856
1,547,326,614,000
1,547,326,614,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,733
lean
import tactic.where import tactic.ring import analysis.topology.topological_space import analysis.topology.topological_structures import algebra.group_power import ring_theory.subring universe u variables {R : Type u} [comm_ring R] [topological_space R] [topological_ring R] /-- Wedhorn Definition 5.27 page 36 -/ def...
5d1c9e1571395ed78c6ab27856ef20b714c00439
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/analysis/normed_space/dual.lean
230af5dd29c23c381587ca7d4e03a97afa70a774
[ "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
10,345
lean
/- Copyright (c) 2020 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ import analysis.normed_space.hahn_banach.extension import analysis.normed_space.is_R_or_C import analysis.locally_convex.polar /-! # The topological dual of a norm...
5680f0f53990c2d97f55ddc6e32f6ebf93a3ad4c
c3f2fcd060adfa2ca29f924839d2d925e8f2c685
/hott/init/reserved_notation.hlean
a8f96c8f53615101ce6d33fd1d3a5ed2ebda284a
[ "Apache-2.0" ]
permissive
respu/lean
6582d19a2f2838a28ecd2b3c6f81c32d07b5341d
8c76419c60b63d0d9f7bc04ebb0b99812d0ec654
refs/heads/master
1,610,882,451,231
1,427,747,084,000
1,427,747,429,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,422
hlean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Module: init.reserved_notation Authors: Leonardo de Moura -/ prelude import init.datatypes notation `assume` binders `,` r:(scoped f, f) := r notation `take` binders `,` r:(scoped f...
5b0404cb17e8e91f36c35465eb2708674c58ae81
367134ba5a65885e863bdc4507601606690974c1
/src/linear_algebra/direct_sum/finsupp.lean
8b56ab8ffee8123b8dbecb098d53234ccc1a5573
[ "Apache-2.0" ]
permissive
kodyvajjha/mathlib
9bead00e90f68269a313f45f5561766cfd8d5cad
b98af5dd79e13a38d84438b850a2e8858ec21284
refs/heads/master
1,624,350,366,310
1,615,563,062,000
1,615,563,062,000
162,666,963
0
0
Apache-2.0
1,545,367,651,000
1,545,367,651,000
null
UTF-8
Lean
false
false
3,270
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 -/ import linear_algebra.finsupp import linear_algebra.direct_sum.tensor_product /-! # Results on direct sums and finitely supported functions. 1. The linear equivalenc...
8e2fccd7ef0e482769ff88938cc1aa11cdf75f1a
4727251e0cd73359b15b664c3170e5d754078599
/src/category_theory/category/Twop.lean
249180e4dfe7e472fa3a35c011ff448be3cfc227
[ "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
5,111
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 category_theory.category.Bipointed import data.two_pointing /-! # The category of two-pointed types This defines `Twop`, the category of two-pointed types. ## R...
2a2a1749fde2d807f6c63f1f6760caf20d2caef4
9dc8cecdf3c4634764a18254e94d43da07142918
/src/algebra/category/Module/products.lean
e5cd44f09bb19d14b66b25521b6744514c35ed08
[ "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
1,951
lean
/- Copyright (c) 2022 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import algebra.category.Module.epi_mono import linear_algebra.pi /-! # The concrete products in the category of modules are products in the categorical sense. -/ op...
9dfa73fea6cab051cc4b86491d595b7990aa7a54
5d166a16ae129621cb54ca9dde86c275d7d2b483
/library/init/meta/simp_tactic.lean
11fd452097ab6026368708c42135d23b5d67e9d1
[ "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
18,558
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.attribute init.meta.constructor_tactic import init.meta.relation_tactics init.meta.occurrences import init.data.op...
6f35030b17e90a3b1f86e308417f9a260b724dcb
4727251e0cd73359b15b664c3170e5d754078599
/src/topology/uniform_space/uniform_convergence_topology.lean
cdcad276b1c9432118680f7a8f8a6caaddf96ecf
[ "Apache-2.0" ]
permissive
Vierkantor/mathlib
0ea59ac32a3a43c93c44d70f441c4ee810ccceca
83bc3b9ce9b13910b57bda6b56222495ebd31c2f
refs/heads/master
1,658,323,012,449
1,652,256,003,000
1,652,256,003,000
209,296,341
0
1
Apache-2.0
1,568,807,655,000
1,568,807,655,000
null
UTF-8
Lean
false
false
10,481
lean
/- Copyright (c) 2022 Anatole Dedecker. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Anatole Dedecker -/ import topology.uniform_space.uniform_convergence import topology.uniform_space.pi /-! # Topology and uniform structure of uniform convergence This files endows...
156773a5c71033c0067715249e8d20d58a79cecf
b561a44b48979a98df50ade0789a21c79ee31288
/src/Lean/Widget/InteractiveCode.lean
b7dcd15660daea7b7901ca9cae142252886d1176
[ "Apache-2.0" ]
permissive
3401ijk/lean4
97659c475ebd33a034fed515cb83a85f75ccfb06
a5b1b8de4f4b038ff752b9e607b721f15a9a4351
refs/heads/master
1,693,933,007,651
1,636,424,845,000
1,636,424,845,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
4,910
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki -/ import Lean.PrettyPrinter import Lean.Server.Rpc.Basic import Lean.Widget.TaggedText /-! RPC infrastructure for storing and formatting code fragments, in ...
e5d4b24e1de474cf71f03db7caf4c8069dbaca03
8930e38ac0fae2e5e55c28d0577a8e44e2639a6d
/linear_algebra/basic.lean
e0bdb3b5fe39a0b32b7a985e766b2c4bf14d3397
[ "Apache-2.0" ]
permissive
SG4316/mathlib
3d64035d02a97f8556ad9ff249a81a0a51a3321a
a7846022507b531a8ab53b8af8a91953fceafd3a
refs/heads/master
1,584,869,960,527
1,530,718,645,000
1,530,724,110,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
37,217
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 Linear algebra -- classical This file is inspired by Isabelle/HOL's linear algebra, and hence indirectly by HOL Light. We define the following concepts: * `lc α β`: l...
c041186ffc14db26a30f95eced8ca8ac4e9a6e53
d1a52c3f208fa42c41df8278c3d280f075eb020c
/tests/lean/run/coeIssue3.lean
c84587b826d5251f2bdce6d58039fc532496f473
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
cipher1024/lean4
6e1f98bb58e7a92b28f5364eb38a14c8d0aae393
69114d3b50806264ef35b57394391c3e738a9822
refs/heads/master
1,642,227,983,603
1,642,011,696,000
1,642,011,696,000
228,607,691
0
0
Apache-2.0
1,576,584,269,000
1,576,584,268,000
null
UTF-8
Lean
false
false
500
lean
structure Var : Type := (name : String) instance Var.nameCoe : Coe String Var := ⟨Var.mk⟩ structure A : Type := (u : Unit) structure B : Type := (u : Unit) def a : A := A.mk () def b : B := B.mk () def Foo.chalk : A → List Var → Unit := fun _ _ => () def Bar.chalk : B → Unit := fun _ => () instance listCoe {α β} ...
9f2bceeab41bad5794434de6dcc9aa4a3da1c1ba
03bd658c402412f41d3026d1040ee8ca8c0fc579
/src/MITM_baby.lean
3f02946cf80b8c0d9a49da0d8cb17971c3c6b112
[]
no_license
ImperialCollegeLondon/dots_and_boxes
c205f6dbad8af9625f56715e4d1bed96b0ac1022
f7bd0b1603674a657170c5395adb717c4f670220
refs/heads/master
1,663,752,058,476
1,591,438,614,000
1,591,438,614,000
139,707,103
2
0
null
null
null
null
UTF-8
Lean
false
false
3,407
lean
import list.simple_value list.modify.basic open list /-- Man in the middle for all-chain or all-loop situations -/ theorem MITM_baby (tf : ℤ) (L1 L2 : list ℤ) (d : ℤ) (h : list.modify L1 L2 d) (n : ℕ) (hL1 : L1.length = n) (hL2 : L2.length = n) (i : fin n) : abs (list.value_i tf n L1 i hL1 - list.value_...
718ddfa474716ea90b26df52461a15ee4eba07ca
92b50235facfbc08dfe7f334827d47281471333b
/hott/init/logic.hlean
af1ea7d8a9d639af36bcb2bc3e73fbd85cc4b783
[ "Apache-2.0" ]
permissive
htzh/lean
24f6ed7510ab637379ec31af406d12584d31792c
d70c79f4e30aafecdfc4a60b5d3512199200ab6e
refs/heads/master
1,607,677,731,270
1,437,089,952,000
1,437,089,952,000
37,078,816
0
0
null
1,433,780,956,000
1,433,780,955,000
null
UTF-8
Lean
false
false
13,440
hlean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ prelude import init.reserved_notation /- not -/ definition not (a : Type) := a → empty prefix `¬` := not definition absurd {a b : Type} (H₁ : a) (H₂ : ¬...
b08ccf41d1ae27b2312839f3d8f6af98fefbb6f0
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/data/ordmap/ordnode.lean
762691a2b7d6ccfce373582fbe1dca2920a7649f
[]
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
33,639
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 Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.list.defs import Mathlib.data.nat.psub import Mathlib.PostPort universes u l u_1 u_2 ...
d0bb09d2c1499714f9b5a224deddc5a0172ff59b
77c5b91fae1b966ddd1db969ba37b6f0e4901e88
/src/order/filter/at_top_bot.lean
06e8429575ece09e73b51ece304207faff63c8e0
[ "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
61,695
lean
/- Copyright (c) 2017 Johannes Hölzl. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Jeremy Avigad, Yury Kudryashov, Patrick Massot -/ import order.filter.bases import data.finset.preimage /-! # `at_top` and `at_bot` filters on preorded sets, monoids a...
577f177c571d0afa5435c895745f20a223157790
fe25de614feb5587799621c41487aaee0d083b08
/stage0/src/Lean/PrettyPrinter/Delaborator/Basic.lean
d23957605f985c89042e49ac4120efad0ada429d
[ "Apache-2.0" ]
permissive
pollend/lean4
e8469c2f5fb8779b773618c3267883cf21fb9fac
c913886938c4b3b83238a3f99673c6c5a9cec270
refs/heads/master
1,687,973,251,481
1,628,039,739,000
1,628,039,739,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
9,893
lean
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sebastian Ullrich -/ /-! The delaborator is the first stage of the pretty printer, and the inverse of the elaborator: it turns fully elaborated `Expr` core terms back into surf...
79139fa878bd7287ff3361b982ef9a093e032b7f
57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d
/tests/lean/run/structInst4.lean
508fb07cac4ec5bfaf9083ef6de709a7529e38a3
[ "Apache-2.0" ]
permissive
collares/lean4
861a9269c4592bce49b71059e232ff0bfe4594cc
52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee
refs/heads/master
1,691,419,031,324
1,618,678,138,000
1,618,678,138,000
358,989,750
0
0
Apache-2.0
1,618,696,333,000
1,618,696,333,000
null
UTF-8
Lean
false
false
485
lean
universes u def a : Array ((Nat × Nat) × Bool) := #[] def b : Array Nat := #[] structure Foo := (x : Array ((Nat × Nat) × Bool) := #[]) (y : Nat := 0) #check (b).modifyOp (idx := 1) (fun s => 2) #check { b with [1] := 2 } #check { a with [1].fst.2 := 1 } def foo : Foo := {} #check foo.x[1].1.2 #check { foo with...
f28a3608ff816e194f3a360594895a2405cf9da5
6096e76aa1d83b3f250d2c69eeda5b692d6bd3e2
/src/calculus.lean
f80033da96cc2fe0cd79be1347f43bc4200c033b
[]
no_license
ChrisHughes24/lean-differential-topology
3782f1841e5205f76a122b7e8ceb9c65ace06088
0abdf5a61414459fb0833f39b4d04c3528404454
refs/heads/master
1,584,570,674,323
1,527,526,729,000
1,527,526,729,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
6,001
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...
01e5d85df7bb34b8f826a29f70f838c21997a0ef
07c76fbd96ea1786cc6392fa834be62643cea420
/hott/algebra/graph.hlean
7817aa8da1c0020816f52d11e3da84aff5dcb2bb
[ "Apache-2.0" ]
permissive
fpvandoorn/lean2
5a430a153b570bf70dc8526d06f18fc000a60ad9
0889cf65b7b3cebfb8831b8731d89c2453dd1e9f
refs/heads/master
1,592,036,508,364
1,545,093,958,000
1,545,093,958,000
75,436,854
0
0
null
1,480,718,780,000
1,480,718,780,000
null
UTF-8
Lean
false
false
14,202
hlean
/- Copyright (c) 2016 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn Graphs and operations on graphs Currently we only define the notion of a path in a graph, and prove properties and operations on paths. -/ open eq sigma nat /- ...
750e3a1d318452e5d3b7abfb11074340fef11bf5
bbecf0f1968d1fba4124103e4f6b55251d08e9c4
/src/data/equiv/local_equiv.lean
d2b2758f5e6ad00a9316b004ece525dcc849d158
[ "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
33,890
lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Sébastien Gouëzel -/ import data.equiv.basic import data.set.function /-! # Local equivalences This files defines equivalences between subsets of given types. An element `e` of `l...
a7fbeb81aec024261a0d66f9c73be71ad8bf6fb1
556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e
/src/starkware/cairo/common/cairo_secp/verification/signature_recover_public_key_spec.lean
34cf1cea39862b4be640fa908ea406bf0536d5ed
[]
permissive
starkware-libs/formal-proofs
d6b731604461bf99e6ba820e68acca62a21709e8
f5fa4ba6a471357fd171175183203d0b437f6527
refs/heads/master
1,691,085,444,753
1,690,507,386,000
1,690,507,386,000
410,476,629
32
9
Apache-2.0
1,690,506,773,000
1,632,639,790,000
Lean
UTF-8
Lean
false
false
2,604
lean
/- Specifications file for signature_recover_public_key_spec.cairo Do not modify the constant definitions, structure definitions, or automatic specifications. Do not change the name or arguments of the user specifications and soundness theorems. You may freely move the definitions around in the file. You ma...
8469165c52d4b2399571dd1c9527b2d84ffff931
4727251e0cd73359b15b664c3170e5d754078599
/src/linear_algebra/linear_independent.lean
6909aa5e94a1d6907233ff0996a2aa7e4f775b9b
[ "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
57,222
lean
/- Copyright (c) 2020 Anne Baanen. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp, Anne Baanen -/ import linear_algebra.finsupp import linear_algebra.prod import logic.equiv.fin import set_theory.cardinal.basic /-! #...
b2e4d0749d5bfd31da2b3f2c73aff7b57da679e0
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/eqn_issue.lean
c1ba39156f689c89264c6b6f9642283a34781f75
[ "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
200
lean
universe variable u variable {α : Type u} def split : list α → list α × list α | [] := ([], []) | [a] := ([a], []) | (a :: b :: l) := (a :: (split l).1, b :: (split l).2)
caf1e4f2f054f17e2430205ce2357e880d72df79
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/field_theory/finite/polynomial.lean
75cdcd888409b8a205ebc3aa859a2abc5bfeae2f
[]
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,174
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 Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.field_theory.finite.basic import Mathlib.field_theory.mv_polynomial import Mathlib.data.mv_...
90aa1525f39c2257e62b246da5f3807c8cb3e437
4f9ca1935adf84f1bae9c5740ec1f2ad406716fa
/src/topology/algebra/module.lean
d6db00c9ad1c4bf9272139f15b91387693e5132d
[ "Apache-2.0" ]
permissive
matthew-hilty/mathlib
36fd7db866365e9ee4a0ba1d6f8ad34d068cec6c
585e107f9811719832c6656f49e1263a8eef5380
refs/heads/master
1,607,100,509,178
1,578,151,707,000
1,578,151,707,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
17,942
lean
/- Copyright (c) 2019 Sébastien Gouëzel. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo -/ import topology.algebra.ring linear_algebra.basic ring_theory.algebra /-! # Theory of topological modules and continuous linear m...
42f91876f5a440e0834ebcdf4b812157e6b6df7d
130c49f47783503e462c16b2eff31933442be6ff
/stage0/src/Lean/Meta/Tactic/Simp/SimpLemmas.lean
415204496e7cffb7c181a747077328dd5a7d5673
[ "Apache-2.0" ]
permissive
Hazel-Brown/lean4
8aa5860e282435ffc30dcdfccd34006c59d1d39c
79e6732fc6bbf5af831b76f310f9c488d44e7a16
refs/heads/master
1,689,218,208,951
1,629,736,869,000
1,629,736,896,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
12,366
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.ScopedEnvExtension import Lean.Util.Recognizers import Lean.Meta.LevelDefEq import Lean.Meta.DiscrTree import Lean.Meta.AppBuilder import Lean.M...
3f9d69c90a75089c48533069c7b548e7674693a9
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/data/matrix/kronecker.lean
4b3c9b9eab590976026b2307743a33fa1efe4992
[ "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
15,602
lean
/- Copyright (c) 2021 Filippo A. E. Nuccio. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Filippo A. E. Nuccio, Eric Wieser -/ import data.matrix.basic import linear_algebra.tensor_product import ring_theory.tensor_product /-! # Kronecker product of matrices This d...
4224f1758dfbb02218803ef1f0234cbf32efeb8a
9dc8cecdf3c4634764a18254e94d43da07142918
/src/analysis/normed_space/star/matrix.lean
62fc8b30f360637ca969e1626faddbd012481a61
[ "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,466
lean
/- Copyright (c) 2022 Hans Parshall. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Hans Parshall -/ import analysis.matrix import analysis.normed_space.basic import data.complex.is_R_or_C import linear_algebra.unitary_group /-! # Unitary matrices This file collects ...
127dec992483409e5d1cf62bcb91d214f67d8d3d
eb9357a70318e50e095b58730bebfe0cffee457f
/lean/love03_forward_proofs_exercise_sheet.lean
460ffe16c6ec7e0f50002facfaa7920345ba626c
[]
no_license
Vierkantor/logical_verification_2021
7485dd916953131d501760f023d5b30fbb74d36a
9500b9c194e22a9ab4067321cfed7a1f445afcfc
refs/heads/main
1,692,560,845,086
1,624,721,275,000
1,624,721,275,000
416,354,079
0
0
null
null
null
null
UTF-8
Lean
false
false
3,171
lean
import .lovelib /-! # LoVe Exercise 3: Forward Proofs -/ set_option pp.beta true set_option pp.generalized_field_notation false namespace LoVe /-! ## Question 1: Connectives and Quantifiers 1.1. Supply structured proofs of the following lemmas. -/ lemma I (a : Prop) : a → a := sorry lemma K (a b : Prop) : ...
bd5f83e6e16bd1440fb14f6ff0ee70fb769e2d63
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/src/Init/Conv.lean
bc19809f2528edaf9d72d53dac6d9c8fbede7963
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
EdAyers/lean4
57ac632d6b0789cb91fab2170e8c9e40441221bd
37ba0df5841bde51dbc2329da81ac23d4f6a4de4
refs/heads/master
1,676,463,245,298
1,660,619,433,000
1,660,619,433,000
183,433,437
1
0
Apache-2.0
1,657,612,672,000
1,556,196,574,000
Lean
UTF-8
Lean
false
false
8,312
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura Notation for operators defined at Prelude.lean -/ prelude import Init.NotationExtra namespace Lean.Parser.Tactic.Conv /-- `conv` is the syntax category for ...
ba81be9c2a4990f23b01f1ed3cddf510e4d3c25e
7cef822f3b952965621309e88eadf618da0c8ae9
/src/data/list/min_max.lean
4e618b11f21c9768eca14a6e565471324182060b
[ "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
11,240
lean
/- Copyright (c) 2019 Minchao Wu. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Minchao Wu, Chris Hughes -/ import data.list.basic /- # Minimum and maximum of lists ## Main definitions The main definitions are `argmax`, `argmin`, `minimum` and `maximum` for lists. ...
4bffbabe4a941e26daf50755931cf4497619f825
77c5b91fae1b966ddd1db969ba37b6f0e4901e88
/src/measure_theory/measure/with_density_vector_measure.lean
ce413647f600edf65c30c6a5a5821c1ae13444fb
[ "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
8,782
lean
/- Copyright (c) 2021 Kexing Ying. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kexing Ying -/ import measure_theory.measure.vector_measure import measure_theory.function.ae_eq_of_integral /-! # Vector measure defined by an integral Given a measure `μ` and an inte...
e97f18ca7d6b889158584148dbcf1a0288cc6a12
e898bfefd5cb60a60220830c5eba68cab8d02c79
/uexp/src/uexp/SDP.lean
b571d18866cbb8a2b3aa9f522463bc7f82561ef3
[ "BSD-2-Clause" ]
permissive
kkpapa/Cosette
9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce
fda8fdbbf0de6c1be9b4104b87bbb06cede46329
refs/heads/master
1,584,573,128,049
1,526,370,422,000
1,526,370,422,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
10,372
lean
import .sql import .tactics import .u_semiring import .extra_constants import .cosette_tactics import .TDP -- assume there is only sig inside squash lemma sig2_distr_plus {s₁ s₂ : Schema} {f₁ f₂ : Tuple s₁ → Tuple s₂ → usr} : (∑ t₁ t₂ , f₁ t₁ t₂ + f₂ t₁ t₂) = (∑ t₁ t₂ , f₁ t₁ t₂) + (∑ t₁ t₂, f₂ t₁ t₂) := begin ...
0f76aed203b2c8fefbf0ea606d11d3724a147956
5ae26df177f810c5006841e9c73dc56e01b978d7
/src/data/nat/cast.lean
ad1339c3cb4da721b404b165ba3b4ac05b66dc00
[ "Apache-2.0" ]
permissive
ChrisHughes24/mathlib
98322577c460bc6b1fe5c21f42ce33ad1c3e5558
a2a867e827c2a6702beb9efc2b9282bd801d5f9a
refs/heads/master
1,583,848,251,477
1,565,164,247,000
1,565,164,247,000
129,409,993
0
1
Apache-2.0
1,565,164,817,000
1,523,628,059,000
Lean
UTF-8
Lean
false
false
4,458
lean
/- Copyright (c) 2014 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro Natural homomorphism from the natural numbers into a monoid with one. -/ import tactic.interactive algebra.order algebra.ordered_group algebra.ring import tactic.norm_c...
ba3f8fffe7847b78bb190f8675113523b413aba3
31f556cdeb9239ffc2fad8f905e33987ff4feab9
/src/Lean/Compiler/LCNF/Passes.lean
e0494f84e1e6b93e8c5765f58c1d0b18076dffc7
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
tobiasgrosser/lean4
ce0fd9cca0feba1100656679bf41f0bffdbabb71
ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f
refs/heads/master
1,673,103,412,948
1,664,930,501,000
1,664,930,501,000
186,870,185
0
0
Apache-2.0
1,665,129,237,000
1,557,939,901,000
Lean
UTF-8
Lean
false
false
3,082
lean
/- Copyright (c) 2022 Henrik Böving. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Henrik Böving -/ import Lean.Compiler.LCNF.PassManager import Lean.Compiler.LCNF.PullLetDecls import Lean.Compiler.LCNF.CSE import Lean.Compiler.LCNF.Simp import Lean.Compiler.LCNF.Pull...
bcbb5de5c32087746d60f8303d87e3ffd747f2a2
69d4931b605e11ca61881fc4f66db50a0a875e39
/src/category_theory/opposites.lean
7992686d0a0bc19d72f6e53c528b47286a70b386
[ "Apache-2.0" ]
permissive
abentkamp/mathlib
d9a75d291ec09f4637b0f30cc3880ffb07549ee5
5360e476391508e092b5a1e5210bd0ed22dc0755
refs/heads/master
1,682,382,954,948
1,622,106,077,000
1,622,106,077,000
149,285,665
0
0
null
null
null
null
UTF-8
Lean
false
false
14,825
lean
/- Copyright (c) 2017 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Stephen Morgan, Scott Morrison -/ import category_theory.types import category_theory.equivalence universes v₁ v₂ u₁ u₂ -- morphism levels before object levels. See note [category_the...
ee81f8cb307670442c7eaca41cad50e31867226f
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/linear_algebra/free_module_pid.lean
41d03b3aa88c0f984cd216589c6fe1a0944d9e00
[ "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
17,772
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 linear_algebra.basis import linear_algebra.finsupp_vector_space import ring_theory.principal_ideal_domain import ring_theory.finiteness /-! # Free modules over PID ...
62cfa14e462454adaa791b806a282696135b815b
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/ring_theory/polynomial/bernstein.lean
58432174dad0e5c7b1cea331b1359c43523901d7
[ "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
15,835
lean
/- Copyright (c) 2020 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison -/ import data.polynomial.derivative import data.polynomial.algebra_map import data.mv_polynomial.pderiv import data.nat.choose.sum import linear_algebra.basis import ri...
39a05d32a214bf6a211f2f3e3d3f78dad31104da
03bd658c402412f41d3026d1040ee8ca8c0fc579
/src/list/modify/basic.lean
e785bb2cb6870f404881318855052ea0cde6dacd
[]
no_license
ImperialCollegeLondon/dots_and_boxes
c205f6dbad8af9625f56715e4d1bed96b0ac1022
f7bd0b1603674a657170c5395adb717c4f670220
refs/heads/master
1,663,752,058,476
1,591,438,614,000
1,591,438,614,000
139,707,103
2
0
null
null
null
null
UTF-8
Lean
false
false
14,781
lean
import data.list.basic tactic.linarith import list.lemmas.long_lemmas open list /--Two lists are equal except one entry differs by at most d-/ structure list.modify (A : list ℤ) (B : list ℤ) (d : ℤ) := (n : ℕ) --entry in which the lists differ (ha : n < A.length) (hb : n < B.length) (heq : A.remove_nth n = B.remove...
76042cfaedf19932dbd0fa8d4d968c2b7aad4f89
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/category_theory/skeletal.lean
2992995d7999e64cef45fc4d5517554fc02dc13d
[ "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
10,873
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.adjunction.basic import category_theory.category.preorder import category_theory.isomorphism_classes import category_theory.thin /-! # Skeleton of...
3bc6942a83d9a14246313b44167223a5e2f01bfa
fffbc47930dc6615e66ece42324ce57a21d5b64b
/src/tactic/basic.lean
0841ac6a52f5169234d72c724fc43a09510191c1
[ "Apache-2.0" ]
permissive
skbaek/mathlib
3caae8ae413c66862293a95fd2fbada3647b1228
f25340175631cdc85ad768a262433f968d0d6450
refs/heads/master
1,588,130,123,636
1,558,287,609,000
1,558,287,609,000
160,935,713
0
0
Apache-2.0
1,544,271,146,000
1,544,271,146,000
null
UTF-8
Lean
false
false
342
lean
import tactic.alias tactic.cache tactic.converter.interactive tactic.core tactic.ext tactic.generalize_proofs tactic.interactive tactic.library_search tactic.mk_iff_of_inductive_prop tactic.rcases tactic.replacer tactic.restate_axiom tactic.rewrite tactic.simpa tactic.split_ifs tactic.sq...
b9c0a439cfd946c3bb45aadd3cd32a357d2dc9f0
d1a52c3f208fa42c41df8278c3d280f075eb020c
/src/Init/Data/Repr.lean
5472c750182aa7efe5adec73f294e03f171c50db
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
cipher1024/lean4
6e1f98bb58e7a92b28f5364eb38a14c8d0aae393
69114d3b50806264ef35b57394391c3e738a9822
refs/heads/master
1,642,227,983,603
1,642,011,696,000
1,642,011,696,000
228,607,691
0
0
Apache-2.0
1,576,584,269,000
1,576,584,268,000
null
UTF-8
Lean
false
false
6,888
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.Data.Format.Basic import Init.Data.Int.Basic import Init.Data.Nat.Div import Init.Data.UInt import Init.Control.Id open Sum Subtype Nat ...
fe4e17c168362ebe00f8856bda9d9d7c4bfff5a5
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/ring_theory/valuation/basic.lean
2b18aa0d9744122c86118cb6fd3498e6a6588a9a
[ "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
24,967
lean
/- Copyright (c) 2020 Johan Commelin. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kevin Buzzard, Johan Commelin, Patrick Massot -/ import algebra.group_power import algebra.order.with_zero import algebra.punit_instances import ring_theory.ideal.operations /-! # T...
14ab8c95c06fef5d133c99a25322e1224dc043b8
572fb32b6f5b7c2bf26921ffa2abea054cce881a
/src/week_1/Part_C_functions.lean
56ca6067155ca1c669cf5d33ac4fb805d680b7ef
[ "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
3,208
lean
import tactic -- injective and surjective functions are already in Lean. -- They are called `function.injective` and `function.surjective`. -- It gets a bit boring typing `function.` a lot so we start -- by opening the `function` namespace open function -- We now move into the `xena` namespace namespace xena -- le...
91b1d8e525959b446c842c27dc2dd66bc2ca5114
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/inliner_loop.lean
d95128c84c09015aae9db09eb74441bee73bfe5f
[ "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
140
lean
unsafe inductive t | mk : (t → t) → t unsafe def loop' : t → t | t.mk f => f (t.mk f) unsafe def loop : t := loop' (t.mk loop')
4c90a71b195d8dac4393c4a2a312902272ae0b61
a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7
/src/ring_theory/noetherian.lean
b0f1a334e3b2c5ca8aa442ebd58a6ebe3acd5de4
[ "Apache-2.0" ]
permissive
kmill/mathlib
ea5a007b67ae4e9e18dd50d31d8aa60f650425ee
1a419a9fea7b959317eddd556e1bb9639f4dcc05
refs/heads/master
1,668,578,197,719
1,593,629,163,000
1,593,629,163,000
276,482,939
0
0
null
1,593,637,960,000
1,593,637,959,000
null
UTF-8
Lean
false
false
23,074
lean
/- Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Kevin Buzzard -/ import ring_theory.ideal_operations import linear_algebra.basis /-! # Noetherian rings and modules The following are equivalent for...
058a852218619a28d17b6d6f9e32932f65b08cae
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/topology/instances/real_vector_space.lean
82fa5979dff9a44c7b63b2a9a176199e72db6015
[ "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
2,412
lean
/- Copyright (c) 2020 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import topology.algebra.module.basic import topology.instances.real /-! # Continuous additive maps are `ℝ`-linear In this file we prove that a continuous map `f :...
310637cfaec0c3bf2d0d33f05dfa8199e0fae063
b2fe74b11b57d362c13326bc5651244f111fa6f4
/src/linear_algebra/affine_space/affine_subspace.lean
076914ca31013d490e4a4411c8d53f8becd7a984
[ "Apache-2.0" ]
permissive
midfield/mathlib
c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7
775edc615ecec631d65b6180dbcc7bc26c3abc26
refs/heads/master
1,675,330,551,921
1,608,304,514,000
1,608,304,514,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
44,314
lean
/- Copyright (c) 2020 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Joseph Myers. -/ import linear_algebra.affine_space.basic import linear_algebra.tensor_product import data.set.intervals.unordered_interval /-! # Affine spaces This file defines affine ...
29e96694f5113af24b8a75eb28d527e0c8f12eb3
5756a081670ba9c1d1d3fca7bd47cb4e31beae66
/Mathport/Syntax/Translate/Parser.lean
dbe0017566965e1b39e0bc76bf1de52ccc1ddeee
[ "Apache-2.0" ]
permissive
leanprover-community/mathport
2c9bdc8292168febf59799efdc5451dbf0450d4a
13051f68064f7638970d39a8fecaede68ffbf9e1
refs/heads/master
1,693,841,364,079
1,693,813,111,000
1,693,813,111,000
379,357,010
27
10
Apache-2.0
1,691,309,132,000
1,624,384,521,000
Lean
UTF-8
Lean
false
false
12,710
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import Mathport.Syntax.AST3 import Mathlib.Mathport.Syntax open Lean hiding Expr Command open Lean.Elab Tactic namespace Mathport namespace Translate open A...
bf6a5564d8bacadb6ad13df3b34ed45cb10bdcb6
94e33a31faa76775069b071adea97e86e218a8ee
/src/analysis/normed_space/ray.lean
992d0ead9f6670da8222f3532eff100029baaaab
[ "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
4,658
lean
/- Copyright (c) 2022 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov, Yaël Dillies -/ import linear_algebra.ray import analysis.normed_space.basic /-! # Rays in a real normed vector space In this file we prove some lemmas about the `s...
e6bbb54d4dee58a240d9d3867d44e37a2a73644b
682dc1c167e5900ba3168b89700ae1cf501cfa29
/src/basicmodal/paths.lean
31264bb7cbe6165f6874e905ba98bb06ba5d72a0
[]
no_license
paulaneeley/modal
834558c87f55cdd6d8a29bb46c12f4d1de3239bc
ee5d149d4ecb337005b850bddf4453e56a5daf04
refs/heads/master
1,675,911,819,093
1,609,785,144,000
1,609,785,144,000
270,388,715
13
1
null
null
null
null
UTF-8
Lean
false
false
2,547
lean
/- Copyright (c) 2021 Paula Neeley. All rights reserved. Author: Paula Neeley -/ import data.list data.set.basic variable {α : Type*} def path (R : α → α → Prop) : α → list α → Prop | x [] := true | x (y::ys) := R x y ∧ path y ys def last (R : α → α → Prop) : α → list α → α | x [] := x | x (y::ys) := la...
7921a9ebb142a73546bc3111b0322ef3ac725359
534c92d7322a8676cfd1583e26f5946134561b54
/src/Exercises/02_and_or_forall_exists/ch02all.lean
176d79c7e0919a275902ffcd6e997f901fcc2ea0
[ "Apache-2.0" ]
permissive
kbuzzard/mathematics-in-lean
53f387174f04d6077f434e27c407aee9425837f7
3fad7bb7e888dabef94921101af8671b78a4304a
refs/heads/master
1,586,812,457,439
1,546,893,744,000
1,546,893,744,000
163,450,734
8
0
null
null
null
null
UTF-8
Lean
false
false
1,071
lean
variables p q r : Prop example : p ∨ q → q ∨ p := begin sorry end example : p ∨ (q ∨ r) → (p ∨ q) ∨ r := begin sorry end example : p ∧ q → q ∧ p := begin sorry end example : p ∧ (q ∧ r) → (p ∧ q) ∧ r := begin sorry end example : p ∧ (q ∨ r) ↔ (p ∧ q) ∨ (p ∧ r) := begin sorry end example : ¬ (p ∧ q) ↔ ¬ ...
be57a1142d05704f8ff46cd8b07028a5408518b7
d1a52c3f208fa42c41df8278c3d280f075eb020c
/src/Lean/Compiler/InlineAttrs.lean
ef4f9615154073cda41b6e93288d67bc0082363f
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
cipher1024/lean4
6e1f98bb58e7a92b28f5364eb38a14c8d0aae393
69114d3b50806264ef35b57394391c3e738a9822
refs/heads/master
1,642,227,983,603
1,642,011,696,000
1,642,011,696,000
228,607,691
0
0
Apache-2.0
1,576,584,269,000
1,576,584,268,000
null
UTF-8
Lean
false
false
2,242
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.Attributes import Lean.Compiler.Util namespace Lean.Compiler inductive InlineAttributeKind where | inline | noinline | macroInline | inlineI...
5fc01c967f30d4e84d6a3b5f519303a0ed1ccb5e
c777c32c8e484e195053731103c5e52af26a25d1
/src/ring_theory/dedekind_domain/selmer_group.lean
f729e75d1c898b6e513b2fe3c5dfd27a1e700661
[ "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
9,743
lean
/- Copyright (c) 2022 David Kurniadi Angdinata. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Kurniadi Angdinata -/ import algebra.hom.equiv.type_tags import data.zmod.quotient import ring_theory.dedekind_domain.adic_valuation import ring_theory.norm /-! # Selm...
bc5873542e3f73c8e92dc72f23f3972863c165de
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/category_theory/sites/dense_subsite.lean
219c23c20a391c0c3c2451e87a62a50a52a47b22
[ "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
16,390
lean
/- Copyright (c) 2021 Andrew Yang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andrew Yang -/ import category_theory.sites.sheaf /-! # Dense subsites We define `cover_dense` functors into sites as functors such that there exists a covering sieve that factors throu...
f03111defcb1e5a05cfee9854df25cf52cba9aa8
c777c32c8e484e195053731103c5e52af26a25d1
/src/topology/sheaves/stalks.lean
f6b7277e45807da29b0ba7a18dac76263267301d
[ "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
26,674
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Justus Springer -/ import topology.category.Top.open_nhds import topology.sheaves.presheaf import topology.sheaves.sheaf_condition.unique_gluing import category_theory....
9bf3baa785df49f4759de409f763d431b5fcef4f
26ac254ecb57ffcb886ff709cf018390161a9225
/src/topology/order.lean
87203e563e30f032f85515d2da0e150bbae75a85
[ "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,637
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 topology.basic /-! # Ordering on topologies and (co)induced topologies Topologies on a fixed type `α` are ordered, by reverse inclusion. That...
aba4e3d0ecfbf7d8042d92e0c9c6a7f8949fbfef
36938939954e91f23dec66a02728db08a7acfcf9
/lean4/app/Main.lean
9e915c482e2476b6bada4d518e654703beb5ece5
[]
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
2,632
lean
import ReoptVCG.Annotations import ReoptVCG.ReoptVCG open ReoptVCG -- Modes of execution for `reopt-vcg` inductive VCGCmd | showHelp : VCGCmd | runVCG : VCGConfig → VCGCmd -- A container to accumulate user-provided command line arguments in -- while the are being processed. structure VCGArgs := (annFile : Option ...
92976269eaeb72ace8d0efd2134c4bbca8fad47c
9028d228ac200bbefe3a711342514dd4e4458bff
/src/algebra/group_power/lemmas.lean
247b6e0e2cb4bdc69ddf3c7059e5850c2394ad4a
[ "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
22,167
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.group_power.basic import algebra.opposites import data.list.basic import data.int.cast import data.equiv.basic import deprecated.group ...
46e7d6caaf7a79299e61e140b6f04ce764d442ea
271e26e338b0c14544a889c31c30b39c989f2e0f
/tests/lean/run/typeclass_metas_internal_goals.lean
f6713d80a81a431fffbe3b96ce4687d50dba042f
[ "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
1,915
lean
#exit namespace T1 class Foo (α : Type) : Type := (u : Unit := ()) class Bar (α : Type) : Type := (u : Unit := ()) class Top : Type := (u : Unit := ()) instance FooAll (α : Type) : Foo α := {u:=()} instance BarNat : Bar Nat := {u:=()} instance FooBarToTop (α : Type) [Foo α] [Bar α] : Top := {u:=()} #synth Top end...
6adeffdcdf4a2d62f3c50fb0be31bf5b6f839a18
4727251e0cd73359b15b664c3170e5d754078599
/src/tactic/simpa.lean
2f90df9cf89d138e31655ce044b938b90f8fe2d6
[ "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
2,408
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.doc_commands open interactive open interactive.types namespace tactic namespace interactive open expr lean.parser local postfix `?`:9001 := optional ...
a6464cb3b5e3326d82b15d3de49783f0667344af
9dd3f3912f7321eb58ee9aa8f21778ad6221f87c
/library/tools/super/clause_ops.lean
6cafed207737921e57033f87b53c00104905f59f
[ "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
3,429
lean
/- Copyright (c) 2016 Gabriel Ebner. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Gabriel Ebner -/ import .clause open monad tactic expr namespace super local attribute [instance] has_monad_lift_to_has_coe meta def on_left_at {m} [monad m] (c : clause) (i : ℕ) ...
8afad18cebff2123813e841d237f27c9e72142e8
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/stage0/src/Lean/Elab/Tactic/Location.lean
6ae34f3678a7ac887ed940dc4bb9aa21876ce83b
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
EdAyers/lean4
57ac632d6b0789cb91fab2170e8c9e40441221bd
37ba0df5841bde51dbc2329da81ac23d4f6a4de4
refs/heads/master
1,676,463,245,298
1,660,619,433,000
1,660,619,433,000
183,433,437
1
0
Apache-2.0
1,657,612,672,000
1,556,196,574,000
Lean
UTF-8
Lean
false
false
2,232
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.Elab.Tactic.Basic import Lean.Elab.Tactic.ElabTerm namespace Lean.Elab.Tactic /-- Denotes a set of locations where a tactic should be applied ...
bb40d0e23ecb34d65f08b829a25b9757d0c3f85c
3705439886316285035ef1fd985632bc87eb06e7
/LeanProto.lean
2d9b13a3e5cd06b8c32ef3eb5eadf2efe0442361
[ "MIT" ]
permissive
zygi/lean-proto
ce74f29d33f12f240878f0f8cbe4960c41b70fcb
4d64844d8978c68c8038886013d33048c23a7674
refs/heads/master
1,680,996,798,349
1,618,444,323,000
1,618,444,323,000
342,923,095
0
0
null
null
null
null
UTF-8
Lean
false
false
29,026
lean
import Init.Data.ByteArray import Init.Data.UInt import AssertCmd import LeanProtoNativeHelpers -- TODO list: -- ) It would be much easier if Int32/64 were wrapped namespace LeanProto namespace Utils def byteArrayToHex(b: ByteArray) : String := let parts := b.data.map (fun x => String.singleton (Nat.digitChar (x....
e109d92d2e5c94010366ab9c8591d017b5fc9924
0845ae2ca02071debcfd4ac24be871236c01784f
/tests/bench/deriv.lean
fece04381c411b9df9a660f953d742bd364bf120
[ "Apache-2.0" ]
permissive
GaloisInc/lean4
74c267eb0e900bfaa23df8de86039483ecbd60b7
228ddd5fdcd98dd4e9c009f425284e86917938aa
refs/heads/master
1,643,131,356,301
1,562,715,572,000
1,562,715,572,000
192,390,898
0
0
null
1,560,792,750,000
1,560,792,749,000
null
UTF-8
Lean
false
false
2,831
lean
/- Benchmark for new code generator -/ inductive Expr | Val : Int → Expr | Var : String → Expr | Add : Expr → Expr → Expr | Mul : Expr → Expr → Expr | Pow : Expr → Expr → Expr | Ln : Expr → Expr open Expr partial def pown : Int → Int → Int | a 0 := 1 | a 1 := a | a n := let b := pown a (n / 2) in b * b * (if n %...
f13e1e8e4751f2d796ee06be594d9c90035a68ef
a6b711a4e8db20755026231f7ed529a9014b2b6d
/ZZ_IGNORE/S17/class-s17/Exam2/Exam2.lean
36062f8facb405bf045a86c2ae2724369be57d6a
[]
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
3,095
lean
/- This is Exam2 for CS2101, Spring 2018 (Sullivan). COLLABORATION POLICY: NO COLLABORATION ALLOWED. This is an individual evaluation. You are not allowed to communicate with *anyone* about this exam, except the instructor, by any means, until you have completed and submitted the exam and anyone you're communicatin...
4542ed4fe9ed7ec6d52da75d9bba968da63c6a80
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/algebra/group/default.lean
317094a9fe77ebc8d1439a7284e0b26684155856
[ "Apache-2.0" ]
permissive
gebner/mathlib
eab0150cc4f79ec45d2016a8c21750244a2e7ff0
cc6a6edc397c55118df62831e23bfbd6e6c6b4ab
refs/heads/master
1,625,574,853,976
1,586,712,827,000
1,586,712,827,000
99,101,412
1
0
Apache-2.0
1,586,716,389,000
1,501,667,958,000
Lean
UTF-8
Lean
false
false
605
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, Michael Howes -/ import algebra.group.to_additive import algebra.group.basic import algebra.group.units import algebra.group.hom import algebra.group....
42c962599910876a7c3309f0fe5075a746a8930f
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/group_theory/monoid_localization.lean
ec0c6de6ffb5158a12d17bc3cdaeafd27e04dff5
[]
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
68,767
lean
/- Copyright (c) 2019 Amelia Livingston. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Amelia Livingston -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.group_theory.congruence import Mathlib.group_theory.submonoid.default import Mathlib....
b85214e7141c01c030529be64f6e9c96a419ebee
d1a52c3f208fa42c41df8278c3d280f075eb020c
/src/Lean/Elab/BindersUtil.lean
9247ba043f8b405789b0b318bbb2dc958db26888
[ "Apache-2.0", "LLVM-exception", "NCSA", "LGPL-3.0-only", "LicenseRef-scancode-inner-net-2.0", "BSD-3-Clause", "LGPL-2.0-or-later", "Spencer-94", "LGPL-2.1-or-later", "HPND", "LicenseRef-scancode-pcre", "ISC", "LGPL-2.1-only", "LicenseRef-scancode-other-permissive", "SunPro", "CMU-Mach"...
permissive
cipher1024/lean4
6e1f98bb58e7a92b28f5364eb38a14c8d0aae393
69114d3b50806264ef35b57394391c3e738a9822
refs/heads/master
1,642,227,983,603
1,642,011,696,000
1,642,011,696,000
228,607,691
0
0
Apache-2.0
1,576,584,269,000
1,576,584,268,000
null
UTF-8
Lean
false
false
467
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ namespace Lean.Elab.Term /- Recall that ``` def typeSpec := leading_parser " : " >> termParser def optType : Parser := optional typeSpec ``` -/ de...
9f40ea3605b3a5216d078fae5fc9e89e0c6c7699
9dc8cecdf3c4634764a18254e94d43da07142918
/src/algebra/hom/equiv.lean
6c97f007cdda4dc1b870c5a404b27bce2cafa84d
[ "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
29,711
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.basic import data.pi.algebra /-! # Multiplicative and additive equivs ...
8cb377433a3e9085e875607ecf343e6970e1de71
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/quot_abuse2.lean
0bc93c3f099e9e2e915c7ed10940f09517413b19
[ "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
158
lean
prelude init_quotient /- definit eq as the empty type -/ inductive {u} eq {α : Sort u} (a : α) : α → Sort 0 | refl : ∀ (b : α), eq b init_quotient
ab6a15c946dba30bbba6c559730fdff480688db5
1890046a4987fbd27f3f50dbac83f3ce095556d5
/01_Equality/03_type_inference.lean
1d1802a759be778bf58e320bd7ffe74be1177c19
[]
no_license
kbhuynh/cs-dm
9f335727d1779f7c3d9e8221a52b4c9c106659ba
4041bd73618a49ef6870a1a80764e8947e60e768
refs/heads/master
1,585,353,017,958
1,536,055,215,000
1,536,055,215,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
2,312
lean
/- Type Inference -/ /- Now as we've seen, given a value, t, of some type, T, Lean can tell us what T is. The #check command tells us the type of any value or expression. The key observation is that if you give Lean a value, Lean can determine its type. We can use the ability of Lean to determine the types of given...
c5d27ee65b811250941387a5ec1359e9dbda454d
453dcd7c0d1ef170b0843a81d7d8caedc9741dce
/data/set/basic.lean
99347e5487bb6512600c1e5aaf992f86e1c8ff05
[ "Apache-2.0" ]
permissive
amswerdlow/mathlib
9af77a1f08486d8fa059448ae2d97795bd12ec0c
27f96e30b9c9bf518341705c99d641c38638dfd0
refs/heads/master
1,585,200,953,598
1,534,275,532,000
1,534,275,532,000
144,564,700
0
0
null
1,534,156,197,000
1,534,156,197,000
null
UTF-8
Lean
false
false
38,701
lean
/- Copyright (c) 2014 Jeremy Avigad. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Jeremy Avigad, Leonardo de Moura -/ import tactic.ext tactic.finish data.subtype open function namespace set universes u v w x variables {α : Type u} {β : Type v} {γ : Type w} {ι : Sort...
526ff630a5f2ff9611908270393f35cc6cb2fdee
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/bad_unification_hint.lean
8720444b543f7313848f67e32e17e1e40cce056a
[ "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
723
lean
-- Good hint @[unify] def {u} cons_append_hint (α : Type u) (a b : α) (l₁ l₂ l₃: list α) : unification_hint := { pattern := (a :: l₁) ++ l₂ =?= b :: l₃, constraints := [l₃ =?= l₁ ++ l₂, a =?= b] } -- Bad hint: pattern is incorrect @[unify] def {u} append_cons_hint (α : Type u) (a b : α) (l₁ l₂ l₃: list α) : unif...