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
be7d20741a847d5449cbc646992b478d8fab7dbb
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/topology/category/Profinite/cofiltered_limit.lean
320c80091dfbbd98f478bff46c86d86380b6e179
[ "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
9,349
lean
/- Copyright (c) 2021 Adam Topaz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Adam Topaz -/ import topology.category.Profinite import topology.locally_constant.basic import topology.discrete_quotient /-! # Cofiltered limits of profinite sets. This file contains so...
f107e39eccd00457f58d7a03789120c89cf83c8a
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/fixedIndicesToParams.lean
8dee734e740a6e6f3fcb7115bf6019ed3ee1f12b
[ "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
480
lean
inductive sublist : List α → List α → Prop | slnil : sublist [] [] | cons l₁ l₂ a : sublist l₁ l₂ → sublist l₁ (a :: l₂) | cons2 l₁ l₂ a : sublist l₁ l₂ → sublist (a :: l₁) (a :: l₂) #print sublist inductive Foo : List α → Type _ -- Make sure we don't need to use `_` or can use `u` | mk₁ : Foo [] | mk₂ : (...
ba770b855b8338481e4d1bce77ac6aae06450959
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/algebra/category/Algebra/basic.lean
09d5cde20ff0fe5022b7bd1c5d8c3183f10ebea4
[ "Apache-2.0" ]
permissive
jjgarzella/mathlib
96a345378c4e0bf26cf604aed84f90329e4896a2
395d8716c3ad03747059d482090e2bb97db612c8
refs/heads/master
1,686,480,124,379
1,625,163,323,000
1,625,163,323,000
281,190,421
2
0
Apache-2.0
1,595,268,170,000
1,595,268,169,000
null
UTF-8
Lean
false
false
5,392
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 algebra.algebra.basic import algebra.algebra.subalgebra import algebra.free_algebra import algebra.category.CommRing.basic import algebra.category.Module.basic...
232deb606447ca4fe33a082b257c43cebaee45fc
22e97a5d648fc451e25a06c668dc03ac7ed7bc25
/src/algebra/add_torsor.lean
27de0558e93213f119ea53b78c067dd5b9b963c0
[ "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
7,225
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 algebra.group.basic /-! # Torsors of additive group actions This file defines torsors of additive group actions. ## Notations The group elements are referred t...
f29c7c99eba8f0f46d24aeebb2cbc92f93b5cd91
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/tc_eta_struct_issue.lean
d4b085bfbdab0eadb10ecaacc5c67118b652b457
[ "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
494
lean
def Op1 (F : Type u → Type v) α := F α namespace Op1 instance {F} [Functor F] : Functor (Op1 F) where map := @Functor.map F _ instance {F} [Functor F] [H : LawfulFunctor F] : LawfulFunctor (Op1 F) := sorry variable {F} [Applicative F] instance : Applicative (Op1 F) where pure := pure (f := F) seq f x := ((λ ...
45083f0ca04fffd9c6b311cd7b72bcc98991b511
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/elab_meta2.lean
889dbbe142ee1d2e2fe5d0494cb3ec37ee63b577
[ "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
879
lean
#print "parametric meta definition" meta definition f {A : Type} : nat → A → A → A | n a b := if n / 2 = 0 then a else f (n / 2) b a #eval if f 10 1 2 = 2 then "OK" else "FAILED" namespace foo #print "parametric meta definition inside namespace" meta definition bla {A : Type} : nat → A → A → A | n a b := if n / 2 = ...
9aa2721a5d9688aeede825456f98fd3d2cee7a16
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/inner_product_space/orientation.lean
db8a8457ae7c71e11f1b5b38eb137cc239a131da
[ "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
14,836
lean
/- Copyright (c) 2022 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joseph Myers, Heather Macbeth -/ import analysis.inner_product_space.gram_schmidt_ortho import linear_algebra.orientation /-! # Orientations of real inner product spaces. > THIS FILE I...
834161eaa8a2013e0b95b0d4cec63e1e0d4f19fe
82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7
/stage0/src/Lean/Elab/StructInst.lean
292bd23cbc1944dff82e4e4704798e32cd6bd61f
[ "Apache-2.0" ]
permissive
banksonian/lean4
3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc
78da6b3aa2840693eea354a41e89fc5b212a5011
refs/heads/master
1,673,703,624,165
1,605,123,551,000
1,605,123,551,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
33,440
lean
/- Copyright (c) 2020 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Util.FindExpr import Lean.Elab.App import Lean.Elab.Binders import Lean.Elab.Quotation namespace Lean.Elab.Term.StructInst open Std (HashMap) ...
bf34cdf2a97d7c0f55e9c27a59848fca1e5fb3dc
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/algebra/order/with_zero.lean
41b268e6c30e208ce8de5b8b86be57ae577a3f3c
[ "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
10,312
lean
/- Copyright (c) 2020 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Johan Commelin, Patrick Massot -/ import algebra.hom.equiv.units.group_with_zero import algebra.group_with_zero.inj_surj import algebra.order.group.units import algebra.order.mon...
d47fd7eb51a3fa90b1a968a81ef7eefed42f62f2
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/topology/continuous_on.lean
6803fb0a04f77d174e401be380ff118f1da06098
[ "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
46,139
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...
9d141359399cf575fffd2c391872e6c3d84dc645
67190c9aacc0cac64fb4463d93e84c696a5be896
/Exercises/Tatics.lean
f2bc2c47489480338b358b315c897b51a8899c7e
[]
no_license
lucasresck/Discrete-Mathematics
ffbaf55943e7ce2c7bc50cef7e3ef66a0212f738
0a08081c5f393e5765259d3f1253c3a6dd043dac
refs/heads/master
1,596,627,857,734
1,573,411,500,000
1,573,411,500,000
212,489,764
0
0
null
null
null
null
UTF-8
Lean
false
false
520
lean
theorem exercise {U : Type} {A B : set U} : (A \ B) ∪ (B \ A) ⊆ (A ∪ B) \ (A ∩ B):= begin intros x h1, cases h1 with h1 h2, cases h1 with h3 h4, apply and.intro, exact or.inl h3, intro h5, have h6, from h5.right, exact h4 h...
06f316b0f455a585862799ef8119ec7474e1f0f4
35677d2df3f081738fa6b08138e03ee36bc33cad
/src/algebra/group/units.lean
2b310f0ede96edaa17563acb410222a5a73e4a09
[ "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
7,486
lean
/- Copyright (c) 2017 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau, Mario Carneiro, Johannes, Hölzl, Chris Hughes -/ import tactic.basic logic.function algebra.group.to_additive /-! # Units (i.e., invertible elements) of a multiplicative monoid ...
d588569bd7861c73cb41ea992d22be0fba57447c
1dd482be3f611941db7801003235dc84147ec60a
/src/ring_theory/algebra.lean
8994c82a78aaad15832bf8db4a69c41d50b67a36
[ "Apache-2.0" ]
permissive
sanderdahmen/mathlib
479039302bd66434bb5672c2a4cecf8d69981458
8f0eae75cd2d8b7a083cf935666fcce4565df076
refs/heads/master
1,587,491,322,775
1,549,672,060,000
1,549,672,060,000
169,748,224
0
0
Apache-2.0
1,549,636,694,000
1,549,636,694,000
null
UTF-8
Lean
false
false
18,623
lean
/- Copyright (c) 2018 Kenny Lau. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Kenny Lau Algebra over Commutative Ring (under category) -/ import data.polynomial import linear_algebra.multivariate_polynomial import linear_algebra.tensor_product import ring_theory.su...
327cb9d514b860b14de677d3e9b0371d05c35868
f618aea02cb4104ad34ecf3b9713065cc0d06103
/src/algebra/ordered_ring.lean
2cb8032408d7f781d2c6b08a6f9a52dc772d4668
[ "Apache-2.0" ]
permissive
joehendrix/mathlib
84b6603f6be88a7e4d62f5b1b0cbb523bb82b9a5
c15eab34ad754f9ecd738525cb8b5a870e834ddc
refs/heads/master
1,589,606,591,630
1,555,946,393,000
1,555,946,393,000
182,813,854
0
0
null
1,555,946,309,000
1,555,946,308,000
null
UTF-8
Lean
false
false
17,748
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import order.basic algebra.order algebra.ordered_group algebra.ring data.nat.cast local attribute [instance, priority 0] nat.cast_coe universe u variable {α : Type u...
543e8ea21ed6330d3c22a71555315238c98a5c1d
6b10c15e653d49d146378acda9f3692e9b5b1950
/examples/logic/unnamed_408.lean
270d2e6734143e302197073ebec15dc6f0cde4a2
[]
no_license
gebner/mathematics_in_lean
3cf7f18767208ea6c3307ec3a67c7ac266d8514d
6d1462bba46d66a9b948fc1aef2714fd265cde0b
refs/heads/master
1,655,301,945,565
1,588,697,505,000
1,588,697,505,000
261,523,603
0
0
null
1,588,695,611,000
1,588,695,610,000
null
UTF-8
Lean
false
false
154
lean
variables A B : Prop -- BEGIN example : (A → B) → ¬ B → ¬ A := begin intros h₁ h₂ h₃, apply h₂, apply h₁, apply h₃ end -- END
11e09a860feaecacccb4b19625626fab50701b06
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/field_theory/galois.lean
55173caf0eee13deea8b72bf0a4732e62e426f23
[ "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
18,828
lean
/- Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Thomas Browning, Patrick Lutz -/ import field_theory.normal import field_theory.primitive_element import field_theory.fixed import ring_theory.power_basis /-! # Galois...
ea98bbff87f15a0985e59b75dd473b6e97bbbe3e
491068d2ad28831e7dade8d6dff871c3e49d9431
/tests/lean/extra/eqn_macro1.lean
2c753a387a43177f39fd45c3b80ef25e751c873e
[ "Apache-2.0" ]
permissive
davidmueller13/lean
65a3ed141b4088cd0a268e4de80eb6778b21a0e9
c626e2e3c6f3771e07c32e82ee5b9e030de5b050
refs/heads/master
1,611,278,313,401
1,444,021,177,000
1,444,021,177,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
125
lean
open nat notation `foo` a := match a with (c, d) := c + d end eval foo (2, 3) notation `bla` a `with` H := a ↓ H
6744c776499138bb582c416bd20c3e25df9a3010
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/test/squeeze.lean
f2b9d01add632fa6feaf20c80cecec0515a66ca8
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
2,200
lean
import data.nat.basic import data.pnat.defs import tactic.squeeze namespace tactic namespace interactive setup_tactic_parser /-- version of squeeze_simp that tests whether the output matches the expected output -/ meta def squeeze_simp_test (key : parse cur_pos) (slow_and_accurate : parse (tk "?")?) (use_iota_e...
6954691fdccb7bd6ad0489a25db030754c8650b9
137c667471a40116a7afd7261f030b30180468c2
/src/data/multiset/basic.lean
acb35429cff4b4a7faa7ce34c3c30e27e30d8126
[ "Apache-2.0" ]
permissive
bragadeesh153/mathlib
46bf814cfb1eecb34b5d1549b9117dc60f657792
b577bb2cd1f96eb47031878256856020b76f73cd
refs/heads/master
1,687,435,188,334
1,626,384,207,000
1,626,384,207,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
98,194
lean
/- Copyright (c) 2015 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import data.list.perm /-! # Multisets These are implemented as the quotient of a list by permutations. ## Notation We define the global infix notation `::ₘ` f...
5786b4fefadfb2fedab25e820fd3e11d07ead45e
57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d
/tests/lean/unused_univ.lean
664a4ac2f4e296def5d553627e13592e8eaf0c1c
[ "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
274
lean
-- variable (y : Nat) def f.{u} (x : Nat) : Nat := -- error unused universe parameter 'u' x universes u def f.{v, w} (α : Type v) (a : α) : α := -- error unused universe parameter 'w' a axiom f.{w} (α : Type u) (a : α) : α -- error unused universe parameter 'w'
71f3074d3aff3d520bb6c3c488edc799a2bc1260
2d34dfb0a1cc250584282618dc10ea03d3fa858e
/src/Mbar/Mbar_le.lean
757973db3372c72068d188f1c90e4eda5a6e13fe
[]
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
17,829
lean
import data.fintype.card import for_mathlib.normed_group import Mbar.basic /-! ## $\overline{\mathcal{M}}_{r'}(S)$ This file contains a definition of ℳ-barᵣ'(S) as defined on p57 of Analytic.pdf . ## Implementation issues We model Tℤ[[T]] as functions ℕ → ℤ which vanish at 0. -/ universe u noncomputable theor...
197ce97921dd9f0b4c7b5e53cfb9cfb76fdd8dc5
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/data/list/nodup_equiv_fin_auto.lean
7f66fe4263fa1056d262505fe849a7681c590e1c
[]
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
3,111
lean
/- Copyright (c) 2020 Yury G. Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Yury G. Kudryashov -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.data.list.sort import Mathlib.data.fin import Mathlib.PostPort universes u_1 name...
772d734e880cefbc5f07554def22226fddc51b85
75c54c8946bb4203e0aaf196f918424a17b0de99
/src/bvm_extras.lean
5d8c3c736bd7941943b1aea5e842839722c016bc
[ "Apache-2.0" ]
permissive
urkud/flypitch
261e2a45f1038130178575406df8aea78255ba77
2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c
refs/heads/master
1,653,266,469,246
1,577,819,679,000
1,577,819,679,000
259,862,235
1
0
Apache-2.0
1,588,147,244,000
1,588,147,244,000
null
UTF-8
Lean
false
false
143,195
lean
/- Copyright (c) 2019 The Flypitch Project. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Jesse Han, Floris van Doorn -/ import .bvm open lattice universe u local infix ` ⟹ `:65 := lattice.imp local infix ` ⇔ `:50 := lattice.biimp local prefix `p𝒫`:65 := pSet.p...
0bb7a78e3808c563a239b17260181f53aa7f833d
cc060cf567f81c404a13ee79bf21f2e720fa6db0
/lean/20170218-monoidal-category-of-types-without-extends.lean
7b47b56987e8eefb2c260566e5f14943792e2b0c
[ "Apache-2.0" ]
permissive
semorrison/proof
cf0a8c6957153bdb206fd5d5a762a75958a82bca
5ee398aa239a379a431190edbb6022b1a0aa2c70
refs/heads/master
1,610,414,502,842
1,518,696,851,000
1,518,696,851,000
78,375,937
2
1
null
null
null
null
UTF-8
Lean
false
false
16,160
lean
open tactic open smt_tactic def pointwise_attribute : user_attribute := { name := `pointwise, descr := "A lemma that proves things are equal using the fact they are pointwise equal." } run_command attribute.register `pointwise_attribute /- Try to apply one of the given lemas, it succeeds if one of them succeeds....
1040c262ade108abf4dd1d92a7e98b11558e7e09
57c233acf9386e610d99ed20ef139c5f97504ba3
/src/order/order_dual.lean
7c1d85f2469199c951469d591561a3dd2e08da1d
[ "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
3,051
lean
/- Copyright (c) 2020 Johan Commelin, Damiano Testa. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin, Damiano Testa -/ import data.equiv.basic import logic.nontrivial import order.basic /-! # Initial lemmas to work with the `order_dual` ## Definitions `...
22dad48c9be9178fe019194d76d3a51cc7184c8f
69d4931b605e11ca61881fc4f66db50a0a875e39
/src/computability/partrec.lean
4f9b7c202e83818cdb6d42c727f18f00b9371faa
[ "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
29,035
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 computability.primrec import data.nat.psub import data.pfun /-! # The partial recursive functions The partial recursive functions are defined similarly to th...
9063386f386aff4cd9fa7ed752050a9781433066
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/data/real/sqrt.lean
d9ef92026525dc865fde4141276998e04361fa2f
[ "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
13,634
lean
/- Copyright (c) 2020 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro, Floris van Doorn, Yury Kudryashov -/ import topology.algebra.order.monotone_continuity import topology.instances.nnreal import tactic.positivity /-! # Square root of a...
7aa551b5988a78201ec1d9cd5ff88b03bfca48ae
432d948a4d3d242fdfb44b81c9e1b1baacd58617
/archive/sensitivity.lean
c60d6d4fd856cb2873c6a98c7e32a3293cdfa871
[ "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
15,521
lean
/- Copyright (c) 2019 Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, Patrick Massot. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, Patrick Massot -/ import tactic.fin_cases...
a1e5034a5cd4ed0efe415748b13bf80ae6558273
86f6f4f8d827a196a32bfc646234b73328aeb306
/examples/logic/unnamed_2462.lean
5af927de270f7fdad92900e5cec89825952fb797
[]
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
980
lean
import data.real.basic def converges_to (s : ℕ → ℝ) (a : ℝ) := ∀ ε > 0, ∃ N, ∀ n ≥ N, abs (s n - a) < ε theorem converges_to_const (a : ℝ) : converges_to (λ x : ℕ, a) a := sorry variables {s t : ℕ → ℝ} {a b : ℝ} theorem converges_to_add (cs : converges_to s a) (ct : converges_to t b): converges_to (λ n, s n +...
8bb2b933046156d65383c6c3d9b6a408567197f5
94e33a31faa76775069b071adea97e86e218a8ee
/src/ring_theory/polynomial/dickson.lean
a8b81b30c21fcd6d773c17e33521b817895f6e8e
[ "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
10,683
lean
/- Copyright (c) 2021 Julian Kuelshammer. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Julian Kuelshammer -/ import algebra.char_p.invertible import data.zmod.basic import field_theory.finite.basic import ring_theory.localization.fraction_ring import ring_theory.poly...
f13f492d04b4e23509ea61111eab43e4ece78617
e61a235b8468b03aee0120bf26ec615c045005d2
/stage0/src/Init/Lean/PrettyPrinter.lean
64d6fcb530dbfc45849afeece0a4cb24060486f4
[ "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
53
lean
prelude import Init.Lean.PrettyPrinter.Parenthesizer
09701d39ee989f2de6189e718503b5a8a379a508
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/reflected.lean
2d845ded46bf83793012f0eef003dd092aa35463
[ "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
163
lean
meta def eval_list (α : Type) [reflected _ α] (e : expr) : tactic (list α) := tactic.eval_expr (list α) e run_cmd eval_list ℕ ↑`([1, 2]) >>= tactic.trace
02ccd06e2101f532e01c2cf3b8d21503ea93e399
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/geometry/euclidean/monge_point.lean
9a2ba11034c7d14744996b8d89f0b1bb7b1863d7
[ "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
38,351
lean
/- Copyright (c) 2020 Joseph Myers. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Joseph Myers -/ import geometry.euclidean.circumcenter /-! # Monge point and orthocenter This file defines the orthocenter of a triangle, via its n-dimensional generalization, the Mong...
5115f40284680af58279c3f3349b2d24fdc13edd
0d4c30038160d9c35586ce4dace36fe26a35023b
/src/tactic/norm_cast.lean
447da4bb3c81c49702efba863f4632262fe04c1b
[ "Apache-2.0" ]
permissive
b-mehta/mathlib
b0c8ec929ec638447e4262f7071570d23db52e14
ce72cde867feabe5bb908cf9e895acc0e11bf1eb
refs/heads/master
1,599,457,264,781
1,586,969,260,000
1,586,969,260,000
220,672,634
0
0
Apache-2.0
1,583,944,480,000
1,573,317,991,000
Lean
UTF-8
Lean
false
false
14,534
lean
/- Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Paul-Nicolas Madelaine Normalizing casts inside expressions. -/ import tactic.basic tactic.interactive tactic.converter.interactive import data.buffer.parser namespace tacti...
6618b5dad743cc1612ec66a316bbd5893d765539
d1a52c3f208fa42c41df8278c3d280f075eb020c
/src/Lean/Server/Completion.lean
736b9d53ac93aab494048f99fef5aa04b9c68aa4
[ "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
17,506
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Environment import Lean.Parser.Term import Lean.Data.Lsp.LanguageFeatures import Lean.Meta.Tactic.Apply import Lean.Meta.Match.MatcherInfo impor...
feacb2b03ced22dd9e4563769271ab16fe3f8589
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/playground/qsort64.lean
6f731d8136d4f4d52b59835ec3a68888abaab25d
[ "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
232
lean
-- set_option trace.compiler.ir.boxing true def main (xs : List String) : IO Unit := do let a := xs.head.toNat.fold (fun i (a : Array UInt64) => a.push (UInt64.ofNat i)) Array.empty; IO.println $ (a.qsort (fun x y => x > y)).get 0
4b0edf8efe6dc72aee186ac08d7476743e0132b2
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/test/list_summands.lean
61448f23945b822b0e3dd660d62ed81b68abe4e8
[ "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
711
lean
import tactic.core import data.matrix.basic section tactic open tactic #eval show tactic unit, from do ops ← list_binary_operands `(@has_add.add ℕ _) `(3 + (4 * 5 + 6) + 7 / 3), guard $ ops = [`(3), `(4*5), `(6), `(7/3)] #eval show tactic unit, from do ops ← list_binary_operands `(@list.append ℕ) `([1, 2] ++ [...
e318bf08001134e686db81dda552a5d55778b071
dd0f5513e11c52db157d2fcc8456d9401a6cd9da
/06_Inductive_Types.org.24.lean
b34096070b5cdf846fca64e7ead93044fe39f7e1
[]
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
163
lean
/- page 85 -/ import standard namespace hide -- BEGIN inductive subtype {A : Type} (P : A → Prop) : Type := tag : Π x : A, P x → subtype P -- END end hide
d4ff8b1ebfed67c6b630ffcd39a28bd30a400504
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/loop1.lean
c70e77d642241d54cec021908b53e76cf70ec59c
[ "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
463
lean
(* -- This example ask uses the parses to process a Lean string that -- contains a nested script block. The nexted script block will -- invoke the leanlua_state recursively. It also demonstrates that we -- need to use std::recursive_mutex instead of std::mutex at -- leanlua_state. Otherwise, it will deadlock tryin...
ee8429c990844d1db7e1400109779577d097dc52
d1a52c3f208fa42c41df8278c3d280f075eb020c
/tests/lean/run/simp4.lean
30352a58b437223751a57cd9ce29107c1d5b67be
[ "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
1,536
lean
constant f : Nat → Nat constant q : Nat → Prop constant r : Nat → Prop @[simp] axiom ax1 (p : Prop) : (p ∧ True) ↔ p @[simp] axiom ax2 (x : Nat) : q (f x) @[simp] axiom ax3 (x : Nat) : ¬ r (f x) @[simp] axiom ax4 (p : Prop) : (p ∨ False) ↔ p theorem ex1 (x : Nat) (h : q x) : q x ∧ q (f x) := by simp [h] theorem ex...
c2727be378ae8f6c4eab76e77d5011c3ae644f6a
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/counterexamples/girard.lean
de764493e7027f8d7efedacc3ad11845f91d3dff
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
2,343
lean
/- Copyright (c) 2021 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Mario Carneiro -/ import logic.basic /-! # Girard's paradox > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any changes to this file require a corresponding PR to mathlib4. Girard's pa...
4044b5ca973ae76e506e13d3ab28cb3b5ddc0681
d1bbf1801b3dcb214451d48214589f511061da63
/src/analysis/mean_inequalities.lean
ea2cd1f7c9354c173f8ef7e12b2d31b98c88e8e1
[ "Apache-2.0" ]
permissive
cheraghchi/mathlib
5c366f8c4f8e66973b60c37881889da8390cab86
f29d1c3038422168fbbdb2526abf7c0ff13e86db
refs/heads/master
1,676,577,831,283
1,610,894,638,000
1,610,894,638,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
49,550
lean
/- Copyright (c) 2019 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov, Sébastien Gouëzel, Rémy Degenne -/ import analysis.convex.specific_functions import analysis.special_functions.pow import data.real.conjugate_exponents import tactic....
bee021dcdbad8290bce0c7deb4c0541c93cc123c
74addaa0e41490cbaf2abd313a764c96df57b05d
/Mathlib/tactic/omega/int/preterm_auto.lean
1380b45a1262ce1d0b9e50dfb00f144ad7be798d
[]
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,678
lean
/- Copyright (c) 2019 Seul Baek. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Seul Baek -/ import Mathlib.PrePort import Mathlib.Lean3Lib.init.default import Mathlib.tactic.omega.term import Mathlib.PostPort universes l namespace Mathlib /- Linear integer arithmet...
6b64342a6ee8d0add259d551c5abede97ef3b62e
a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91
/tests/lean/run/331.lean
29cbe3824be1775e1064270b67c7da0c5cb1fca5
[ "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
309
lean
namespace nat inductive less (a : nat) : nat → Prop | base : less (succ a) | step : Π {b}, less b → less (succ b) end nat open nat check less.rec_on namespace foo1 protected definition foo2.bar : nat := 10 end foo1 example : foo1.foo2.bar = 10 := rfl open foo1 example : foo2.bar = 10 := rfl
b072f52a20a6f311b965e8b0c51efab0ee52939d
37fa6e77734d3aca013fed5a19c4ee1fe1c38857
/library/init/meta/interactive.lean
a01e3d359731455d5db0947ecdc84d8262d34cd7
[ "Apache-2.0" ]
permissive
gazimahmud/lean
8736ac0b0289850b4c7e7600604e2ce9fc8606ad
08495eef27b33f68dfc681e3bcab23b4771cbf03
refs/heads/master
1,611,158,659,846
1,498,642,351,000
1,498,671,799,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
36,967
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...
69db7cc469a32a4a31623cb6a8cd5c9313db584a
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/category_theory/single_obj.lean
b4edd3c4053246df7edf96f6dcabaa40284558fd
[ "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
6,377
lean
/- Copyright (c) 2019 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import category_theory.endomorphism import category_theory.category.Cat import algebra.category.Mon.basic /-! # Single-object category Single object category with...
1a30ab0faf3878c0e7449c2a6e0671122f382c0b
a047a4718edfa935d17231e9e6ecec8c7b701e05
/src/topology/algebra/ordered.lean
fab7562a4c8f66b4863e167b0ee77335c3b9e5cb
[ "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
88,284
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, Yury Kudryashov -/ import tactic.tfae import order.liminf_limsup import data.set.intervals import topology.algebra.group /-! # Theory of topology on or...
47095b35e36fb6b2ebe6fea71b9767bfb20afdd6
947fa6c38e48771ae886239b4edce6db6e18d0fb
/src/analysis/box_integral/integrability.lean
4573252fca6dd0b0c32ed83df553c5c314f409bf
[ "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
17,862
lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import analysis.box_integral.basic import measure_theory.measure.regular /-! # McShane integrability vs Bochner integrability In this file we prove that any Bochn...
c83480465af21f83ecc5fbbed755b8c35aafb31d
6432ea7a083ff6ba21ea17af9ee47b9c371760f7
/tests/lean/run/extensibleTacticBug.lean
eeee29bfc11ba20b27da24cbdfe8362d471b856c
[ "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
475
lean
syntax "my_trivial" : tactic -- extensible tactic macro_rules | `(tactic| my_trivial) => `(tactic| decide) macro_rules | `(tactic| my_trivial) => `(tactic| assumption) def f (a : Nat) (h : a > 3) := a example : True := by have : f 4 (by my_trivial) = 4 := rfl constructor example : True := have : f 4 (by my_tr...
4fa6e783480d84c015084399d71b0cb6142b19fc
46125763b4dbf50619e8846a1371029346f4c3db
/src/deprecated/group.lean
f6a00161a83cdacbea18ac0825093eb2973b3242
[ "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
12,541
lean
import algebra.group.type_tags algebra.group.is_unit /-! # Unbundled monoid and group homomorphisms (deprecated) This file defines typeclasses for unbundled monoid and group homomorphisms. Though these classes are deprecated, they are still widely used in mathlib, and probably will not go away before Lean 4 because L...
a448f8fb05ee0f3ddf66842141c956f8a04bb862
1789ef53372ad44b5ce5db2341556f91c8c31395
/src/evne_odd.lean
6dca5f0e2b3de7418170620e6a358a9008454ae7
[]
no_license
iceplant/Mermin_Peres
d0a0f4c9f27111b3fee4e0ab5119ef1eafc59dc2
d7ea59b5767157420b0fae9dfc09f22ad2826564
refs/heads/master
1,609,583,206,767
1,582,220,678,000
1,582,220,678,000
239,577,114
1
1
null
null
null
null
UTF-8
Lean
false
false
215
lean
import data.nat.basic inductive is_odd : ℕ → Prop | one : is_odd 1 | step{n} : is_odd n → is_odd (n+2) inductive is_even : ℕ → Prop | one : is_even 0 | step{n} : is_even n → is_even (n+2)
9e3268511dddf25482c476422a72da9019887815
947b78d97130d56365ae2ec264df196ce769371a
/tests/lean/run/recInfo1.lean
58758c0c688df07f46f70a87d75a9c53080ca96c
[ "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
537
lean
import Lean.Meta new_frontend open Lean open Lean.Meta def print (msg : MessageData) : MetaM Unit := trace! `Meta.debug msg def showRecInfo (declName : Name) (majorPos? : Option Nat := none) : MetaM Unit := do let info ← mkRecursorInfo declName majorPos? print (toString info) set_option trace.Meta true set_option tr...
14fe73524388620c40507584d9bb13c64d86db81
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/category_theory/limits/shapes/biproducts.lean
bef019a696072eb0a32da429e5c6b5642c789c7f
[ "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
66,793
lean
/- Copyright (c) 2019 Scott Morrison. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Scott Morrison, Jakob von Raumer -/ import category_theory.limits.shapes.finite_products import category_theory.limits.shapes.binary_products import category_theory.limits.shapes.kerne...
a5616f71d6654197afc7b108822b6c05df0535b5
5d76f062116fa5bd22eda20d6fd74da58dba65bb
/src/snarks/sonic/knowledge_soundness.lean
7acc25c471978caefac28075c65e5e2e76dfdd9d
[]
no_license
brando90/formal_baby_snark
59e4732dfb43f97776a3643f2731262f58d2bb81
4732da237784bd461ff949729cc011db83917907
refs/heads/master
1,682,650,246,414
1,621,103,975,000
1,621,103,975,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
5,105
lean
/- Author: Bolton Bailey -/ import data.mv_polynomial.basic import data.mv_polynomial.comm_ring import data.polynomial.div import data.polynomial.field_division import algebra.polynomial.big_operators import .vars import ...polynomial_tactic -- import ...general_lemmas.sub_for_mv_polynomial /-! # Knowledge Soundness ...
25259d304213efdcccd9536de9d3e46c04db32f9
5a5e1bb8063d7934afac91f30aa17c715821040b
/lean3SOS/src/lib/diagdom.lean
84b01522ca1bddaaeed317f734c684c9053cfe9b
[]
no_license
ramonfmir/leanSOS
1883392d73710db5c6e291a2abd03a6c5b44a42b
14b50713dc887f6d408b7b2bce1f8af5bb619958
refs/heads/main
1,683,348,826,105
1,622,056,982,000
1,622,056,982,000
341,232,766
1
0
null
null
null
null
UTF-8
Lean
false
false
1,768
lean
/- Definition of diagonally dominant matrices and tactic. -/ import data.matrix.basic import data.matrix.notation import data.rat.basic import data.finset.basic import tactic.fin_cases import tactic.linarith open_locale big_operators def diagdom {n : ℕ} (A : matrix (fin n) (fin n) ℚ) : Prop := ∀ i, (∑ j, if i ≠...
2ad0ba1a793d5fca3bca23a4a2250221c2e5f1d6
843cffbd2a25fd01677509247a92e9e8b33bec48
/4. Quantifiers and Equality.lean
89e773c4c5f3cc69f772fbbb6df8eb87b6144d25
[]
no_license
AlexandruBosinta/MyLeanPlayground
9a78eba4a5c7a2b82edf84e1794a966f53f06c4f
5dc50a590d784bfc27e7fb37b6361a6dcc1b2790
refs/heads/master
1,586,230,010,351
1,542,487,422,000
1,542,487,422,000
158,016,626
0
0
null
null
null
null
UTF-8
Lean
false
false
8,427
lean
universe u --variables (α : Type u) (p q : α → Prop) (r : α → α → Prop) --example : (∀ x : α, p x ∧ q x) → ∀ y : α, p y := λ h x, (h x).left --variable refl_r : ∀ x, r x x --variable symm_r : ∀ {x y}, r x y → r y x --variable trans_r : ∀ {x y z}, r x y → r y z → r x z --variables a b c : α --variables (ha...
e84fd31924f8314a500d9f184a1e9d5803c3eef2
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/order/complete_lattice_intervals.lean
5f4c5a5e0bf6b438704a9e3f07e566a0e5e38e26
[ "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
5,904
lean
/- Copyright (c) 2022 Heather Macbeth. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Heather Macbeth -/ import order.conditionally_complete_lattice.basic import data.set.intervals.ord_connected /-! # Subtypes of conditionally complete linear orders In this file we g...
ad8b0c38a5355b8500b92611ebd7ebfacdf0e9c4
33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354
/logic.lean
6f0e27a5b83db854553d8b2dd2aa75842712e8b4
[]
no_license
lclem/cooper
79554e72ced343c64fed24b2d892d24bf9447dfe
812afc6b158821f2e7dac9c91d3b6123c7a19faf
refs/heads/master
1,607,554,257,488
1,578,694,133,000
1,578,694,133,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,035
lean
import logic.basic lemma or_iff_or {p p' q q' : Prop} : (p ↔ p') → (q ↔ q') → ((p ∨ q) ↔ (p' ∨ q')) := begin intros hp hq, rewrite hp, rewrite hq end lemma and_iff_and {p p' q q' : Prop} : (p ↔ p') → (q ↔ q') → ((p ∧ q) ↔ (p' ∧ q')) := begin intros hp hq, rewrite hp, rewrite hq end lemma iff_of_left_of_right...
adf8e5d307711c41aae35f4ab02e5c34cdeab3db
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/algebra/order/complete_field.lean
d4d207ca1a804ed05095c30ec13103b1354c5ddb
[ "Apache-2.0" ]
permissive
leanprover-community/mathlib
56a2cadd17ac88caf4ece0a775932fa26327ba0e
442a83d738cb208d3600056c489be16900ba701d
refs/heads/master
1,693,584,102,358
1,693,471,902,000
1,693,471,902,000
97,922,418
1,595
352
Apache-2.0
1,694,693,445,000
1,500,624,130,000
Lean
UTF-8
Lean
false
false
13,200
lean
/- Copyright (c) 2022 Alex J. Best. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Alex J. Best, Yaël Dillies -/ import algebra.order.hom.ring import algebra.order.pointwise import analysis.special_functions.pow.real /-! # Conditionally complete linear ordered fields ...
bdedfdfdeb18a0415f48e563075e43ea79942734
57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d
/stage0/src/Lean/Util/MonadBacktrack.lean
b9e952a08bcffadab673a3187d7bdc1bb8cb16a7
[ "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
1,226
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 /-- Similar to `MonadState`, but it retrieves/restores only the "backtrackable" part of the state -/ class MonadBacktrack (s : outParam Typ...
d8c96fe4a395027672daae93d1de11a7fa1e075e
4d2583807a5ac6caaffd3d7a5f646d61ca85d532
/src/linear_algebra/sesquilinear_form.lean
7bcac0726ee7e01250a6bb8c5dec02d19f1af8ad
[ "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
12,203
lean
/- Copyright (c) 2018 Andreas Swerdlow. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Andreas Swerdlow -/ import ring_theory.ring_invo import algebra.module.linear_map import tactic.abel /-! # Sesquilinear form This file defines a sesquilinear form over a module. Th...
077810327cd852969d72103353eaa18ab95fa194
367134ba5a65885e863bdc4507601606690974c1
/src/topology/dense_embedding.lean
aa079d29f3b99ac4a02f609ceca8246a8e87535d
[ "Apache-2.0" ]
permissive
kodyvajjha/mathlib
9bead00e90f68269a313f45f5561766cfd8d5cad
b98af5dd79e13a38d84438b850a2e8858ec21284
refs/heads/master
1,624,350,366,310
1,615,563,062,000
1,615,563,062,000
162,666,963
0
0
Apache-2.0
1,545,367,651,000
1,545,367,651,000
null
UTF-8
Lean
false
false
12,907
lean
/- Copyright (c) 2019 Reid Barton. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot -/ import topology.separation import topology.bases /-! # Dense embeddings This file defines three properties of functions: * `dense_rang...
624bad98d3fc81e638186817d6737c5e2f1728c6
48f4f349e1bb919d14ab7e5921d0cfe825f4c423
/fabstract/Bauer_A_InjBaireNat/realizability.lean
c6234e2ff532689b37e548215352fce54dfcfeab
[]
no_license
thalesant/formalabstracts-2017
fdf4ff90d30ab1dcb6d4cf16a068a997ea5ecc80
c47181342c9e41954aa8d41f5049965b5f332bca
refs/heads/master
1,584,610,453,925
1,528,277,508,000
1,528,277,508,000
136,299,625
0
0
null
null
null
null
UTF-8
Lean
false
false
686
lean
-- the folklore does not yet contain anything about realizability toposes, -- so we include partial formalization here. Eventually this should be -- moved to folklore. import meta_data .toposes run_cmd tactic.skip -- temporary fix -- TODO (@andrejbauer): give real descriptions and dois -- missing definition o...
df90d4ccfa2cbdf4af1ac84dd79d5ed7cc861059
ac89c256db07448984849346288e0eeffe8b20d0
/stage0/src/Lean/Elab/Open.lean
a00bec0cbefdc20ab17134db9fbc7e319f95da6c
[ "Apache-2.0" ]
permissive
chepinzhang/lean4
002cc667f35417a418f0ebc9cb4a44559bb0ccac
24fe2875c68549b5481f07c57eab4ad4a0ae5305
refs/heads/master
1,688,942,838,326
1,628,801,942,000
1,628,801,995,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
3,041
lean
/- Copyright (c) 2021 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Leonardo de Moura -/ import Lean.Elab.Log namespace Lean.Elab namespace OpenDecl variable [Monad m] [STWorld IO.RealWorld m] [MonadEnv m] variable [MonadExceptOf Exception m] ...
cdd517357d3abe4d8a6487dfa2461cb4bb7bddbb
05f637fa14ac28031cb1ea92086a0f4eb23ff2b1
/tests/lean/bad_simp2.lean
e85b1dfdb69563cc75eb2b80128f5ad5634847d0
[ "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
1,413
lean
import tactic universe U >= 2 variable f (A : (Type 1)) : (Type 1) axiom Ax1 (a : Type) : f a = a rewrite_set S add_rewrite Ax1 eq_id : S theorem T1a (A : Type) : f A = A := by simp S -- The following theorem should not be provable. -- The axiom Ax1 is only for arguments convertible to Type (i.e., Type 0) -- The argum...
64be581d1151734d84916f5ad6711939702aed49
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/eqn_compiler_ctor.lean
91125dd06bbda9984cbccf6c14dc5c0f0a5bfa08
[ "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
165
lean
inductive term | var : ℕ → term | app : term → term → term | abs : term → term open term def subst : ∀ σ : ℕ → term, term → term | var := sorry
d9ae27658672767df79119413f49b116a6ebf2c6
26ac254ecb57ffcb886ff709cf018390161a9225
/src/order/order_iso_nat.lean
94922d9c54853551275e69229623dae5dcbd6c8e
[ "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
1,630
lean
/- Copyright (c) 2017 Mario Carneiro. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Mario Carneiro -/ import data.nat.basic import order.order_iso namespace order_embedding variables {α : Type*} {r : α → α → Prop} def nat_lt [is_strict_order α r] (f : ℕ → α) (H : ∀ ...
4e85992bc1e65c54eed9dfe494b69cddedcb5a3b
9dc8cecdf3c4634764a18254e94d43da07142918
/src/category_theory/preadditive/biproducts.lean
8f8c976b4e8530c35c5c1a41c3af1d4541bf4c95
[ "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,193
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 tactic.abel import category_theory.limits.shapes.biproducts import category_theory.preadditive /-! # Basic facts about morphisms between biproducts in preaddi...
35b2989e15322977ecc19141150efab2c7cd7e1e
5e3548e65f2c037cb94cd5524c90c623fbd6d46a
/AMC_2021_A_22.lean
afa128621a91ea60fc6e5f3dccdf3173d50d788d
[]
no_license
ahayat16/lean_exos
d4f08c30adb601a06511a71b5ffb4d22d12ef77f
682f2552d5b04a8c8eb9e4ab15f875a91b03845c
refs/heads/main
1,693,101,073,585
1,636,479,336,000
1,636,479,336,000
415,000,441
0
0
null
null
null
null
UTF-8
Lean
false
false
358
lean
import data.complex.exponential import algebra.polynomial.big_operators import analysis.special_functions.trigonometric.basic theorem AMC_2021_A_22 (a b c :ℝ)(P:ℝ → ℝ) (hP: ∀ (x:ℝ), P x = x^3+a*x^2*b*x+c) (hroots:(P (real.cos 2*real.pi/7) = 0)∧(P (real.cos 4*real.pi/7) = 0)∧(P (real.cos 6*real.pi/7) = 0)): a*b*c = 1/3...
786ba99b0dfb512072fce45622c11f407e14bc93
ff5230333a701471f46c57e8c115a073ebaaa448
/tests/lean/doc_strings.lean
5ea51384b7049da12ba4aef681821000538fd489
[ "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
378
lean
/-! This module has a doc.. -/ /-! ..or two. -/ inductive foo : Type /-- Makes foo. -/ | a : foo /-- Makes foo of foo. -/ | b : foo -> foo /-- Doesn't make foo. -/ constant two : nat open tactic run_cmd doc_string `foo.a >>= trace run_cmd doc_string `foo.b >>= trace run_cmd doc_string `two >>= trace run_cmd olean_d...
2f1336655e0509d69ea544e861c65e5f902f9a15
a4673261e60b025e2c8c825dfa4ab9108246c32e
/src/Lean/Elab/DefView.lean
a504fa5db49779e19e1a87a3ca73244a0f147103
[ "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,244
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, Sebastian Ullrich -/ import Std.ShareCommon import Lean.Util.CollectLevelParams import Lean.Util.FoldConsts import Lean.Elab.CollectFVars import Lean.Elab.Com...
a53d332910d487c1743f5c4553bc3f3e29548394
f3849be5d845a1cb97680f0bbbe03b85518312f0
/old_library/init/nat.lean
a261dd23518e7a9db04aad7dbb198567f8b2a0bf
[ "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
12,808
lean
/- Copyright (c) 2014 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Leonardo de Moura -/ prelude import init.relation init.num notation `ℕ` := nat namespace nat protected theorem zero_add : ∀ n : ℕ, 0 + n = n | 0 := r...
8bd52c584d3abdb5c25487452f94f4458b585135
367134ba5a65885e863bdc4507601606690974c1
/src/tactic/lint/default.lean
0fa2db693e136a10fc262d80a51d19fbaa423ad2
[ "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
4,253
lean
/- Copyright (c) 2020 Floris van Doorn. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner -/ import tactic.lint.frontend import tactic.lint.simp import tactic.lint.type_classes import tactic.lint.misc open tactic add_tact...
0ec7f26da7fe46e91a89359077ecbacaac059f0c
137c667471a40116a7afd7261f030b30180468c2
/src/group_theory/order_of_element.lean
91316fb5d52fb59ecb1540de6f8c622e1f506fd4
[ "Apache-2.0" ]
permissive
bragadeesh153/mathlib
46bf814cfb1eecb34b5d1549b9117dc60f657792
b577bb2cd1f96eb47031878256856020b76f73cd
refs/heads/master
1,687,435,188,334
1,626,384,207,000
1,626,384,207,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
36,412
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, Julian Kuelshammer -/ import algebra.pointwise import group_theory.coset import dynamics.periodic_pts import algebra.iterate_hom /-! # Order of an element This file d...
74fce969664b6de45946d6183d3eaeaa41afcba0
75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2
/library/theories/group_theory/cyclic.lean
4a1130fd95534d34502bc9b89f1abcf00e217d25
[ "Apache-2.0" ]
permissive
jroesch/lean
30ef0860fa905d35b9ad6f76de1a4f65c9af6871
3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2
refs/heads/master
1,586,090,835,348
1,455,142,203,000
1,455,142,277,000
51,536,958
1
0
null
1,455,215,811,000
1,455,215,811,000
null
UTF-8
Lean
false
false
15,862
lean
/- Copyright (c) 2015 Haitao Zhang. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author : Haitao Zhang -/ import data algebra.group algebra.group_power .finsubg .hom .perm open function finset open eq.ops namespace group_theory section cyclic open nat fin list local attr...
12533a93650fd97738a3ca0c34641cf554ed2fec
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/tests/lean/run/structInst3.lean
ab7fd3329573ec2d545049417d161a7d8da8c2c5
[ "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
460
lean
universes u namespace Ex1 structure A (α : Type u) := (x : α) (f : α → α := λ x => x) structure B (α : Type u) extends A α := (y : α := f (f x)) (g : α → α → α := λ x y => f x) structure C (α : Type u) extends B α := (z : α := g x y) (x := f z) end Ex1 new_frontend open Ex1 def c1 : C Nat := { x := 1 } #check {...
ff76985d11270c95a7eea2cfb3d227f7dfa74d04
5f83eb0c32f15aeed5993a3ad5ededb6f31fe7aa
/lean/src/bv/helper.lean
40d8bdf011173a1450ec61931fc1505018c9cad8
[]
no_license
uw-unsat/jitterbug
45b54979b156c0f5330012313052f8594abd6f14
78d1e75ad506498b585fbac66985ff9d9d05952d
refs/heads/master
1,689,066,921,433
1,687,061,448,000
1,688,415,161,000
244,440,882
46
5
null
null
null
null
UTF-8
Lean
false
false
586
lean
import tactic.basic import tactic.linarith.frontend import tactic.ring_exp namespace bv.helper open nat lemma pow2_succ (n : ℕ) : 2^(succ n) = 2 * 2^n := by simp [pow_succ, mul_comm] lemma pow2_pos (n : ℕ) : 2^n > 0 := pow_pos two_pos n @[simp] lemma bit_div_two (b : bool) (n : ℕ) : bit b n / 2 = n := by rw [← nat....
36577a02127dcd6dbd6e8744fe181432deaecfdc
c8af905dcd8475f414868d303b2eb0e9d3eb32f9
/src/data/cpi/semantics/with_congruence.lean
c6c7602c9dbffecaec5c1ae6797e54db2695928a
[ "BSD-3-Clause" ]
permissive
continuouspi/lean-cpi
81480a13842d67ff5f3698643210d8ed5dd08de4
443bf2cb236feadc45a01387099c236ab2b78237
refs/heads/master
1,650,307,316,582
1,587,033,364,000
1,587,033,364,000
207,499,661
1
0
null
null
null
null
UTF-8
Lean
false
false
1,627
lean
import data.cpi.semantics.relation namespace cpi namespace congruence variables {ℍ : Type} {ω : context} open_locale congruence open species.equiv axiom prime_decompose_parallel {Γ} (A B : species ℍ ω Γ) : prime_decompose (A |ₛ B) = prime_decompose A + prime_decompose B axiom prime_decompose_equiv {Γ} {A B : speci...
44cc4f7d1879e282079c4ba47f56f24d7fbc7035
1d335ec6ac4181a0a762b12797936770cc9fcef9
/override/timeOverride.lean
da72388a0ddc5076bcdc36b4ac9f92db2854b5ac
[]
no_license
rohanrajnair/lang
dbadcc3997e44245ca84d48dc1733cf09a2605a6
3beb4e29d8faa692983a55fa18acb6eb947134e8
refs/heads/master
1,672,640,379,424
1,597,948,771,000
1,597,948,771,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
335
lean
import ..imperative_DSL.environment import ..eval.timeEval open lang.classicalTime def assignTime : environment.env → lang.classicalTime.var → lang.classicalTime.expr → environment.env | i v e := environment.env.mk i.g (λ r, if (varEq v r) then (classicalTimeEval e i) else (i.t r)) ...
c21fcc910d468859de854386a81b33e75b91ea0a
5e3548e65f2c037cb94cd5524c90c623fbd6d46a
/src_icannos_totilas/aops/2021-USAJMO-Problem_1.lean
178b18a244080fc9cb00e106803577e7db0a200d
[]
no_license
ahayat16/lean_exos
d4f08c30adb601a06511a71b5ffb4d22d12ef77f
682f2552d5b04a8c8eb9e4ab15f875a91b03845c
refs/heads/main
1,693,101,073,585
1,636,479,336,000
1,636,479,336,000
415,000,441
0
0
null
null
null
null
UTF-8
Lean
false
false
166
lean
theorem USAJMO_Problems_Problem_1 : forall f: pnat -> pnat, (forall (a b: pnat), f(a*a + b*b) = f(a)* f(b) /\ f(a*a) = f(a)*f(a)) -> forall n, f n = 1 := sorry
20fe980613ce8164674faa739bc890b2827163ed
dd0f5513e11c52db157d2fcc8456d9401a6cd9da
/03_Propositions_and_Proofs.org.16.lean
989b676ece5baf1922f60b9f010f0d35b0b502ef
[]
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
159
lean
/- page 38 -/ import standard variables p q r s : Prop premises (H1 : q → r) (H2 : p → q) theorem t2 : p → r := assume H3 : p, show r, from H1 (H2 H3)
d78e250f0a5178a69b37d132ac9fd406fc668f35
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/tests/lean/run/meta3.lean
6b9d20118bfb2f5b64ee266b5c04024c6cc87062
[ "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,060
lean
import Init.Lean.Meta open Lean open Lean.Meta def dbgOpt : Options := let opt : Options := {}; let opt := opt.setBool `trace.Meta true; -- let opt := opt.setBool `trace.Meta.check false; opt def print (msg : MessageData) : MetaM Unit := trace! `Meta.debug msg def check (x : MetaM Bool) : MetaM Unit := unlessM x $ t...
9ccbbafb9fd8cd4d24eb2c74d20a1eed5d7b4de5
d406927ab5617694ec9ea7001f101b7c9e3d9702
/src/order/category/Frame.lean
f50e545168f0049b81e292dd78366c0049db068f
[ "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
2,453
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 order.category.Lattice import order.hom.complete_lattice import topology.category.CompHaus.basic import topology.sets.opens /-! # The category of frames This fil...
3b93bb8d70b35e8b2b280433ae30277291b29465
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/src/tactic/linarith/parsing.lean
92fa3f1760f59c374cfd9dca956db9333c768147
[ "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
7,532
lean
/- Copyright (c) 2020 Robert Y. Lewis. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Robert Y. Lewis -/ import tactic.linarith.datatypes /-! # Parsing input expressions into linear form `linarith` computes the linear form of its input expressions, assuming (without...
68e6241f9b75e95ce8e5bce9499cde7a3a4b1e5e
f5f7e6fae601a5fe3cac7cc3ed353ed781d62419
/src/data/list/basic.lean
ecabf6ee77994c5d6a8f7c78e90930703563af91
[ "Apache-2.0" ]
permissive
EdAyers/mathlib
9ecfb2f14bd6caad748b64c9c131befbff0fb4e0
ca5d4c1f16f9c451cf7170b10105d0051db79e1b
refs/heads/master
1,626,189,395,845
1,555,284,396,000
1,555,284,396,000
144,004,030
0
0
Apache-2.0
1,533,727,664,000
1,533,727,663,000
null
UTF-8
Lean
false
false
192,205
lean
/- Copyright (c) 2014 Parikshit Khanna. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro Basic properties of lists. -/ import tactic.interactive tactic.mk_iff_of_inductive_prop tactic...
b286eedc8228509a6e306fabe8f9a4719b0f043a
22e97a5d648fc451e25a06c668dc03ac7ed7bc25
/src/control/fold.lean
b0dfde04d7d1329e58e7ca6e7a875d27e566bf9b
[ "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
14,579
lean
/- Copyright (c) 2018 Simon Hudon. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Simon Hudon, Sean Leather List folds generalized to `traversable`. Informally, we can think of `foldl` as a special case of `traverse` where we do not care about the reconstructed data s...
d962933089418586378b8f94d6d099a923c2e3b3
556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e
/src/starkware/cairo/common/cairo_secp/verification/verification/signature_recover_public_key_code.lean
4338dafb5375d6987d9164f80f7a99fb2b91de8d
[]
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
50,482
lean
/- File: signature_recover_public_key_code.lean Autogenerated file. -/ import starkware.cairo.lean.semantics.soundness.hoare variables {F : Type} [field F] [decidable_eq F] /- function starkware.cairo.common.math.assert_nn code definition -/ def starkware.cairo.common.math.code_assert_nn : list F := [ 'assert_eq[...
9520d456dd9b4b02d8d70e2b69c093b3825923e7
b7f22e51856f4989b970961f794f1c435f9b8f78
/tests/lean/run/pquot.lean
282d67a64642e985a92edd3568c44a524e57f268
[ "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
5,415
lean
import logic.cast data.list data.sigma -- The (pre-)quotient type kernel extension would add the following constants -- quot, pquot.mk, pquot.eqv and pquot.rec -- and a computational rule, which we call pquot.comp here. -- Note that, these constants do not assume the environment contains = constant pquot.{l} {A : T...
79b5626a3edb33d018c9368f33c2030e76336b01
46125763b4dbf50619e8846a1371029346f4c3db
/src/measure_theory/l1_space.lean
0c8bc013293fcefc5afe43debc9f5749698ae230
[ "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
28,186
lean
/- Copyright (c) 2019 Zhouhang Zhou. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Zhouhang Zhou -/ import measure_theory.ae_eq_fun /-! # Integrable functions and `L¹` space In the first part of this file, the predicate `integrable` is defined and basic properties ...
8ee0f9b0ba841c3036864942e49885f6fded4244
8b8ab1eba67c5c35b51ab27fcf8151aab660e44d
/subgroups.lean
848658277394b11bb009c260def1a1f22c285232
[]
no_license
PatrickMassot/lean-scratchpad
ab5e89b69034cc699bf234852822acf74b50f2b9
03eec3bfabfc218b79dcbe7c7712bfa024a02625
refs/heads/master
1,626,995,046,509
1,538,577,853,000
1,538,577,853,000
115,135,779
1
2
null
1,522,993,992,000
1,513,962,994,000
Lean
UTF-8
Lean
false
false
2,532
lean
import data.set data.equiv import algebra.group variables {G : Type*} [group G] class is_subgroup (H : set G): Prop := (mul_ : ∀ g h, g ∈ H → h ∈ H → g*h ∈ H) (inv_ : ∀ g, g ∈ H → g⁻¹ ∈ H) (one_ : (1:G) ∈ H) namespace is_subgroup variables { H : set G } [is_subgroup H] { x y : G } lemma mul : x ∈ H → y ∈ H → x*y ∈ ...
c09f1f4c59505d065bb6c40cbc68dd86fc934bf4
fa02ed5a3c9c0adee3c26887a16855e7841c668b
/counterexamples/linear_order_with_pos_mul_pos_eq_zero.lean
bf5a6191ed537d1dc150b87b925b12af373418da
[ "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
2,291
lean
/- Copyright (c) 2021 Johan Commelin (inspired by Kevin Buzzard, copied by Damiano Testa). All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Johan Commelin (inspired by Kevin Buzzard, copied by Damiano Testa) -/ import algebra.ordered_monoid /-! An example of a `linear_o...
f34ab7ff1bf0ba0f8034f1e06471380c47a69262
9be442d9ec2fcf442516ed6e9e1660aa9071b7bd
/stage0/src/Lean/Elab/Deriving/Inhabited.lean
0fefc397fd9664010aa23272d656be330ef89a62
[ "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
5,439
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.Deriving.Basic namespace Lean.Elab open Command open Meta private abbrev IndexSet := Std.RBTree Nat compare private abbrev LocalInst2Inde...
579ca670a62d37ba275687ad34b9ba2570b25554
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/special_functions/trigonometric/bounds.lean
936a9e1e984345c9f6094fa92b948b3e1bd07248
[ "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
6,426
lean
/- Copyright (c) 2022 David Loeffler. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: David Loeffler -/ import analysis.special_functions.trigonometric.arctan_deriv /-! # Polynomial bounds for trigonometric functions > THIS FILE IS SYNCHRONIZED WITH MATHLIB4. > Any ch...
2d8533b0b20c499f67257fe1fca4125792a25d21
6e44fda625e48340c6ffc7b1109a9e3b208e5384
/src/metric_spaces/examples.lean
d4c5ef63e400f17aa2563f69e9989da3b3df0dbe
[]
no_license
JasonKYi/learn_mspaces
9f998a265b907af6be6a54061637fcf1f6d1ee9d
54083e81da420d2d362a7024a8c86bea8529fe66
refs/heads/master
1,619,008,842,896
1,609,897,382,000
1,609,897,382,000
249,780,600
5
0
null
null
null
null
UTF-8
Lean
false
false
2,014
lean
import metric_spaces.definitions noncomputable theory open set namespace examples -- Declaring X and element x with type X inductive X : Type | x : X -- A metric that maps everything to zero is a metric on X instance metric_space_example_X : metric_space X := { dist := λ _ _, 0, dist_self := λ _, rfl, eq_of_di...
ae9cca68031809e1974b40d0f78f71537ef12581
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/pp_char_bug.lean
11742746f13d63081b3d0edef0d8b27369b49bb1
[ "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
412
lean
#check (fin.mk 2 dec_trivial : fin 5) #check (fin.mk 1 dec_trivial : fin 3) #check 'a' #check to_string 'a' #eval to_string 'a' #eval 'a' #eval char.of_nat 1 #eval char.of_nat 1 #eval char.of_nat 20 #check char.of_nat 1 #check char.of_nat 20 #check char.of_nat 15 #check char.of_nat 16 #eval char.of_nat 15 #eval char....
65bf7d0cd877c36fb2126e6e4890b8707a7ff339
737dc4b96c97368cb66b925eeea3ab633ec3d702
/src/Lean/Server/Utils.lean
63f2a5cbc2ee3b9780382cb29a9b2a8fd01ef848
[ "Apache-2.0" ]
permissive
Bioye97/lean4
1ace34638efd9913dc5991443777b01a08983289
bc3900cbb9adda83eed7e6affeaade7cfd07716d
refs/heads/master
1,690,589,820,211
1,631,051,000,000
1,631,067,598,000
null
0
0
null
null
null
null
UTF-8
Lean
false
false
5,318
lean
/- Copyright (c) 2020 Wojciech Nawrocki. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Wojciech Nawrocki, Marc Huisinga -/ import Lean.Data.Position import Lean.Data.Lsp import Lean.Server.InfoUtils import Init.System.FilePath namespace IO def throwServerError (err...
42136f388a0ee690b3582779f2cc94dfeff7255c
624f6f2ae8b3b1adc5f8f67a365c51d5126be45a
/tests/playground/environment_extension.lean
dfb3896cf780dcbf9b408aaf3551a35dd87824e3
[ "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
6,090
lean
import init.lean init.lean.parser.syntax namespace Lean /-- An extension of the State held by an `environment` object. The new State holds objects of Type `entryTy`, which optionally are persisted to the .olean file and collected when loading imports. Objects can be retrieved using an appropriate `stateTy`...
96ffed4a88b080b7665c366bcd99f6d920c2a6a6
85d23ae5fcdcd77981feb67549852ff901e8a583
/fi.lean
890e81e6b0c04441961667cb80dc0d3211fd1f47
[]
no_license
javra/cubes
5b480abcf1a869335a82b4fb5357ec4d16ab56bc
734bdf71b9086b0ba9ef7dba3ede0c71f10872cc
refs/heads/master
1,611,513,591,851
1,489,495,303,000
1,489,495,303,000
84,469,571
0
0
null
null
null
null
UTF-8
Lean
false
false
1,104
lean
inductive fi : ℕ → Type | zero : Π {n}, fi (n + 1) | suc : Π {n}, fi n → fi (n + 1) open fi namespace fi instance {n : ℕ} : has_zero (fi (n + 1)) := ⟨ fi.zero ⟩ def fi_to_nat : Π {n}, fi n → ℕ | (n + 1) fi.zero := nat.zero | (n + 1) (suc i) := nat.succ (fi_to_nat i) instance fi_nat_coe {n : ℕ} : has_coe (fi n) ℕ :...
d42f6cd5e28994f50dd78c82ae5dd8872adcf9a3
cf39355caa609c0f33405126beee2739aa3cb77e
/tests/lean/run/kabstract_cache.lean
fb2bf6f91b8b46f8bb253402fea5e0011ec0aec4
[ "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
259
lean
open tactic example {α : Type} (f : α → α → α) (a b : α) (H₁ : a = b) (H₂ : f b a = a) : let c := a in f c c = c := by do dsimp_target, e ← get_local `H₁, rewrite_target e {occs := occurrences.pos [1]}, get_local `H₂ >>= exact
730ac8b5d9c13495dc43c93b2d22705de1304974
8cae430f0a71442d02dbb1cbb14073b31048e4b0
/src/analysis/special_functions/non_integrable.lean
d193676c5f1ae672ad312d29f562f0f597c40ebb
[ "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,707
lean
/- Copyright (c) 2021 Yury Kudryashov. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Authors: Yury Kudryashov -/ import analysis.special_functions.log.deriv import measure_theory.integral.fund_thm_calculus /-! # Non integrable functions > THIS FILE IS SYNCHRONIZED WITH MATHL...