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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
14b1317ff252cc03448f172ae56e0ef2eb281c34 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/invalid_field_notation_error_msg.lean | fa3293593ad384f396a0489e0a232b48b3054c10 | [
"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,114 | lean | /-
This is an annoyingly unhelpful error message that I see frequently.
It reports the prefix of the field notation, but not the field that we are trying to access.
An exact line number would help, but even so it would be great to report the field as well.
[Leo]: the bad line number is due to the transition from Lean3... |
bcbc8438e3d3b75ce8ee696c0de73f066d1668d7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/ring/ulift.lean | daaf5074ff05005efc62165ade85e2b841ca2ff1 | [] | 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,818 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.ulift
import Mathlib.data.equiv.ring
import Mathlib.PostPort
universes u u_1... |
1ba4ed7085dc6ee540c429beff15861de26cf9ac | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/multiset/sort.lean | df8ecbe0d9e4b3a21e3acc35c0c90f09d7059cd6 | [
"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 | 1,644 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.sort
import data.multiset.basic
import data.string.basic
/-!
# Construct a sorted list from a multiset.
-/
namespace multiset
open list
variables {... |
96428b751808aee6458bddc2b058e5b7c7a11943 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/ftree_brec.lean | 6cb01353b8c7dbb796776b6f72a1965ba8f8bbd7 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,919 | lean | import data.unit data.prod
inductive ftree (A : Type) (B : Type) : Type :=
leafa : ftree A B,
node : (A → B → ftree A B) → (B → ftree A B) → ftree A B
set_option pp.universes true
check @ftree
namespace ftree
namespace manual
definition below.{l l₁ l₂} {A : Type.{l₁}} {B : Type.{l₂}} (C : ftree A B → Type.{l+1}) (... |
43e3f7a980b5da4ca943958a03cdbdf471d6624c | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/fin_enum.lean | 752e4c9d495d7b012d18888d00cdabdef2f60cd5 | [
"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 | 8,853 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.monad.basic
import data.fintype.basic
/-!
Type class for finitely enumerable types. The property is stronger
than `fintype` in that it assigns each element ... |
2d269101fceddabf5bc47481b9b560649a360823 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/group_theory/subgroup/pointwise.lean | 01a38a167b982e8b5763d3748d6baf998a5851ac | [
"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 | 7,171 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.subgroup.basic
import group_theory.submonoid.pointwise
/-! # Pointwise instances on `subgroup` and `add_subgroup`s
This file provides the actions
* `... |
e1ed0b7c3a28fb0a6499c49310080f2c28ff27c8 | df561f413cfe0a88b1056655515399c546ff32a5 | /5-advanced-proposition-world/l6.lean | 9cee4916b218ee58645ae907ffc35abbb30c356f | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 76 | lean | example (P Q : Prop) : Q → (P ∨ Q) :=
begin
intro q, right, exact q,
end |
85cc2d02eca2d559348bba4d347cec93865d75b4 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/algebra/infinite_sum.lean | 50002730c3fb0c32fab93a566fbf963e2dd42933 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 28,977 | 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
Infinite sum over a topological monoid
This sum is known as unconditionally convergent, as it sums to the same value under all possible
permutations. For Euclidean spa... |
fb4ef82a023ad32ecaa35dd68bcab629a277f04e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /doc/monads/applicatives.lean | dd19b081401c8c282cd29d25e9240438b57e7f43 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 12,724 | lean | /-!
# Applicative Functors
Building on [Functors](functors.lean.md) is the [Applicative
Functor](https://en.wikipedia.org/wiki/Applicative_functor). For simplicity, you can refer to these
simply as "Applicatives". These are a little tricker than functors, but still simpler than monads.
Let's see how they work!
## Wha... |
ede60a0cf1f05dc1f06b9ba8d7305e2bac2aa2df | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/fundamental_groupoid/basic.lean | 90509950dcf73063c59ac0e8b0202e4b136771ab | [
"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 | 12,900 | lean | /-
Copyright (c) 2021 Shing Tak Lam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import category_theory.category.Groupoid
import category_theory.groupoid
import topology.category.Top.basic
import topology.homotopy.path
/-!
# Fundamental groupoid of... |
283774a31edf82881463f82834673035ff25e46f | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Extra.lean | 9e510733b9cde1c28a97a7c2d41981f4458e2140 | [
"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,596 | 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.App
/-
Auxiliary elaboration functions: AKA custom elaborators
-/
namespace Lean.Elab.Term
open Meta
def elabBinRelCore (noProp : Bool) ... |
5680bb48aa688d27cdc5be85874701ebe67e6385 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/ordering/default.lean | abf6f456bdce070a88f6fa3bd805ee3691bb7405 | [
"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 | 230 | 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
-/
prelude
import init.data.ordering.basic init.data.ordering.lemmas
|
5a418cb507213b3c5efc53e4b7fa4284c341698a | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /08_Building_Theories_and_Proofs.org.40.lean | ce6b7607539917d96e33ea992bedcd3d2762406e | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77 | lean | import standard
import data.list
open list (induction_on)
check induction_on
|
48a9d6640fdbd7f6752c8f3ed2e49864b71dc9df | 26b8b0964ca8e1c2e203585ba5940f83fe05e48a | /src/tidy/intro_at_least_one.lean | 253058d33fda8bd1532294420e4b74bf4e75c16a | [] | no_license | jcommelin/lean-tidy | ef3cd32a3804221d93f0dff9e180bb2c52f4b143 | 9cecf497e90db64b5ea140ad6ae1603976dcd402 | refs/heads/master | 1,585,129,919,276 | 1,533,512,680,000 | 1,533,512,680,000 | 143,677,361 | 0 | 0 | null | 1,616,803,481,000 | 1,533,530,576,000 | Lean | UTF-8 | Lean | false | false | 255 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
open tactic
meta def intro_at_least_one : tactic unit :=
do l ← intros,
guard (¬ l.empty)
|
655449319f3a30452bef66b98c0aa98020703120 | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /tests/lean/run/term_app2.lean | 0c9583dd9bb630fef404f19df27bc54305298af6 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 2,251 | lean | local attribute [simp] add_comm add_left_comm
lemma nat.lt_add_of_lt {a b c : nat} : a < b → a < c + b :=
begin
intro h,
have aux₁ := nat.le_add_right b c,
have aux₂ := lt_of_lt_of_le h aux₁,
rwa [add_comm] at aux₂
end
lemma nat.lt_one_add_of_lt {a b : nat} : a < b → a < 1 + b :=
begin
intro h,
have aux :=... |
117a3e7a2f3ed5c016449f3998307173f7556b7f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/simp_beta.lean | 8ce8fb56e86f0e787393d9520b0e1164bd839260 | [
"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 | 194 | lean | example (a b : nat) (h : a = b) : (λ x, x) a = b :=
begin
simp,
exact h
end
example (a b : nat) (h : a = b) : (λ x, x) a = b :=
begin
fail_if_success {simp {beta := ff}},
exact h
end
|
0ea9a6ebe5fc27553b8711fa106dcf05c9f4b274 | 1f6fe2f89976b14a4567ab298c35792b21f2e50b | /spectrum/spectrification.hlean | 23d8abf3dde8032b3e40c8ed60fddb2abd623759 | [
"Apache-2.0"
] | permissive | jonas-frey/Spectral | e5c1c2f7bcac26aa55f7b1e041a81272a146198d | 72d521091525a4bc9a31cac859840efe9461cf66 | refs/heads/master | 1,610,235,743,345 | 1,505,417,795,000 | 1,505,417,795,000 | 102,653,342 | 0 | 0 | null | 1,504,728,483,000 | 1,504,728,483,000 | null | UTF-8 | Lean | false | false | 11,817 | hlean | import .basic ..colim
open eq pointed succ_str is_equiv equiv spectrum.smap seq_colim nat
namespace spectrum
/- Prespectrification -/
definition is_sconnected {N : succ_str} {X Y : gen_prespectrum N} (h : X →ₛ Y) : Type :=
Π (E : gen_spectrum N), is_equiv (λ g : Y →ₛ E, g ∘ₛ h)
-- We introduce a prespectrif... |
4fc1727466d9d6318203dc60f39c4bacb8379c75 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/specific_groups/quaternion.lean | 4576769cc812a0574f0cf8c8d67d6fb844b5ab27 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 8,154 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import data.zmod.basic
import group_theory.order_of_element
import data.nat.basic
import tactic.interval_cases
import group_theory.specific_groups.dihedral
im... |
cb88d316c24bfe2310995ce4a1f4c99e8bc531da | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/empty_match_bug.lean | 3e893c86fc2abbaa9dbb585ff6e4f6e2952b78d7 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 117 | lean | import data.fin
open nat
open fin
definition case0 {C : fin zero → Type} (f : fin zero) : C f :=
match f with
end
|
7ab74eb3c5283c0d433af9331c3dbda2a36b54da | 6660717bc6481a8daa9f91dc7dcef5eccea1b0bd | /lib_test/aprelude.lean | 3fa5b63cd9db6fbc247e3c0c0fea7efeeb8b5301 | [] | no_license | beschmi/lean-ocaml-bindings | cf314f245144147e69b28b16c53400035ca94652 | 33f76adaf7a8b697126b80738f8e8812f41846cb | refs/heads/master | 1,515,416,835,673 | 1,462,538,164,000 | 1,462,538,164,000 | 54,384,212 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,275 | lean | import data.string data.list algebra.field data.real
abbreviation Ty := Type₁
-- * Fixed prelude
-- ** Expressions
-- *** Types
constant G : Ty
constant Fq : Ty
-- *** Operators and axioms for G
namespace grp
constant one : G
constant gen : G
constant exp : G → Fq → G
constant dlog : G → Fq
constant ... |
f1030f830bde4a6c7887790e1a3b35b1777a0362 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/category_theory/closed/cartesian.lean | 58ae5f97651d425764cfcfb6ae334ddeea728d6e | [
"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 | 16,438 | lean | /-
Copyright (c) 2020 Bhavik Mehta, Edward Ayers, Thomas Read. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Edward Ayers, Thomas Read
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.constructions.preserve_bi... |
225ed05a7362161bc775523acfd172e24e92b97f | 618003631150032a5676f229d13a079ac875ff77 | /src/group_theory/perm/sign.lean | 12af03d64ac8c61b358fde8e8ef308d6df1a1fd8 | [
"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 | 32,604 | 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.basic
import algebra.big_operators
universes u v
open equiv function fintype finset
variables {α : Type u} {β : Type v}
namespace equiv.perm
def su... |
cbef11af9a46aea4d43ab3bd1c03965970c00557 | c17c60327eee1622a8d7defa5af340e08619107f | /src/snippets/tactics/logics.lean | 4ec6645c361ab06216d8041d3e469216b88d900c | [] | no_license | FredericLeRoux/dEAduction-lean2 | 277e3aad5102ff155fb04b188dbd01568ceea005 | bf7d7d88c2511ecfda5a98ed96e4ca3bc7ae1151 | refs/heads/master | 1,667,931,697,036 | 1,593,174,880,000 | 1,593,174,880,000 | 275,150,842 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,170 | lean | import data.set
import tactic
namespace tactic.interactive
open lean.parser tactic interactive
open interactive.types
open tactic expr
local postfix *:9001 := many
---------------------------
/- LOGIQUE -/
---------------------------
/- ∀.intro Pour démontrer "∀ x, P(x)", on introduit une variable x -/
meta def qq... |
6b25e82248f5345663a352b139aae82d67f2676f | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/linear_algebra/char_poly.lean | 00cd4dea88d3fa438a8c70c4cdb57700f5249b4a | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 3,798 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.apply_fun
import ring_theory.matrix_algebra
import ring_theory.polynomial_algebra
import linear_algebra.nonsingular_inverse
import tactic.squeeze
/-!
#... |
d0e100ea475194fc1608ca083e7997dd2d3274aa | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/Endurable.lean | d7bc93b5dae6dcb0992cdd8499adcf1f51f16c3d | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 667 | lean | -- Endurable
/-
[Endurable] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [MissionEffective].
An instance of type [SystemType] is deemed [Endurable] if and only if all the requirements are satisfied.
-/
import SystemModel.System
inductive Endurable (sys_type: SystemType): ... |
2d256c879aadff41b765411ee9790faa780a0d4f | 05e1338b54d08e2cb29dc6a094c10ecbedb7a6a9 | /src/jordan_hoelder.lean | 910586d2279b1128f384150df34581df3910f96f | [] | no_license | ChrisHughes24/jordan_hoelder | 91783fd9b34a424451a976bb683bd43c7e955a13 | 41ba0efabeded8655399420a0dfe107eb5acf664 | refs/heads/master | 1,690,778,999,662 | 1,632,495,314,000 | 1,632,495,314,000 | 398,859,868 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,166 | lean | import order.bounded_lattice
import data.set.intervals.basic
import data.fin
import .fin
import data.set_like.basic
import data.list.sort
import data.equiv.fin
import data.equiv.option
universe u
open set
class jordan_hoelder_class (X : Type u) [lattice X] :=
(is_maximal : X → X → Prop)
(lt_of_is_maximal : ∀ {x y}, ... |
3631f6ae3b82394db40ce129047069eb72606885 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/calculus/implicit.lean | 9e4b3ecc5dca07d6eb8d9c21f68100449230bffe | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 20,795 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.inverse
import analysis.normed_space.complemented
/-!
# Implicit function theorem
We prove three versions of the implicit function theore... |
a770761e0d02809a3ed6dbb9cdb5502609096edf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/monoidal/internal/Module_auto.lean | 4a83f8ece7268bd62874c45410a9e70fc5ed0247 | [] | 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,311 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.Module.monoidal
import Mathlib.algebra.category.Algebra.basic
import Mathl... |
bc89fa0e71d1a83169e5e72dd3641ed65fde289f | 0dc59d2b959c9b11a672f655b104d7d7d3e37660 | /other_peoples_work/jason_group.lean | 91ed5a060154d04469621c3286130bdcf54d2004 | [] | no_license | kbuzzard/lean4-filters | 5aa17d95079ceb906622543209064151fa645e71 | 29f90055b7a2341c86d924954463c439bd128fb7 | refs/heads/master | 1,679,762,259,673 | 1,616,701,300,000 | 1,616,701,300,000 | 350,784,493 | 5 | 1 | null | 1,625,691,081,000 | 1,616,517,435,000 | Lean | UTF-8 | Lean | false | false | 11,860 | lean | -- Stuff that's not there yet
class One (α : Type u) where
one : α
instance [One α] : OfNat α (natLit! 1) where
ofNat := One.one
class Inv (α : Type u) where
inv : α → α
postfix:max "⁻¹" => Inv.inv
-- where is `u` coming from?
def Function.injective {α : Sort u} {β : Sort v} (f : α → β) : Prop :=
∀ a₁ a₂ :... |
91fe8b3a270f2c123c9a68c457a2ee00d6e9f450 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/strict_quoted_name_in_patexpr.lean | a958b97fae5462d63611c5e6365f6c143d77850e | [
"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 | 144 | lean | open tactic
namespace baz
theorem bar : true := trivial
meta def foo : tactic unit :=
do applyc ``bar
end baz
example : true :=
by baz.foo
|
3890e327e00cc21cb42982348ed56ac68260826f | 3c9dc4ea6cc92e02634ef557110bde9eae393338 | /stage0/src/Lean/Data/Options.lean | f7461215b26aa070b5e54b2902e7e046375f0ae3 | [
"Apache-2.0"
] | permissive | shingtaklam1324/lean4 | 3d7efe0c8743a4e33d3c6f4adbe1300df2e71492 | 351285a2e8ad0cef37af05851cfabf31edfb5970 | refs/heads/master | 1,676,827,679,740 | 1,610,462,623,000 | 1,610,552,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,872 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich and Leonardo de Moura
-/
import Lean.Data.KVMap
namespace Lean
def Options := KVMap
def Options.empty : Options := {}
instance : Inhabited Options where
... |
7ffe336128b8424ef11338adb7b9718ecc77d1bb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/transport.lean | 53bdde01db08e2ad1f8c9bd37512f4bdf6b75a8c | [
"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,961 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Simon Hudon, Scott Morrison
-/
import tactic.equiv_rw
/-!
## The `transport` tactic
`transport` attempts to move an `s : S α` expression across an equivalence `e : α ≃... |
34907810b28f707834b3073b38469e0aafd63db4 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/init/pointed.lean | ef8b376a4d6f7d7c0c36a8acebffaf698f9c01b4 | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 6,818 | lean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
The definition of pointed types. This file is here to avoid circularities in the import graph
Guide on inputting coercion arrows:
↑ -- \u
↥ -- \u-|
⇑ -- \u=
-/
imp... |
d2d2f9e0a43e70523111e4ba8685c5974d193d6b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/valuation/integral.lean | f7e8931e010cf618aa7822812b06e69c39357976 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 1,703 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import ring_theory.integral_closure
import ring_theory.valuation.integers
/-!
# Integral elements over the ring of integers of a valution
The ring of integers is integrally ... |
ebd2dcd8beb29863a17051711edbb29caa7777a1 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/constructions.lean | ae5971502adde0d73c27b9477f837a36d260087a | [
"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 | 44,553 | 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, Patrick Massot
Constructions of new topological spaces from old ones: product, sum, subtype, quotient, list, vector
-/
import topology.maps topology.su... |
e1e71ae04ddc40c19b7f8918606092cdc1b547ee | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/fintype/card.lean | 886fe7eafb00170e2a90b59ee0ed9f034acea016 | [
"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 | 16,254 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.fintype.basic
import algebra.big_operators.ring
/-!
Results about "big operations" over a `fintype`, and consequent
results about cardinalities of certain... |
e0bb7c7f718d4dc9fc54abd2bfad4c3b735bfd89 | 0d9b0a832bc57849732c5bd008a7a142f7e49656 | /src/find_indexes2d.lean | ca7df599f87fc550c1dc237a96b2f4deb25a1005 | [] | no_license | mirefek/sokoban.lean | bb9414af67894e4d8ce75f8c8d7031df02d371d0 | 451c92308afb4d3f8e566594b9751286f93b899b | refs/heads/master | 1,681,025,245,267 | 1,618,997,832,000 | 1,618,997,832,000 | 359,491,681 | 10 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,472 | lean | import data.list.func
import .list2d
namespace list2d
open list.func
variables {α : Type} {β : Type}
def find_indexes2d {α : Type} (P : α → Prop) [decidable_pred P] (l : list2d α) : list (ℕ × ℕ)
:= list.join (l.map_with_index (λ (y:ℕ) (row:list α),
(list.join (row.map_with_index (λ (x:ℕ) (a:α), if P a then [(x,y... |
f12ffb00736069bcf6cfe232f4314f9bf2eb8b58 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/quaternion.lean | 6ff353e009e1de152702d46397f89cdc79df454f | [
"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 | 3,451 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.quaternion
import analysis.inner_product_space.basic
/-!
# Quaternions as a normed algebra
In this file we define the following structures on the s... |
2adb95b26b176a57f86172b08afa03594c0e13d8 | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep1/morphism/morphism_module.lean | 3c1c3b3de01d85e3d2cc4dd74b96b4a794eb1144 | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,598 | lean | import tactic
import group_representation
import morphism
universe variables u v w w'
open linear_map
open morphism
variables {G : Type u} [group G] {R : Type v}[comm_ring R]
namespace morphism
variables {M : Type w} [add_comm_group M] [module R M]
{M' : Type w'} [add_comm_group M'] [module R M']
/-!
*... |
dbb3cd78d137c93d87b012b4992c27ffcb8c5f89 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/cones.lean | f1ab170bc7ca7de3ed18d528f218e7a07a255428 | [
"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 | 29,938 | 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, Floris van Doorn
-/
import category_theory.functor.const
import category_theory.discrete_category
import category_theory.yoneda
import category_theory.f... |
2bf5e7b031e1ce5cccc9faebd4a5a97bf64f65b0 | 8c02fed42525b65813b55c064afe2484758d6d09 | /src/vcgen.lean | ba6750e4efaeaba3c8327bb60220941e40c8b07c | [
"LicenseRef-scancode-generic-cla",
"MIT"
] | permissive | microsoft/AliveInLean | 3eac351a34154efedd3ffc4fe2fa4ec01b219e0d | 4b739dd6e4266b26a045613849df221374119871 | refs/heads/master | 1,691,419,737,939 | 1,689,365,567,000 | 1,689,365,568,000 | 131,156,103 | 23 | 18 | NOASSERTION | 1,660,342,040,000 | 1,524,747,538,000 | Lean | UTF-8 | Lean | false | false | 3,716 | lean | -- Copyright (c) Microsoft Corporation. All rights reserved.
-- Licensed under the MIT license.
import .lang
import .irsem
import .irsem_exec
import .irsem_smt
import .freevar
import smt2.syntax
import smt2.builder
namespace vcgen
open irsem
open smt2
open smt2.builder
-- An emitter that translates value, poison, u... |
7b75f5aa5f1de8124639952ac02d8c0d687a7599 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/filter/interval.lean | 605bfcd00266e7b8562ecc8da5bcd514148295fb | [
"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 | 11,465 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import data.set.intervals.ord_connected
import order.filter.small_sets
import order.filter.at_top_bot
/-!
# Convergence of intervals
If both `a` and `b` ten... |
b91d8f9fe9075bc4da3a2c0e7a6765f42827e338 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/mv_polynomial/derivation.lean | 2e88c78ea88378b1fa43792fcde4f997c5a79204 | [
"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 | 6,212 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import data.mv_polynomial.supported
import ring_theory.derivation
/-!
# Derivations of multivariate polynomials
In this file we prove that a derivation of `mv_pol... |
75ba38743334b416aa9be1dcd023f88e9b9fce91 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/sheaves/sheaf_condition/unique_gluing.lean | 379304cb7482a1487678d84557769304cb070276 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 10,777 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import topology.sheaves.forget
import category_theory.limits.shapes.types
import topology.sheaves.sheaf
import category_theory.types
/-!
# The sheaf condition in t... |
965337e1f943569d7ef0801afea09e64d40c5d8f | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/kabstract_cache.lean | 0f781651dd70a169b3e3db4bb3ce3e798fc8f399 | [
"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 | 256 | lean | open tactic
example {α : Type} (f : α → α → α) (a b : α) (H₁ : a = b) (H₂ : f b a = a) :
let c := a in f c c = c :=
by do dsimp,
get_local `H₁ >>= rewrite_core reducible tt tt (occurrences.pos [1]) ff,
get_local `H₂ >>= exact
|
2819928da6cc1ebcda460fd76048b915693ad05a | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/transfer.lean | a814ad7a12cd2fa4908d4f5c07f33cea574c822f | [
"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 | 7,496 | 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 (CMU)
-/
prelude
import init.meta.tactic
import init.meta.match_tactic
import init.meta.mk_dec_eq_instance
import init.data.list.instances
import logic.relator
open tac... |
820a9cf437d7efafdbe07877f72a22293134937c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/252.lean | 15a97609b5611348372b8d8100a0ba699fae7fb1 | [
"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 | 319 | lean | open nat
inductive tree (A : Type)
| leaf : A → tree
| node : tree → tree → tree
check tree.node
definition size {A : Type} (t : tree A) : nat :=
tree.rec (λ a, 1) (λ t₁ t₂ n₁ n₂, n₁ + n₂) t
check size
eval size (tree.node (tree.node (tree.leaf 0) (tree.leaf 1))
(tree.leaf 0))
|
4873b04f2ade76303ed38923843fbf89d1d008d0 | 0403d75087eccd9fdec22713ec7cff4d40c93610 | /lean/love07_metaprogramming_demo.lean | f1e8f759120bd135ec7e19f930ef9303aa3a0ef1 | [] | no_license | 5l1v3r1/logical_verification_2020 | 9660ae5a83915be2103183490cae279b888be83c | 000aa1fe212813b8458bf26c16b8a97597b7417e | refs/heads/master | 1,621,861,800,557 | 1,586,181,042,000 | 1,586,181,042,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,416 | lean | import .love05_inductive_predicates_demo
/-! # LoVe Demo 7: Metaprogramming -/
set_option pp.beta true
namespace LoVe
/-! ## Tactics and Tactic Combinators -/
lemma repeat_example :
even 4 ∧ even 7 ∧ even 3 ∧ even 0 :=
begin
repeat { apply and.intro },
repeat { apply even.add_two },
repeat { sorry }
end... |
8759bd94e6efacb61d746ac2b81741057bfc4c58 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/category/functor/exponential_laws.hlean | 28fd2f7bd5810f4d5250576969a522426d2f1824 | [
"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 | 11,318 | 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, Jakob von Raumer
Exponential laws
-/
import .equivalence .examples
..constructions.terminal ..constructions.initial ..constructions.product ..constructions... |
6b0516db9adc163788ba2396193292dc7db3c998 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/uniform_space/cauchy.lean | 13b665927539c5bad3ae911c40f82a155235d3ab | [
"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 | 27,992 | 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.uniform_space.basic
import topology.bases
import data.set.intervals
/-!
# Theory of Cauchy filters in uniform spaces. Complete uniform... |
bbaea59d697ffb4b30ea10b644f75401c59bed4b | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Compiler/IR/ResetReuse.lean | 0edce6831ac073b8b98b6cfec1b91a8faaf7555a | [
"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 | 6,018 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.IR.Basic
import Lean.Compiler.IR.LiveVars
import Lean.Compiler.IR.Format
namespace Lean
namespace IR
namespace ResetReuse
/- Remark: t... |
5e2a18d52a76c367e2a674fe744f764120a4e3b3 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/set/filter.lean | a382f78becb32dfaac19e29ae625ee964391f8fe | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,874 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Filters, following Hölzl, Immler, and Huffman, "Type classes and filters for mathematical
analysis in Isabelle/HOL".
-/
import data.set.function logic.identities algebra.c... |
9eb65a29561ac380672b1fdce1019387adaeff2b | 618003631150032a5676f229d13a079ac875ff77 | /src/number_theory/dioph.lean | 396b39a4c8ebb4b2b9afa9731d340ed2daa2f7e1 | [
"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 | 36,372 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import number_theory.pell
import data.pfun
universe u
open nat function
namespace int
lemma eq_nat_abs_iff_mul (x n) : nat_abs x = n ↔ (x - n) * (x + n) = 0 :=
be... |
0f79007a07a72494c2a527a4a98b2a0b635e6fdf | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/monotone.lean | 70e2c04afd09416066cc8d1975e31d5984e2d49e | [
"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 | 27,416 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yaël Dillies
-/
import order.compare
import order.order_dual
import order.rel_classes
/-!
# Monotonicity
This file defines (strictly) monotone/antitone ... |
8d94c17daf3f957ef0eb2fff61d1829cdbb80769 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/int/default.lean | 5e3478af4ee74ce15764adb1de224462f90483a3 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 205 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
-/
import .basic .order .div .power .gcd .bigops
|
43ba18b85f7861193b99ff1a2454585ff5bd30a4 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/polynomial/symmetric.lean | 900872de32aad59dce4eb35b6f7538239f98085b | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 8,158 | lean | /-
Copyright (c) 2020 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Hanting Zhang, Johan Commelin
-/
import data.fintype.card
import data.mv_polynomial.rename
import data.mv_polynomial.comm_ring
import algebra.algebra.subalgebra
/-!
# Symmetric Polynom... |
553024fc3de23235398f7b381485eac7cb3b3372 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/setoid.lean | 68ddf7d2f2b28b97ed1fe551c7c982d66046b6e9 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 25,977 | lean | /-
Copyright (c) 2019 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Amelia Livingston, Bryan Gin-ge Chen
-/
import data.quot data.set.lattice data.fintype order.galois_connection
/-!
# Equivalence relations
The first section of the file defines t... |
7ef7e23147a2a350a36c87957dd6fbe7d7816429 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebraic_geometry/locally_ringed_space.lean | 45a0806bf9c8fabbc6e067c0925c7639be8de914 | [
"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 | 7,616 | 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 algebraic_geometry.ringed_space
import data.equiv.transfer_instance
/-!
# The category of locally ringed spaces
We define (bundled) locally ringed spaces (a... |
134bae970cf528dd67dd0698cd13f7173df18b02 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/rewrite_all/default.lean | 62c4031f72341d2b2432324bd5b79c505185bbce | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 3,279 | lean | /-
Copyright (c) 2018 Keeley Hoek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Scott Morrison
-/
-- There are two alternative backends, provided by `.congr` and `.kabstract`.
--
-- The kabstract backend is faster, but if there are multiple identical occ... |
4f6356aa0e09443492970853bd6d98dae10af2ec | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eq16.lean | 03cff78698da4c47e8ff1a79bdef5a8a817f5eed | [
"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 | 443 | lean | import data.list
open list
variable {A : Type}
set_option pp.implicit true
definition append : list A → list A → list A
| append nil l := l
| append (h :: t) l := h :: (append t l)
theorem append_nil (l : list A) : append nil l = l :=
rfl
theorem append_cons (h : A) (t l : list A) : append (h :: t) l = h :: (a... |
5a9a494592b30393f94260efdce7521d6aac0786 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/matrix2.lean | 5ec9a504e67b6cd397c2582b9b42a8022f9717bb | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 825 | lean | import logic
constant matrix.{l} : Type.{l} → Type.{l}
constant same_dim {A : Type} : matrix A → matrix A → Prop
constant add {A : Type} (m1 m2 : matrix A) {H : same_dim m1 m2} : matrix A
open eq
theorem same_dim_eq_args {A : Type} {m1 m2 m1' m2' : matrix A} (H1 : m1 = m1') (H2 : m2 = m2') (H : same_dim m1 m2) : same_... |
97ca4a0090a4e596f476c9ff3b4bdcd02af897bd | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eqn_tac.lean | 24b2504b926fe77cf930107d60bb0b9ffa57d7bb | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 359 | lean | open nat
definition foo : nat → nat,
foo zero := begin exact zero end,
foo (succ a) := begin exact a end
example : foo zero = zero := rfl
example (a : nat) : foo (succ a) = a := rfl
definition bla : nat → nat,
bla zero := zero,
bla (succ a) :=
begin
apply foo,
exact a
end
example (a : nat) : foo (su... |
161f385485101ab06dfaebc8bc162b992401b3d0 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/maps.lean | 6c69ab91331f921c63fa9ebe7f1d597ca627093d | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 15,250 | 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, Patrick Massot
-/
import topology.order
/-!
# Specific classes of maps between topological spaces
This file introduces the following properties of a m... |
6dd1f751166f3ee73677c7a621e1c367f1320465 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/covering/vitali_family.lean | 2aad85dc9503dab82b7b486126f86e0eb4e1db57 | [
"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,874 | 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 measure_theory.measure.measure_space
/-!
# Vitali families
On a metric space `X` with a measure `μ`, consider for each `x : X` a family of measurable s... |
9b914d8a6d0c336c30e65af459707f9443cb8c16 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/order.lean | c3c56da713d69a6abf2c28280931ce8735611cc4 | [
"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 | 40,296 | 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.tactic
/-!
# Ordering on topologies and (co)induced topologies
Topologies on a fixed type `α` are ordered, by reverse inclusion.
Tha... |
6a6dbd28741d85dd04cce4af8fb7f78f203b12d9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/geometry/manifold/instances/sphere.lean | 7424b08e368f37d11d420712011b3f44e08ca2f8 | [
"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 | 20,891 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.complex.circle
import analysis.normed_space.ball_action
import analysis.inner_product_space.calculus
import analysis.inner_product_space.pi_L2
impor... |
d1b808a49ed5edf66857b12ebac1a5aae2352904 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/fin/basic.lean | dd68e9899c6a70a88e31da53e3b67c516b85e871 | [
"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 | 78,553 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import data.nat.cast
import data.int.basic
import tactic.localized
import tactic.apply_fun
import order.rel_iso
/-!
# The finite type with `n` element... |
e75fa2e5d057fb7571c6fe58db193b73061f4a77 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/example1.lean | 52a75a207034ff0785a5fed16a4026c90ace780c | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 285 | lean | import logic
inductive day :=
monday, tuesday, wednesday, thursday, friday, saturday, sunday
namespace day
definition next_weekday d :=
rec_on d tuesday wednesday thursday friday monday monday monday
example : next_weekday (next_weekday saturday) = tuesday :=
rfl
end day
|
e657375c08e1f5230bbe4dab8312c372a449d070 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/semicolonOrLinebreak.lean | 73ea2a3cf897835bbe29d5d1e4bb8594a2b33b6c | [
"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 | 322 | lean | def f (y : Nat) :=
let x := 1x + y -- Error
structure Point where
x : Nat
y : Nat
deriving Repr
def mkPoint1 (a : Nat) : Point where
x := 1y := a -- Error
def mkPoint2 (a : Nat) : Point where
x := 1
y := a
def mkPoint3 (a : Nat) : Point where
x := 1; y := a
def mkPoint?? (x y : Nat) : Point :=
{ x y ... |
db58464fdef8dda83f99a988e82269a3ec6a9730 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/computability/reduce.lean | 6be5940f12e823156d20f884f9a315e10098d1cd | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 17,529 | lean | /-
Copyright (c) 2019 Minchao Wu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Minchao Wu, Mario Carneiro
-/
import computability.halting
/-!
# Strong reducibility and degrees.
This file defines the notions of many-one reduction and one-one reduction between sets,... |
826987cfe6e821c9c43ed16ace8337e338f52430 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/HeadIndex.lean | 8b22dac1048c30fbddc2d956d28cddf1b7784d03 | [
"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,361 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Expr
namespace Lean
inductive HeadIndex where
| fvar (fvarId : FVarId)
| mvar (mvarId : MVarId)
| const (constName : Name)
| proj (stru... |
3a9e45f5c569365d9a84eb044e4c783f38d19281 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/univ_bug2.lean | 57827921df6c72ad2d618c83667d02cc9e819e84 | [
"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 | 889 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
------------------------------------------------------... |
aed7146937c6626f36ddbac4ef61964c37ace6b6 | 827a8a5c2041b1d7f55e128581f583dfbd65ecf6 | /torus.hlean | f7314f175d4cf6e4e609447535d6c023d372b1da | [
"Apache-2.0"
] | permissive | fpvandoorn/leansnippets | 6af0499f6f3fd2c07e4b580734d77b67574e7c27 | 601bafbe07e9534af76f60994d6bdf741996ef93 | refs/heads/master | 1,590,063,910,882 | 1,545,093,878,000 | 1,545,093,878,000 | 36,044,957 | 2 | 2 | null | 1,442,619,708,000 | 1,432,256,875,000 | Lean | UTF-8 | Lean | false | false | 2,634 | hlean | import homotopy.torus
open eq circle prod prod.ops function
namespace torus
definition S1xS1_of_torus [unfold 1] (x : T²) : S¹ × S¹ :=
begin
induction x,
{ exact (circle.base, circle.base) },
{ exact prod_eq loop idp },
{ exact prod_eq idp loop },
{ apply square_of_eq,
exact !prod_eq_co... |
7924b1fdd6e94dbad15f9b3215bca835786e70ce | 827124860511172deb7ee955917c49b2bccd1b3c | /data/containers/rbtree/basic.lean | e57ce1f0212d1d660f3c477c75edb486b1658ebb | [] | no_license | joehendrix/lean-containers | afec24c7de19c935774738ff3a0415362894956c | ef6ff0533eada75f18922039f8312badf12e6124 | refs/heads/master | 1,624,853,911,199 | 1,505,890,599,000 | 1,505,890,599,000 | 103,489,962 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 11,987 | lean | /- This defines a set of elements implemented using a bianry tree. -/
import ..utils.list
import ..utils.has_preordering
universe variable u
namespace data.containers
inductive color
| red : color
| black : color
namespace color
instance : decidable_eq color := by tactic.mk_dec_eq_instance
end color
open color
... |
c400602dbfa9bb09b008e58d33db392cc1f9a18e | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/adjunction/fully_faithful.lean | 52f4d62a1bde8c5450c7679b4faf14d6230b6d95 | [
"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 | 4,357 | 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.adjunction.basic
import category_theory.conj
import category_theory.yoneda
open category_theory
namespace category_theory
universes v₁ v₂ u₁ ... |
f32b7a0ea41b82ec344e6bf9747259b1f121daee | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Addition_World/adv_add_wrld6.lean | b06e1fe27bdefd4cdfbb4dd801e2efc2e9809682 | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 183 | lean | theorem add_left_cancel (t a b : ℕ) : t + a = t + b → a = b :=
begin
intro h,
rw nat.add_comm t a at h,
rw nat.add_comm t b at h,
apply nat.add_right_cancel h,
end |
3ed57b3f4fe344c9a6b48f2769462fd0fc8f3728 | f41725a360d902d3c7939fdf81a5acaf0d0467f0 | /src/beyond_primitive_element_theorem.lean | 772cdf63ba5112b307d541e671a30c70a577af5f | [] | no_license | pglutz/galois_theory | 978765d82b7586c21fd719b84b21d5eea030b25d | 4561c2c97d4c49377356e1d7a2051dedc87d30ba | refs/heads/master | 1,671,472,063,361 | 1,603,597,360,000 | 1,603,597,360,000 | 281,502,125 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 220 | lean | import primitive_element
lemma hmmm (F : Type*) [field F] (E : Type*) [field E] [algebra F E] (hs : is_separable F E) (hfd : finite_dimensional F E) : true :=
begin
cases primitive_element F E hs hfd,
sorry,
end |
5dc9c51b89600d5616a00eb0bd622c2e2eb8bb9e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/lazy_list/basic.lean | 22b55235a1f1e6a0725de8ccaa036898324f4217 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 7,809 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Traversable instance for lazy_lists.
-/
import control.traversable.equiv
import control.traversable.instances
import data.lazy_list
/-!
## Definitions on lazy lists
This fi... |
9b056e4ac91c75b38433c24db1d21910d39f3b0c | 392d28f7e76ae84b38b6424255b29b4a4af0d129 | /inClassNotes/higherOrderFunctions/option_mapTest.lean | 2fc902c6f5516df5e1ef26d99a7f1a07c46ab87e | [] | no_license | dg-1225/complogic-s21 | dd7349fd5288ec6c7bad3b0fe27987cfe176dc67 | f46b0bce48bbefbfbcdbc3da904a85c5f643ef58 | refs/heads/master | 1,678,017,116,497 | 1,613,794,266,000 | 1,613,794,266,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 518 | lean | import ..type_library.option
namespace hidden
-- concrete example
def map_option_nat_nat :
(nat → nat) →
(option nat) →
option nat
-- by case analysis on the option
| f option.none := option.none
| f (option.some v) := option.some (_)
-- almost the most general case
universes u₁ u₂
#check option
def map... |
e4cee4931c720ad3a3fa7b3f4660a7228c011ca1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/section2.lean | b3bb04eb1f3704aa3f46853b83fbd518b317ba68 | [
"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 | 187 | lean | section foo
variable A : Type
variable a : nat
end foo
namespace n1
section foo
variable A : Type
definition id (a : A) := a
variable a : nat
#check n1.id _ a
end foo
end n1
|
f4d8b42f0cb4afc786319e1fb0d681a1d0f97040 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/measure_theory/integration.lean | 0ea87f74d1349a6ede1136e409bf090f32bff7f5 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 54,791 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
6f6a1c3da53e9a536218ba1b9960c622ee8f6b84 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Control/Lift.lean | af411e0ec9ab0373100f0715886b2da1844b0fdd | [
"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,415 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
Classy functions for lifting monadic actions of different shapes.
This theory is roughly modeled after the Haskell 'layers' package https://hackage.ha... |
9026c3d895ecad965a79d6ceaaf949c6f6f1772c | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/order/zorn.lean | f7bbb640358a7f93fcef1d8eb50534bbe0eddc5b | [
"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 | 14,476 | 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
Zorn's lemmas.
Ported from Isabelle/HOL (written by Jacques D. Fleuriot, Tobias Nipkow, and Christian Sternagel).
-/
import data.set.lattice
noncomputable theory
univ... |
28c5130b161998fe9737da70f4f914d2c56f43eb | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/atomic_notation.lean | 84667075491f548cbc04e54bc743f3f575d148be | [
"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 | 93 | lean | open nat
constant f : nat → nat
notation `o`:1 := (10:nat)
#check o + 1
#check f o + o + o
|
a7ab977bbc18e24dd3620ba94e320a8a9f8be09f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial/gauss_lemma_auto.lean | 985c62a58bdd69643cefed823edbe16e9602ce9c | [] | 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,204 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.localization
import Mathlib.ring_theory.int.basic
import Mathlib.PostPort
unive... |
1d0ba9ebea7a45c2f3601c66592534af0c88d1e0 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/push_neg.lean | 28fbfd0469e57e88833b378c6afc3afd94d922a8 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 2,020 | lean | import tactic.push_neg
example (h : ∃ p: ℕ, ¬ ∀ n : ℕ, n > p) (h' : ∃ p: ℕ, ¬ ∃ n : ℕ, n < p) : ¬ ∀ n : ℕ, n = 0 :=
begin
push_neg at *,
guard_target_strict ∃ (n : ℕ), n ≠ 0,
guard_hyp_strict h := ∃ (p n : ℕ), n ≤ p,
guard_hyp_strict h' := ∃ (p : ℕ), ∀ (n : ℕ), p ≤ n,
use 1,
end
-- In the next example, ℤ sh... |
cd86d72cae88c8e763665f7067e5c66072ac272b | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /algebra/order_functions.lean | 9344253ef810b6cf2584eda55bcc84fcb0e88d02 | [
"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 | 7,889 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.ordered_group order.lattice
open lattice
universes u v
variables {α : Type u} {β : Type v}
section
variables [decidable_linear_order α] [decidable_... |
3272410b9a74792668fd118a2a8f50dd7ee1c862 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/vector3.lean | 21b6b01244a38b828f5987c0e94b830774ffe167 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 561 | lean | import logic data.nat.basic
open nat
inductive vector (A : Type) : nat → Type :=
vnil : vector A zero,
vcons : Π {n : nat}, A → vector A n → vector A (succ n)
namespace vector
theorem vcons.inj₁ {A : Type} {n : nat} (a₁ a₂ : A) (v₁ v₂ : vector A n) : vcons a₁ v₁ = vcons a₂ v₂ → a₁ = a₂ :=
assume h, no_confusion ... |
353248cd6f31f2319833fd2bf0592af5a5f9e6cc | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/zzz_junk/inferenceRules.lean | a2ccbce236a53cb94cff25cc711d3da68d74959f | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 10,829 | lean |
/-
Terminology: INTRODUCTION RULES
-/
/-
The constructors of a type implement
what in logic and computation we can
call *introduction* rules. They give
us ways to *introduce* vaues of some
particular type.
-/
/-
Inference rule notation.
-/
/-
There are two introduction rules for bool
Γ ⊢ bool.tt : bool ... |
46ff310944c9de76727a4f621354727c16115399 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/stalks.lean | 4f5b48591d9ea490406d753eb5d94452fabb5df7 | [
"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,721 | 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 algebraic_geometry.presheafed_space
import category_theory.limits.final
import topology.sheaves.stalks
/-!
# Stalks for presheaved spaces
> THIS FILE IS SYNC... |
3c2aa40aada1a618052de2513222ec37737f0642 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/widget/widget1.lean | 455f07be22e2ecce0f3339beff28016e26dcd0c0 | [
"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 | 2,975 | lean |
open widget
meta class has_show_html (π : Type) :=
(show_html' {α : Type}: π → html α)
meta def show_html {π α : Type} [has_show_html π] : π → html α := has_show_html.show_html'
meta instance string_show_html : has_show_html string := ⟨λ α p, html.of_string p⟩
meta class has_to_editor (π : Type) :=
(comp : π → htm... |
4619b84be9829069b61bc2f637a93ffe9af0c424 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/number_theory/liouville/basic.lean | 53b52e45e56c4e846f1271c97fe3a9a70d5ec99f | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 12,330 | lean | /-
Copyright (c) 2020 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Jujian Zhang
-/
import analysis.calculus.mean_value
import data.polynomial.denoms_clearable
import data.real.irrational
/-!
# Liouville's theorem
This file contains a pr... |
3fa1bd93185e416e94a1b9b9c96b0d2e30a64569 | 4f065978c49388d188224610d9984673079f7d91 | /ordinal.lean | 4a84c61c690ba9d431371914731c395f1b147efd | [] | no_license | kckennylau/Lean | b323103f52706304907adcfaee6f5cb8095d4a33 | 907d0a4d2bd8f23785abd6142ad53d308c54fdcb | refs/heads/master | 1,624,623,720,653 | 1,563,901,820,000 | 1,563,901,820,000 | 109,506,702 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,759 | lean | universe u
class ordinal (α : Type u) extends
decidable_linear_order α, has_zero α, has_add α, has_mul α :=
(omega : α)
(succ : α → α)
(zero_le : ∀ x : α, 0 ≤ x)
(zero_lt_omega : 0 < omega)
(zero_or_succ_of_lt_omega : ∀ x : α, x < omega → (x = 0 ∨ ∃ y, x = succ y))
(succ_ne_zero : ∀ x : α, succ x ≠ 0)
(succ_ne_omega... |
4cc9258f48b2d1389f41b154c98c88294fe6f960 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/stream/defs.lean | 52a07a844f43bb689fe793da7512c0893c6e397f | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 5,241 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
/-!
# Definition of `stream` and functions on streams
A stream `stream α` is an infinite sequence of elements of `α`. One can also think about it as an
in... |
d1c843547c70ad124ceaaa416724f73bbe51b544 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /data/nat/cast.lean | 33e2747dfe25be2c1dbc07bc21dd77f740f60bad | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 3,734 | 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 tactic.interactive algebra.order algebra.ordered_group
namespace nat
variables {α : Typ... |
aa7bd8274f324743ae8e9bb84499a961c38608aa | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/locally_constant/basic.lean | 07726fe93be46a3d8d2b5a6ad09fde173b79b7fd | [
"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 | 11,063 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import topology.subset_properties
import topology.connected
import topology.algebra.monoid
import tactic.tfae
/-!
# Locally constant functions
This file sets up the... |
ae1513eab1b10679839ffa36cee11c394e875cea | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/data/polynomial.lean | e1c6dc76e12aa30263391993e97412c7abf971c1 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 123,911 | 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.monoid_algebra
import algebra.gcd_domain
import ring_theory.euclidean_domain
import ring_theory.multiplicity
i... |
1a101bd3955560e47301af7ab53e492a8f500323 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/number_theory/padics/padic_numbers.lean | 307beeefe2ae74974ceced3fedcaf74ff6733124 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,174 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import number_theory.padics.padic_norm
import analysis.normed_space.basic
/-!
# p-adic numbers
This file defines the p-adic numbers (rationals) `ℚ_p` as
the comp... |
61c24d31f2880ec58f6df8a55ff93086086900d0 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/tactic/core.lean | 28b3ec48d5c1d5248e61f5e6403fba02c6381bee | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 72,062 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic category.basic meta.expr meta.rb_map data.bool tactic.doc_commands
tactic.derive_inhabited
univer... |
059e1a46a459c8bf8dcc7117cc9775eb18a01be0 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/data/quot.lean | d0d1306d623e3be8dc5692f42b9710cc228be1e0 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 7,460 | 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
Quotient types.
-/
prelude
/- We import propext here, otherwise we would need a quot.lift for propositions. -/
import init.data.sigma.basic init.data.setoid in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.