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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
53a976080c65c12336b2fb06c048e5f48a456a4c | cbcb0199842f03e7606d4e43666573fc15dd07a5 | /src/topology/algebra/uniform_group.lean | b25453a3ce97feaba0a25b3552543f82039b166e | [
"Apache-2.0"
] | permissive | truonghoangle/mathlib | a6a7c14b3767ec71156239d8ea97f6921fe79627 | 673bae584febcd830c2c9256eb7e7a81e27ed303 | refs/heads/master | 1,590,347,998,944 | 1,559,728,860,000 | 1,559,728,860,000 | 187,431,971 | 0 | 0 | null | 1,558,238,525,000 | 1,558,238,525,000 | null | UTF-8 | Lean | false | false | 20,505 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Uniform structure on topological groups:
* `topological_add_group.to_uniform_space` and `topological_add_group_is_uniform` can be used to
construct a... |
0726abf5e8690ba0912469370750d726cec33a04 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/padics/hensel.lean | b6bd7d5bd66647fdf71c3996ae28320ca19432f9 | [
"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 | 21,108 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.padics.padic_integers
import topology.metric_space.cau_seq_filter
import analysis.specific_limits
import data.polynomial.identities
import topology.alge... |
0a3898217a385656393a99f78bcf0cc20bdc7aec | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/natural_isomorphism.lean | 0a361d46e35644af06c00ff8fea8e65f1802ceb8 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 5,359 | 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.functor_category
import category_theory.isomorphism
open category_theory
-- declare the `v`'s ... |
844413cec9d3568462a555f92bfac24a1c84e404 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/expand.lean | 0daa2c7263e29ee26068855b835d95e2d614a6fe | [] | 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,284 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.monad
import Mathlib.PostPort
universes u_1 u_3 u_2 u_... |
98ee8f9efb9750a3c3aeeb0ad747b0994e619d3a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/homotopy/homotopy_group.hlean | 96276401aac59bbe3af087c7eaa971655aaf0202 | [
"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 | 1,643 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Clive Newstead
-/
import algebra.homotopy_group .connectedness
open eq is_trunc trunc_index pointed algebra trunc nat homotopy
namespace is_trunc
-- Lemma 8.3... |
1cddd0ed12fd5eaf51d63aae0da3ea8c9d50ca92 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/ordered_monoid.lean | 636a3a3075c7aaae82d2abd970fcfe9eb5701f83 | [
"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 | 36,761 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.group.with_one
import algebra.group.type_tags
import algebra.group.prod
import algebra.order_functions... |
ef171f23018e99b590b6fbb223a61363d19eb17f | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /7.10.1.lean | ca10951404c0328046367a47a6a88eead34b4a3b | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,870 | lean | namespace hidden
-- BEGIN
inductive nat : Type
| zero : nat
| succ : nat → nat
-- END
def Z := nat.zero
def S := nat.succ
def K₁ := S Z
def K₂ := S K₁
def K₃ := S K₂
def K₄ := S K₃
def K₅ := S K₄
def pred (n: nat): nat := begin
cases n,
case nat.zero: { exact Z },
case nat.succ: m { exact m }
e... |
428acef668346d8a90d2ebe5e93863f2e31e8b15 | 27a31d06bcfc7c5d379fd04a08a9f5ed3f5302d4 | /src/Lean/Elab/PreDefinition/WF/PackDomain.lean | 172c39707246267ceeaf559796edf174308dc6b5 | [
"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 | joehendrix/lean4 | 0d1486945f7ca9fe225070374338f4f7e74bab03 | 1221bdd3c7d5395baa451ce8fdd2c2f8a00cbc8f | refs/heads/master | 1,640,573,727,861 | 1,639,662,710,000 | 1,639,665,515,000 | 198,893,504 | 0 | 0 | Apache-2.0 | 1,564,084,645,000 | 1,564,084,644,000 | null | UTF-8 | Lean | false | false | 5,061 | 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.PreDefinition.Basic
namespace Lean.Elab.WF
open Meta
/--
Given a (dependent) tuple `t` (using `PSigma`) of the given arity.
Return an... |
e9aea2254b31b133eb07affea76f2c2563ee7c3b | f618aea02cb4104ad34ecf3b9713065cc0d06103 | /src/analysis/complex/polynomial.lean | 52a71b3035f6506ebbc61840a71518929e65e2ad | [
"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 | 6,080 | lean | /-
Copyright (c) 2019 Chris Hughes All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.polynomial topology.instances.polynomial analysis.complex.exponential
open complex polynomial metric filter is_absolute_value set lattice
local attribute [in... |
6b31c58d856c0fe01845c8277037c238bf5b9461 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /ring_theory/ideals.lean | fdc8ff44e04430f896be247d2d61b51a070a0134 | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 13,469 | 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 tactic.ring linear_algebra.basic ring_theory.associated
universes u v
variables {α : Type u} {β : Type v} [comm_ring α] {a b : α}
open set... |
b128d438e3d3386001ecf7733df1e01a48ed0ae1 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0715.lean | 30c71efb8ac19235299a1cc753edb2ac78af2784 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 249 | lean | import data.list.basic
open list
universe u
variables {α : Type} (x y z : α) (xs ys zs : list α)
def mk_symm (xs : list α) := xs ++ reverse xs
theorem reverse_mk_symm (xs : list α) :
reverse (mk_symm xs) = mk_symm xs :=
by simp [mk_symm]
|
3ea6323877e1d0f0c3f9ebf53f39748d1fc11701 | 618003631150032a5676f229d13a079ac875ff77 | /src/computability/partrec_code.lean | a1d4a936f88ed95d868c575575b41dffc4298621 | [
"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 | 38,628 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Godel numbering for partial recursive functions.
-/
import computability.partrec
open encodable denumerable
namespace nat.partrec
open nat (mkpair)
theorem rfind' {f}... |
241f2d10c566bd7ace2a785bccaf75c0c99de727 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/pi/lex.lean | 2fbb3c7cc74f6668648dcef93921ed19b950c183 | [
"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,757 | 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 order.well_founded
import algebra.group.pi
import order.min_max
/-!
# Lexicographic order on Pi types
This file defines the lexicographic relation for Pi types ... |
8b64cd9605f04f323512f15e1840b4ccb38075a0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/monoid_algebra/degree.lean | 831bc4ae4777e05b1d9d72552b100a61bdf0db3b | [
"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 | 6,480 | lean | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.monoid_algebra.support
/-!
# Lemmas about the `sup` and `inf` of the support of `add_monoid_algebra`
## TODO
The current plan is to state and prove lem... |
e66a1f4115064da15f525b6131789cff45c887d7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/qpf/multivariate/constructions/cofix.lean | 93bc6f9098c1e1517bb3c5a8657182b1f1dce8dd | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 19,116 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Simon Hudon
-/
import control.functor.multivariate
import data.pfunctor.multivariate.basic
import data.pfunctor.multivariate.M
import data.qpf.multivariate.basic
/-!
# ... |
b4592261ed330f9356dc7efd0df69b9812aaef1f | e6b113af18eebb6e73c60e14d13ae096c05fe343 | /tactic_example.lean | 3c272c69bfe013368da51b4aac796c900c8ceb1e | [] | no_license | bmsherman/lean-tutorial | 3889f1a4e7a16692759a6719c0e81c1cec9d603e | fe58a887b32e5f1e305e1e7a94766cd3585f01e2 | refs/heads/master | 1,621,098,141,939 | 1,508,513,676,000 | 1,508,513,676,000 | 107,567,061 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,861 | lean |
/- For an introduction to the tactic system, let's write a reflective
tactic that solves goals in intuitionistic propositional logic.
-/
reserve infixl ` ⊢ `:25
reserve infixl ` & `:70
universes u v
inductive rlist (A : Type u) : Type u
| nil {} : rlist
| snoc {} : rlist → A → rlist
infix & := rlist.snoc
names... |
ce1d8988787dbb76e11a05b25b5e6080091f6d04 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/padics/padic_numbers.lean | 2e0cae8897c64f71b23fbbdc79ffc73be9335152 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,224 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import data.padics.padic_norm
import analysis.normed_space.basic
/-!
# p-adic numbers
This file defines the p-adic numbers (rationals) `ℚ_p` as the completion of... |
4de6837d42b26d85ea5b3925d7db72bc0f77c9a3 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /category/traversable/instances.lean | bb7a942b1b88eb48164e943985c86de01170abfa | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 6,124 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Instances of `traversable` for types from the core library
-/
import category.traversable.basic category.basic category.functor category.applicative
import data.list.basic da... |
bd398fc62ef341fd3a93f39c497c43b9fccdb117 | 43390109ab88557e6090f3245c47479c123ee500 | /src/xenalib/Sean_Leather_matrix_ring_cleanup.lean | 6542be6a2ea08f88f27025e6c38cfea6663fb495 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,678 | lean | import algebra.big_operators data.set.finite
def matrix (α : Type*) (m n : ℕ) := fin m → fin n → α
namespace matrix
variables {α : Type*} [ring α]
variables {l m n o : ℕ}
instance : has_zero (matrix α m n) :=
⟨λ _ _, 0⟩
instance : has_neg (matrix α m n) :=
⟨λ M x y, - M x y⟩
instance : has_add (matrix α m n) :=
⟨λ... |
ad0c930e01de5d126dfaf73f91da5e8b7f1c17ec | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world08/level09.lean | 0476332fa756389159318ce201bc8b64faba28d4 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 94 | lean | theorem succ_ne_zero (a : mynat) : succ a ≠ 0 :=
begin
symmetry,
exact zero_ne_succ a,
end
|
90649f8d728ca23930fbc6887183b9ed3d965cb6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/algebraic_card.lean | 745e11647b6c4bfcc0e4740fdf96563846359db7 | [
"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 | 3,656 | lean | /-
Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios
-/
import data.polynomial.cardinal
import ring_theory.algebraic
/-!
### Cardinality of algebraic numbers
In this file, we prove variants of th... |
f8dac70ffa9f8d52e4b3a9ed993642640d1860c3 | 4e0d7c3132ce31edc5829849735dd25db406b144 | /lean/love10_denotational_semantics_exercise_sheet.lean | 80cd77e5f995b9a0edb22a1e6605e7be7c5f0296 | [] | no_license | gonzalgu/logical_verification_2020 | a0013a6c22ea254e9f4d245f2948f0f4d44df4bb | 724d0457dff2c3ff10f9ab2170388f4c5e958b75 | refs/heads/master | 1,660,886,374,533 | 1,589,859,641,000 | 1,589,859,641,000 | 256,069,971 | 0 | 0 | null | 1,586,997,430,000 | 1,586,997,429,000 | null | UTF-8 | Lean | false | false | 3,457 | lean | import .love10_denotational_semantics_demo
/-! # LoVe Exercise 10: Denotational Semantics -/
set_option pp.beta true
namespace LoVe
/-! ## Question 1: Monotonicity
1.1. Prove the following lemma from the lecture. -/
lemma monotone_comp {α β : Type} [partial_order α] (f g : α → set (β × β))
(hf : monotone f... |
390f9a99e83b9de3ef940656586dd46c824a9f2b | ea916b7f42baf59c02ca82e274a87b3e45397968 | /src/super/selection.lean | cf7821a99c6c24466473da5f1f734b024b0c5ab8 | [] | no_license | robertylewis/super2 | 2926383b166e43ebd815b81ae8fba976393a160c | 8ba522fd609d25752cd3d9b478bc48b6453e3c1e | refs/heads/master | 1,670,062,676,962 | 1,597,795,530,000 | 1,597,795,530,000 | 289,744,671 | 0 | 0 | null | 1,598,207,476,000 | 1,598,207,476,000 | null | UTF-8 | Lean | false | false | 3,626 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import super.prover_state
open native
namespace super
meta def simple_selection_strategy (f : term_order → clause → list ℕ)
: literal_selection_strategy | dc := do... |
b41e2833e3f07b8095f121db4bb9149728f6204e | 5ca7b1b12d14c4742e29366312ba2c2ef8201b21 | /src/game/world8/level6.lean | d1a06a80226c68e1695a8e46790800abdfed1a3f | [
"Apache-2.0"
] | permissive | MatthiasHu/natural_number_game | 2e464482ef3001863430b0336133b6697b275ba3 | 2d764f72669ae30861f6a1057fce0257f3e466c4 | refs/heads/master | 1,609,719,110,419 | 1,576,345,737,000 | 1,576,345,737,000 | 240,296,314 | 0 | 0 | Apache-2.0 | 1,581,608,357,000 | 1,581,608,356,000 | null | UTF-8 | Lean | false | false | 856 | lean | import game.world8.level5 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 6: `add_left_cancel`
The theorem `add_left_cancel` is the theorem that you can cancel on the left
when you're doing addition -- if `t + a = t + b` then `a = b`.
There is a three-line proof which ends in `exact add_right... |
43b92c2431c22f7e8d3c02bdaf3e2fc3cb9a7ebe | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /dlo/eval_qe.lean | bab66d560731853db5be1bfe13a3c7d212c0b6ee | [] | 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 | 10,439 | lean | import ..list .sqe .dnf
variable {α : Type}
-- import .axms_eq ..dnf.basic ..has_dec_aval
-- namespace dnf
--
-- open list has_atom_dlo axms axms_eq dnf
-- class has_sqe_eq (α : Type) extends axms_eq α :=
--
-- -- Requires : all args are normal
-- -- Requires : all args are unified
-- -- Requires : all args are... |
6eb9ed01d6c3b1b5e4e1f34f2c9b2d80af58f0cf | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/lie/ideal_operations.lean | b14027376a86a3827643ccde8af85a102dfeddc8 | [
"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 | 13,606 | 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.submodule
/-!
# Ideal operations for Lie algebras
Given a Lie module `M` over a Lie algebra `L`, there is a natural action of the Lie ideals of `L`
on ... |
e5236856cd367f3e07aa54f10d4e73c03b80567e | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/tactic/simps.lean | f5f23513670a08f5e5e6e655aacead0c354c3e46 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,995 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.core
/-!
# simps attribute
This file defines the `@[simps]` attribute, to automatically generate simp-lemmas
reducing a definition when projections... |
ec5feab96074b13a66c722d15cd739e3f5fa10e4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/list/prod_sigma.lean | da1eba10681bcb8fb668661afacf98dcc21017a5 | [
"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,655 | lean | /-
Copyright (c) 2015 Leonardo de Moura. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.list.big_operators.basic
/-!
# Lists in product and sigma types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
edd44502debe16580d20072e27b4af2123d491b2 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Meta/Exception.lean | 5701cee854bc3991dc8f01dbbd910db2a3528cc8 | [
"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 | 5,726 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Environment
import Init.Lean.MetavarContext
import Init.Lean.Message
import Init.Lean.Util.PPGoal
namespace Lean
namespace Meta
a... |
86a76a767dba83ba3e4c223c3a65d2c54fd8c2f4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/abelian/ext.lean | ee8dac92b68e7f3fba3f3a3d7898dc2f371bdcc9 | [
"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,515 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Adam Topaz
-/
import algebra.category.Group.basic
import algebra.category.Module.abelian
import category_theory.functor.left_derived
import category_theory.linear.yoned... |
8680b823aa19f8d86dab3facb0c61ea5ef552af9 | ca1ad81c8733787aba30f7a8d63f418508e12812 | /clfrags/src/hilbert/wr/ad.lean | d632371a982642f438fbaefca639da46bfd72c9a | [] | no_license | greati/hilbert-classical-fragments | 5cdbe07851e979c8a03c621a5efd4d24bbfa333a | 18a21ac6b2e890060eb4ae65752fc0245394d226 | refs/heads/master | 1,591,973,117,184 | 1,573,822,710,000 | 1,573,822,710,000 | 194,334,439 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,475 | lean | import core.connectives
namespace clfrags
namespace hilbert
namespace wr
namespace ad
axiom ad₁ : Π {a b c : Prop}, c → ad a b c → a
axiom ad₂ : Π {a b c : Prop}, a → ad (ad c a b) a c
axiom ad₃ : Π {a b c d e f : Prop}, ad a b c → ad (ad (ad (ad ... |
cd37c9776b26cc4d3b72fba631a10168d94a8e31 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/algebra/category/functor/default.hlean | 3eb1194516dc16d46786a1e1a85a398b9da86392 | [
"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 | 184 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import .exponential_laws
|
a67553cb40de3ed91ef2304c891ec8100e94c98b | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/lean/compiler/ir/basic.lean | 38efa279e69b2681b6601e210311de168240ce9d | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,763 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.lean.name init.lean.kvmap init.lean.format init.data.array
/-
Implements (extended) λPure and λRc proposed in the article
"Counting Immu... |
7dc5fba25c4225c7646763f0665bb0af85b94965 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/unif_issue.lean | 7d2632eb42daf0bd4cf70e66fb47fc80c655e6f1 | [
"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 | 1,402 | lean | import Lean
open Lean
#eval toString $
Unhygienic.run do
let a ← `(Nat.one);
let rhs_0 : _ := fun (a : Lean.Syntax) (b : Lean.Syntax) => pure Syntax.missing;
let rhs_1 : _ := fun (_a : _) => pure Lean.Syntax.missing;
let discr_2 : _ := a;
ite (Lean.Syntax.isOfKind discr_2 (Lean.Name.mkStr (Lean.... |
affe47744cd67718f9a9d02107da1c45c2834797 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/geometry/manifold/basic_smooth_bundle.lean | 226ac0cff30b3fe25d215db8d968e41cdbb92eca | [
"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 | 31,767 | 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 topology.topological_fiber_bundle
import geometry.manifold.smooth_manifold_with_corners
/-!
# Basic smooth bundles
In general, a smooth bundle is a bun... |
06711b4b08fc7503b02cd5def1667b0c4cc58e07 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/zmod/coprime.lean | 967b2ffe4df5ba25815e9a0b45b36f337f34991b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,377 | lean | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
import data.zmod.basic
import ring_theory.int.basic
/-!
# Coprimality and vanishing
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a co... |
f2820886c791954ba72fa8b1527a4f397c628f3a | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/data/finset/vset.lean | 3857b7aab56bb7d06f1af40b29febf44e83f1ad2 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 1,320 | lean | /-
This files contains the `vset` instance for finset and nat.
-/
import vset
import data.finset.extra
import data.finset.fresh
namespace finset ---------------------------------------------------------------
instance vset_nat : acie.vset finset ℕ :=
{ mem := has_mem.mem
, fresh ... |
83bb95cca1c3bf7ce5e6efc8d6a9ced2d26d3316 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch2/ex0102.lean | 310e0941f01c9b78fd9e7170b93e3517719a1ed0 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 399 | lean | constants m n : nat
constant f : nat → nat
constant f' : nat -> nat
constant f'' : ℕ → ℕ
constant p : nat × nat
constant q : prod nat nat
constant g : nat → nat → nat
constant g' : nat → (nat → nat)
constant h : nat × nat → nat
constant F : (nat → nat) → nat
#check f
#check f n
#check g m n
#check (m, n)
#check p.1
... |
6691983411c59d85332ada4edd2c1fd4641c7f4b | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Data/Json/Stream.lean | d3f62d85c181a376a0677771280cae5e7cded1bb | [
"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 | 580 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga
-/
import Init.System.IO
import Lean.Data.Json.Parser
import Lean.Data.Json.Printer
import Lean.Data.Json.FromToJson
namespace IO.FS.Stream
open Lean
open IO
def readJ... |
9072e54a2b49e46506bac82b8ace199bb6b56445 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/special_functions/polar_coord.lean | 7bf5c29748baacf3fade3c93dc292ca2bf302362 | [
"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 | 6,695 | lean | /-
Copyright (c) 2022 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 measure_theory.function.jacobian
/-!
# Polar coordinates
We define polar coordinates, as a local homeomorphism in `ℝ^2` between `ℝ^2 - (-∞, 0]` and
`(0... |
bb30a78b27f555357a5068d7dca995b498147fea | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/bicategory/basic.lean | b37e6652d80298e92f61b94fe7758041e7c8da17 | [
"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 | 20,740 | lean | /-
Copyright (c) 2021 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.isomorphism
import tactic.slice
/-!
# Bicategories
In this file we define typeclass for bicategories.
A bicategory `B` consists of
* objects `a : ... |
bcdb6e5f67df0da5f49bd6db67d7b4fbc776b7b1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/matrix/determinant.lean | 32c5f3f10d9e84ec7fd433f842df0dfc8a558e0a | [
"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 | 30,416 | 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, Tim Baanen
-/
import data.matrix.pequiv
import data.matrix.block
import data.fintype.card
import group_theory.perm.fin
import group_theory.perm.sign
import algebra.... |
f1acc2a2822e3d46cc83197368f5ffc1a976fb78 | a11f4536efad51bc2b648123619720f3b9318c0f | /src/limit_of_seq2.lean | 0e6a5227fa4db600caaf96793a39b69e28cb7b7b | [] | no_license | ezrasitorus/codewars_lean | 909471d43f5130669a90b8e11afc37aec2f21d8f | 6d1abcc1253403511f4cfd767c645596175e4fd3 | refs/heads/master | 1,672,659,589,352 | 1,603,281,507,000 | 1,603,281,507,000 | 288,579,451 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 795 | lean | import data.real.basic
open classical
attribute [instance] prop_decidable
/-
Rigorous definition of a limit
For a sequence x_n, we say that \lim_{n \to \infty} x_n = l if
∀ ε > 0, ∃ N, n ≥ N → |x_n - l| < ε
-/
def lim_to_inf (x : ℕ → ℝ) (l : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, abs (x n - l) < ε
theorem exercise_1... |
39c5193f385b3670776364aa3c5537e34315ed5d | 1437b3495ef9020d5413178aa33c0a625f15f15f | /data/real/ennreal.lean | 9784caa9bbb8e7c57bccaac6992c50a8ebb0f51b | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,862 | 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
Extended non-negative reals
-/
import data.real.nnreal order.bounds tactic.norm_num
noncomputable theory
open classical set lattice
local attribute [instance] prop_deci... |
a574afff6614c4d78565e4ab086291fa91aa35a6 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/topology/metric_space/lipschitz.lean | 214e72852e73c5947989743d43f9f5b60a07f0d4 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 6,748 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl
Lipschitz functions and the Banach fixed-point theorem
-/
import topology.metric_space.basic analysis.specific_limits
open fil... |
179bbf5cad5d3973df2f8b8fc4560e78af903bde | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/int/least_greatest.lean | ad8f0861ed1209d51f669be429225dc9ba17975a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 5,003 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.int.basic
/-! # Least upper bound and greatest lower bound properties for integers
In this file we prove that a bounded above nonempty set ... |
924d98f5e3051a8bc5d218078aa8ddb538f3ccd6 | c65da2ef2a10991ca5f329be68b231f8f5aed210 | /src/solutions/friday/manifolds.lean | 6db7b6c5fd6fea3e30b696e362d4688fd306a63f | [] | no_license | arademaker/lftcm2020 | 5d6aa964837cfea82a98d32b6e2a0b9a6c97dfdc | e83aab9d2c514c4fccfb6d6043200f1bdc7b3841 | refs/heads/master | 1,672,633,876,208 | 1,602,728,317,000 | 1,602,728,317,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,360 | lean | import ...for_mathlib.manifolds
noncomputable theory
open_locale manifold classical big_operators
open set
universe u
/-!
## Reminder on updating the exercises
These instructions are now available at:
https://leanprover-community.github.io/lftcm2020/exercises.html
To get a new copy of the exercises,
run the foll... |
8f374f144a3d4280bb8cc93430d342bc84d9f9fb | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/module/pointwise_pi.lean | 3cc2d98f50c108ce9b036af6cf2b6aad7bbf6508 | [
"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 | 1,605 | lean | /-
Copyright (c) 2021 Alex J. Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best
-/
import algebra.pointwise
import algebra.module.pi
/-!
# Pointwise actions on sets in Pi types
This file contains lemmas about pointwise actions on sets in Pi types.
##... |
6cb197a73cd44ecd537036a9469d0153cd567282 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/digits.lean | e7bfd70eb2d80558d46ec985f9a1154184c762e7 | [] | 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 | 11,654 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Shing Tak Lam, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.int.modeq
import Mathlib.tactic.interval_cases
import M... |
bec56931780e258bc4c3096b0b934b2b1f37fcfd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/finsupp/basic_auto.lean | e366d5f2ba629cf6f99c36315d5cdeb43b194180 | [] | 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 | 81,892 | 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, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.pi
import Mathlib.algebra.big_operators.order
import Mathlib.... |
19c47f8cc868dd54ae9e7740075085665e9fbd79 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/bench/binarytrees.lean | 3f2c3a2d1077cd7c8d6f368217109c7c8889c223 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,696 | lean | inductive Tree
| Nil
| Node (l r : Tree) : Tree
open Tree
instance : Inhabited Tree := ⟨Nil⟩
-- This Function has an extra argument to suppress the
-- common sub-expression elimination optimization
partial def make' : UInt32 -> UInt32 -> Tree
| n, d =>
if d = 0 then Node Nil Nil
else Node (make' n (d - 1)) (make' ... |
f6ce19ac2ca2a0843d280aa8fe5938eebb2d177e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/fun.lean | 3656c00c6ad8d6cfff15a769c6ca3ffa4398320f | [
"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 | 83 | lean | -- reject to avoid confusion with `fun x : Nat =>`
#check fun (x : Nat) : Nat => x
|
ff39c1713f7b0f61a161bb6f29853b9833e8bd0c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/real/sqrt.lean | c3ae85a90284322360cc401abb872196cb609133 | [
"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,722 | 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 algebra.star.order
import topology.algebra.order.monotone_continuity
import topology.instances.nnreal
import tactic.positivi... |
0d6b8953ff0de3203348f05e551135441ff03c54 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/sheaves/sheaf_condition/unique_gluing.lean | 13d97a2108a0cd6d7c2b2d3c78943148dfff4ef0 | [
"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 | 10,818 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import topology.sheaves.sheaf
import category_theory.limits.shapes.types
import category_theory.types
/-!
# The sheaf condition for a type-valued presheaf
We prov... |
ea616c7b07b2cbd07dad892103c4a404d9049b76 | 137c667471a40116a7afd7261f030b30180468c2 | /src/order/rel_iso.lean | 1ccec80e12d190c0350739ce03a7571994cf4ed7 | [
"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 | 31,557 | 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 logic.embedding
import order.rel_classes
import algebra.group.defs
open function
universes u v w
variables {α : Type*} {β : Type*} {γ : Type*}
{r : α → α →... |
998010c1bc37fda8182a85ebae33a545d2f47b14 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/locally_integrable.lean | 6655bcf24e5eae0186dd5a88b853d8dcd4a38e9a | [
"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 | 9,130 | lean | /-
Copyright (c) 2022 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.integral.integrable_on
/-!
# Locally integrable functions
A function is called *locally integrable* (`measure_theory.locally_integrable`) ... |
0d5d99b149a1c84fae3deed45a4255009f319e77 | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_propositional/prop_04.lean | 611baab51665fb62917d53c66ef5e00fd07b2943 | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 343 | lean | namespace prop_04
variables A B C D : Prop
theorem prop_4 (h1 : A ∨ B) (h2 : A → C) (h3 : B → D) : C ∨ D :=
show C ∨ D, from or.elim h1
(assume h4: A,
have h5: C, from h2 h4,
show C ∨ D, from or.inl h5)
(assume h6: B,
have h7: D, from h3 h6,
show C ∨ D, from or.inr h7)
-- end namespace
en... |
1fd76f460058d735dd433f21c5d992578b9e6c78 | dd24e6c3b8dc14dc504f8a906fc04c51e4312e6b | /src/mywork/homework3.lean | 456dc76c7ecf806f42eb643186d939162312e962 | [] | no_license | njeyasingh/CS-2120 | dd781a90dd0645b74e61cee1813483fb7cb4a111 | b3356f665a246f295b3f1e6d61901bfca331810d | refs/heads/main | 1,693,294,711,274 | 1,635,188,659,000 | 1,635,188,659,000 | 399,945,420 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,148 | lean |
/-
Prove the following simple logical conjectures.
Give a formal and an English proof of each one.
Your English language proofs should be complete
in the sense that they identify all the axioms
and/or theorems that you use.
Nikita Jeyasingh
-/
-- 1
example : true := true.intro
--2
example : false := -- trick q... |
67f9a492d67e616e6c26d63a1df8889379a5baef | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/pp_all.lean | 08a1d25c528bfbd3e3ce9e698ffa44e5675d9963 | [
"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 | 129 | lean | open nat
variables {a : nat}
abbreviation b := 2
check (λ x, x) a + b = 10
set_option pp.all true
check (λ x, x) a + b = 10
|
e576cddb909b8c2ea2957f3d5a16c38c23865d5c | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/linear_algebra/dimension.lean | b96ca9c7668d02bbcfe1392571eda69c88f116a5 | [
"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 | 14,664 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Johannes Hölzl, Sander Dahmen
Dimension of modules and vector spaces.
-/
import linear_algebra.basis
import set_theory.ordinal
noncomputable theory
local attribute [in... |
f1a4938925d18f1b342218d406bdfb76ec642126 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Module/monoidal.lean | 1c8d4ca6393e86c6aee99e495a7c206b88bc818d | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,630 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.monoidal.braided
import Mathlib.algebra.category.Module.basi... |
7c349a564d16749a98b441d4ec47d562b9019786 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/Tactic/ElabTerm.lean | b562b511be8a283b9346de8b4bd72a363f133d0d | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 15,276 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Constructor
import Lean.Meta.Tactic.Assert
import Lean.Meta.Tactic.Clear
import Lean.Meta.Tactic.Rename
import Lean.Elab.Tactic.Basi... |
54a56be84ce2242220d221742740cb75fb8d5b05 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Server/Watchdog.lean | b86d2009b65be4d9f92a7eeb31724b87af6124c5 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 33,964 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Init.System.IO
import Init.Data.ByteArray
import Lean.Data.RBMap
import Lean.Elab.Import
import Lean.Util.Paths
import Lean.Data.FuzzyMatch... |
3ef8866fd3012ab030cb86301b11b30f494a3045 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/Declaration.lean | 2d8aca9041463395ac1ff9b7d83303904bd2b2e4 | [
"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 | 12,917 | 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 Lean.Util.CollectLevelParams
import Lean.Elab.DeclUtil
import Lean.Elab.DefView
import Lean.Elab.Inductive
import Lean.Elab.Struct... |
6be224cdbb4492fe1bcbf781eed62dad98ef4147 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/noncomp_error.lean | c80134c9b8752c6362e6eb2e0b1c886eb9102845 | [
"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 | 37 | lean | noncomputable definition a :nat := 2
|
fb568e771c5457a77be384ecdfb0ba67a4c72aab | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /test/library_search/basic.lean | 1086e7a991ba321951d0609348ec1dc56d09484b | [
"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 | 5,190 | 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 tactic.suggest -- No other imports, for fast testing
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_sear... |
3978be278de56c616a6925fd1f9cba2aee5b978d | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/Lean/Syntax.lean | 1658f2f37d3c1696422bdf0780ecd75d62fbbf0d | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,295 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
-/
prelude
import Init.Data.Array
import Init.Lean.Data.Name
import Init.Lean.Data.Format
namespace Lean
namespace SourceInfo
def updateTra... |
02db7ca11f4f4bd29528f99a2dee9f033e32f622 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Elab/Quotation.lean | 64c2c00d80a119de76146bc62c9d3ff07c5034a5 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,671 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
Elaboration of syntax quotations as terms and patterns (in `match_syntax`). See also `./Hygiene.lean` for the basic
hygiene workings and data types.
-/
import... |
af7e47c7ff0ca874e6343e95be1e9c062ea8a10c | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /zmod_as_fin.lean | 1cc51b06cda5701bb725854b0305d5cc1fea8b27 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,117 | lean | import data.int.modeq data.int.basic data.nat.modeq data.equiv data.fintype data.nat.prime data.nat.gcd data.pnat .int_gcd data.nat.prime
@[simp] lemma int.mod_mod (a b : ℤ) : a % b % b = a % b :=
by conv {to_rhs, rw [← int.mod_add_div a b, int.add_mul_mod_self_left]}
@[simp] lemma int.mod_neg_mod (a b : ℤ) : (-(a % ... |
e2b2d291876380067fd4147c61845f33c6d9ffb9 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/perf/perm_ac_200.lean | 621f5f4bff618133408300b453d21fcb928d8a7d | [
"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 | 6,008 | lean | import data.list.perm
open list perm option nat
attribute [reducible]
definition denote {X : Type} (default : X) [add_comm_semigroup X] (xs : list X) : list nat -> X
| nil := default
| (cons i is) := match nth xs i with
| none := default
| (some x) := match is with
... |
f034ee1223a7e07d734337bdf7aa5f83802f06b3 | c3de33d4701e6113627153fe1103b255e752ed7d | /tools/tactic/tactic.lean | fa21ab7a3ee926c3ce72c37101ee80e00ca14563 | [] | no_license | jroesch/library_dev | 77d2b246ff47ab05d55cb9706a37d3de97038388 | 4faa0a45c6aa7eee6e661113c2072b8840bff79b | refs/heads/master | 1,611,281,606,352 | 1,495,661,644,000 | 1,495,661,644,000 | 92,340,430 | 0 | 0 | null | 1,495,663,344,000 | 1,495,663,344,000 | null | UTF-8 | Lean | false | false | 1,071 | lean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Some useful tactics.
-/
open expr tactic
namespace tactic
/- In the main library, assert and assertv create a new local constant, but
do not return it. These version... |
979e9c4e111ff9d3182fa3b8a46bbd05a4747c6b | 4b4a91d762ac3b6ef8f164899a6a26fc125eddd6 | /src/level_1_groups.lean | 24ad5a0e47397b6f895415c0d57aa099271076e9 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/group-action-exercises | 955ceba8edb7eba7b8916690083829d321909aee | 197b1a0e53ec8d84bf3903c9ab5cddf615a44816 | refs/heads/master | 1,686,020,547,415 | 1,625,354,242,000 | 1,625,354,242,000 | 382,577,731 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,551 | lean | /-
Apache 2, because everyone else is doing it
Written by Kevin Buzzard summer 2021 in his shed.
Powered by `mathlib` and the leanprover-community, without which
nothing would have happened.
Thanks to Leo and everyone at Microsoft Research for Lean.
-/
-- This imports all user tactics and a whole bunch of basic mathem... |
0abe79ad7feec99e679b258d7052d7711bafb130 | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /8.9.1.lean | 94f9c2387b066ef70b0f7210a673a7120f6bd8f5 | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 409 | lean | open function
#print surjective
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
open function
lemma surjective_comp {g : β → γ} {f : α → β}
(hg : surjective g) (hf : surjective f) :
surjective (g ∘ f) := (
assume c: γ,
let ⟨b, (hgb: g b = c)⟩ := hg c in
let ⟨a, (hfa: f a = b)⟩ :... |
6c0954200a1d93c527600f47a7f163b4e4933fd3 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/rewrite_search/metric/edit_distance.lean | 121c05341a75815c61b2d6d187d28737f56d3d76 | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,646 | lean | import tidy.rewrite_search.core
import data.rat
open tidy.rewrite_search
open tidy.rewrite_search.bound_progress
namespace tidy.rewrite_search.edit_distance
variables {α : Type} [decidable_eq α]
@[derive decidable_eq]
structure ed_partial :=
(prefix_length : ℚ)
(suffix : list table_ref)
(distances : list ... |
a80a0a371788e77a34af005cd48c78c2422fd829 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/structNoBody.lean | 56685a59ddab6ca0f07f63bbc08f78ad541481f0 | [
"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 | 310 | lean | #lang lean4
structure A :=
(x y : Nat)
structure B :=
(z : Nat)
structure C extends A, B
def f (c : C) :=
c.x + c.y + c.z
theorem ex1 : f {x := 10, y := 20, z := 30} = 60 :=
rfl
structure D
def g (d : D) : D :=
d
theorem ex2 : g {} = {} :=
rfl
theorem ex3 (d : D) : g d = {} := by
cases d
exact rfl
|
f2d16ee8372b716e5df0fa3a141626b1476316f9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/Task.lean | 5d988737fb5ee7d6da12fcf4c42dd24b59e47cad | [
"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 | 546 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
namespace Lake
instance : Monad Task where
map := Task.map
pure := Task.pure
bind := Task.bind
abbrev ETask ε := ExceptT ε Task
abbrev OptionTask := OptionT Task
def... |
20506df31514da6b90213bb3d05f82093f292596 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/nhds_set.lean | 4a48a57b21136bddd1cbd69f64b2e2f66d1ab263 | [
"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 | 4,628 | lean | /-
Copyright (c) 2022 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Patrick Massot
-/
import topology.basic
/-!
# Neighborhoods of a set
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding ... |
c4b5c2451758743e29826acc824e6e52324130fd | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/direct_sum/module.lean | b46f4adc02873baa80ed264cd412dd649b1aae4e | [
"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 | 10,581 | 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.direct_sum.basic
import linear_algebra.dfinsupp
/-!
# Direct sum of modules
The first part of the file provides constructors for direct sums of modules. It pro... |
a90c48ea749f6592dd918fdd47609be755d8384c | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/algebraic_geometry/open_immersion.lean | 165f7120c121447a737e981f22a0b353fc3755d8 | [
"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 | 78,193 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.presheafed_space.has_colimits
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.pullbacks
import... |
86627b0e1500a0435407fc47d36d05f35f1dca45 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/set/basic.lean | 44ec83e6f10b7d36c798e531d7c925e0c3bca2a1 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 91,624 | 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
-/
import logic.unique
import order.boolean_algebra
/-!
# Basic properties of sets
Sets in Lean are homogeneous; all their elements have the same type... |
133a5122e54f3e1adb4e43dea3b4fd19a9a4af99 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/order/basic.lean | 0df9aa1013e5c70806c5899d5d70980c31c53e59 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,370 | 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
open function
/-!
# Basic definitions about `≤` and `<`
## Definitions
### Predicates on functions
- `monotone... |
fd64153fd3259f23c9d937d99f1c59ea644399b7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/probability/notation.lean | 1be9c52af33d575bae4aac2ff40552dec2f4f081 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,422 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.function.conditional_expectation
/-! # Notations for probability theory
This file defines the following notations, for functions `X,Y`, measures `... |
19d0f5dbc90996c7ff611f62314980c28ea5b980 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/simpLoopBug.lean | d79ea0a686f2ce57a54427817bcd0e44de55a000 | [
"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 | 59 | lean | example (a : α) : ¬ some (some a) = some none := by simp
|
23cfb5b33d187e1f690aa812c79eed22c5d2a42f | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/small_complete.lean | 82403fa713dd489f7d6fb5d0507856539f32bf3a | [
"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 | 2,043 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Bhavik Mehta
-/
import category_theory.limits.shapes.products
import set_theory.cardinal
/-!
# Any small complete category is a preorder
We show that any small category which has all (... |
2ec3c36f44e1831762b8722ccb965cbc87b1a941 | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/hit/trunc.hlean | 8d02dc9fbf2931c287256956da1ff47d4215fdcc | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 5,852 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
n-truncation of types.
Ported from Coq HoTT
-/
/- The hit n-truncation is primitive, declared in init.hit. -/
import types.sigma types.pointed
open is_trunc eq ... |
efd43e8fa2002f14675ba062de2a8e2d5a1213c6 | 8cda3dace895437437849285448ae2a3515126f2 | /src/basic.lean | 046748e3172616427364671ee92a0257bdaf9984 | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean-parser-combinators | cbaeaa9be32dd804f9bcb71a8bbd3d3c046c65f6 | d0dff9149a85a150679aa2145c4ffe2ac1ae5c0b | refs/heads/master | 1,592,121,439,883 | 1,564,418,867,000 | 1,564,418,867,000 | 194,953,385 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,794 | lean | /-
Copyright (c) 2019 Jesse Michael Han. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Jesse Michael Han
Monadic parsing in Lean, following Hutton-Meijer's 'Monadic Parsing in Haskell` (doi: 10.1017/S0956796898003050).
A related implementation for character buffe... |
30e0c391941b8557f2625c2ea6fb6da685698da5 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/order/bounds.lean | f027c9d91694e48831089c1e455f2ca3d5d19488 | [
"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 | 24,548 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import algebra.order_functions data.set.intervals.basic
/-!
# Upper / lower bounds
In this file we define:
* `upper_bounds`, `lower_bounds` : the ... |
79fe573405b34a0c33307623a26552b137f0e3b5 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/nat/digits.lean | a3021a07aa3ee3fa23f2a3f6c721c2aaa0b567d7 | [
"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 | 23,204 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Shing Tak Lam, Mario Carneiro
-/
import data.int.modeq
import data.nat.bits
import data.nat.log
import data.nat.parity
import data.list.indexes
import data.list.palindr... |
fdfc2891fa13d77874fa99eb2a811751554343e4 | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/tactic/base.lean | 246f71178a52b7e336f19861835842738f8a37c8 | [
"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 | 85 | lean | import tactic.linarith.frontend
import tactic.omega
meta def dummy_loc := pos.mk 0 0 |
5a952c65d6ff5c1163d8de2994a4f97357f94644 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/quaternion.lean | 7d645994e9ea00a6129855b907d53f3797d110b0 | [
"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 | 24,463 | 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 algebra.algebra.basic
import set_theory.cardinal.ordinal
import tactic.ring_exp
/-!
# Quaternions
In this file we define quaternions `ℍ[R]` over a commutat... |
0a67c56e28c9da734229616ccc14c8859ae42e33 | e953c38599905267210b87fb5d82dcc3e52a4214 | /library/data/real/basic.lean | 14a82a91ce6f83ec4166e5e1beadd492a86ea3d1 | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 38,169 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
To do:
o Rename things and... |
ea15b11433a96cf7eb3d8e8d91951b9fa0bdfe9f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/AssocList.lean | 15f0a14c6f4a78912bb249b78c90938b3d442674 | [
"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 | 3,474 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
universe u v w w'
namespace Lean
/-- List-like type to avoid extra level of indirection -/
inductive AssocList (α : Type u) (β : Type v) where
| nil : Ass... |
a813ed77da351e09d14e05e8dcbc21d02a677649 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/hahn_banach/separation.lean | 615487672eb2bbd1b3963b45ae126399fde221dc | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 10,553 | lean | /-
Copyright (c) 2022 Bhavik Mehta All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Yaël Dillies
-/
import analysis.convex.cone.basic
import analysis.convex.gauge
import topology.algebra.module.locally_convex
/-!
# Separation Hahn-Banach theorem
In this f... |
a33149ca30f5f85fdfc8fe629d2300a9f087acc3 | 3c9dc4ea6cc92e02634ef557110bde9eae393338 | /stage0/src/Lean/Meta/SynthInstance.lean | bcabf3619db62c0537c0b385d6d43da26b6b1d5f | [
"Apache-2.0"
] | permissive | shingtaklam1324/lean4 | 3d7efe0c8743a4e33d3c6f4adbe1300df2e71492 | 351285a2e8ad0cef37af05851cfabf31edfb5970 | refs/heads/master | 1,676,827,679,740 | 1,610,462,623,000 | 1,610,552,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,585 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam, Leonardo de Moura
Type class instance synthesizer using tabled resolution.
-/
import Lean.Meta.Basic
import Lean.Meta.Instances
import Lean.Meta.LevelDefEq
impor... |
f8cd90b3c9ce5f8a279643f5354ea14e1b24659f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/quotient.lean | b853e969c8e2fb26bc09c917edaad0f6ce083749 | [
"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,243 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import category_theory.natural_isomorphism
import category_theory.eq_to_hom
/-!
# Quotient category
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file re... |
a4ad00496b92e1ef5d752ca26705fa3f1a1b2333 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/preadditive/injective.lean | 25382e26823db04d8265f9afda41215233369cb0 | [
"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 | 12,862 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Kevin Buzzard
-/
import algebra.homology.exact
import category_theory.types
import category_theory.preadditive.projective
import category_theory.limits.shapes.biproducts
... |
72744aa8cde89339caeda57138f1044052ec3286 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/polynomial/integral_normalization.lean | d0cbeceb1a948739cfdefd264dcc48e8e7f67fc2 | [
"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 | 5,695 | 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.algebra_map
import data.polynomial.degree.lemmas
import data.polynomial.monic
/-!
# Theory of moni... |
45d4f1379e1f96a04a33490f2c4addd70ef85d23 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/metric_space/gromov_hausdorff.lean | 18279d7d6f71873bed63009313f146140bee0074 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 56,050 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
The Gromov-Hausdorff distance on the space of nonempty compact metric spaces up to isometry.
We introduces the space of all nonempty compact metric spaces, up to ... |
398cd993a5eaaabcc31be7f13f728a38e460980d | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/associated.lean | ca36cf440f5fb87646e082626dcc6db5b036d45b | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,061 | 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, Jens Wagemaker
-/
import data.multiset.basic
import algebra.divisibility
import algebra.invertible
/-!
# Associated, prime, and irreducible elements.
-/
variables {α ... |
607bda012d5c8fa839dc670d89444de1ced3c139 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/category/Top/basic.lean | 056f37c7a58b6add13594563852bd16e204056e9 | [
"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,825 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison, Mario Carneiro
-/
import category_theory.concrete_category.unbundled_hom
import topology.continuous_function.basic
import topology.opens
/-!
# Category... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.