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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
93f51b1d721732b79d659becbd0d05fc3b07ef33 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/vm_noncomputable_real.lean | eee6251cba7248253c0870311240c9ca8b827f48 | [
"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 | 338 | lean | def ℝ := set ℕ
constant ℝ.sub' : ℝ → ℝ → ℝ
noncomputable def ℝ.sub (a b : ℝ) := (λ b, a.sub' b) b
noncomputable instance : has_sub ℝ := ⟨ℝ.sub⟩
constant ℝ.nonneg : ℝ → Prop
-- This instance is computable, and the VM code generator should accept it.
instance : has_le ℝ := ⟨λ a b, (b - a).nonneg⟩ |
821ad03d9f0caab3a7ceb2c27f439a319ff74742 | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /tests/lean/with_cases.lean | 9a70d1189bced9f1429dd0792fd6c1bccf08a73f | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 478 | lean | open tactic
example (p q : Prop) [s₁ : decidable p] [s₂ : decidable q] : true :=
begin
with_cases { cases s₁; cases s₂ },
trace_state,
all_goals { intros, trivial }
end
def split (p : Prop) {q : Prop} [decidable p] (pos : p → q) (neg : ¬ p → q) : q :=
decidable.by_cases pos neg
example (p q : Prop) [decidable ... |
70a32d263546a89a99bdbfea4f28234c0357fb49 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Ring/constructions.lean | 9e9dc9e24b5035939150cc46e185eace8af83e25 | [
"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 | 7,763 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import category_theory.limits.shapes.pullbacks
import ring_theory.tensor_product
import algebra.category.Ring.limits
import algebra.category.Ring.colimits
import category_t... |
b0e135cf93e5627b1d609e81cc9f449744ceab94 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/group_with_zero/commute.lean | d6fe3e0815dc6f6d09b28c54b0b8e6dda83b9b64 | [
"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,409 | 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_with_zero.semiconj
import algebra.group.commute
import tactic.nontriviality
/-!
# Lemmas about commuting elements in a `monoid_with_zero` or a `... |
84008fcd0e5ad4e20faf8b8d8be6186fad8eed68 | b2e508d02500f1512e1618150413e6be69d9db10 | /src/data/rat/denumerable.lean | 63e0b84eeff4a0c1d9a452effc4dda3486796b7c | [
"Apache-2.0"
] | permissive | callum-sutton/mathlib | c3788f90216e9cd43eeffcb9f8c9f959b3b01771 | afd623825a3ac6bfbcc675a9b023edad3f069e89 | refs/heads/master | 1,591,371,888,053 | 1,560,990,690,000 | 1,560,990,690,000 | 192,476,045 | 0 | 0 | Apache-2.0 | 1,568,941,843,000 | 1,560,837,965,000 | Lean | UTF-8 | Lean | false | false | 945 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.rat.basic data.equiv.denumerable
namespace rat
open denumerable
instance : infinite ℚ :=
infinite.of_injective (coe : ℕ → ℚ) nat.cast_injective
private def... |
a9e94b78bf7af58662d8511ce3c623f2d3c0ea3e | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/05_Functions/functions.lean | 218128e9a923d42c3aabcc748667f3c626934fcc | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 5,862 | lean | /-
If P and Q are of type Prop, we think
of P → Q as a proposition in the form
of an implication.
Moreover, as we've seen, the way that
we give a proof of P → Q in the logic
of Lean is to produce a function that,
if given a proof of P returns a proof
of Q.
On the other hand, nothing in Lean will
prevent our using... |
582ae5d3c28fd421581e59cba19ca8ac90906725 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/metric_space/closeds.lean | 77a2002d81514f093c1d8e58bf9dc2e4eb280681 | [
"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 | 21,299 | 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.metric_space.hausdorff_distance
import topology.compacts
import analysis.specific_limits
/-!
# Closed subsets
This file defines the metric and... |
79c35e419687cdbf19421ac2367870a1a80497d9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/big_operators/multiset.lean | ad0a50629b95ef92dfeb83bb8d4213ab1acee2b2 | [
"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 | 14,892 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.group_with_zero.power
import data.list.prod_monoid
import data.multiset.basic
/-!
# Sums and products over multisets
In this file we define pr... |
2a7c738fd01a6a955a29951f8f211e55048b5ff8 | ac1c2a2f522b0fdf854095ba00f882ca849669e7 | /library/init/meta/constructor_tactic.lean | 332f67a6ce6792678f0d46221b5c65568a0be57b | [
"Apache-2.0"
] | permissive | abliss/lean | b8b336abc8d50dbb0726dcff9dd16793c23bfbe1 | fb24cc99573c153f97a1951ee94bbbdda300b6be | refs/heads/master | 1,611,536,584,520 | 1,497,811,981,000 | 1,497,811,981,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,770 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.function
namespace tactic
meta def get_constructors_for (e : expr) : tactic (list name) :=
do env ← get_env,
I ←... |
67dd417c9df8af60d32b0393c84388f3585b889f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/ext.lean | 71af952c8f7f291bbfbd3f950163796365b03b72 | [
"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 | 15,410 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.rcases
import data.sum
import logic.function.basic
universes u₁ u₂
open interactive interactive.types
open lean.parser nat tactic
/--
`derive_struct_ext_le... |
778c59750615dfa500be4b33a9eff8a50c253c72 | 618003631150032a5676f229d13a079ac875ff77 | /src/control/basic.lean | 030f31e86dbb7063294b38ccc52587755095b937 | [
"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 | 6,816 | 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
Extends the theory on functors, applicatives and monads.
-/
universes u v w
variables {α β γ : Type u}
notation a ` $< `:1 f:1 := f a
section functor
variables {f : ... |
c2fa3afcc4e0641ac1659817009a239e218f73d9 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/loop2.lean | 9fc6e08bf4ddefe0f7d9d723c03218f63b71d2b9 | [
"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 | 252 | lean | import Int.
(*
function add_paren(code)
return "(" .. "* " .. code .. " *" .. ")"
end
parse_lean_cmds(add_paren([[
local env = get_environment()
env:add_var("x", Const("Int"))
print(env:find_object("x"))
]]))
print("done")
*)
|
f40c21fcab3e33f40613177fb5fe1e9f4a181636 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Compiler/Specialize.lean | 37e8b1852556e929813b4f90a1cd6dbcd9764752 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 3,953 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Attributes
namespace Lean.Compiler
inductive SpecializeAttributeKind where
| specialize | nospecialize
deriving Inhabited, BEq
builtin_in... |
63d28ca50e0287d7cca84a00369a1e00888461bd | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/tree.lean | efbc1650619792b97c99f2cd8cf65671ec91f25f | [] | 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 | 2,424 | lean | /-
Copyright (c) 2019 Mathlib Authors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Wojciech Nawrocki
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.num.basic
import Mathlib.PostPort
universes u l u_1
namespace M... |
6b37b219dc5dacd946a9d382172733d2826d2ea7 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/hom_functor.lean | b169dd7400e8da8f90680951007600149921960d | [
"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 | 876 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.products.basic
/-!
The hom functor, sending `(X, Y)` to the type `X ⟶ Y`.
-/
universes v u
open opposite
open category_theory
nam... |
59fe30f46c8ccae81cb2740942e8be1af5133b07 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/PreDefinition/Structural/FindRecArg.lean | f1d150ae6eb35b6773f4ab0fa78dbd4e5396dff7 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 6,516 | 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.Structural.Basic
namespace Lean.Elab.Structural
open Meta
private def getIndexMinPos (xs : Array Expr) (indices : Array Exp... |
aaca3d49c44e34f5be822087db5901247bf4c560 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/dep_subst.lean | fccd1e928d9e5581307b4aa0dc210d0769f0ad72 | [
"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 | 780 | lean | import data.finset
open subtype setoid finset set
inductive finite_set [class] {T : Type} (xs : set T) :=
| mk : ∀ (fxs : finset T), to_set fxs = xs → finite_set xs
definition card {T : Type} (xs : set T) [fn : finite_set xs] : nat :=
begin
induction fn,
exact finset.card fxs
end
example {T : Type} (xs : set T) ... |
d970a6eb159ff49bd12d0f63d62a934cff6f3dc6 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Std/Data/RBMap.lean | d3143107e26b827153f1dfe2a35e3e31021fcb05 | [
"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 | 13,936 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
namespace Std
universe u v w w'
inductive Rbcolor where
| red | black
inductive RBNode (α : Type u) (β : α → Type v) where
| leaf ... |
19bf577f007cb41b4c0ef634f7276b7fbb6f168d | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Compiler/LCNF/Simp/Basic.lean | d17549d6f015c50c22588ed9d98bfa68f733a90e | [
"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 | 1,726 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Instances
import Lean.Compiler.InlineAttrs
import Lean.Compiler.Specialize
import Lean.Compiler.LCNF.CompilerM
namespace Lean.Compiler.LCN... |
a11c63e74de8519240a7dd229956998efdafb104 | 03bd658c402412f41d3026d1040ee8ca8c0fc579 | /src/game/value.lean | 46097980a9da0e69470f2f845804d7ab51d13362 | [] | no_license | ImperialCollegeLondon/dots_and_boxes | c205f6dbad8af9625f56715e4d1bed96b0ac1022 | f7bd0b1603674a657170c5395adb717c4f670220 | refs/heads/master | 1,663,752,058,476 | 1,591,438,614,000 | 1,591,438,614,000 | 139,707,103 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,806 | lean | import game.basic
import list.min.basic
open list
open game
/--the value of a non-empty game consisting of loops and chains-/
def game.value : game 2 → ℤ := @game.rec_on_size2 (λ G, ℤ) (0 : ℤ) $ λ n hn G hG,
list.min (list.bind [(0 : fin 2), (1 : fin 2)] (λ j,
list.of_fn $ λ (i : fin (G.f j).length),
(G.... |
875494d439b22fe15700854524c9317924d61d7a | 3268ab3a126f0fef71459fbf170dc38efe5d0506 | /algebra/free_abelian_group.hlean | 24328ed082be79566d180ff80f1493b8838fb853 | [
"Apache-2.0"
] | permissive | soraismus/Spectral | f043fed1a4e02ddfeba531769b2980eb817471f4 | 32512bf47db3a1b932856e7ed7c7830b1fc07ef0 | refs/heads/master | 1,585,628,705,579 | 1,538,609,948,000 | 1,538,609,974,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,788 | 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, Egbert Rijke
Constructions with groups
-/
import algebra.group_theory hit.set_quotient types.list types.sum .free_group
open eq algebra is_trunc set_quotient rel... |
75f87ce968cf9067050e8f98d25a0eea6b4c9a4b | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/types/int/default.hlean | dd18be80ac75269025581b4f63da459371cfed1e | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 186 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import .basic .hott .order
|
d9e90441b53f1b844fbb0e24c89ea0f4819a6b69 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/topology/discrete_quotient.lean | 241f099157c138f9a58819c2d49f58f521b8ac31 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,818 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Calle Sönne, Adam Topaz
-/
import topology.separation
import topology.subset_properties
import topology.locally_constant.basic
/-!
# Discrete quotients of a topological space.
This file... |
0a6a18908049320f2bb8d17e5e080fbde1033298 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /15/b.lean | 3ea5f1872970ec781e35fa70b789d12926771b2f | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 594 | lean | import Std.Data.HashMap
def solve (inlst : List Nat) : Int := do
let mut t : Std.HashMap Nat Nat := Std.HashMap.empty
let mut last : Nat := 0
let mut nextj : Option Nat := none
for ⟨i, n⟩ in inlst.enum do
nextj := t.find? n
t := t.insert n i
last := n
for j in [inlst.length:30000000] do
last ... |
f835fc6a8dad4fa61171c4e1f98cf4b109e5f3f7 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/tools/tactic.lean | e040dda4078c7ba4c6b1230a432c59af8b8e4e92 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,921 | lean | ----------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
-----------------------------------------------------... |
2b8ee5d1fe9ef3b0141713eff5d2ffcf880c84f0 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/derivingRpcEncoding.lean | 87171eca6e2f9900996a1d74402149abd4d0b945 | [
"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 | 442 | lean | import Lean.Server.Rpc.Basic
open Lean Server
structure FooRef where
a : Array Nat
deriving RpcEncoding with { withRef := true }
structure FooJson where
s : String
deriving FromJson, ToJson
structure Bar where
fooRef : WithRpcRef FooRef
fooJson : FooJson
deriving RpcEncoding
structure BarTrans where
... |
676ea37022bcdfbdcb24a734eaae673b01eb12c1 | 0d4c30038160d9c35586ce4dace36fe26a35023b | /src/measure_theory/bochner_integration.lean | ba96c9bcc399303b4fb6d8aa8127b4ba7ca79f65 | [
"Apache-2.0"
] | permissive | b-mehta/mathlib | b0c8ec929ec638447e4262f7071570d23db52e14 | ce72cde867feabe5bb908cf9e895acc0e11bf1eb | refs/heads/master | 1,599,457,264,781 | 1,586,969,260,000 | 1,586,969,260,000 | 220,672,634 | 0 | 0 | Apache-2.0 | 1,583,944,480,000 | 1,573,317,991,000 | Lean | UTF-8 | Lean | false | false | 55,221 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
/-!
# Bochner integral
The Bochner integral extends the definition of the Le... |
5d59ab19473dd986820cd55cde34c310c083be88 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Meta/Tactic/Apply.lean | 676606648fe46a5c9b19d24eb71d33cfab3d3f8e | [
"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 | 4,937 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.FindMVar
import Lean.Meta.ExprDefEq
import Lean.Meta.SynthInstance
import Lean.Meta.CollectMVars
import Lean.Meta.Tactic.Util
namespace Le... |
2f9099f51436b712671f880e3a84ec0f54e89310 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/algebra/affine.lean | 2df7d8a5d3e4ce8638b83d03ec84ba59851fcf79 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 1,332 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import topology.algebra.continuous_functions
import linear_algebra.affine_space.basic
/-!
# Topological properties of affine spaces and maps
For now, this contain... |
eacc689ceafe8bb7d90eaec891509e582e5abdca | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/ordering/default.lean | 4c7fc9bd2185dc667f998f385e71bb7205a5b473 | [] | 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 | 308 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.ordering.basic
import Mathlib.Lean3Lib.init.data.ordering.lemmas
namespace Mathlib
|
57d72a4041c7c497bb7c1e42a0dc8bc229610d5f | f313d4982feee650661f61ed73f0cb6635326350 | /Mathlib/Tactic/Block.lean | 73075aeda1aa7fbca6f81b609682563d4ea030f3 | [
"Apache-2.0"
] | permissive | shingtaklam1324/mathlib4 | 38c6e172eec1385944db5a70a3b5545c924980ee | 50610c343b7065e8eec056d641f859ceed608e69 | refs/heads/master | 1,683,032,333,313 | 1,621,942,699,000 | 1,621,942,699,000 | 371,130,608 | 0 | 0 | Apache-2.0 | 1,622,053,166,000 | 1,622,053,166,000 | null | UTF-8 | Lean | false | false | 2,232 | lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.Tactic.OpenPrivate
import Lean.Elab.Tactic.Basic
/-
This file adds support for a block structuring tactic. Blocks are started by an initial `-` and
all... |
e185bd9d77a6dfda03f69784181fea7d44b9d636 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/tropical/basic.lean | 7de3e71929503b5258045e99011eb9cb7d7dcbea | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,136 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import algebra.group_power.order
import algebra.smul_with_zero
/-!
# Tropical algebraic structures
This file defines algebraic structures of the (min-)tropical n... |
b675adc0089795a2d24e9111372658104ad6ae9e | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/dynamics/circle/rotation_number/translation_number.lean | de5ebee5653d76482c809646bab5e7e68d680a52 | [
"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 | 28,243 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import analysis.specific_limits
import order.iterate
import algebra.iterate_hom
/-!
# Translation number of a monotone real map that commutes with `x ↦ x + 1`... |
2fae07af649ea378f944667189b27b3e4892a3c9 | 60bf3fa4185ec5075eaea4384181bfbc7e1dc319 | /src/game/series/tempLevel03.lean | 781bb13a25924d70aaccd3088a9d9d65253f1860 | [
"Apache-2.0"
] | permissive | anrddh/real-number-game | 660f1127d03a78fd35986c771d65c3132c5f4025 | c708c4e02ec306c657e1ea67862177490db041b0 | refs/heads/master | 1,668,214,277,092 | 1,593,105,075,000 | 1,593,105,075,000 | 264,269,218 | 0 | 0 | null | 1,589,567,264,000 | 1,589,567,264,000 | null | UTF-8 | Lean | false | false | 365 | lean | import game.series.L01defs
variable X : Type --hide
/-
Idea 03: comparison test
-/
/- Lemma
If $A$ and $B$ are sets of any type $X$, then
$$ A \subseteq A\cup B.$$
-/
theorem subset_union_left (A B : set X) : A ⊆ A ∪ B :=
begin
--change ∀ (x : α), x ∈ A → x ∈ A ∪ B, --they may want to do this
intros x hx,... |
92adfd443ed46395405183e814dfcbe7670326e1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/finite/set.lean | fbce2f946fef965c42ff732744bced1b7b01bcc3 | [
"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 | 795 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.finite.basic
import data.set.finite
/-!
# Lemmas about `finite` and `set`s
In this file we prove two lemmas about `finite` and `set`s.
## Tags
finiteness, f... |
021195c3c3a5e6c3268c6e213946c1263c5b2da8 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/limits/shapes/zero.lean | c0d82a4d90491c5c99fdf172a5e5c4ad95aba4d5 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 8,305 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.binary_products
import category_theory.epi_mono
import category_theory.punit
/-!
# Zero morphisms and zero objects
A category "... |
cc08a0adb71d50529fcd01e359cdcf15eb149d2b | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/anneaux/cpge_anneaux_2.lean | 2b15ff4789e4a49df87e958ce3ec8e54a31f6414 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 243 | lean | import ring_theory.non_zero_divisors
import algebra.ring.basic
theorem cpge_anneaux_2 {A :Type*} [ring A] (a b : A):
(ring.inverse (a*b) ) ≠ 0 ∧ b ∈ non_zero_divisors A → (ring.inverse a ≠ 0) ∧ (ring.inverse b ≠ 0) := sorry
|
9774de55ac12212e7e5236b3193d27f172e7be57 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/whnf.lean | 76efca6072576d26367cb5c669d386665d4341c2 | [
"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 | 136 | lean | open nat
eval [whnf] (fun x, x + 1) (2:nat)
eval (fun x, x + 1) (2:nat)
variable a : nat
eval [whnf] a + succ zero
eval a + succ zero
|
39997bc076ccbe01e7fd57afb6160142da635558 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/topology/uniform_space/completion.lean | 17a7c6512711d407058d715e1f25013327a0508c | [
"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 | 55,307 | 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
Hausdorff completions of uniform spaces; lifting the group and ring structure.
The goal is to construct a left-adjoint to the inclusion of complete Hau... |
0fb20a9b9c72ba980546521393524fec9cdc12f0 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/multiset/default.lean | 965e0313a2ee3cea9569f50a99ab4a33577b2dbf | [
"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 | 414 | lean | import data.multiset.antidiagonal
import data.multiset.basic
import data.multiset.erase_dup
import data.multiset.finset_ops
import data.multiset.fold
import data.multiset.functor
import data.multiset.intervals
import data.multiset.lattice
import data.multiset.nat_antidiagonal
import data.multiset.nodup
import data.mult... |
9d847ba90f13150b8f89501c1d36ee24ecd11f99 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/field_theory/splitting_field.lean | f37128d6410b69b1a8510215f016ea8ec36daefe | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,124 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.adjoin_root
import ring_theory.algebra_tower
import ring_theory.algebraic
import ring_theory.polynomial
import field_theory.minpoly
import linear_algeb... |
50d2789d9850ea61481fb188336f21ae4060ada1 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/abelian/pseudoelements.lean | 055e4785eb1ae4a48e3414ab724b68729d0d7274 | [
"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 | 18,860 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.abelian.exact
import category_theory.over
/-!
# Pseudoelements in abelian categories
A *pseudoelement* of an object `X` in an abelian category ... |
e3d815b6ccab8844121c5bda811c8dbeb050766f | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/convex/between.lean | 11d1e62efd2cce816f11f56df1928506ddc25294 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 33,365 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import data.set.intervals.group
import analysis.convex.segment
import linear_algebra.affine_space.finite_dimensional
import tactic.field_simp
/-!
# Betweenness in affine... |
670ab60e0da4d41bc0fa63feff25ef8882499201 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/format.lean | dd41cd6cbda13beef8ccacdb873da77e9f66de24 | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 7,390 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.lean.options init.data.array
universes u v
namespace Lean
inductive Format
| nil : Format
| line : Format
| text ... |
567ec51c9865d428b62aa092ea9a33e766a71180 | 8e691ffe296a38e3e9dc95845e5b607422c3c973 | /test/fin_cases.lean | c3fcd92ee459ec6565b4f3cad9b60fd38c61aafb | [
"Apache-2.0"
] | permissive | jmvlangen/mathlib | 8d847f7831f0e8ddebc99568704530af7c9e1a50 | 82f79a58df3047b8002bbaf90ce50da2a978e114 | refs/heads/master | 1,588,094,154,678 | 1,552,412,266,000 | 1,552,412,266,000 | 175,439,673 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,841 | lean | import tactic.fin_cases
import data.nat.prime
import group_theory.perm
import tactic.norm_num
example (f : ℕ → Prop) (p : fin 3) (h0 : f 0) (h1 : f 1) (h2 : f 2) : f p.val :=
begin
fin_cases *,
simp, assumption,
simp, assumption,
simp, assumption,
end
example (x2 : fin 2) (x3 : fin 3) (n : nat) (y : fin n) : ... |
732ebf47727a7bfe24e3dac829189f2549118e7f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/user_cmd_go_to_def.lean | 038fa54f2a11aeeab6408bd0bcf5b24a67eca541 | [
"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 | 334 | lean | open lean
open lean.parser
open interactive
open tactic
@[user_command]
meta def foo_cmd (_ : parse $ tk "mk_foo") : parser unit :=
add_decl $ declaration.defn `foo [] `(ℕ) `(42) reducibility_hints.abbrev tt.
mk_foo
-- should be at the line of `mk_foo`
#eval (flip environment.decl_pos ``foo <$> tactic.get_env) >>= ... |
5cc0d7475c3401dfcca8660c11b78915ec47dd4c | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Elab/Tactic/Conv/Congr.lean | 4b9dae53599fdb1169d462e945270ade4d6691ed | [
"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 | 8,085 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Simp.Main
import Lean.Meta.Tactic.Congr
import Lean.Elab.Tactic.Conv.Basic
namespace Lean.Elab.Tactic.Conv
open Meta
private def c... |
5e3eb80f99b59b769f060b96772f7d3074a63740 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/playground/webserver/Webserver.lean | 55dafc7e9c582448bcbe4bb78950038c51634be9 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 5,470 | 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 Handl... |
b867c168275a01abb88bdcde9ebae8670f2a2b59 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/eqThm.lean | 7ef40eb1572867059ee54ba5a15285dc746f3010 | [
"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,424 | lean | def f : Nat → Bool → Nat
| 0, true => 1
| 0, false => 2
| 1, true => 3
| 1, _ => 4
| x+2, true => f x true
| x+2, b => f x (not b)
macro "urfl" : tactic => `(set_option smartUnfolding false in rfl)
theorem f_main_eq : f x b = f.match_1 (fun _ _ => Nat) x b (fun _ => 1) (fun _ => 2) (fun _ => 3) (fun... |
ca850ca182c5263ed929f62fbaf901026fbe9bfb | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/omega_complete_partial_order.lean | 54d05bcd0c3acc006a3685d2486e576a6199adae | [
"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 | 30,592 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import data.pfun
import order.preorder_hom
import tactic.wlog
import tactic.monotonicity
/-!
# Omega Complete Partial Orders
An omega-complete partial order is a partial o... |
eaae66ea88972ab125f57023cc1baf14a9659aa3 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/computability/partrec_code.lean | 766b429a9f17b96e27aa10a3da1bd75a7b88a23a | [
"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 | 43,299 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import computability.partrec
/-!
# Gödel Numbering for Partial Recursive Functions.
This file defines `nat.partrec.code`, an inductive datatype describing code for ... |
c2a5871b57fb111b1320da7084218eb2324fe7af | 2a44f685380c1a89f9e3b6e5e37ec65d74ec5010 | /src/uniq/default.lean | 81577fcf8e914e0bf46306a7e25c9a8dd5fdbfcd | [
"Apache-2.0"
] | permissive | fgdorais/uniq | 0a4c50ae1df37687f38d65b9cd462b3bdf83dbff | 87072ea6292436500370ebfc4bd140b1dae704fd | refs/heads/master | 1,584,872,936,588 | 1,530,977,726,000 | 1,530,977,726,000 | 139,905,607 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46 | lean | import .uniq
import .inverse
import .bijection |
463ae91d23819cfc56b0535cd5584e9c47e40945 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/group_theory/perm/sign.lean | e469926511817ebcd8b2bc020b55caf9f51ed914 | [
"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 | 32,983 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.fintype
universes u v
open equiv function fintype finset
variables {α : Type u} {β : Type v}
namespace equiv.perm
def subtype_perm (f : perm α) {p : α → Pr... |
a3798b6f0873dd22d75a9498ae028a953366bd73 | 2c2aac4ae1d23cd0d1f9bf0f8c04b05427d38103 | /src/category_theory/limits/shapes/binary_products.lean | 5478102252c98e90f552ca7f767d774cc3246f3e | [
"Apache-2.0"
] | permissive | egsgaard/mathlib | 3f733823fbc8d34f8e104bf6f5d2d55f150c774e | 8e8037f5ce6f1633dba7f8b284a92a6dc2941abc | refs/heads/master | 1,650,473,269,445 | 1,586,936,514,000 | 1,586,936,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,985 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.terminal
import category_theory.discrete_category
/-!
# Binary (co)products... |
73570106235518c53e34f3e62d99201884be1b96 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/simp_subsingleton.lean | 002f5b64885077561501023bc23ee2682067d013 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 1,331 | lean | inductive some_subsingleton : Type | canonical
open some_subsingleton
instance : subsingleton some_subsingleton := ⟨λ a b, by cases a; cases b; refl⟩
-- Note that ⟨λ a b, refl a⟩ does not work as a valid instance:
-- the type is a subsingleton, but not definitionally!
def some_function : some_subsingleton → some_subsi... |
5ee7e2eac06053454a207d52b00dbc398c19e0b9 | 398b53a5e02ce35196531591f84bb2f6b034ce5a | /homotopy/problem11.lean | b44a39cb5febb8d5037d8415e4458702dc6a07a5 | [
"MIT"
] | permissive | crockeo/math-exercises | 64f07a9371a72895bbd97f49a854dcb6821b18ab | cf9150ef9e025f1b7929ba070a783e7a71f24f31 | refs/heads/master | 1,607,910,221,030 | 1,581,231,762,000 | 1,581,231,762,000 | 234,595,189 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 333 | lean | def compose (A B C : Type) (g : B -> C) (f : A -> B) :=
fun x : A, g (f x)
lemma associative_compose
(A B C D : Type)
(f : A -> B)
(g : B -> C)
(h : C -> D) :
compose A C D h (compose A B C g f) =
compose A B D (compose B C D h g) f :=
begin
rw [compose, compose, compose, compos... |
02942eedf6c5575d80aa57e46f77e92160416074 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/metric_space/polish.lean | 4898fcf3f297c861ffada5d0333157fffde685bd | [
"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 | 22,603 | 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 analysis.normed_space.basic
import topology.metric_space.pi_nat
import topology.metric_space.isometry
import topology.metric_space.gluing
/-!
# Polish s... |
5161af7f758750abd6ace8e5cd3c5491c9de2484 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_916.lean | 8e41343fd294201e488721819b1868f6f4993a99 | [] | 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 | 211 | lean | import tactic
variables {a b c : ℕ}
-- BEGIN
example (divab : a ∣ b) (divbc : b ∣ c) : a ∣ c :=
begin
cases divab with d beq,
cases divbc with e ceq,
rw [ceq, beq],
use (d * e), ring
end
-- END |
dc5a4cefc5bb3a95ef789e9f6cadc30205a45a60 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Init/Coe.lean | 472b056f0c9bcdccd073a8e609d8732f7b9eff5f | [
"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 | 11,922 | 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, Mario Carneiro
-/
prelude
import Init.Prelude
set_option linter.missingDocs true -- keep it documented
/-!
# Coercion
Lean uses a somewhat elaborate system ... |
e42d742f2f98a97e9c0717bc1de7dd438c416551 | 5c508618e029e31b823bb6ba3d05d513a3bc3f40 | /src/refactor.lean | 9a62a3da20538e20e6dcbfaa1570be39a77166d7 | [] | no_license | JasonKYi/dual_maps | 01f49d1fbd2d1ed3e92882101a81ed51dc9589c6 | 612d23c3be8b484d0bc9840e1395d3e5c67b0eec | refs/heads/main | 1,680,308,911,793 | 1,617,022,546,000 | 1,617,022,546,000 | 350,137,505 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,360 | lean | import linear_algebra.bilinear_form
universes u v w
variables {R : Type u} [comm_ring R] {M₁ : Type v} {M₂ : Type w}
variables [add_comm_group M₁] [module R M₁] [add_comm_group M₂] [module R M₂]
variables {K : Type v} [field K] {V₁ : Type u} {V₂ : Type w}
variables [add_comm_group V₁] [vector_space K V₁] [add_comm_gr... |
9399beb11bc0394a43dab8f49e1241639d4e748a | c777c32c8e484e195053731103c5e52af26a25d1 | /src/probability/density.lean | 2e622d3848004c8cd0d3824b4851a7a6c02bc5f4 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 19,168 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.decomposition.radon_nikodym
import measure_theory.measure.haar_of_basis
/-!
# Probability density function
This file defines the probability density... |
13e58ffc4182c9e8e0012a2337e423f9d425dab8 | 3f1a1d97c03bb24b55a1b9969bb4b3c619491d5a | /library/data/rbtree/insert.lean | b07ec88fb7ef3aca3e630a8ec3b9770ecdfbebab | [
"Apache-2.0"
] | permissive | praveenmunagapati/lean | 00c3b4496cef8e758396005013b9776bb82c4f56 | fc760f57d20e0a486d14bc8a08d89147b60f530c | refs/heads/master | 1,630,692,342,183 | 1,515,626,222,000 | 1,515,626,222,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,547 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import data.rbtree.find
universes u v
local attribute [simp] rbnode.lift
namespace rbnode
variables {α : Type u}
open color
@[simp] lemma balance1_eq₁ (... |
0830f598de0996819f32093083ef13eddef61a5c | e5c11e5a7d990ce404047c2bd848eeafac3c0a85 | /src/noetherian.lean | e6aa496e260dd756f860a8c435df85213a44e882 | [
"LPPL-1.3c"
] | permissive | lean-forward/class-number | 9ec63c24845e46efc8fa8b15324d0815918292c7 | 4fccf36d5e0e16accae84c16df77a3839ad964e4 | refs/heads/main | 1,686,927,014,542 | 1,624,886,724,000 | 1,624,886,724,000 | 327,319,245 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,497 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import algebraic_geometry.prime_spectrum
import data.multiset.finset_ops
import linear_algebra.linear_independent
import order.order_... |
f474a718066788557549401c8fc124f3887c7ba8 | c82208eb338381e9469e9825729c5ffa58a7a338 | /library.lean | 35984a046ef5b31b684bc51902bd51b5a50d5c1f | [] | no_license | johoelzl/tc-log-parser | 3c41db7db649d050caf3ce0ba06ea967df3d83ea | c27b5839f3941d63bb01750c7eefa95e94e83eed | refs/heads/master | 1,587,954,495,855 | 1,553,252,706,000 | 1,553,252,706,000 | 173,995,391 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 912 | lean | import linear_algebra.matrix
import linear_algebra.dimension
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal
import analysis.normed_space.basic
class test (α : Type*)
class mark (b : bool)
instance test_init (α : Type*) [decidable_eq α] [mark ff] :
test α :=
test.mk _
ins... |
f00c82d53597d5278004e1c4210f768ff5f7d219 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /analysis/measure_theory/borel_space.lean | 4c50f6b9693a45c618b2e7b9aea5fc12c59fe926 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 13,725 | 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
Borel (measurable) space -- the smallest σ-algebra generated by open sets
It would be nice to encode this in the topological space type class, i.e. each topological sp... |
4b81371ce501ecab5ac3dcb444509e9358d77934 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/fourier/add_circle.lean | b4b0ece6ab1a5e1e149165c01c7fa1fe010437df | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 14,689 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, David Loeffler
-/
import analysis.special_functions.complex.circle
import topology.instances.add_circle
import analysis.inner_product_space.l2_space
import measure_th... |
384497a8e9b7d695ae3fef02273133264fe19b58 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/ring_theory/eisenstein_criterion.lean | 59f6b98f8a7774a198f437f0ae27c42bdab8ffdd | [
"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 | 5,483 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.ideal_operations
import data.polynomial
import tactic.apply_fun
import ring_theory.prime
/-!
# Eisenstein's criterion
A proof of a slight generalisati... |
cf58c7bc48458e3133ea148da4a6dba5a95b7468 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/Profinite/arrow_limit.lean | 4c80fab4eaa17b684891b7955693fe5ce745a0a2 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,007 | lean | import category_theory.limits.concrete_category
import topology.category.Profinite.as_limit
import for_mathlib.Profinite.compat_discrete_quotient
import for_mathlib.Cech.split
noncomputable theory
open category_theory
universe u
namespace Profinite
variables (F : arrow Profinite.{u}) (surj : function.surjective F.... |
580cf95f5607a53bd75efa0266c89c9e74457f7e | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Data/Lsp/Utf16.lean | b4db02772f824994bb548050906d5accfff980bf | [
"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 | 2,690 | 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.Data.String
import Init.Data.Array
import Lean.Data.Lsp.Basic
import Lean.Data.Position
/-! LSP uses UTF-16 for indexing, so we need to... |
671f920441993b064ee0bbc5986627a6b519f9d6 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/buffer/parser/basic.lean | ddccfc07a2548fc1d09cca3781e12471eb30c903 | [] | 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 | 31,832 | lean | /-
Copyright (c) 2020 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.string.basic
import Mathlib.PostPort
namespace Mathlib
/-!
# Parsers
`parser α` i... |
0530bb6b52ffbcaf727b2e605fd90d4697f72bb9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/invertible_auto.lean | e67209b2a5bf5e57df674c7927f9323411bfa638 | [] | 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,203 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.basic
import Mathlib.ring_theory... |
ca3cc0b5e25c0b8d3120dde5f6c4afdb154d14a1 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Init/Core.lean | 5c5cc17a6c9bccc973ed4274bfc2125e312211be | [
"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 | 36,219 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
import Init.Prelude
import Init.SizeOf
universe u v w
def inline {α : Sort u} (a : α) : α := a
@[inli... |
009aadd1da572a81b9b0ac0e04c60653488a6313 | 6dacdff2020860f2468bb8dacf344e6b043d6a78 | /cap/src/demo_sander.lean | 39f0062027710c099a24a8599bee7240c73f3042 | [] | no_license | alexjbest/talks | 514ca57af312a14cf68c30efa1c7228294edc190 | 84976b4329ea768c754da72cc15d5ce29332466d | refs/heads/master | 1,686,993,465,308 | 1,686,315,975,000 | 1,686,315,975,000 | 16,347,963 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 944 | lean | import tactic
import data.real.basic
variables {R : Type*} [comm_ring R] (x y : R)
def F : R := x^3 + 2*x*y + y^3 - 1
def G : R := 2*x^2 - 3*y^2 + 2
def H : R := x^3 + 3*x*y + 7*y^2 - 1
def a : R := -568781583*x*y^2 + 1152704112*x*y + 1004446918*x + 1486171233*y^3 + 2278972316*y^2 - 8787246228*y - 7750297898
def b : R... |
dff2e394b087d2de722bd6c88751c956b51f1f1f | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /topology/uniform_space.lean | ad290e6bfb67a5f04f8c31471221e0568215ba23 | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 52,906 | 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
Theory of uniform spaces.
-/
import algebra.lattice.filter .topological_space .continuity
open set lattice filter
set_option eqn_compiler.zeta true
attribute [trans] ... |
f3e1b4e548149c1df9c7b9038b7e35b883bcf895 | 16af888b14ca6cb84a768588040792cda8158ab8 | /src/mathematica_parser.lean | 48af895f9421488c5925f330be76c33092687572 | [] | no_license | robertylewis/mathematica | e67c9ad9ca2b2cdd4a26799ee8ff447a6a199cc8 | 5fa094b9a390a71821ba3f11aa2fd40377d6b017 | refs/heads/master | 1,670,299,844,147 | 1,668,914,224,000 | 1,668,914,224,000 | 99,119,937 | 26 | 4 | null | 1,553,861,645,000 | 1,501,680,840,000 | Lean | UTF-8 | Lean | false | false | 6,368 | lean | import data.buffer.parser system.io
open parser
--namespace mathematica
meta def htfi : has_to_format ℤ := ⟨λ z, int.rec_on z (λ k, ↑k) (λ k, "-"++↑(k+1))⟩
local attribute [instance] htfi
structure mfloat :=
(sign : ℕ)
(mantisa : ℕ)
(exponent : ℕ)
local notation `float` := mfloat
meta instance ... |
836c5d45d6eb2ede9d22b0142616bf1ac3deca30 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/group_theory/submonoid.lean | f821b967d23b11d82ce2ffa785d485eff64011ce | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 43,066 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard, Amelia Livingston
-/
import algebra.big_operators
import data.finset
import data.equiv.mul_add
/-!
# Submono... |
136e8b17bd0411be47d69e353fe63a9b514efbfd | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/shapes/default.lean | 157e139ed7f7386497b1cf300e21239359f672c9 | [
"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 | 575 | lean | import category_theory.limits.shapes.terminal
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.products
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.finite_limits
import category_theory.limits.shapes.biproducts
import category_theory.... |
3ae5afdc41ef3ec0b036d45075022a7b8f4a7fc6 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/advanced_multiplication/3.lean | 528b8372bfffa5c197b7ac8d794847b9ea9233d4 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 206 | lean | theorem mul_eq_zero_iff (a b : mynat): a * b = 0 ↔ a = 0 ∨ b = 0 :=
begin
split,
exact eq_zero_or_eq_zero_of_mul_eq_zero a b,
intro h,
cases h with ha hb,
rw ha,
simp,
rw hb,
simp,
end
|
854664e5f9133dd895c575152a1604a388b864dc | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Init/Notation.lean | 5112f5ce1c044e6dcf45add50e7edc92da05f82b | [
"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 | 1,455 | 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
Notation for operators defined at Prelude.lean
-/
prelude
import Init.Prelude
infixr:90 " ∘ " => Function.comp
infixr:35 " × " => Prod
infixl:65 " + " =>... |
228d023600f842dc648da88704ca0b6ddf85d469 | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/group_ring_action.lean | 86ad4b4bcf8f7053e5a7b5ec859c87263405b28f | [
"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 | 4,658 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Group action on rings.
-/
import group_theory.group_action
import data.equiv.ring
import data.polynomial
universes u v
variables (M G : Type u) [monoid M] [group G]
variables ... |
e8ad55436bee5692700ac9a51967e9ecd404af90 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/computability/encoding.lean | bd2004d8da9e58a478eefc6a871308abd1b54b8f | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 6,115 | lean | /-
Copyright (c) 2020 Pim Spelier, Daan van Gent. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Pim Spelier, Daan van Gent
-/
import data.fintype.basic
import data.num.lemmas
import tactic.derive_fintype
/-!
# Encodings
This file contains the definition of a (finit... |
5c6b17b2b48d8fdb86cd4db797bc4de432790a2a | 6214e13b31733dc9aeb4833db6a6466005763162 | /src/bindings.lean | 11cfc6b258f7031b6bfb5709c12d8b2c094ccb4e | [] | no_license | joshua0pang/esverify-theory | 272a250445f3aeea49a7e72d1ab58c2da6618bbe | 8565b123c87b0113f83553d7732cd6696c9b5807 | refs/heads/master | 1,585,873,849,081 | 1,527,304,393,000 | 1,527,304,393,000 | 154,901,199 | 1 | 0 | null | 1,540,593,067,000 | 1,540,593,067,000 | null | UTF-8 | Lean | false | false | 50,839 | lean | -- auxiliary lemmas about translation of environments/variable bindings
import .definitions3 .substitution
lemma free_of_contains {P: prop} {σ: env} {x: var}: (⊩ σ : P) → x ∈ σ → x ∈ FV P :=
assume env_verified: ⊩ σ : P,
assume x_contained: x ∈ σ,
show x ∈ FV P, by begin
induction env_verified,
case env... |
9cd559bea332b0ff8493cef279fc9f76436c7d4d | 96338d06deb5f54f351493a71d6ecf6c546089a2 | /priv/Lean/DepSet.lean | eef99e317f565a43a06e2ea54ee1524bfd48bbfd | [] | no_license | silky/exe | 5f9e4eea772d74852a1a2fac57d8d20588282d2b | e81690d6e16f2a83c105cce446011af6ae905b81 | refs/heads/master | 1,609,385,766,412 | 1,472,164,223,000 | 1,472,164,223,000 | 66,610,224 | 1 | 0 | null | 1,472,178,919,000 | 1,472,178,919,000 | null | UTF-8 | Lean | false | false | 1,148 | lean | /- DepSet.lean -/
import Setoid
import Cat
import Functor
import Over
set_option pp.universes true
set_option pp.metavar_args false
namespace EXE
-- main
definition DepSetoidCat (Base : SetoidType) : CatType := (Cat.FromSet Base) ⟶ SetoidCat
definition OverSetoidCat (Base : SetoidType) : CatType := OverCat Setoid... |
437641971955f19c0bda1df775d0cca82a844ebb | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/nat/multiplicity.lean | f8265732dbd7dd3fd6ef2ef6c74f65c5b63ad4e1 | [
"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 | 9,499 | 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.nat.choose
import ring_theory.multiplicity
import data.nat.modeq
import algebra.gcd_domain
/-!
# Natural number multiplicity
This file contains lemmas about... |
6c5268645519bc177102f332c5040b0d9af2b8fd | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/order/lattice.lean | 24b75bb36a09d5460746983b8ca65fc00d2834b6 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 16,590 | 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
Defines the inf/sup (semi)-lattice with optionally top/bot type class hierarchy.
-/
import order.basic
set_option old_structure_cmd true
universes u v w
variables {... |
56d5ef6ac85cf384e460c57af5676babd7b18c3c | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/ring_theory/localization.lean | 2249b1e935f68b389b5602fcbc6563c3411ee024 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 60,930 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston
-/
import data.equiv.ring
import group_theory.monoid_localization
import ring_theory.algebraic
import ring_theory.integral_clos... |
9b9c6f6bbf32cbd41f58ee92a12868eb556433e0 | e4850d3690538c747274f940d23178380b465a23 | /LeanNixStatic1/Inline.lean | 685c791367c18a22cb7056d43e09f2d6dfbe0013 | [] | no_license | zygi/leannixstatic1 | 5d81973a69c98e6f29e9283c245d10f81303155c | b10ce543ec1d990186295bfd33bc84d3a69a6fd7 | refs/heads/master | 1,678,438,994,937 | 1,614,394,028,000 | 1,614,394,028,000 | 342,754,763 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 261 | lean | -- A definition with both native and Lean implementations
@[extern c inline "lean_box(1)"]
def ifNative1Else0(dummy: Nat): Nat := 0
-- A constant with only a native implementation
@[extern c inline "#1 ^ #2"]
constant xor (a: @& UInt64) (b: @& UInt64) : UInt64 |
ddc27dc01c567f8ae22509eef312f9cfa6e126b3 | 4c630d016e43ace8c5f476a5070a471130c8a411 | /group_theory/free_abelian_group.lean | e7766827d28cce2f837a03f064fd7c74d57a9c6d | [
"Apache-2.0"
] | permissive | ngamt/mathlib | 9a510c391694dc43eec969914e2a0e20b272d172 | 58909bd424209739a2214961eefaa012fb8a18d2 | refs/heads/master | 1,585,942,993,674 | 1,540,739,585,000 | 1,540,916,815,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,287 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free abelian groups as abelianization of free groups.
-/
import algebra.pi_instances
import group_theory.free_group
import group_theory.abelianization
universes u v
variables (... |
28738b694ef012e643553102f72e79d4167d4f0b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/monoidal/category.lean | 0380ffb3e39e8eaf5fe0f020eb0181a05205a8da | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 18,997 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison, Bhavik Mehta
-/
import category_theory.products.basic
/-!
# Monoidal categories
A monoidal category is a category equipped with a tensor product... |
d4a0cca4fd10fb030f17b6e2bbd947887239a97e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/covering/vitali.lean | effcc2878ea8eb67c1476c992f582686be0b3520 | [
"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 | 29,677 | lean | /-
Copyright (c) 2021 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.metric_space.basic
import measure_theory.constructions.borel_space
import measure_theory.covering.vitali_family
/-!
# Vitali covering theorems
... |
ee070ec04194da481e1ce8b72012ee4204f03446 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /src/o_minimal/sheaf/tactic.lean | 6b8d6d24645344676eb39a2aa1ecee561d3224b9 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,949 | lean | import data.list.alist
import o_minimal.sheaf.basic
/-
Tactics for proving goals of the form
⊢ definable S e
notably including the case where `e` is a function.
First we implement some ordinary `tactic.interactive` tactics
with names of the form `defin_foo`.
Then we wrap them in a special `defin` tactic mode.
-/
n... |
d1137fb8e8f7f4929fc7a6ded5908d969bff437e | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/fintype/basic.lean | 82ad9c6d8e00c87a32ffc99d050d4023369d1516 | [
"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 | 41,188 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset
import data.array.lemmas
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` means that `α` is finite, i.e.... |
2e5eb59e02fbe67c71e49c20d619fbbfbc071585 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/auxDeclIssue.lean | 3a69df9d983b67e47fb8f019fbea8d804400ba5b | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 374 | lean |
theorem ex1 : False :=
by {
assumption -- should not use the auxiliary declaration `ex1 : False`
}
variable (x y : Nat) in
theorem ex2 : x = y :=
by {
subst x; -- should not use the auxiliary declaration `ex2 : x = y`
exact rfl
}
set_option pp.auxDecls true in
theorem ex1 : False :=
by {
assumption -- sho... |
534778db7df7435cc0b684d4b80699eb8ddc63b5 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/meta/injection_tactic.lean | 2ba647ea9edc98232c16ef3d84aba3d49ae4c9c0 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,988 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.function
namespace tactic
open nat tactic environment expr list
private meta def mk_intro_name : name → list name → n... |
d456d563579fb29f2a5b7c0a41834506205c4afb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/PreDefinition/WF/PackDomain.lean | bd319a788a02922e5490cb207843556b5e8fabb9 | [
"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 | 7,729 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Cases
import Lean.Elab.PreDefinition.Basic
namespace Lean.Elab.WF
open Meta
/--
Given a (dependent) tuple `t` (using `PSigma`) o... |
c3f11f394f378fb3567826e1d5b10495f1f262b9 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/depElim1.lean | e6dd22639b44c1166dc6c6f34c62fc8097f4f7bd | [
"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 | 13,783 | lean | import Lean.Meta.Match
open Lean
open Lean.Meta
open Lean.Meta.Match
/- Infrastructure for testing -/
universes u v
def check (x : Bool) : IO Unit := do
unless x do
throw $ IO.userError "check failed"
def inaccessible {α : Sort u} (a : α) : α := a
def val {α : Sort u} (a : α) : α := a
def As {α : Sort u} (v a : ... |
10b0edc2d8a197d503a96416e440868f2d6197b8 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/Data/Nat/Bitwise.lean | d8dc69aaf1f0d7e853ad31f416010f07f6b591fe | [
"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,308 | 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.Data.Nat.Basic
import Init.Data.Nat.Div
import Init.Coe
namespace Nat
partial def bitwise (f : Bool → Bool → Bool) (n m : Nat) : Nat :... |
3a92c57a662c2317ca0b93c9443b0d40e11187e8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/gluing.lean | 8f35142bced4f9a4c735d8ff256f6f36c190f9a9 | [
"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 | 32,099 | 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.metric_space.isometry
/-!
# Metric space gluing
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding ... |
63afc5069319faf3d0966eb589aa0951a02c3e5a | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/advanced_addition/01.lean | 90d6857334e1cd1b11db60682b21101c171566ce | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 100 | lean | theorem succ_inj' {a b : mynat} (hs : succ(a) = succ(b)) : a = b :=
begin
exact succ_inj hs,
end
|
2cf4156e6f678ed8c7413912a1569f24e57e18f1 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /analysis/metric_space.lean | f25180c1f1c1686aaae7d95ce6a63480bf5a7797 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 18,422 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro
Many definitions and theorems expected on metric spaces are already introduced on uniform spaces an... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.