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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9f2e60ea742c1b18c8fd078db20b5f1a4e8f410d | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /universal/comma_categories.lean | b7790b80a03203a84b826440e2f70f9f3dc3f67b | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 4,467 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import ..discrete_category
import ..graph
import .initial
open tqft.categories
open tqft.categories.isomorphism
open tqft.categories.graph
open t... |
47dc97db77c5d94b2ab91eec16c988428f579e42 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/175.lean | b5353fb7a796e01a36717758726b6436e36869aa | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 468 | lean | import Lean
namespace Foo
open Lean.Elab.Term
syntax[fooKind] "foo!" term : term
@[termElab fooKind] def elabFoo : TermElab :=
fun stx expectedType? => elabTerm (stx.getArg 1) expectedType?
#check foo! 10
end Foo
namespace Lean
namespace Elab
namespace Tactic
open Meta
@[builtinTactic clear] def myEvalClear : T... |
ef6f82f4e6f9b41a78c32f2da45526e00bd94b27 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/category_theory/limits/preserves/functor_category.lean | 1620fd098ed4d8bf59542aa6d912b551f81fcce2 | [
"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 | 2,566 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.presheaf
import category_theory.limits.functor_category
import category_theory.limits.shapes.constructions.preserve_binary_products
/-!
# P... |
8d4e6b2c99d147d9e0b4e3d7e6fdd55c9a787f21 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/topology/algebra/monoid.lean | 0029c24c058f285538221d8d006b4f0179d23e28 | [
"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 | 12,430 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.continuous_on
import group_theory.submonoid.basic
import algebra.group.prod
import algebra.pointwise
/-!
# Theory of topological mono... |
31826ee6e8fc8998cdf0f8911f95c6ac869c365a | 66a6486e19b71391cc438afee5f081a4257564ec | /pointed.hlean | 7ee1e9806dcfce9d0581e107ec14f34324a4a289 | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 13,409 | hlean | /- equalities between pointed homotopies and other facts about pointed types/functions/homotopies -/
-- Author: Floris van Doorn
import types.pointed2 .move_to_lib
open pointed eq equiv function is_equiv unit is_trunc trunc nat algebra sigma group lift option
namespace pointed
-- /- the pointed type of (unpointe... |
390ee8d3d0bef9d581d3fcf3cb0ce73a03e40535 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /category_theory/opposites.lean | 1ccdaf14731bbb7e2b8a48f3de9c4b6ec0151d35 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 2,177 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import category_theory.functor
import category_theory.products
import category_theory.types
namespace category_theory
universes u₁ v₁ u₂ v₂
def... |
9c839fd31935732d81fc7edd6ca63adf96322ad3 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/parse_formula.lean | 992eb01e19c4a932d7d019af53845b12346b5137 | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 4,044 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Jesse Michael Han, Floris van Doorn
Parsing formulas from Lean expressions.
-/
import .abel .fol tactic data.list
universe u
/- toy example by Mario -/
section fmla
@[deriv... |
fbc1fe623ae96b82022ac0563f00b9371cfcd696 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Lean/Declaration.lean | 71d9f8c902db56c00f3234a519199f92afbff2db | [
"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 | 13,516 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Expr
namespace Lean
/--
Reducibility hints are used in the convertibility checker.
When trying to solve a constraint such a
(f ...)... |
11f8b602bf54f0766ec0daa819a93f24b9a7a28c | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/1442.lean | d22c036f19240d0a75416d12ebdb52f7c0cddc8f | [
"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 | 573 | lean | protected def rel : ℤ × ℤ → ℤ × ℤ → Prop
| ⟨n₁, d₁⟩ ⟨n₂, d₂⟩ := n₁ * d₂ = n₂ * d₁
private def mul' : ℤ × ℤ → ℤ × ℤ → ℤ × ℤ
| ⟨n₁, d₁⟩ ⟨n₂, d₂⟩ := ⟨n₁ * n₂, d₁ * d₂⟩
example : ∀(a b c d : ℤ × ℤ), rel a c → rel b d → rel (mul' a b) (mul' c d) :=
λ⟨n₁, d₁⟩ ⟨n₂, d₂⟩ ⟨n₃, d₃⟩ ⟨n₄, d₄⟩,
assume (h₁ : n₁ * d₃ = n₃ * d₁) (h... |
e3b101920c0c66b3f44ea522f8f3ecdc39795355 | 8ba901cf307a2677c194984e82644023b5d8f5d8 | /mm0-lean/x86/matching.lean | 5302a8df7ac2a995b3fc25bacf75e64c2ffff028 | [
"CC0-1.0"
] | permissive | julian-becker/mm0 | af57d3043477e1f17bdedcb29d4099bb8a25f692 | 79e2755dec1e6ee238e23e3494e84f82b6c138ac | refs/heads/master | 1,598,672,691,658 | 1,572,192,390,000 | 1,572,192,390,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,099 | lean | import x86.x86 data.set.lattice data.list.basic data.pfun data.list.alist
namespace x86
inductive flag_place | CFP | ZFP | SFP | OFP
def flag_place.read (f : flags) : flag_place → bool
| flag_place.CFP := f.CF
| flag_place.ZFP := f.ZF
| flag_place.SFP := f.SF
| flag_place.OFP := f.OF
def flag_place.write (f : flags... |
7c1586cbca5e3f09671783e5fec3a68f499bee39 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/linear_combination.lean | c1f0921b46dee78a20488a75e3caed5e2c5219f4 | [
"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 | 8,416 | lean | import tactic.linear_combination
import data.real.basic
/-! ### Simple Cases with ℤ and two or less equations -/
example (x y : ℤ) (h1 : 3*x + 2*y = 10):
3*x + 2*y = 10 :=
by linear_combination 1*h1
example (x y : ℤ) (h1 : 3*x + 2*y = 10):
3*x + 2*y = 10 :=
by linear_combination (h1)
example (x y : ℤ) (h1 : x ... |
3ad1ccee72f68e590d6abaf5754dfce03dcef132 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/playground/webserver/Webserver.lean | 71e716b6b56583297366ef6e45c82a9054e9d273 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 5,057 | lean | -- -*- origami-fold-style: triple-braces -*-
import Lean
-- namespace Webserver {{{
namespace Webserver
structure State :=
(verb : String)
(path : String)
(status := "200 OK")
(outHeaders : Array String := #[])
(out : String := "")
(tryNextHandler := false)
abbrev HandlerM := StateT State IO
abbrev Handler := Handle... |
c0f3e4c34b53221cf51fc8d63702cdd00edb9e0d | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20161026_ICTAC_Tutorial/ex21.lean | 6107d13b86b0f9bf302876ad2a9f70781daffeba | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 416 | lean | /- Namespaces -/
namespace foo
def a : ℕ := 5
def f (x : ℕ) : ℕ := x + 7
def fa : ℕ := f a
def ffa : ℕ := f (f a)
print "inside foo"
check a
check f
check fa
check ffa
check foo.fa
end foo
print "outside the namespace"
-- check a -- error
-- check f -- error
check foo.a
check foo.f
check foo.... |
ac36b0f50822879a93bb9d6e56ed213d1c8c5d96 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_632.lean | d1ac7ce1edeab6216fa7f7a663b2aebc634ba16e | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 106 | lean | import data.real.basic
-- BEGIN
example : ∃ x : ℝ, 2 < x ∧ x < 3 :=
⟨5 / 2, by norm_num⟩
-- END |
facd5768210a84a48a42c763b135ed53d6e2539c | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/analysis/complex/polynomial.lean | 5d13cfcf7a5c2d36eb19088af335b03b88199976 | [
"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 | 6,027 | 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
namespace complex
... |
876ade83c2f809d3ac7797f5af75c6242c9adf6f | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Init/Meta.lean | 533fc8f80902f950c62d4ebdd3958c1f821ac4e3 | [
"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 | 46,885 | 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 and Sebastian Ullrich
Additional goodies for writing macros
-/
prelude
import Init.Data.Array.Basic
import Init.Data.Option.BasicAux
namespace Lean
@[extern... |
3906668fd4dd1e192785fac5aa9cefb661afc79a | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/cpdt.lean | 086c8b7f501dd4573acd3889c892134b82d89b04 | [
"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 | 1,075 | lean | /- "Proving in the Large" chapter of CPDT -/
inductive exp : Type
| Const (n : nat) : exp
| Plus (e1 e2 : exp) : exp
| Mult (e1 e2 : exp) : exp
open exp
def eeval : exp → nat
| (Const n) := n
| (Plus e1 e2) := eeval e1 + eeval e2
| (Mult e1 e2) := eeval e1 * eeval e2
def times (k : nat) : exp → exp
| (Const n) ... |
f0a405822706ab4524198f859b575e1498df00b9 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/algebra/char_zero.lean | 227874cf64fa955bfb5adc30c48683acdf1b170c | [
"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 | 3,106 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Natural homomorphism from the natural numbers into a monoid with one.
-/
import data.nat.cast algebra.group algebra.field
/-- Typeclass for monoids with characteristic... |
67b1a07c44bbbb978ec7a4772a418f4030190f25 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category/fold.lean | 847a097012844420a6de6f4b25a7a449e1e08c4a | [
"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 | 14,624 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Sean Leather
List folds generalized to `traversable`. Informally, we can think of
`foldl` as a special case of `traverse` where we do not care about the
reconstructed data s... |
b815f045a599b815ac35b925d3041e74fe0b60d5 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/analysis/normed_space/bounded_linear_maps.lean | 3c9e109a0e4ab21493c29cedc30f3fad4124ecea | [
"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 | 25,326 | 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
-/
import analysis.normed_space.multilinear
import analysis.normed_space.units
import analysis.asymptotics.asymptotics
/-!
# Bounded linear maps
This f... |
a7ee846c526d2549284f6e2234cdb157730f3686 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/arrow.lean | 5b7d246712a6188933f220dd683a5ccc085dbe22 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 130 | lean | import Int.
print (Int -> Int) -> Int
print Int -> Int -> Int
print Int -> (Int -> Int)
print (Int -> Int) -> (Int -> Int) -> Int
|
821cb5bd8ed62850ac628d0b6f53541ac0ed1bad | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/implicitTypesRecCoe.lean | b24ad0cce69eca6de559efdd75720521f352c50e | [
"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,215 | lean |
unsafe def f (n : Nat) :=
let rec g (x : Nat) :=
if x > 0 then
/- This example relies on the instance `coeId {α} (a : α) : CoeT α a α`,
The type of `g` is not provided. Thus, the expected type is
`?m x` since the elaborator assumes it may depend on `x`.
Thus, the expected type for the addition is `?m... |
212018587dcf5435cbe59e382a99816086a398f3 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/polynomial/div.lean | 76cb1fda0b61071a5de73b4fb51068204eacaabf | [
"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 | 25,839 | 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.monic
import ring_theory.euclidean_domain
import ring_theory.multiplicity
/-!
# Division of univar... |
2daa256990bed640032ab693fcf1e0c8fc521268 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/star/pointwise.lean | 4885c23b117cb9d45397c4babcf2019b703c0869 | [
"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,381 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import algebra.star.basic
import data.set.finite
import data.set.pointwise.basic
/-!
# Pointwise star operation on sets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
3a856ad7f5785e13640948def52b93010dc72fa6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finset/prod.lean | 9bca2f43adcf705812e4653b9cf2e3d9c15ab4f1 | [
"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,988 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Oliver Nash
-/
import data.finset.card
/-!
# Finsets in product types
This file defines finset constructions on the product type `α × β`. Bewar... |
57240b4dc409a530bc42eb794d4a309655409ce3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/complete_lattice.lean | e67a577f6f81fa018908521da6fc878850e26910 | [
"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 | 53,728 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.bool.set
import data.nat.basic
import order.bounds
/-!
# Theory of complete lattices
## Main definitions
* `Sup` and `Inf` are the supremum and the inf... |
3df0c06ee8c8f3062994ee9e3ded6e89c89d9da7 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/linear_algebra/linear_independent.lean | e8878eca6ff359ca58e9de1ec2ef80fe4b87c5a1 | [
"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 | 56,533 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp, Anne Baanen
-/
import linear_algebra.finsupp
import linear_algebra.prod
import data.equiv.fin
import set_theory.cardinal
/-!
# Linear... |
ff1d9a7223933a71d8e9dc07dc49b2e701dd9848 | 618003631150032a5676f229d13a079ac875ff77 | /src/group_theory/subgroup.lean | 5a576958413f8aa59b083900e71e4a5e8e7dc2ae | [
"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 | 29,236 | 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, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro,
Michael Howes
-/
import group_theory.submonoid
open set function
variables {G : Type*} {H : Type*} {... |
337097de44a0ee5d03aba2c35374370854c73619 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/measure_theory/measure_space.lean | 2e77d56cac02e890da1f3fbeafd8d873c8e19573 | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 77,198 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import measure_theory.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
Given a measurable space `α`... |
62bc2b7737874bf032a40886712d98e4e8ccf71e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewriter16.lean | 596fb7a470c468d6a9c1b9120fc733e891daf08c | [
"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 | 124 | lean | import data.nat
open nat algebra
theorem tst (x : nat) (H1 : x = 0) : x = 0 :=
begin
rewrite *add_zero,
rewrite H1
end
|
c8dba7abc574cf689b513718818736814b0a6fd7 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/real/default.lean | 21e4a435fdfe8195337a46f0dfa4b80c1a224b29 | [
"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 | 202 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import .basic .order .division .complete
|
5c8a1b38f1e4bd509c407e001e0a2a824e75e138 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1025.lean | 74d5023bceacc512cb0be7698e638bb572913b31 | [
"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 | 774 | lean | inductive Vector (α : Type u): Nat → Type u where
| nil : Vector α 0
| cons (head : α) (tail : Vector α n) : Vector α (n+1)
class Order (α : Type u) extends LE α, LT α, Max α where
ltDecidable : DecidableRel (@LT.lt α _)
max_def x y : max x y = if x < y then x else y
namespace Vector
def mem (a : α) : Vector α ... |
213478321511b5daa49ed7ace9800213146f1cff | 61ccc57f9d72048e493dd6969b56ebd7f0a8f9e8 | /src/analysis/analytic/composition.lean | 277d860c275381b18a1f1a7cde587987c2498b33 | [
"Apache-2.0"
] | permissive | jtristan/mathlib | 375b3c8682975df28f79f53efcb7c88840118467 | 8fa8f175271320d675277a672f59ec53abd62f10 | refs/heads/master | 1,651,072,765,551 | 1,588,255,641,000 | 1,588,255,641,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,946 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.analytic.basic
import combinatorics.composition
/-!
# Composition of analytic functions
in this file we prove that the composition of analytic... |
300894a82d9de902286b2441e01d2cbd3379efcd | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/deps/galois_stdlib/src/Galois/Data/ParserComb.lean | 3813e0136596ad0da24888d7e4a7ac0e3af169eb | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 3,049 | lean | -- Parsing combinators
import Init.System.IO
import Init.Control.State
import Init.Control.Id
import Init.Control.Option
-- Single-valued, backtracking on failure
structure Parser (tok : Type) (a : Type) :=
( run : StateT (List tok) (OptionT Id) a )
namespace Parser
variables {tok a b : Type}
instance : HasOrels... |
028062009a957908e12af17cffb68fca83e1dc9c | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Elab/Quotation.lean | 426a1c549a88e7d15bd744e71dcb1f699fd301b0 | [
"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 | 20,822 | 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.
-/
prelud... |
5ea6fe218611c9eb1ffb61a47b70cf46693e77c4 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Meta/Match/CaseArraySizes.lean | f83391fa4838884524841f7a5119b1b51a921e4a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 3,842 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Assert
import Lean.Meta.Match.CaseValues
namespace Lean.Meta
structure CaseArraySizesSubgoal where
mvarId : MVarId
elems : Ar... |
3396f63ee76d5c63b6cc3e02f9b149b0590dda66 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/simplicial_complex/basic.lean | f29d4b338165830a4729f24a28f5515ad8304a7c | [
"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,921 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.convex.hull
import linear_algebra.affine_space.independent
/-!
# Simplicial complexes
> THIS FILE IS SYNCHRONIZED WITH MATHL... |
1e5dc1ac9abe1da7fd629bd8355ce1f40040daa1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/measure_theory/category/Meas.lean | a1edbaafd86dae82add0e907625f85aecd3da35b | [
"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,316 | 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
-/
import topology.category.Top.basic
import measure_theory.giry_monad
import category_theory.monad.algebra
/-!
# The category of measurable spaces
Measurable spaces a... |
df4ad57aafa5b64ce68bf4eac0ab6a7a1d2a3f34 | db7384d2e2fd918ae6383e28c1e441b390107ab9 | /examples/category/monoidal.hlean | 7449c1bf5bc6f697733b83050049ff0692a5b41a | [] | no_license | minfuk/leanprover | f08a8ec10d9e210d4f1bf388c61201a68588faaf | d51a8eb4e829ecef546e86f3915a58762cc7d3b9 | refs/heads/master | 1,585,996,825,236 | 1,459,673,617,000 | 1,459,673,617,000 | 55,336,710 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 316 | hlean | import algebra.category.precategory algebra.category.category
algebra.category.functor.basic algebra.category.functor.equivalence
algebra.category.nat_trans
algebra.category.constructions.product algebra.category.constructions.functor
open eq prod category functor iso prod.ops nat_trans category.hom
|
3e94450274656826dc44b62810893b299d5840f8 | c19879c147c0dff0a7348a8264e74b58a37969c4 | /src/01_basics.lean | 64a961d9754511e657db240f5e3124303347674b | [] | no_license | gebner/leantogether2019_tutorial | f2aac98f2097bd6ac8ce396abc9a676f0eda71bd | 21b4dc890f964fc98837129094b8bab68363349f | refs/heads/master | 1,586,899,127,009 | 1,546,796,548,000 | 1,546,796,548,000 | 164,124,225 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,319 | lean | /-
Definitions
-/
def square (m : ℕ) : ℕ :=
m * m
-- We can write the same function as a lambda
def square' : ℕ → ℕ :=
λ (m : ℕ), m * m
-- ... or using pattern matching
def square'' : ℕ → ℕ
| 0 := 0
| (m+1) := square'' m + 2 * m + 1
/-
Interactive commands
-/
#print square'
#eval square' 12
#check squa... |
f6b4bdcec21b48a2403050300e31de91d6b8a357 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Std/Data/PersistentHashMap.lean | 33f8b67367031dedd6831ed80cf8fbb1b06c369a | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,382 | 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
-/
namespace Std
universes u v w w'
namespace PersistentHashMap
inductive Entry (α : Type u) (β : Type v) (σ : Type w) :=
| entry (key : α) (val : β) : Ent... |
95a385a70d16f5396100c35e42d5f05e9f8a89ae | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/sigma/lex_auto.lean | 50ca1760b44ec9e9059373daa5e2491fe6093cda | [] | 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,352 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.sigma.basic
import Mathlib.Lean3Lib.init.meta.default
universes u v
namespace Mathlib
namespace ... |
ff61d4a63424d4cc96596718150c3ec879e8664b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/general_commutator.lean | 40b8af50f46d00906ec827d0671102073687b132 | [
"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 | 4,393 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning, Patrick Lutz
-/
import data.bracket
import group_theory.subgroup.basic
import tactic.group
/-!
# General commutators.
If ... |
06a543ebf1b8d1f2916e73addffedb56bcb46902 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/list/perm.lean | 0d13540ac5fb45225b9319808660e4f8802245e4 | [
"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 | 41,626 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
List permutations.
-/
import data.list.basic data.list.set
open list setoid nat binary
variables {A B : Type}
inductive perm : list A → list A → Prop :=
| ni... |
2d1970a634711725befbf403dc1cc69901326598 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/field_theory/splitting_field.lean | facc9f4764d6493723e950d1cef8b3ab5269c2a6 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,465 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Definition of splitting fields, and definition of homomorphism into any field that splits
-/
import ring_theory.adjoin_root
import ring_theory.algebra_tower
import ring_the... |
2ae93b800e97c2fb4c0ac8f3f9bf8b0f79b768a6 | 43390109ab88557e6090f3245c47479c123ee500 | /src/Topology/Material/topology_thoughts.lean | eba37101492b0d0dfc1030fa4526f89bdd93dcf0 | [
"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 | 977 | lean | import analysis.metric_space
import tactic.norm_num
local attribute [instance, priority 0] classical.prop_decidable
noncomputable theory
def discrete_metric_space' (α : Type*) : metric_space α :=
{
dist := λ a b, if a = b then 0 else 1,
dist_self := begin intro x, unfold ite,
rw eq_true_intro (eq.ref... |
aefa06a4309f20d792ba3d7d27ade013c78c23ce | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /hott/init/equiv.hlean | 3e291149301feb814450d4a400ab9aef018d6b0f | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,801 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.equiv
Author: Jeremy Avigad, Jakob von Raumer
Ported from Coq HoTT
-/
prelude
import .path .function
open eq function
/- Equivalences -/
-- This is our definition of eq... |
f1420988e4c416a9f19885ab3477f585f7f9c498 | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /tests/playground/parser/test1.lean | 34327e632c55291b046eb5bcba7751ce8ef0147a | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,613 | lean | import parser
open Parser
def mkNumPairKind : IO SyntaxNodeKind := nextKind `numPair
@[init mkNumPairKind] constant numPairKind : SyntaxNodeKind := default _
def mkNumSetKind : IO SyntaxNodeKind := nextKind `numSet
@[init mkNumSetKind] constant numSetKind : SyntaxNodeKind := default _
def mkParenIdentKind : IO Synta... |
0e8cf2de03d196e8cd0b1af788623641de66c11b | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /hott/types/bool.hlean | c25d5f1388b2d0825755e8529fe1a7d7198beb47 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,921 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Floris van Doorn
Partially ported from the standard library
-/
open eq eq.ops decidable
namespace bool
local attribute bor [reducible]
local attribute b... |
ea36135937b1993583074ce81d0f9b3449c9d89f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/pempty_auto.lean | 2d2cdecb28d941db328b0ee9369a3ae5f6315e74 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,502 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.discrete_category
import Mathlib.PostPort
universes v u
n... |
5412edb2a0bfcac73bedf0c2d772d6220bda24f8 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/specialize1.lean | 8f473d397a8712f973ad1a1778eb0afb7e6f2b35 | [
"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 | 668 | lean | example (x y z : Prop) (f : x → y → z) (xp : x) (yp : y) : z := by
specialize f xp yp
assumption
example (B C : Prop) (f : forall (A : Prop), A → C) (x : B) : C := by
specialize f _ x
exact f
example (B C : Prop) (f : forall {A : Prop}, A → C) (x : B) : C := by
specialize f x
exact f
example (B C : Prop)... |
b74ca54742cff1c0c89786a3f22f7452d02fc5e5 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/order/bounded_lattice.lean | 82c56da92482b4d34a165b8acbfb4a3fbd9fac05 | [
"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 | 49,031 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.option.basic
import logic.nontrivial
import order.lattice
import tactic.pi_instances
/-!
# ⊤ and ⊥, bounded lattices and variants
This file defines top ... |
8df75e6deb13d6e642d8399e8b1737f710d6cdd0 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world05/level04.lean | 75f7874cbe10b809582172983c1e0b1dc1a8d74f | [] | 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 | 159 | lean | example (P Q R S T U: Type)
(p : P)
(h : P → Q)
(i : Q → R)
(j : Q → T)
(k : S → T)
(l : T → U)
: U :=
begin
apply l,
apply j,
apply h,
exact p,
end
|
1de6ae31af8d467ba161d9f0a517add1c47b1452 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Mathlib/Squeeze.lean | 5035ee2dff1f008794b070acdec9655051a09546 | [
"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 | 2,105 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Tactic.Basic
import Mathport.Syntax.Translate.Tactic.Lean3
open Lean
namespace Mathport.Translate.Tactic
open Mathport.Trans... |
c42492f1ef8b53b53de0f1ee73c55f71fc4256be | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/916.lean | 7223b859ab955e7da587edaaaa46d2196cf4984a | [
"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 | 64 | lean | example : Id Nat := do
let mut x := 1
have x : Nat := 2
x
|
da3897debdba03d73f5a95f3e4f8d23793f2444b | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/cubical/pathover2.hlean | e0a41b123f96c321347d7fe7cf9d59465b7e3752 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 5,975 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Coherence conditions for operations on pathovers
-/
open function equiv
namespace eq
variables {A A' A'' : Type} {B B' : A → Type} {B'' : A' → Type} {C : Π⦃a⦄, ... |
3abb5de7f3f20351a26c52c36da1bcf7f3d5c9f0 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/calculus/parametric_integral.lean | be34d75e7fda7ea2068f4bf4a24e615c6cbe9844 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,566 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import measure_theory.integral.set_integral
import analysis.calculus.mean_value
/-!
# Derivatives of integrals depending on parameters
A parametric integral is a fu... |
3539c505069b85e24747816b943894f3ef95a6eb | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/sig6.lean | 620d7b1be9f8fa1516ce0c257cd2c6dde48ca47e | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 510 | lean | variables A B : (Type U)
variables t1 t2 : A ⨯ B
axiom pair_Ax {A : (Type U)} {B : A → (Type U)} (p : sig x, B x) : (pair (proj1 p) (proj2 p) : sig x, B x) = p
theorem spairext {A B : (Type U)} {p1 p2 : A ⨯ B} (H1 : proj1 p1 = proj1 p2) (H2 : proj2 p1 = proj2 p2) : p1 = p2
:= calc p1 = (pair (proj1 p1) (proj2 p1)) : ... |
a39632f81dc9dd5571d572df644e69459801c2dd | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/calcBug.lean | f04caf586bac34bdb682b86d9eb6061ab4573018 | [
"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 | 328 | lean | namespace Hidden
open Nat
theorem zero_add (n : Nat) : 0 + n = n :=
Nat.recOn (motive := fun x => 0 + x = x)
n
(show 0 + 0 = 0 from rfl)
(fun (n : Nat) (ih : 0 + n = n) =>
show 0 + succ n = succ n from
calc
0 + succ n = succ (0 + n) := rfl
_ = succ n := by rw [ih])
end... |
cebbf1141ff1c2402bb3d81a433ee394c2b99590 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/prod.lean | 22232fa2d0a0fc49c6b628b11e737b7d4cfac8db | [
"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,242 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Eric Wieser
-/
import algebra.group.prod
import group_theory.group_action.defs
/-!
# Prod instances for additive and multiplicative actions
This file define... |
1139766dd2e9cd7c78c341b283f876f3c1492688 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/number_theory/pythagorean_triples.lean | 05eb3f7193fc8df26550f70161d10028639b4ce3 | [
"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 | 25,775 | lean | /-
Copyright (c) 2020 Paul van Wamelen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul van Wamelen
-/
import algebra.field.basic
import ring_theory.int.basic
import algebra.group_with_zero.power
import tactic.ring
import tactic.ring_exp
import tactic.field_simp
im... |
212387112ec7a2d91f150a6bea5e86a7adcab16c | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/locally_convex/with_seminorms.lean | 3f1cba49ad904110c2987b79d953980d077c0ab1 | [
"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 | 20,682 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll, Anatole Dedecker
-/
import analysis.seminorm
import analysis.locally_convex.bounded
/-!
# Topology induced by a family of seminorms
## Main definitions
* `seminorm_family... |
0ddd5bed2cfd0f90c1a27a487cc320e7d0f6df61 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/set_theory/cardinal.lean | 3d1bbe1465d23c8dc029cb7f8214cefce63d427c | [
"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 | 45,509 | 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, Mario Carneiro
-/
import data.set.countable
import set_theory.schroeder_bernstein
import data.fintype.card
/-!
# Cardinal Numbers
We define cardinal numbers as a quoti... |
f5cbf757640ea0e6c10fd4b88e67a4118eed9caf | a721fe7446524f18ba361625fc01033d9c8b7a78 | /elaborate/append_init_last_nat.lean | 1fb9d286a15d1cbdcecbf0133c95b2eff9624ca9 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 39,023 | lean | λ {lst : mylist mynat} (h : lst = empty → false),
mylist.rec
(λ (h : empty = empty → false),
false.rec (false.rec (mylist mynat) (h (eq.refl empty)) ++ false.rec mynat (h (eq.refl empty)) :: empty = empty)
(h (eq.refl empty)))
(λ (lst_head : mynat) (lst_tail : mylist mynat)
(lst_ih : ∀ (h... |
a7d62cc4894cb5d780f5ffdd751acb2b8605a696 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/geometry/euclidean/inversion.lean | 0ad5c99bb4357a18e2f97ca749056afc5d44c7e2 | [
"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 | 5,370 | lean | /-
Copyright (c) 2022 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import geometry.euclidean.basic
/-!
# Inversion in an affine space
In this file we define inversion in a sphere in an affine space. This map sends each poin... |
c259e5b81def8390e8efbce32ef0574d6e2ac486 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/lie/engel.lean | 78ba41c33c521738a658ca087a646f9126bfdc6b | [
"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 | 13,623 | lean | /-
Copyright (c) 2022 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.nilpotent
import algebra.lie.centralizer
/-!
# Engel's theorem
This file contains a proof of Engel's theorem providing necessary and sufficient conditi... |
c937324434db5e6155b33ef60ba49834a1ac5cde | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/algebra/group_power/lemmas.lean | e5f001a7bdfac68d7a5f6277d85e4a90200ac5af | [
"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 | 34,910 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.group_power.basic
import algebra.opposites
import data.list.basic
import data.int.cast
import data.equiv.basic
import deprecated.group
... |
2be731b34fe28e0fa78092dbfc785ad68457b552 | 3b1abba731363bfec018d9d2cfee7fd90e1dc93c | /RT_n_m.lean | bfe8c4055f59646a065f9ebb1bee1f85a1e7e0e8 | [] | no_license | minchaowu/Ramsey.lean | dcf4e0845cca6dc02ef898f3fd9123c079c5a1a9 | 8ebbead4869bdf3f4788137411c5f36f2e72943a | refs/heads/master | 1,610,462,544,433 | 1,488,596,497,000 | 1,488,596,497,000 | 72,063,527 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,959 | lean | import definitions lemmas_for_RT_n_m RT_1_2 RT_n_2
open classical set nat decidable
noncomputable theory
theorem RT_n_m (n m : ℕ) : ∀ X : set ℕ, ∀ c : set ℕ → ℕ, infinite X → is_coloring X (n+1) (m+2) c → ∃ S, S ⊆ X ∧ infinite S ∧ is_homogeneous X c (n+1) (m+2) S :=
nat.induction_on m
(take X, take c, assume H1, ass... |
e3233bba1cc6ce22d324dba016f141ea8e89043c | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/topology/homeomorph.lean | 64328f6ebcc5a2bebc04b04cb1c08487ca2c11a7 | [
"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 | 12,608 | 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 topology.dense_embedding
open set filter
open_locale topological_space
variables {α : Type*} {β :... |
e81818efaae534aa9a0ede07055efb49a35edc8a | fe84e287c662151bb313504482b218a503b972f3 | /src/data/int_lemmas.lean | d1ed1c411bd6ccd3e7a5c28281b105d297051ba6 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,305 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
Some basic lemmas about integers. I should check whether the
new coercion tactic makes them trivial.
-/
import data.fintype.basic data.nat.sqrt
lemma int.lt_succ_... |
6ef92f625f3739569c5f2640cf61717526ec0dc0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/typeclass_metas_internal_goals2.lean | 98a2df71077d79c5b84ff7be847b1767ba5d9b52 | [
"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 | 413 | lean |
class Foo (α β : Type) : Type := (u : Unit := ())
class Bar (α β : Type) : Type := (u : Unit := ())
class Top : Type := (u : Unit := ())
instance FooNatA (β : Type) : Foo Nat β := {u:=()}
instance BarANat (α : Type) : Bar α Nat := {u:=()}
set_option synthInstance.checkSynthOrder false in
instance FooBarToTop (α β : ... |
90263087f6f33a692d903e26e6b27c90759ab35e | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/algebra/module/linear_map.lean | 6d8920ced26b250ffc5b7206c4b38b16cc6016b3 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,859 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro, Anne Baanen
-/
import algebra.group.hom
import algebra.module.basic
import algebra.group_action_hom
/-!
# Linear maps and... |
5848ff383c9a4443803ee4b31cf1178daa7eb866 | 976d2334b51721ddc405deb2e1754016d454286e | /src/game_files/sqrt2/sq_eq_zero2.lean | fa9a134e62ae1fbb95563188a3a634f6c85c300b | [] | no_license | kbuzzard/lean-at-MC2020 | 11bb6ac9ec38a6caace9d5d9a1705d6794d9f477 | 1f7ca65a7ba5cc17eb49f525c02dc6b0e65d6543 | refs/heads/master | 1,668,496,422,317 | 1,594,131,838,000 | 1,594,131,838,000 | 277,877,735 | 0 | 0 | null | 1,594,142,006,000 | 1,594,142,005,000 | null | UTF-8 | Lean | false | false | 143 | lean | lemma sq_eq_zero_iff_eq_zero (m : ℕ) : m^2 = 0 ↔ m = 0 :=
begin
split,
{ apply eq_zero_of_sq_eq_zero },
intro h, rw h, ring,
end |
9e896c20b2278f544ede191627119a920ee9aeac | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/monoidal/End.lean | 872bc5a39375725eb13bc5619804747f8ecbec91 | [
"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 | 2,527 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monoidal.functor
/-!
# Endofunctors as a monoidal category.
We give the monoidal category structure on `C ⥤ C`,
and show that when `C` itself... |
6320ba3b6b628f0736fd277871732ec647fd6e48 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/representation_theory/maschke.lean | 0eee7243865a4b133e9f15788b627d4776c46d8f | [
"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,491 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.monoid_algebra.basic
import algebra.char_p.invertible
import linear_algebra.basis
/-!
# Maschke's theorem
We prove **Maschke's theorem** for finite g... |
405a8979395d22156eda41af17c39d758dcb7300 | 92b50235facfbc08dfe7f334827d47281471333b | /library/data/quotient/util.lean | 174bd121b2b8dfe9f0eb16caf0eba2554a1be303 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 7,023 | lean | /-
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
-/
import logic ..prod algebra.relation
open prod eq.ops
namespace quotient
/- auxiliary facts about products -/
variables {A B : Type}
/- flip -/
definiti... |
fc20c772a589ea515d30cb3558ba7ac5adcf3c80 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/bases.lean | 0dc17441b19f6d715f2993dc664872c07aeea852 | [
"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 | 22,042 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.continuous_on
/-!
# Bases of topologies. Countability axioms.
A topological basis on a topological space `t` is a collection of set... |
c5ee50956ab57df85d10824dcc989d355f699175 | 2385ce0e3b60d8dbea33dd439902a2070cca7a24 | /tests/lean/run/1685.lean | 7de58d60c5a6dde4bdbfc271673b9018d90620b9 | [
"Apache-2.0"
] | permissive | TehMillhouse/lean | 68d6fdd2fb11a6c65bc28dec308d70f04dad38b4 | 6bbf2fbd8912617e5a973575bab8c383c9c268a1 | refs/heads/master | 1,620,830,893,339 | 1,515,592,479,000 | 1,515,592,997,000 | 116,964,828 | 0 | 0 | null | 1,515,592,734,000 | 1,515,592,734,000 | null | UTF-8 | Lean | false | false | 2,622 | lean | /- This test assumes the total order on terms used by simp compares local constants
using the order they appear in the local context. -/
example (m : ℕ) : ∀ n k, m + n = k → n + m = k := by intros; simp; assumption
example (m : ℕ) : ∀ n k, m + n = k → n + m = k := by intros; simp; assumption
example (m : ℕ) : ∀ n k,... |
d8d20000f34ae5359992d528a703036293ba12c3 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/linear_algebra/matrix/nonsingular_inverse.lean | e247fa8e54051c6875368c818677803ae5553a3d | [
"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 | 31,211 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baanen, Lu-Ming Zhang
-/
import algebra.associated
import algebra.regular.smul
import data.matrix.notation
import linear_algebra.matrix.polynomial
import tactic.linarith
import tactic.... |
ce43c75ed9aaca688b0f173644a8fefd1d543aa9 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Util/FindMVar.lean | 4d18130a1f78ab74a27aa0a1601bc525140ff928 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,046 | 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.Expr
namespace Lean
namespace FindMVar
abbrev Visitor := Option MVarId → Option MVarId
mutual
partial def visit (p : MVarId → Bool) (e : E... |
35457238d83b048d9fe67f34a270e6596756a1d8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/continued_fractions/computation/terminates_iff_rat.lean | dddf5af9ecba89477720c3e7adaa1b5b2df3f07f | [
"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 | 14,232 | 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 algebra.continued_fractions.computation.approximations
import algebra.continued_fractions.computation.correctness_terminating
import data.rat
/-!
# Termina... |
edc8064a9ba67bcee232627849385762037b3d68 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/group_with_zero/defs.lean | 2465879a2a70252a4004b1e4ad6e2d68a1ddfab8 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,434 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group.defs
import logic.nontrivial
/-!
# Typeclasses for groups with an adjoined zero element
This file provides just the typeclass definitions, and ... |
a479406d02696cb40e7383d4e4ca277cb56aa91d | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/pfin/default.lean | bbdf59fc03d21ad227a3a36125637f39ae044b93 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52 | lean | import pfin.basic pfin.ops pfin.lemmas pfin.fintype
|
9e891b19cc2131b9c77afdc6ec05e0bc5c5b8672 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Data/OpenDecl.lean | 6fef6f08a68e63612654c10ac053a4398b4efdd4 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 758 | 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.Data.Name
namespace Lean
inductive OpenDecl
| simple (ns : Name) (except : List Name)
| explicit (id : Name) (declName : Name)
namespac... |
8d4148192c7c80ff3987061e6d42c3d1864556b0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/hashableBug.lean | 0e21932fc4556888967345217201eac18e110290 | [
"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 | 87 | lean | inductive Step (α : Type u) where
| impossible : α → Step α
deriving Hashable
|
1d6a73be99b195335c5905f1d194d1a36d2e529a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/coe2.lean | 84c2e92ab2436b5a344e011ca11b21618a48f97f | [
"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 | 895 | lean | namespace hidden
set_option pp.coercions false
#check if tt then "a" else "b"
/- Remark: in the standard library nat_to_int and int_to_real are has_lift instances
instead of has_coe. -/
constant int : Type
constant real : Type
constant nat_to_int : has_coe nat int
constant int_to_real : has_coe int real
attribute... |
60cea66fa0cab941a0b818843230a345a95baa99 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/problem_sheets/Part_II_sheet1.lean | 72cffe0a58e5fe06448bef58c6063b721a7998c4 | [] | 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 | 660 | lean | import tactic
variables (x y : ℕ)
open nat
theorem Q1a : x + y = y + x :=
begin
sorry
end
theorem Q1b : x + y = x → y = 0 :=
begin
sorry
end
theorem Q1c : x + y = 0 → x = 0 ∧ y = 0 :=
begin
sorry
end
theorem Q1d : x * y = y * x :=
begin
sorry
end
theorem Q2a : 1 * x = x ∧ x = x * 1 :=
begin
sorry
end
... |
17d9bd468a61f92bb3381b0acbb6d90dc70e2119 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Meta/Message.lean | 7cc26d0fa3d1ab805b81ac9b0fbf6f316cba21d6 | [
"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,608 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Meta.Basic
namespace Lean
namespace Meta
namespace Exception
private def run? {α} (ctx : ExceptionContext) (x : MetaM α) : Option... |
8aed5134f84c770bb29afb3c4ca3a770ad4c63b5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/ideal/over.lean | 016bad775a0082602137f5bb4cdd23dbfac523a8 | [
"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 | 14,558 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import ring_theory.algebraic
import ring_theory.localization
/-!
# Ideals over/under ideals
This file concerns ideals lying over other ideals.
Let `f : R →+* S` be a ring... |
797251f6e8b8cc4b8d4f12d542eec8561e240355 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /test/library_search/basic.lean | 0e952cd412ea14b23b530ac2b2491115c06223f1 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 4,654 | 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 data.nat.basic
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search true
/- For debugging purposes, we ... |
dac548a81e839f770bfb6c80428a3251435abdf5 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Elab/Import.lean | 4d5ac679e02b2bf02fecca5ae37691b7321b950e | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 2,009 | 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
-/
prelude
import Init.Lean.Parser.Module
namespace Lean
namespace Elab
def headerToImports (header : Syntax) : List Import :=
let header ... |
e4f5f3b5a3863c261cb17abe32449b7103382781 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/combinatorics/derangements/exponential.lean | 9d1a1dc3c58aeab7a300725fb7ec8e432fa7c4ef | [
"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,887 | lean | /-
Copyright (c) 2021 Henry Swanson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henry Swanson, Patrick Massot
-/
import analysis.normed_space.exponential
import combinatorics.derangements.finite
import order.filter.basic
/-!
# Derangement exponential series
This ... |
0dc1934b134b4fef094d57063545a69f3dcfd78c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/bigUnivOffsets.lean | 1cb12dc39230d70bbf4c8ca63ca78e9a121a6baf | [
"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 | 62 | lean | #check Type 100000000
universe u
#check Type (u + 10000000)
|
7f538e79c78e831485078d1166dd6df64ade7d0c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/invariant_basis_number_auto.lean | 193bc6d19807111cea9fc302eb22558e842f6ff0 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,026 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.finite_dimensional
import Mathlib.ring_theory.ideal.basic
import Mathlib.PostP... |
87dec63672f4bc1fbc778995f732c13e39fa000a | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Data/Lsp/Capabilities.lean | 3ad3e7386edad9e13a94aedb66eeeaf8019e5ec4 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 936 | 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 Lean.Data.JsonRpc
import Lean.Data.Lsp.TextSync
/-! Minimal LSP servers/clients do not have to implement a lot
of functionality. Most useful... |
77b3c95c3a2a9f414cec57fc32707cfe4b871c39 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/alternating.lean | c828f011cb6947fb2237b9d2fc2ce36f3b77ea60 | [
"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 | 31,924 | 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... |
0ea519315562e0034d3d912983bb389f65ac2f78 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/unreachable_cases.lean | 09606047a39ed95991df2e55dc1014f5efd21b1b | [
"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 | 600 | lean | open nat prod
inductive ifin : ℕ → Type -- inductively defined fin-type
| fz : Π n, ifin (succ n)
| fs : Π {n}, ifin n → ifin (succ n)
open ifin
noncomputable definition foo {N : Type} : Π{n : ℕ}, N → ifin n → (N × ifin n)
| (succ k) n (fz .k) := sorry
| (succ k) n (fs x) := sorry
noncomputable definition bar {N : ... |
961c79ae5a5ef198f07d9c1be7bc600c334459a1 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/mv_polynomial/monad.lean | aa55345fa1bc2ac5b8295a16568c409984f141ee | [
"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 | 13,430 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import data.mv_polynomial.rename
/-!
# Monad operations on `mv_polynomial`
This file defines two monadic operations on `mv... |
e7a9cafccd419f355b67ad6dc950df123a45617b | 0d107d7abd6ae235d586830f8e09b1b30e7eef0b | /src/math_limit_2/Solution.lean | 653515db20fcd292b4cb4f11fffc148e5e4d4b55 | [] | no_license | ukikagi/codewars-lean | 6b9a83ebbb159e7eebf8551b745a1c4d450e747f | 1912f2a4e25e917abfce70d65c0469cfac19dc93 | refs/heads/master | 1,672,948,190,244 | 1,603,361,004,000 | 1,603,795,841,000 | 303,746,208 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 423 | lean | import .Preloaded
theorem exercise_1p3 (x y : ℕ → ℝ) (l : ℝ)
(h₁ : ∀ n, abs (x n - l) ≤ y n) (h₂ : lim_to_inf y 0) :
lim_to_inf x l :=
begin
unfold lim_to_inf at *,
intros ε hep,
specialize h₂ ε hep, simp at h₂,
cases h₂ with N H,
use N,
intros n hn,
specialize H n hn,
apply lt_of_le_of_lt,
exa... |
bb2ed01e52c02a36014a4f95b351a5ac7fda9c79 | 4767244035cdd124e1ce3d0c81128f8929df6163 | /data/list/basic.lean | e25ec6517a555354a80c06f07e5b07c2b74c3839 | [
"Apache-2.0"
] | permissive | 5HT/mathlib | b941fecacd31a9c5dd0abad58770084b8a1e56b1 | 40fa9ade2f5649569639608db5e621e5fad0cc02 | refs/heads/master | 1,586,978,681,358 | 1,546,681,764,000 | 1,546,681,764,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 183,592 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Basic properties of lists.
-/
import
tactic.interactive tactic.mk_iff_of_inductive_prop tactic... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.