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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
11ceeaba061a5f4b45994e035fb2e705b5cfd582 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Meta/Match/MatchEqs.lean | 60304283f0a891c8492e0489a59b2814273015c9 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,256 | 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.Meta.Match.Match
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Delta
import Lean.Meta.Tactic.SplitIf
namespace Lean.Meta
/--
Helper ... |
caecbfed455aa6942802e925b91d46397ad6d426 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Parser/Basic.lean | e1c2d5c1af061e235e4f6454e8d30c88532746ca | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 64,397 | 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
-/
import Lean.Parser.Types
/-!
# Basic Lean parser infrastructure
The Lean parser was developed with the following primary goals in mind:... |
760c797d8e5fb921926a1944b09fb49503246902 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/alternating.lean | b7d4d53aba0f82d606f12964aaf3022e3f650612 | [
"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 | 35,996 | lean | /-
Copyright (c) 2020 Zhangir Azerbayev. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Zhangir Azerbayev
-/
import linear_algebra.multilinear.basis
import linear_algebra.multilinear.tensor_product
import linear_algebra.linear_independent
import group_the... |
69974b29dfbcb03ae81baee1a4a9db3d81945d08 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/group_action_hom.lean | 87d97d1a98f31f3defcd641c514333d3f6a473ef | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 10,522 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.group_ring_action
/-!
# Equivariant homomorphisms
## Main definitions
* `mul_action_hom M X Y`, the type of equivariant functions from `X` to `Y`, where `M` i... |
b1ecb77fac65939a36038d63e031375a15e1bd39 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/IR/SimpCase.lean | 17b13f41ce6d04b283af1268d40e99155a7ae722 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,306 | 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.Compiler.IR.Basic
import Lean.Compiler.IR.Format
namespace Lean.IR
def ensureHasDefault (alts : Array Alt) : Array Alt :=
if alts.any Alt.is... |
4d25521aaecea65881998e60b00b6d48f2e4c220 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/pfunctor/multivariate/basic.lean | 1eaf2719b1231d426b8aea4002e600ad034806c4 | [
"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 | 6,540 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Simon Hudon
-/
import control.functor.multivariate
import data.pfunctor.univariate
import data.sigma
/-!
# Multivariate polynomial functors.
Multivariate polynomial func... |
9a64c39fd9817314092233019b8a96dd01510608 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /tests/lean/run/group4.lean | 4a72cae5e402c74f9f89cbc5f4c68c25a8258615 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,142 | 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
-- algebra.group
-- =============
-- Various structures with 1, *, inv, including groups.
import logic.eq
import data.unit data.sigma data.prod... |
df717421130264eecb9b9fc987328977861606b2 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Elab/Util.lean | e62d96e86660a3b96f7ab344d10ba21f2c765acc | [
"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 | 7,428 | 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.Util.Trace
import Lean.Parser.Extension
import Lean.KeyedDeclsAttribute
import Lean.Elab.Exception
namespace Lean
def Syntax.prettyPrint (stx ... |
d907efb8ab09174c345dd01e77c934e86c95d006 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Binary.lean | 7a0edd03b804904aa5e9616097839d4c88946ee8 | [
"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 | 759 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
import Mathport.Util.System
import Mathport.Bridge.Rename
import Mathport.Bridge.Config
import Mathport.Binary.Basic
import Mathport.Binary.Apply
import Mathpor... |
1f8e33c9db5b2f21e52dec048a83f60a0b84fbdb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/probability/martingale/centering.lean | 67cbf109ecc9cbdfb49a1bcdefb47ffb8758a11a | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 7,555 | lean | /-
Copyright (c) 2022 RΓ©my Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: RΓ©my Degenne
-/
import probability.martingale.basic
/-!
# Centering lemma for stochastic processes
Any `β`-indexed stochastic process which is adapted and integrable can be written as... |
7cf0fa2a7524c8dc8ca8b3783e2c4555fb08efa7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/preserves/shapes/biproducts.lean | 54811cb035b014eaf4e750ffa87be784a7716855 | [
"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 | 15,130 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.biproducts
import category_theory.limits.preserves.shapes.zero
/-!
# Preservation of biproducts
We define the image of a (binary)... |
ab42b47605dd6e82e2c07c85982872a204809da0 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/resolve_name_bug.lean | 3b2d539f81b2289f0e36cedb026c9537b4c7d535 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 413 | lean | open tactic
constant f : nat β nat
meta def check_expr (p : pexpr) (t : expr) : tactic unit :=
do e β to_expr p, guard (t = e)
namespace foo
axiom f_lemma1 : f 0 = 1
namespace bla
axiom f_lemma2 : f 1 = 2
def g (a : nat) := a + 1
example : g 0 = 1 :=
begin
unfold g
end
example : f (f 0) = 2 :=
by rewrite [f_lem... |
c15ffa4c67bf8634e75eb639fd67a50f8f618faf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/continued_fractions/computation/translations.lean | 01630d58ce8d40e6b1898d064aab01f16d1b975e | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,889 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.continued_fractions.computation.basic
import Mathlib.algebra.continued_fraction... |
d3a5a4c9957021a51b7a3b73fdd5f7065a12a1a0 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/compiler/phashmap3.lean | 33fbeb222158ecd77ca7fa947c45c6ffc8ea9116 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,842 | lean | #lang lean4
import Std.Data.PersistentHashMap
import Lean.Data.Format
open Lean Std Std.PersistentHashMap
abbrev Map := PersistentHashMap Nat Nat
partial def formatMap : Node Nat Nat β Format
| Node.collision keys vals _ => Format.sbracket $
keys.size.fold
(fun i fmt =>
let k := keys.get! i;
let v... |
bb24a2c0f3ae54435fcc489f01b1af625d5804a8 | 1d265c7dd8cb3d0e1d645a19fd6157a2084c3921 | /src/chapter_exercises/chap4_exercises.lean | b8fa3abd28677b61acb0d279068933b94d584770 | [
"MIT"
] | permissive | hanzhi713/lean-proofs | de432372f220d302be09b5ca4227f8986567e4fd | 4d8356a878645b9ba7cb036f87737f3f1e68ede5 | refs/heads/master | 1,585,580,245,658 | 1,553,646,623,000 | 1,553,646,623,000 | 151,342,188 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 13,364 | lean | -- Exercise 1
variables (Ξ± : Type) (p q : Ξ± β Prop)
example : (β x, p x β§ q x) β (β x, p x) β§ (β x, q x) :=
begin
apply iff.intro,
assume forward,
apply and.intro,
assume x,
show p x, from (forward x).1,
assume x,
show q x, from (forward x).2,
... |
0517aeb6c5a426fa50deb7d018e05b04735d9b2f | b147e1312077cdcfea8e6756207b3fa538982e12 | /data/seq/wseq.lean | 78bb77f3d92de8edd824c55b78cd1c70d46fe247 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,138 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.seq.seq data.seq.computation data.list.basic data.dlist
universes u v w
/-
coinductive wseq (Ξ± : Type u) : Type u
| nil : wseq Ξ±
| cons : Ξ± β wseq ... |
22949a53a4a684cca184cd72fd476729ac799544 | 4f065978c49388d188224610d9984673079f7d91 | /localization.lean | a3e4ab7d435df1eb147e8be25633df2ca1a31d4f | [] | no_license | kckennylau/Lean | b323103f52706304907adcfaee6f5cb8095d4a33 | 907d0a4d2bd8f23785abd6142ad53d308c54fdcb | refs/heads/master | 1,624,623,720,653 | 1,563,901,820,000 | 1,563,901,820,000 | 109,506,702 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 17,976 | lean | import algebra.ring algebra.module data.set.basic tactic.ring data.equiv data.quot
-- remove "data.equiv" in PR version
-- ring.localization
universes u v
-- <migrations>
-- <move to algebra.group>
class is_submonoid (Ξ± : Type u) [monoid Ξ±] (S : set Ξ±) : Prop :=
(one_mem : (1:Ξ±) β S)
(mul_mem : β {s t}, s β S β t β... |
f7da1f1b9f1299da3d01991c109503f15d95b71a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_cc6.lean | 903ef247def426edbacbfedc6c8c889ec8f142c7 | [
"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 | 501 | lean | import data.list
set_option blast.strategy "cc"
open perm list
definition tstβ
(A : Type) (lβ lβ lβ lβ lβ
: list A) :
(lβ ~ lβ) β (lβ ~ lβ) β (lβ ++ lβ ++ lβ
++ lβ ++ lβ) ~ (lβ ++ lβ ++ lβ
++ lβ ++ lβ) :=
by blast
print tstβ
definition tstβ
(A : Type) (lβ lβ lβ lβ lβ
: list A) :
(lβ ~... |
a79633b3d4799fa19caf39a4cf10e9e9a440bf4a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/reduce3.lean | edf914f4976b101bb98e6481fbdea344a7cab69c | [
"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 | 772 | lean | def fact : Nat β Nat
| 0 => 1
| (n+1) => (n+1)*fact n
#check fact 6
#eval fact 10
-- set_option pp.all true
theorem tst1 : 100000000000 + 200000000000 = 300000000000 :=
rfl
theorem tst2 : 100000000000 * 200000000000 = 20000000000000000000000 :=
rfl
theorem tst3 : fact 7 = 5040 :=
rfl
theorem tst4 : fact 10 = ... |
ac26b6cd4a88c70e0d3832e7ddebb72d49c0eb83 | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/tactic/rewrite_search/metric/edit_distance/svm.lean | 660a2aa344ea1c53e4c03239f39014aa1ed188eb | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,638 | lean | import libk
import lib.num
import tactic.rewrite_search.core
import tactic.rewrite_search.metric.edit_distance.core
open tactic.rewrite_search
open tactic.rewrite_search.edit_distance
open tactic.rewrite_search.metric.edit_distance
namespace tactic.rewrite_search.metric.edit_distance.weight.svm
variables {Ξ± Ξ΄ : Typ... |
523cc26c3920f729d79efa1f418d5e9d46edb44a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/lie/submodule.lean | 21a63d19cb169a4b085d593a2360cda8314e3b61 | [
"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 | 36,486 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.subalgebra
import ring_theory.noetherian
/-!
# Lie submodules of a Lie algebra
In this file we define Lie submodules and Lie ideals, we construct the l... |
487971ddd1b3d704faacadb1210142f172103dbe | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/multiset/default.lean | 4ff176e7463fa160438e696e233535d9277baf27 | [] | 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 | 630 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.multiset.antidiagonal
import Mathlib.data.multiset.basic
import Mathlib.data.multiset.erase_dup
import Mathlib.data.multiset.finset_ops
import Mathlib.data.multiset.fold
import Mathlib.data.multiset.functor
import Mathlib.data.multiset.inte... |
fa83160516a834fac5fc232a739c864084218f6d | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/abelian/basic.lean | fd30cb0b6e4e36f753ec3b3c6263bd3b0ee184b5 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 22,941 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.constructions.pullbacks
import category_theory.limits.shapes.regular_mono
import category_theory.limits.shapes.biproducts
import c... |
1b3d061f0f448e42b827654188d294b8981cc9cb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/jensen.lean | e65f7726f8ea6570d7604bef0fcb9526a70fdd23 | [
"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,828 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import analysis.convex.combination
import analysis.convex.function
/-!
# Jensen's inequality and maximum principle for convex functions
> T... |
85ec03e1559a1f9b904dc1527df263bc0f54b86b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/pnat/basic.lean | e67d52cbb6f8cd6aaa6a9b05a1feb4394e473ddb | [
"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 | 16,149 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Neil Strickland
-/
import data.nat.basic
/-!
# The positive natural numbers
This file defines the type `β+` or `pnat`, the subtype of natural numbers that are ... |
cd0bc16d9344add012b8be7a86e08c3c162ff0b7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/homeomorph.lean | edadf75d322b0f0c942072cafd77d5235c8bc5e3 | [
"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 | 23,565 | 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, Patrick Massot, SΓ©bastien GouΓ«zel, Zhouhang Zhou, Reid Barton
-/
import logic.equiv.fin
import topology.dense_embedding
import topology.support
/-!
# Homeomorphisms
This... |
ddd876169f900b5561d362f5f4217ba78c321e8e | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/polynomial/algebra_map.lean | 4e32efcf8acf3d67ad5e966d822478f02b495e33 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 7,757 | 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.eval
/-!
# Theory of univariate polynomials
We show that `polynomial A` is an R-algebra when `A`... |
bd010c5b0fa6e2e7242b1b9bc7fe7406f7918751 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2022/logic/sheet2.lean | 5b29aed1d82e560905c34b16f731270554fe44ae | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 1,357 | lean | /-
Copyright (c) 2022 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Kevin Buzzard
-/
import tactic -- imports all the Lean tactics
/-!
# Logic in Lean, example sheet 2 : `true` and `false`
We learn about the `true` and `false` propositions.
## Tact... |
ace176a7a806dff0f959f6aa95cdc13c7850757f | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/order/game_add.lean | c72282c7729f9149634e59853e6331cf68d31e30 | [
"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,887 | lean | /-
Copyright (c) 2022 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu
-/
import logic.relation
import order.basic
/-!
# Game addition relation
This file defines, given relations `rΞ± : Ξ± β Ξ± β Prop` and `rΞ² : Ξ² β Ξ² β Prop`, a relation
`prod.game_a... |
8bf102987b61ac888cb5a30ca1376201af895e0c | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/analysis/complex/basic.lean | 99506b4c4311e97773fa2fa1cb30001714194c50 | [
"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 | 7,287 | lean | /-
Copyright (c) SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import analysis.calculus.times_cont_diff
import analysis.normed_space.finite_dimension
/-!
# Normed space structure on `β`.
This file gathers basic facts on comple... |
2984443623d9828ed5b8a6ef511beccf50300257 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/hit/sphere.hlean | 76fa23120327b15d1fc23a5f2462ee4a12ab1ac1 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,535 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: hit.circle
Authors: Floris van Doorn
Declaration of the n-spheres
-/
import .suspension
open eq nat suspension bool is_trunc unit
/-
We can define spheres with the following po... |
c863111beb379efc6dd44d45242094953ff5eff2 | 618003631150032a5676f229d13a079ac875ff77 | /src/ring_theory/subring.lean | 8b4d4ead83286378bea191c2c8333f0e7796d7a8 | [
"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 | 8,255 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import group_theory.subgroup
universes u v
open group
variables {R : Type u} [ring R]
section prio
set_option default_priority 100 -- see Note [default priority]
... |
7ab0e6fe91106fd2d492b869d0a2d85d05c11b2f | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/ulift.lean | df5de71693be7f44c6d59b8b21f59ebb0eb2487d | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 633 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
Transport through constant families.
-/
universes uβ uβ
@[simp] lemma plift.rec.constant {Ξ± : Sort uβ} {Ξ² : Sort uβ} (b : Ξ²) : @plift.rec Ξ± (Ξ» _, Ξ²) (Ξ» _, b) = Ξ» _, b... |
d686db0f210d7b59b7c445926678db66f5cef07c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/sites/surjective.lean | ecaac4b81c737535d837752fda501d4786f4472f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,302 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.sites.subsheaf
import category_theory.sites.compatible_sheafification
/-!
# Locally surjective morphisms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4... |
e1a3dc88031cc5fc9ae6d760d8e871a22dd69d24 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/mllist.lean | 5709e520a58ad2aaf7e6362e19078f4d56b8c275 | [
"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 | 5,316 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carnerio, Keeley Hoek, Simon Hudon, Scott Morrison
Monadic lazy lists.
The inductive construction is not allowed outside of meta (indeed, we can build infinite objects).
This is... |
1fd675ed430098d365fa44cdb7b54016497ca848 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/complex/upper_half_plane/basic.lean | b92328ac579228f5ad05b7a8c939473c4429b3a2 | [
"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 | 14,852 | lean | /-
Copyright (c) 2021 Alex Kontorovich and Heather Macbeth and Marc Masdeu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Kontorovich, Heather Macbeth, Marc Masdeu
-/
import data.fintype.parity
import linear_algebra.matrix.special_linear_group
import analysis.com... |
6f0add6302f9c2c56b7e22ca13045500de968386 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/polyhedral_lattice/pseudo_normed_group.lean | 86a4ace7a95d7ff186534b6e83c2891dd907429b | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,055 | lean | import polyhedral_lattice.basic
import normed_group.pseudo_normed_group
import pseudo_normed_group.with_Tinv
import topology.connected
import facts
/-!
# If M is a profinitely filtered pseudo-normed group with Tβ»ΒΉ then so is Hom(Ξ, M)
Here Ξ is a polyhedral lattice, and the Tβ»ΒΉ is in the sense
of `pseudo_normed_gro... |
5305118340b4e759fc52454c8547ef145c86db6c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/converter/interactive.lean | 5f490adc51314c079c27a8f56914ab998cee974b | [] | 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 | 426 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Keeley Hoek, Leonardo de Moura
Converter monad for building simplifiers.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.core
... |
4475518999ddf736aa8258559038d9d240745d9a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/bool/basic.lean | d1a90f2db5395dd243ee2fe9fb49b578200cd4cb | [
"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,875 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
/-!
# booleans
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
This file pro... |
392c32c2f69016d14e11e77cbc75a184630d93c0 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/metric_space/closeds.lean | 65dce2d63b87b7f7d95ff619e94f2f23ef38e7e6 | [
"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,167 | lean | /-
Copyright (c) 2019 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import analysis.specific_limits.basic
import topology.metric_space.hausdorff_distance
import topology.sets.compacts
/-!
# Closed subsets
This file defines the... |
88a085b067718ef767d18eb29f9e0b4c548dc85d | 618003631150032a5676f229d13a079ac875ff77 | /src/number_theory/pell.lean | 57e38c6f2d921aadb5d4a741a90c307be131afaf | [
"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 | 37,126 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.modeq
import data.zsqrtd.basic
import tactic.omega
namespace pell
open nat
section
parameters {a : β} (a1 : a > 1)
include a1
private def d :... |
13ec809e2ca988067e17aff99c11abbb2071d24b | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/continuous_function/stone_weierstrass.lean | fe7cdff481cbeaea2ea9a1479c8fae87bb9c4360 | [
"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 | 20,841 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Heather Macbeth
-/
import topology.continuous_function.weierstrass
import data.is_R_or_C.basic
/-!
# The Stone-Weierstrass theorem
If a subalgebra `A` of `C(X, β)`, w... |
4af658fb478439f0e94bbd7fd5523369a61fe1aa | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/t5.lean | d72a271d41b6e93c03a8f292ee5d9d35b689de54 | [
"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 | 292 | lean | constant N : Type.{1}
constant f : N β N
constant a : N
noncomputable definition g (a : N) : N := f a
#check g
namespace foo
noncomputable definition h : N := f a
#check h
private noncomputable definition q : N := f a
#check q
end foo
#check foo.h
#check q -- Error q is now hidden
|
ca1a959537af8d5c395d7f9d8b8f6258f2fa10ae | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/ideal/operations.lean | 1fb417aad7041550cd6abc5df75489bb4f886679 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,143 | 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.quotient
import ring_theory.non_zero_d... |
653018dfd0ae8c5105b20284ea9c45250ce11d55 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/metric_space/baire.lean | e76428dec6f669f4453b51cbaa2e139521debecf | [
"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 | 17,650 | lean | /-
Copyright (c) 2019 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import analysis.specific_limits.basic
import order.filter.countable_Inter
import topology.G_delta
import topology.sets.compacts
/-!
# Baire theorem
In a compl... |
14a3bd5b560ee49a55db7e5516672c8aa15e978c | 5d95c8513fa8592ce314d1f40c23ad5eecfe1e34 | /src/algebra/theories/magma.lean | 59f3642943a0c89850e7fbd90d4781cf4db4ae08 | [
"Apache-2.0"
] | permissive | solovay/lean-universal | 6b792513ced2fe82218e7828400743375dd59e24 | 417ed5e1b030e547912cbfefe34df9d3d01c2b65 | refs/heads/master | 1,598,052,603,315 | 1,565,981,123,000 | 1,565,981,123,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,961 | lean | -- Copyright Β© 2019 FranΓ§ois G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
import .basic
import .action
namespace algebra
signature magma (Ξ± : Type*) :=
(op : Ξ± β Ξ± β Ξ±)
namespace magma_sig
variables {Ξ± : Type*} (s : magma_sig Ξ±)
@[signature_instance]
defini... |
c42f7f205d112f82b780fe4271fffe7eec17a2d4 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/handlers.lean | 851ac56174a8fd1aaa3cd0d5c94cad4cce9b15cc | [
"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 | 4,794 | lean | import Init.System.IO
#exit
/- Based on https://github.com/slindley/effect-handlers -/
def N := 100 -- Default number of interations for testing
namespace handlers
class isOp (op : Type β Type β Type*) := mk {} ::
(return : Type β Type β Type)
class handler (h : Type) := mk {} ::
(Result : Type)
class handles (h... |
c4f22f0f60e26abe2abfc5d412f536108194d9d6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/shapes/products.lean | 0cfa61bca854a573ff2c1d7d8f82a69ec08eea53 | [
"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,078 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.has_limits
import category_theory.discrete_category
noncomputable theory
universes v u uβ
open category_theory
namespa... |
2aa897e76f333161fb3d912dcdfaa0138df40beb | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/compiler/ir/normids.lean | c271977c02d88e15e93038cdeff25f87cbebae53 | [
"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 | 7,508 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.control.reader
import init.control.conditional
import init.lean.compiler.ir.basic
namespace Lean
namespace IR
namespace UniqueIds
abbr... |
34479e25b9043002d677c2360190d7d923458434 | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/struct_value.lean | 2502a8f0bce79fb1b3652b2af6010a1eed461cd4 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 743 | lean | check { prod . fst := 10, snd := 20 }
check ({ fst := 10, snd := 20 } : nat Γ nat)
definition p : nat Γ nat :=
{ snd := 20, fst := 10 }
print p
definition attr : user_attribute :=
{ name := `foo, descr := "hello world" }
print attr
definition p2 :=
{ p with fst := 20 }
print p2
structure point :=
(x : nat) (y :... |
643e979cc9a6ceb0226a7d41b7c6ae044788594f | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/order/basic.lean | 07fc38f7c5a7f0b4301f54b164ca18a003e6c482 | [
"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 | 24,447 | 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 data.subtype
import data.prod
/-!
# Basic definitions about `β€` and `<`
## Definitions
### Predicates on functions
- `monotone f`: a function... |
12291fcc6d5e070c482b86c41f8e08d3ed7ab6b7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/group_theory/perm/subgroup.lean | 740de3bd942c7e6e05fbdacc822383ad7ad58278 | [
"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 | 3,163 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.perm.basic
import data.fintype.basic
import group_theory.subgroup.basic
/-!
# Lemmas about subgroups within the permutations (self-equivalences) of a ty... |
5c800ab7086a333a7e0f10ce500e328244349329 | 54deab7025df5d2df4573383df7e1e5497b7a2c2 | /data/list/default.lean | b1ebcebc482952809ff64fb9249e32264f0247e8 | [
"Apache-2.0"
] | permissive | HGldJ1966/mathlib | f8daac93a5b4ae805cfb0ecebac21a9ce9469009 | c5c5b504b918a6c5e91e372ee29ed754b0513e85 | refs/heads/master | 1,611,340,395,683 | 1,503,040,489,000 | 1,503,040,489,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 181 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import data.list.comb
|
e7f9b93b5a6c0c0a569c8d4d29d2fd3d6435d4c6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/filter/default_auto.lean | dd5a593fd451ad7980bbad66399863ba14f1b47e | [] | 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 | 151 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.filter.partial
import Mathlib.PostPort
namespace Mathlib
end Mathlib |
6ddc9a46bde2a9f4f9969d45f5308be401fa7ac8 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/complex/basic.lean | a475d7eca7f076a8eaa6f45821d25d3e57a24b8b | [
"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 | 18,273 | lean | /-
Copyright (c) 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.complex.module
import data.complex.exponential
import data.is_R_or_C.basic
import topology.algebra.infinite_sum.module
import topology.instances.real_vec... |
33c7aa105477dac941830f75c693b4db2326e290 | 618003631150032a5676f229d13a079ac875ff77 | /src/analysis/calculus/tangent_cone.lean | ff983c34682022e5ddce95c8c0f47dc4243ce70d | [
"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 | 16,507 | lean | /-
Copyright (c) 2019 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import analysis.convex.basic
import analysis.normed_space.bounded_linear_maps
import analysis.specific_limits
/-!
# Tangent cone
In this file, we define two p... |
c4faf7fa9c19c61a7234d0f88ac7085bc5380e4d | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/linear_algebra/basic.lean | c5f57af708f5918a2c11025c05632e50af6657e6 | [
"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 | 97,826 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov
-/
import algebra.pi_instances
import data.finsupp
import algebra.pointwise
/-!
# Linear algebra
This file defines the ... |
4e8997c279bc4a9da02c1a401c265fb0412a1ab7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/IR/RC.lean | 557a72de79c92d8f40fd9376cf1337d851a859cb | [
"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 | 12,349 | 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.Runtime
import Lean.Compiler.IR.CompilerM
import Lean.Compiler.IR.LiveVars
namespace Lean.IR.ExplicitRC
/-! Insert explicit RC instructions. So... |
72be85ed780a4e77742f3d802e00800b9c05dc49 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed/group/seminorm.lean | 9ee6ab03cfe6011d68a60c88e1f3d9eeae6b785f | [
"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 | 20,240 | lean | /-
Copyright (c) 2022 MarΓa InΓ©s de Frutos-FernΓ‘ndez, YaΓ«l Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: MarΓa InΓ©s de Frutos-FernΓ‘ndez, YaΓ«l Dillies
-/
import tactic.positivity
import data.real.nnreal
/-!
# Group seminorms
This file defines norms and semin... |
242be5a853fa8dbaa796a0af9d170ec9b928d147 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/meta/coinductive_predicates.lean | 248c30e2d2a4cca2669ea7bb652be3508a307a80 | [
"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 | 20,457 | 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 (CMU)
-/
import tactic.core
section
universe u
@[user_attribute]
meta def monotonicity : user_attribute := { name := `monotonicity, descr := "Monotonicity rules for pre... |
bd27fb2333607221b4ae150f017d7cedcf6ed0fd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/smt/interactive.lean | ab09ff0f373aa70ef8a05ab9dd03f9daff4b7c1f | [] | 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 | 376 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.smt.smt_tactic
import Mathlib.Lean3Lib.init.meta.interactive_base
import Mathlib.Lean3Lib.init.meta... |
6396f13c12a12cf8c9e665430169a37fd0aadc6f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /counterexamples/linear_order_with_pos_mul_pos_eq_zero.lean | 28298a847d2cc240118324b86870d3923a4fa2af | [
"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,184 | lean | /-
Copyright (c) 2021 Johan Commelin.
All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Damiano Testa, Kevin Buzzard
-/
import algebra.order.monoid.defs
import algebra.order.monoid.with_zero.defs
/-!
An example of a `linear_ordered_comm_monoid_with_zero` ... |
505c1774b35330077ab8e36336677c771f698c1b | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/support.lean | c4cbedcfd73a3122c6db588c2a349061b1b28c01 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 5,451 | 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 order.conditionally_complete_lattice
import algebra.big_operators.basic
import algebra.group.prod
import algebra.group.pi
/-!
# Support of a function
In th... |
d9b2067cb1a8cc71dcb57537221da72ede030324 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/linear_algebra/dual.lean | 13adea6accc12d17350bde37a49876e30616574f | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 11,010 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Fabian GlΓΆckle
-/
import linear_algebra.tensor_product
import linear_algebra.finite_dimensional
import tactic.apply_fun
noncomputable theory
/-!
# Dual vector spaces
... |
772999f68cc91616a33fdbfab0beb5b7f3da7e86 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_geometry/morphisms/quasi_separated.lean | 8b75d385dcf826b6d4f16bd6f9360f4600e2c008 | [
"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 | 23,270 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.morphisms.quasi_compact
import topology.quasi_separated
/-!
# Quasi-separated morphisms
A morphism of schemes `f : X βΆ Y` is quasi-separated if ... |
bccaa46bf30f681a7f257fd4734924560025722a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/pnat/interval.lean | 4b6737613cc9fad5a52c94bf0b27d5e3f1c5d663 | [
"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,086 | lean | /-
Copyright (c) 2021 YaΓ«l Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: YaΓ«l Dillies
-/
import data.nat.interval
import data.pnat.defs
/-!
# Finite intervals of positive naturals
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require... |
42023053a9f1609aedc2ec68d1b5498776965bdb | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/nat/multiplicity.lean | 1f289fc78e049a52dfe916bbdd49b1dfa4cf553f | [
"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 | 11,900 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.big_operators.intervals
import algebra.geom_sum
import data.nat.bitwise
import data.nat.log
import data.nat.parity
import ring_theory.int.basic
/-!
# Natu... |
cdb2a998012abf99c60a0e169598c3f8de35001f | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /archive/imo/imo1977_q6.lean | 7b0a06404bb89bcfb737fafa060e641728f74634 | [
"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 | 1,398 | lean | /-
Copyright (c) 2021 Tian Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tian Chen
-/
import data.pnat.basic
/-!
# IMO 1977 Q6
Suppose `f : β+ β β+` satisfies `f(f(n)) < f(n + 1)` for all `n`.
Prove that `f(n) = n` for all `n`.
We first prove the problem stat... |
6bc500b8235ce292ca51bb282fdbbef85cfaf09d | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/linear_algebra/affine_space.lean | 3f7159251c0046e81d884d46ca01f192ffdb2ce5 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 49,887 | 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.add_torsor
import linear_algebra.basis
noncomputable theory
open_locale big_operators
open_locale classical
/-!
# Affine spaces
This file defines affine... |
4701343f4fef1c9bb2f35ffbac3e832210f91e6f | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /expressions/geom3d_expr.lean | eed1bb5e22390a69210caf2ba815dcf7d61fb326 | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 24,038 | lean | import .expr_base
import ...phys.geom.geom3d
import .scalar_expr
import ...phys.time_series.geom3d
import .time_expr
namespace lang.geom3d
universes u
structure geom3d_frame_var extends var
inductive geom3d_frame_expr : Type 1
| lit (f : geom3d_frame) : geom3d_frame_expr
| var (v : geom3d_frame_var) : geom3d_fra... |
7317ed1e65ab9d6c1decd9b7d0014c17fe09b72a | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/simplifier_light.lean | 4fcc5922b5d0a63aa4c034b57edf7dc8805deac7 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 1,670 | lean | -- Test [light] annotation
-- Remark: it will take some additional work to get β»ΒΉ to rewrite well
-- when there is a proof obligation.
import algebra.ring algebra.field data.set data.finset
open algebra
attribute neg [light 3]
attribute inv [light 3]
attribute add.right_inv [simp]
attribute add_neg_cancel_left [simp]
... |
4de22db06250a517e4c05c7de8e41c5071db7cae | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/imp3.lean | b8917e6eae4803d4a12413fe93438ab72360d24d | [
"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 | 235 | lean | structure [class] is_equiv {A B : Type} (f : A β B) :=
(inv : B β A)
check @is_equiv.inv
namespace is_equiv
section
parameters A B : Type
parameter f : A β B
parameter c : is_equiv f
check inv f
end
end is_equiv
|
5ca3113b780a77a28a1fb9a83c892fd76cd121e4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/initial_seg.lean | e0365f4bc7537944df9ad2351623a06915995613 | [
"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 | 20,375 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import logic.equiv.set
import order.rel_iso.set
import order.well_founded
/-!
# Initial and principal segments
> THIS FILE IS SYNCHRONIZED WITH M... |
dd69af17c2d844c3b7374b4670b20eb22a0c3e53 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/lattice_ordered_group.lean | ecce0fa34c0c193016f12c728451a0fc9ba099fc | [
"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 | 8,239 | lean | /-
Copyright (c) 2021 Christopher Hoskin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Christopher Hoskin
-/
import topology.order.lattice
import analysis.normed.group.basic
import algebra.order.lattice_group
/-!
# Normed lattice ordered groups
Motivated by the the... |
94af33f42c5ec0611f166c01ae0c857b96e48441 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/types/equiv.hlean | a03655dcc67f118991451c30255dbe2bf0939340 | [
"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 | 12,648 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about the types equiv and is_equiv
-/
import .fiber .arrow arity ..prop_trunc cubical.square
open eq is_trunc sigma sigma.ops pi fibe... |
e263f7dc6474b8e30b169c4c89f792910f88dd44 | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/aggregation.lean | f4cea4852c56772854881b768a0acc72b574fb4a | [
"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 | 994 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..cosette_tactics
open Expr
open Proj
open Pred
open SQL
open tree
theorem aggegation_query :
forall (Ξ : Schema) s (a : relation s) C0 (value : Column C0 s) C1 (label: Column C1 s) (l : const C1),
(denoteSQL ((SELECT *
... |
1e50af0bc5767fba3431ed8493dcc816ab414c2c | f7315930643edc12e76c229a742d5446dad77097 | /tests/lean/run/all_goals2.lean | eca448e6fbf79b3c72a7bf0f22f139844b50042c | [
"Apache-2.0"
] | permissive | bmalehorn/lean | 8f77b762a76c59afff7b7403f9eb5fc2c3ce70c1 | 53653c352643751c4b62ff63ec5e555f11dae8eb | refs/heads/master | 1,610,945,684,489 | 1,429,681,220,000 | 1,429,681,449,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 424 | lean | import data.nat
open nat
attribute nat.add [unfold-c 2]
attribute nat.rec_on [unfold-c 2]
namespace tactic
definition then_all (t1 t2 : tactic) : tactic :=
focus (t1 ; all_goals t2)
infixl `;;`:15 := tactic.then_all
end tactic
open tactic
example (a b c : nat) : (a + 0 = 0 + a β§ b + 0 = 0 + b) β§ c = c :=
begi... |
8bf31f31b4c8dde9bf38297228a4ad9c45848a4c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/testing/slim_check/testable.lean | 8c912d351ee5e57ebde951f73ff7d6e44c1a9c79 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,300 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import testing.slim_check.sampleable
/-!
# `testable` Class
Testable propositions have a procedure that can generate counter-examples
together with a proof that they inv... |
afe894c5e03a0321d33d6837ff0aebd49b988db1 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/combinatorics/simple_graph/connectivity.lean | 874c368be0e183da6a530e7e1a5a003a786e7d8d | [
"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 | 47,763 | 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
/-!
# Graph connectivity
In a simple graph,
* A *walk* is a finite se... |
9f6997c1bdb139e7700e40dac87f5371e809a508 | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/tactic/anon_case.lean | bbc227f2ff14fad3ab0a820244a85235d9a9d6ca | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 733 | lean | import tactic.basic
open tactic.interactive
setup_tactic_parser
/-
- `case_c`, `case_f`, and `case_b` act like `case`
- even when goals are not tagged.
- `case_c` (c for current) focuses the current subgoal
- `case_f` (f for forward) focuses the next subgoal
- `case_b` (b for backward) focuses the previous (las... |
d0617d2aa55adbfd62aa7418233d4f10cbb11750 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/rat/default.lean | a9b26fa4b7ac2756f6eed73f90cb26eaf5d4d3c0 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 188 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import .basic .order .bigops
|
bbd56070d7bad40382be4e527aaa32c189f4c2fe | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/commuting_probability.lean | 905c6eb2f8524e1f3139071e2a6a96ae0a45de6b | [
"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 | 4,695 | lean | /-
Copyright (c) 2022 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import group_theory.abelianization
import group_theory.group_action.conj_act
import group_theory.group_action.quotient
import group_theory.index
/-!
# Commuting Pr... |
d2244329a59c8ba7f17cd0a9c50b0a3428026129 | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love07_metaprogramming_demo.lean | e1078a07585624a2489fcb2c568c6e235d9ebfe9 | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 5,070 | lean | /- LoVe Demo 7: Metaprogramming -/
import .lovelib
namespace LoVe
/- The Tactic Monad -/
example :
true :=
by tactic.triv
example :
true :=
by do
tactic.trace "Hello, Metacosmos!",
tactic.triv
meta def hello_world : tactic unit :=
do
tactic.trace "Hello, Metacosmos!",
tactic.triv
example :
true :=... |
53a76ea9e97590e73f34c9651fdcff5fc701012c | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.37.lean | e1d1245d206a5185bb8dc16d9994d0b236ee2970 | [] | 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 | 463 | lean | /- page 30 -/
import standard
namespace hide
constant list : Type β Type
namespace list
constant cons : Ξ A : Type, A β list A β list A
constant nil : Ξ A : Type, list A
constant append : Ξ A : Type, list A β list A β list A
end list
open hide.list
variable A : Type
variable a : A
variables l1 l2 : list A
-- BEG... |
16df957a88b203a9029a57600eb4ec60952e1ece | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/logic/identities.lean | 0e609a9310a8de857ef970523d8533434a9a2970 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,315 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Jeremy Avigad, Leonardo de Moura
-- logic.identities
-- ============================
-- Useful logical identities. In the absence of propositional extensionality, some o... |
1fea7c3531a8590da6e3f1705d48512e18c27479 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/smt_begin_end1.lean | 67492a10d06fb2207a236ebca0b565b0ce0e93e6 | [
"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 | 732 | lean | constant p : nat β nat β Prop
constant f : nat β nat
axiom pf (a : nat) : p (f a) (f a) β p a a
example (a b c : nat) : a = b β p (f a) (f b) β p a b :=
begin [smt]
intros,
assert h : p (f a) (f a),
trace_state,
add_fact (pf _ h)
end
example (p q : Prop) : p β¨ q β p β¨ Β¬q β Β¬p β¨ q β Β¬p β¨ Β¬q β false :=
begin [s... |
8d0fd03f22d7afa5f78020d2fa4bfc421abeff9e | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/control/combinators.lean | 86d45a0b4997d13434248fca7b721a3756182385 | [
"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 | 3,495 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Monad Combinators, as in Haskell's Control.Monad.
-/
prelude
import init.control.monad init.control.alternative
import init.data.list.basic
un... |
fdc00b79b7a596fbe47b86f8f9f4c2d4fb979754 | ff5230333a701471f46c57e8c115a073ebaaa448 | /tests/lean/run/handthen.lean | 4386e0e70cc25a680749fe0f3bb4dd53baebf83d | [
"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 | 959 | lean | open tactic
lemma ex1 (a b c : nat) : a + 0 = 0 + a β§ b = b :=
begin
-- We use `(` to go to regular tactic mode.
constructor; [skip, constructor],
-- Remaining goal is
-- |- a + 0 = 0 + a
simp
end
lemma ex2 (a b c : nat) : a + 0 = 0 + a β§ b = b :=
begin
constructor; [skip, constructor],
simp
end
lemma ... |
cf6d5348de74ec05d775cee0ead5a3a4342368dd | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/calculus/local_extr.lean | 17bb55339a19a4ee479ae45e88d869a274ba6f42 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,187 | 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 analysis.calculus.deriv
import topology.algebra.ordered.extend_from
import topology.algebra.polynomial
import topology.local_extr
/-!
# Local extrema of smo... |
ce86aa0fbaaf6fe9200ed109a3f1b832dc8844d3 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/category/applicative.lean | 6f15a56b76a16cfb65324a2f21a7be93e865968c | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,206 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import init.category.functor
open function
universes u v
class applicative (f : Type u β Type v) extends functor f :=
(pure : Ξ ... |
5a1934f9d4406b88b9d547c14e131f1861e4fca4 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/forallMetaBounded.lean | 863cf2b8231910c60d9cd327f79c3cc65657f6e7 | [
"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 | 370 | lean | import Lean
open Lean Lean.Meta
def Set (Ξ± : Type) : Type :=
Ξ± β Prop
def Set.empty {Ξ± : Type} : Set Ξ± :=
fun _ => False
def Set.insert (s : Set Ξ±) (a : Ξ±) : Set Ξ± :=
fun x => x = a β¨ s a
#eval do
let insertType β inferType (mkConst `Set.insert)
let β¨_, _, resultTypeβ© β forallMetaBoundedTelescope insertTy... |
3a150d68084917e4d1c578aae1acdd10f935ab5f | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/PrettyPrinter/Delaborator/SubExpr.lean | 1688e672d134a05dab0248b8371a9005304ac9ff | [
"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,915 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Daniel Selsam, Wojciech Nawrocki
-/
import Lean.Meta.Basic
import Lean.SubExpr
import Std.Data.RBMap
/-!
# Subexpr utilities for delaborator.
This file defin... |
8382f3e79d71481901ce979997978bd01465ae20 | bd12a817ba941113eb7fdb7ddf0979d9ed9386a0 | /src/linear_algebra/basic.lean | 39f39d525a1ec4886b0f6784119654d0e34236f0 | [
"Apache-2.0"
] | permissive | flypitch/mathlib | 563d9c3356c2885eb6cefaa704d8d86b89b74b15 | 70cd00bc20ad304f2ac0886b2291b44261787607 | refs/heads/master | 1,590,167,818,658 | 1,557,762,121,000 | 1,557,762,121,000 | 186,450,076 | 0 | 0 | Apache-2.0 | 1,557,762,289,000 | 1,557,762,288,000 | null | UTF-8 | Lean | false | false | 58,251 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Kevin Buzzard
Basics of linear algebra. This sets up the "categorical/lattice structure" of
modules, submodules, and linear maps.
-/
import algebra.pi... |
6551e296fae38205928ee8eff27fe24324fb603d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/big_operators/finsupp.lean | 4965fc4656f5654acca33e2331121b00c653d5bd | [
"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 | 1,597 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.big_operators.pi
import algebra.big_operators.ring
import data.finsupp
/-!
# Big operators for finsupps
This file contains theorems relevant to big operators ... |
99dc855d6913e42435abbaa411f06c9e3fe5c610 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/analysis/normed_space/affine_isometry.lean | f402d20de7394139528b669738467874eee609b9 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,809 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.normed_space.add_torsor
import analysis.normed_space.linear_isometry
import linear_algebra.affine_space.affine_subspace
/-!
# Affine isometries
In... |
6161aa95a8341122c082d2d8f8eb9581beca4dd2 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/ring_theory/ideals.lean | 4f3500b6018aec303428a08a3b2438e4072fc488 | [
"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 | 18,875 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.associated linear_algebra.basic order.zorn
universes u v
variables {Ξ± : Type u} {Ξ² : Type v} {a b : Ξ±}
open set function lattice
... |
d934609836094b1c9e23112e01c0cc99daf2b604 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/functor_category.lean | dd99f85fe09e50011464575007194fb73552efec | [
"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 | 4,899 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.natural_transformation
namespace category_theory
-- declare the `v`'s first; see `category_the... |
f92365bb28ca1d8b6828fc152fdd5d41fb81cb9a | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/pfun.lean | 5a59b22bc0f943b1a6bc47b6a81b1b540200e92f | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 24,801 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Jeremy Avigad, Simon Hudon
-/
import data.rel
/-- `roption Ξ±` is the type of "partial values" of type `Ξ±`. It
is similar to `option Ξ±` except the domain condition ca... |
a0721c787b172bb0cd5299e2fea2a978b73a0867 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/fixed_points.lean | a63e54ad9feaad3f985ca31f34b7cde7661e68f1 | [
"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 | 8,694 | 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, Kenny Lau
-/
import order.complete_lattice
import dynamics.fixed_points.basic
/-!
# Fixed point construction on complete lattices
This file sets up the basic theory o... |
6e5b602ec5f6e5470bf5c0867180958ec7e69b79 | b2e508d02500f1512e1618150413e6be69d9db10 | /src/category_theory/fully_faithful.lean | 6a9dd0319c81cc62d1f203bb1b4e489467513ddb | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 2,818 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.isomorphism
universes vβ vβ vβ uβ uβ uβ -- declare the `v`'s first; see `category_theory.category` for an explanation
namespace category_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.