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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
d6027061e3260030eb77974a98f26a11c84372d6 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Compiler/IR/ExpandResetReuse.lean | 1a08a8a26a46a9dd71aee7de71edd3ff0249b397 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,012 | 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.CompilerM
import Lean.Compiler.IR.NormIds
import Lean.Compiler.IR.FreeVars
namespace Lean.IR.ExpandResetReuse
/- Mapping from varia... |
d5a49b56f88aaf1f9243613af0c05f48e3b8c3ed | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world08/level13.lean | f7a896979303a73c1e590c1b8e9424ab851c6101 | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 148 | lean | lemma ne_succ_self (n : mynat) : n ≠ succ n :=
begin
induction n with h hd,
apply zero_ne_succ,
intro hs,
apply hd,
apply succ_inj,
exact hs,
end
|
1731eda43cdc487596f6752b510eb636fc4dff8f | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1315a.lean | 2b691bf5ffd7824008263ba61c8cbcbcb6002fb7 | [
"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 | 515 | lean | def k : ℕ := 0
def works : Π (n : ℕ) (m : ℕ), ℕ
| 0 m := 0
| (n+1) m :=
let val := m+1 in
match works n val with
| 0 := 0
| (l+1) := 0
end
def works2 : Π (n : ℕ) (m : ℕ), ℕ
| 0 m := 0
| (n+1) m :=
match k with
| 0 := 0
| (i+1) :=
match works2 n (m+1) with
| 0 := 0
| (l+1) := 0
end
end
def fa... |
3a7f736dec5258818f31f6a4571499498cfc4933 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /11_Tactic-Style_Proofs.org.21.lean | 83a5867678725c2085617ac722ec6fbb3782e30d | [] | 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 | 275 | lean | import standard
import data.nat
open nat
variables x y z : ℕ
-- BEGIN
example : x + y + z = x + y + z :=
begin
generalize (x + y + z), -- goal is x y z : ℕ ⊢ ∀ (x : ℕ), x = x
clears x y z,
intro w, -- goal is w : ℕ ⊢ w = w
apply rfl
end
-- END
|
31d580ff0bc982e40807c4b627d350ee4f56a94c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eqn_tac.lean | 6b9e9903e50aba62b317835edc988f7a726e36c0 | [
"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 | 363 | 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... |
f683a1c7084476eb71c0db5e9a56d90129f931fb | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/backwards_reasoning.lean | fec5ddcdf975dfc519a0aa3715ced881d466fd56 | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,125 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import tactic.basic
import tactic.ext
import .recover
open tactic
meta def back_attribute : user_attribute := {
name := `back,
descr := "A lemma that should... |
75bfc37865a660c37b2bc74da32743df4d5a823f | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /addition.lean | d0a84a04bd9d1afd590e6d7660f9a355aa563032 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,848 | lean |
inductive xnat
| zero : xnat
| succ : xnat → xnat
open xnat
#print xnat.succ.inj
#print xnat.no_confusion
definition one := succ zero
definition two := succ one
definition add :xnat → xnat → xnat
| n zero := n
| n (succ p) := succ (add n p)
notation a + b := add a b
theorem one_add_one_equals_two : one + one = two :=... |
5971e7fc3bdd8a62b244746ca971225b5be7c5b6 | f08e5018e0d696ec84edb728e81a5744332d856e | /04_integers_and_rationals.lean | 6c3335ae794f04d3fa2efdd038273a4ddc4f0dca | [] | no_license | Shamrock-Frost/tao-analysis-one | 8ad24ac6f69920ed2b81d2c6646e73a2328bfbe7 | 82b3efa0f79880a1acbc09e88afc852be33d1c4f | refs/heads/master | 1,611,264,143,494 | 1,495,584,000,000 | 1,495,584,000,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,704 | lean | -- Let the integers be represented as an ordered pair of natural numbers.
def ℤ₀ := ℕ × ℕ
-- An equivalence relation is defined on the integers.
def eqv : ℤ₀ → ℤ₀ → Prop
| (a, b) (c, d) := a + d = c + b
infix ` ∽ `:50 := eqv
private theorem eqv.refl : ∀ (a : ℤ₀), a ∽ a
| (a, b) := rfl
private theorem eqv.symm : ∀... |
00c8ab4a7ed3c3b497c05457175162851e8eb9a7 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/list/rotate.lean | ebf2ef696e71b71cf083b0314a350117af42fe39 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,456 | lean | open nat
namespace list
variable {T : Type}
definition rol1 : list T → list T
| nil := nil
| (cons a l) := l ++ [a]
definition ror1_aux : T → list T → list T
| a nil := cons a nil
| a (cons b l) := cons b (cons a l)
definition ror1 : list T → list T
| nil := nil
| (cons a l... |
5ccbd6876ec4878e7349b0ae28df89e65618067c | 92b50235facfbc08dfe7f334827d47281471333b | /hott/algebra/category/adjoint.hlean | c02c04885ae926f573fecc28508ba9e2149ef5dc | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 5,786 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import algebra.category.constructions .constructions types.function arity
open category functor nat_trans eq is_trunc iso equiv prod trunc function
namespace c... |
64615609f16d5c609d6576f96ec60f0f18f6d251 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/propext_auto.lean | 4199f1301eacbcfa264f900854b62c7f80959f8e | [] | 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,632 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.logic
universes u
namespace Mathlib
axiom propext {a : Prop} {b : Prop} : (a ↔ b) → a = b
/- Additio... |
b335d288115d391732bb439d36f0205bbe245fbe | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0401.lean | 8c37fdf5fa38b7fecdbdf972a940e2ddbf137425 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 316 | lean | example (p q r : Prop) : p ∧ (q ∨ r) → (p ∧ q) ∨ (p ∧ r) :=
begin
intro h,
exact
have hp: p, from h.left,
have hqr: q ∨ r, from h.right,
show (p ∧ q) ∨ (p ∧ r),
begin
cases hqr with hq hr,
exact or.inl ⟨hp, hq⟩,
exact or.inr ⟨hp, hr⟩
end
end
|
f6d92782fac657c261fab4d1089d9c2c666611b8 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/polynomial/degree/trailing_degree.lean | bef7f53b802b244eae53ce5d1e5f384ec6ae0b23 | [
"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 | 16,175 | lean | /-
Copyright (c) 2020 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.nat.enat
import data.polynomial.degree.definitions
/-!
# Trailing degree of univariate polynomials
## Main definitions
* `trailing_degree p`: the multipl... |
3cbbf4c61479acb1338d635b5601574d0379f03b | df561f413cfe0a88b1056655515399c546ff32a5 | /6-advanced-addition-world/l10.lean | 30e2eff0d02527b7c888f50c2ec7eef4548a6927 | [] | 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 | 167 | lean | lemma add_left_eq_zero {{a b : mynat}} (H : a + b = 0) : b = 0 :=
begin
cases b with d,
refl,
rw add_succ at H,
have f := succ_ne_zero (a + d) H,
exfalso,
exact f,
end |
da787fddc085216718f4a053f59aa5494de767e4 | 78630e908e9624a892e24ebdd21260720d29cf55 | /src/logic_first_order/fol_19.lean | 65f194bcec6e5b9a3260e27b739ba02c5c34b05c | [
"CC0-1.0"
] | permissive | tomasz-lisowski/lean-logic-examples | 84e612466776be0a16c23a0439ff8ef6114ddbe1 | 2b2ccd467b49c3989bf6c92ec0358a8d6ee68c5d | refs/heads/master | 1,683,334,199,431 | 1,621,938,305,000 | 1,621,938,305,000 | 365,041,573 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 287 | lean | namespace fol_19
variable U : Type
variable f : U → U → U
variable P : U → Prop
theorem fol_19 : (∀ x, P (f x x)) → (∀ x, ∃ y, P (f x y)) :=
assume h1: ∀ x, P (f x x),
assume t: U,
have h2: P (f t t), from h1 t,
show ∃ y, P (f t y), from exists.intro t h2
end fol_19 |
71e9a6e1605b317912c48fe856326f5bb407b618 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/localization/module.lean | e47d7f15b914afdbcf367b1fe9d3bd3cc35f2377 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 3,012 | lean | /-
Copyright (c) 2022 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu, Anne Baanen
-/
import linear_algebra.linear_independent
import ring_theory.localization.fraction_ring
import ring_theory.localization.integer
/-!
# Modules / vector spaces ove... |
c1a98914b0330245492865d18840f2feaafcde8f | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/FinVect.lean | ce329a91a8816d030774c1f4825241581619aec5 | [
"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 | 4,270 | lean | /-
Copyright (c) 2021 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer
-/
import category_theory.monoidal.rigid.basic
import linear_algebra.tensor_product_basis
import linear_algebra.coevaluation
import algebra.category.Module.monoidal
... |
81b5a737e76e9fa607e61ebcbba76bfe7aca50b9 | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /library/data/real/basic.lean | 22cf83401c7bd74bca9eaea219e038a97181195c | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 42,386 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
The construction of the rea... |
9db8a1e3cb0e4ce8ca3afef88bfa79da9896a684 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/completion.lean | 6545a984e6c4860ffe3f25f3aa74925d2ec903cb | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 16,067 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
/- Show that every theory can be extended to a complete theory -/
import .compactness order.zorn
local attribute [instance, priority 0] classica... |
21793fe674f9e91b5d11f9d756ca1c91d85f4f29 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/vec_inv3.lean | a6e927979d0dca39a8fae6899dee7733d9393351 | [
"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 | 716 | lean | import data.nat.basic data.empty data.prod
open nat eq.ops prod
inductive vector (T : Type) : ℕ → Type :=
nil {} : vector T 0,
cons : T → ∀{n}, vector T n → vector T (succ n)
set_option pp.metavar_args true
set_option pp.implicit true
set_option pp.notation false
namespace vector
variables {A B C : Type}
var... |
763fc023073ea4f923001613cc2a4a9beae4c478 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/int/basic.lean | 1e5025e5a649561359bc0a8783730f9f8664f667 | [
"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 | 35,359 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: int.basic
Authors: Floris van Doorn, Jeremy Avigad
The integers, with addition, multiplication, and subtraction. The representation of the integers is
chosen to compute efficiently.... |
f461910b45d7d0cd22e86874d621ba384a102a16 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_lean_summary/unnamed_110.lean | 05048a67fe073e7c73143278d6e901202857b4ba | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 225 | lean | variables p q : Prop
-- BEGIN
example (h : p ∧ q) : q :=
begin
cases h with hp hq, -- Equivalent to both left and right and elimination.
exact hq, -- Closes the goal via reiteration using the proof term `hq`
end
-- END |
481964d7513a4a4509263e67cce650f5147dbc27 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/int/interval.lean | a85e73fcf9c526589fd1c3f4bd7a575b7c36616c | [
"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,023 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.int.basic
import algebra.char_zero
import order.locally_finite
import data.finset.locally_finite
/-!
# Finite intervals of integers
This file proves that `ℤ... |
ad233ebc6aef6e432f1b67815acdc43dc1386544 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/category_theory/limits/connected.lean | d3338756f26c83c22a474b575ea946ab1c55f676 | [
"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 | 3,832 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.equalizers
import category_theor... |
f9456b5ae6f462e07507ff709798e6f91669b16d | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_1260.lean | b85ff4222e248e372f63738b41d5e0e354572ef2 | [] | 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 | 241 | lean | import tactic
variables {α : Type*} (P : α → Prop)
open_locale classical
example (h : ¬ ∀ x, P x) : ∃ x, ¬ P x :=
begin
by_contradiction h',
apply h,
intro x,
show P x,
by_contradiction h'',
exact h' ⟨x, h''⟩
end |
51243a5617015f4d59403e5c25f377aee6fc192e | 9c1ad797ec8a5eddb37d34806c543602d9a6bf70 | /monoidal_categories/internal_objects/semigroup_modules.lean | b379e05c3d43ae15fcc98446c53889390070dece | [] | no_license | timjb/lean-category-theory | 816eefc3a0582c22c05f4ee1c57ed04e57c0982f | 12916cce261d08bb8740bc85e0175b75fb2a60f4 | refs/heads/master | 1,611,078,926,765 | 1,492,080,000,000 | 1,492,080,000,000 | 88,348,246 | 0 | 0 | null | 1,492,262,499,000 | 1,492,262,498,000 | null | UTF-8 | Lean | false | false | 2,301 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .semigroups
open tqft.categories
open tqft.categories.monoidal_category
namespace tqft.categories.internal_objects
structure SemigroupMod... |
776550dfab318924704d6d5948dc044ef027953b | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/topological_fiber_bundle.lean | 32a6b0c87c854152862279e9aee9a826b3c8517c | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,589 | 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.local_homeomorph
/-!
# Fiber bundles
A topological fiber bundle with fiber `F` over a base `B` is a space projecting on `B` for which the
fibe... |
7fcd5c5a7930b484dec8cf68507aa73443ee4b59 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/linear_algebra/basis.lean | df547010a238770a01a653da8f18cad76d868525 | [
"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 | 53,669 | 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, Alexander Bentkamp
-/
import linear_algebra.basic linear_algebra.finsupp order.zorn
import data.fintype.card
/-!
# Linear independence and bases
Thi... |
4c2a1a463e5d2998245c76ee5e711b8f0e97fc12 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/sheaves/stalks.lean | c502ec448242e5bea01f40a82f2944e8e8285b56 | [
"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 | 25,865 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Justus Springer
-/
import topology.category.Top.open_nhds
import topology.sheaves.presheaf
import topology.sheaves.sheaf_condition.unique_gluing
import category_theory.... |
cb112593f005dd40ac1592dd58992f1d3da8c40f | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /test/derive_fintype.lean | 72b43c01f4afa77c2bed94b0d86dfd956442acb7 | [
"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 | 929 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.derive_fintype
@[derive fintype]
inductive alphabet
| a | b | c | d | e | f | g | h | i | j | k | l | m
| n | o | p | q | r | s | t | u | v | w | x | y... |
3b61ff4e23925b4e0dac91ecfea3fba89ee3bcab | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Data/Json/Basic.lean | 7a304cfdfed3e21e83796ace6b7339706712dab8 | [
"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 | 4,815 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Std.Data.RBTree
namespace Lean
-- mantissa * 10^-exponent
structure JsonNumber :=
(mantissa : Int) (exponent : Nat)
protected def JsonNumber.de... |
4b0a0992bfceef5bda23470103a2fde18ad3c050 | ec5a7ae10c533e1b1f4b0bc7713e91ecf829a3eb | /ijcar16/examples/cc13.lean | ef65f4d32f0bf0797e5fbcfbd794fbb803e51f44 | [
"MIT"
] | permissive | leanprover/leanprover.github.io | cf248934af7c7e9aeff17cf8df3c12c5e7e73f1a | 071a20d2e059a2c3733e004c681d3949cac3c07a | refs/heads/master | 1,692,621,047,417 | 1,691,396,994,000 | 1,691,396,994,000 | 19,366,263 | 18 | 27 | MIT | 1,693,989,071,000 | 1,399,006,345,000 | Lean | UTF-8 | Lean | false | false | 1,090 | lean | /-
Example/test file for the congruence closure procedure described in the paper:
"Congruence Closure for Intensional Type Theory"
Daniel Selsam and Leonardo de Moura
The tactic `by blast` has been configured in this file to use just
the congruence closure procedure using the command
set_option blast.strategy... |
086de0a6feb6c9f23c4e30b38c11da6212a97159 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/differential_object.lean | 3ea1d59ac7a49ac7076f6c473f4aba134aa4b98f | [
"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 | 8,670 | 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 data.int.basic
import category_theory.shift
import category_theory.concrete_category.basic
/-!
# Differential objects in a category.
A differential object in... |
7be22dc4bb02a4ae9dd7aae6e952ed6ce017371c | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep1/hello.lean | 6fe382626294f23ffcbaae3873f27c422bc5afd2 | [] | 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 | 19 | lean | Hello c'st un test
|
cee42dcc08d43ec1269504a244c5b8d544700a41 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/field_theory/polynomial_galois_group.lean | 4c73c3d5bf348f3662600ed2400af274f1afd049 | [
"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 | 21,214 | lean | /-
Copyright (c) 2020 Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Lutz
-/
import analysis.complex.polynomial
import field_theory.galois
import group_theory.perm.cycle.type
/-!
# Galois Groups of Polynomials
I... |
f7b425cb828c3056e314670d97dd872110a710ab | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/tropical/basic.lean | 28206249952f0c5689dcdb9cb0be8a4da360ac7e | [
"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 | 16,316 | 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.order.monoid.with_top
import algebra.smul_with_zero
import algebra.order.monoid.min_max
/-!
# Tropical algebraic s... |
a10b502af762054ea54166a3a0ba7154c7cf8349 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/algebra/category/CommRing/colimits.lean | 5ecf9fe26b6138f99251f3b30e7c1803bbd30369 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 12,690 | 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 algebra.category.CommRing.basic
/-!
# The category of commutative rings has all colimits.
This file uses a "pre-automated" approach, just as for `Mon/colimit... |
92754527972113339495e9887757922a91a5ff1d | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p1_categories/c8_fibered_cats/s1_fibration.lean | 609584c095dc801cb8446ab048756928a900a980 | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,823 | lean | /- -----------------------------------------------------------------------
Fibrations.
----------------------------------------------------------------------- -/
import ..c1_basic
import ..c2_limits
import ..c3_wtypes
import ..c4_topoi
import ..c7_cat_of_cats
namespace qp
open stdaux
universe variables ℓobjb ℓhomb ... |
c58cb395f49bfd8b9fdb8a5932eea5fc4d849905 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/inductive1.lean | 7cdf2252a143a83858e5b4f89f50320349298448 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,161 | lean | new_frontend
inductive L1.{u} (α : Type u)
| nil
| cons : α → L1 α → L1 α
#check L1
#check @L1.cons
inductive L2.{u} (α : Type u)
| nil
| cons (head : α) (tail : L2 α)
#check @L2.cons
universes u v
variable (α : Type u)
inductive A (β : Type v)
| nil {}
| protected cons : α → β → A β → A β
#check @A.cons
#check ... |
06db665083a43ce3da07b9ee48ec1828bb9643b0 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /test/norm_cast.lean | d6f510149f2c1a2c792581a5243a515c5455593f | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 4,015 | lean | /-
Tests for norm_cast
-/
import tactic.norm_cast
import data.complex.basic -- ℕ, ℤ, ℚ, ℝ, ℂ
import data.real.ennreal
constants (an bn cn dn : ℕ) (az bz cz dz : ℤ) (aq bq cq dq : ℚ)
constants (ar br cr dr : ℝ) (ac bc cc dc : ℂ)
example : (an : ℤ) = bn → an = bn := by {intro h, exact_mod_cast h}
example : an = bn → (... |
c56519bfaefbded60f366e7671e474bfca136da0 | b2e508d02500f1512e1618150413e6be69d9db10 | /src/category_theory/isomorphism.lean | 61ebb2b3bf091451f2cd8de112baeaaa1f998ab7 | [
"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 | 9,414 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison, Floris van Doorn
import category_theory.functor
universes v u -- declare the `v`'s first; see `category_theory.category` for an exp... |
463eb14b574df767168a224fe727eb4277d25074 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/list/zip.lean | 588f39c5f1b83dbb40a73722c0de9754d301a848 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,756 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau
-/
import data.list.basic
/-!
# zip & unzip
This file provides results about `list.zip_with`, `list.zip` and `list.unzip` (definitions are in
core Lean).
`z... |
6587438f4bbae2ed04b7c8f50cd6d42ecfc99345 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/semiquot.lean | 11530ce7862b3d8bf2d461c8cc9027d9195e0775 | [
"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 | 7,470 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
A data type for semiquotients, which are classically equivalent to
nonempty sets, but are useful for programming; the idea is that
a semiquotient set `S` represents som... |
11139b6fe793f91bc931111660e02737373daf29 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Data/Format/Macro.lean | b69fed4d6483732da8a06d1e4ac4f8432a5e7be6 | [
"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 | 411 | 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
-/
prelude
import Init.Data.Format.Basic
import Init.Data.ToString.Macro
namespace Std
syntax:max "f!" interpolatedStr(term) : term
macro_rules
| `(f! $int... |
28939c5532aa34998933c970ea17853256bd5fbf | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/complex/exponential.lean | 8cb0914700bae40f3d4a4de0d0f2f87ac22cbb0f | [
"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 | 47,823 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir
-/
import algebra.archimedean algebra.geom_sum
import data.nat.choose data.complex.basic
import tactic.linarith
local notation `abs'` := _root_.ab... |
b6dd16421c99abafa04291652097f9b4b541b2a0 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/topology/algebra/valuation.lean | 0235dab2cadfc0cdcf5428684e31bec3ed60a440 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,114 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.algebra.nonarchimedean.bases
import topology.algebra.uniform_filter_basis
import ring_theory.valuation.basic
/-!
# The topology on a valued ring
In... |
2f8912a8eedd2e366d4864cedf58683ad6fbc41c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/lattice.lean | 17a658e8f46418d529ab4f2c26110ccedc174499 | [
"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 | 7,048 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.measure.measure_space
/-!
# Typeclasses for measurability of lattice operations
In this file we define classes `has_measurable_sup` and `has_meas... |
9120f69abfd66b8d785b35d94022347db7e54fee | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebraic_topology/alternating_face_map_complex.lean | c9c34188e4bd778ba03f903874157101e6782b79 | [
"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 | 7,977 | lean | /-
Copyright (c) 2021 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou, Adam Topaz, Johan Commelin
-/
import algebra.homology.homological_complex
import algebraic_topology.simplicial_object
import algebraic_topology.Moore_complex
import category_the... |
8334050ff5ce89b861baf77bb1c4fe5103300268 | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/exercises_sources/thursday/morning/groups_rings_fields.lean | fba926c1fbb39635fa653558d04276febb9cda0c | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 9,270 | lean | import linear_algebra.finite_dimensional
import ring_theory.algebraic
import data.zmod.basic
import data.real.basic
import tactic
/-!
```
____
/ ___|_ __ ___ _ _ _ __ ___
| | _| '__/ _ \| | | | '_ \/ __|
| |_| | | | (_) | |_| | |_) \__ \_
\____|_| \___/ \__,_| .__/|___( )
|_| |/
... |
010a4c7e6a06931f720f62c7e7f36cadf59aab9f | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/category_theory/concrete_category/bundled.lean | e521f49ac658eb7a3051b3ee2dea7777fc0cb603 | [
"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 | 2,357 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather
Bundled types.
-/
import tactic.doc_commands
/-!
`bundled c` provides a uniform structure for bundling a type equipped with ... |
9591ac4310734c78b6cecd8e9018998cb463ab78 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/category/Top/opens.lean | dbee66e67e784d84f371f2ee6eae044c5b1ae6f9 | [
"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,867 | 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 topology.category.Top.basic
import category_theory.eq_to_hom
/-!
# The category of open sets in a topological space.
We define `to_Top : opens X ⥤ Top` and
`... |
88b8dae06af8a0b354254d92c08a45dbf3a0fabe | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/blast3.lean | 190015b5e9684b5012d2211922f3cde50dc768fa | [
"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 | 844 | lean | set_option blast.init_depth 10
set_option blast.cc false
example (a b c : Prop) : b → c → b ∧ c :=
by blast
example (a b c : Prop) : b → c → c ∧ b :=
by blast
example (a b : Prop) : a → a ∨ b :=
by blast
example (a b : Prop) : b → a ∨ b :=
by blast
example (a b : Prop) : b → a ∨ a ∨ b :=
by blast
example (a b c :... |
906d3618283ac2066c5337f41baae77cf51586f5 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/data/nat/enat.lean | a2e516f098a2b2c1e64f0ca453769d899a7b13cf | [
"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 | 11,728 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Natural numbers with infinity, represented as roption ℕ.
-/
import data.pfun algebra.ordered_group
import tactic.norm_cast tactic.norm_num
open roption lattice
def enat :... |
9a28dbc19d94e24e79270bb72aa713e2ee1a4482 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/category/Module/simple.lean | 7ca97e2ef7a9f97f51ac3d621cfb47f2541aca3c | [
"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,152 | lean | /-
Copyright (c) 2022 Pierre-Alexandre Bazin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Pierre-Alexandre Bazin, Scott Morrison
-/
import category_theory.simple
import algebra.category.Module.abelian
import algebra.category.Module.subobject
import ring_theory.simpl... |
3ac4a3636701a53d9b2cd4eac23ff6215b13dbfb | 46125763b4dbf50619e8846a1371029346f4c3db | /src/group_theory/submonoid.lean | c4563cd9c714d5ff876fa890abbdcac08b9706dc | [
"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 | 43,040 | 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.algebra
/-!
# Submono... |
71021d444663a13a47a9c328d826b4d2e66d82f6 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/alternating.lean | 92a64ea1031c7f2c98a30c97f125e89c3d635a72 | [
"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 | 29,908 | lean | /-
Copyright (c) 2020 Zhangir Azerbayev. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Zhangir Azerbayev
-/
import linear_algebra.multilinear
import linear_algebra.linear_independent
import group_theory.perm.sign
import group_theory.perm.subgroup
import ... |
b0a219397331a948982c4f167f250a6224b5d748 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/measure_theory/lebesgue_measure.lean | 525613fa56f82db586322c5d18d1dfda9dc6bf88 | [
"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 | 14,060 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import measure_theory.measure_space
import measure_theory.borel_space
/-!
# Lebesgue measure on the real line
-/
noncomputable theory
open classical set filter
open... |
21d81c399bc2f077cdb5619281fd9670cfd7a553 | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /data/quot.lean | 0d9ad13770ab47aedda2176346364dc590b69482 | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,213 | 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
Quotients -- extends the core library
-/
variables {α : Sort*} {β : Sort*}
namespace quot
variables {ra : α → α → Prop} {rb : β → β → Prop} {φ : quot ra → quot rb → So... |
bb6526b285d2adee145e7d32a916470524fc2b5e | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/DeclModifiers.lean | 20daea9cdcd6e6630aa766c79f77958dbf888c1e | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,599 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Modifiers
import Lean.Elab.Attributes
import Lean.Elab.Exception
import Lean.Elab.DeclUtil
namespace Lean.Elab
def checkNot... |
0b3824f8e4232f6e2b5d01d831b29261022ade48 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/omega/eq_elim.lean | f25ca36c1f6b103e85621cdcfc807924174cf233 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 14,548 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Correctness lemmas for equality elimination.
See 5.5 of http://www.decision-procedures.org/ for details.
-/
import tactic.omega.clause
open list.func
namespace omega
def symdi... |
d191ff2d651dc27c1fe0731d2eeb9a4e6d6a4b61 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/model_theory/semantics.lean | cab8779e403c5b8103b8ca8859392c3af9edcac3 | [
"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 | 35,126 | lean | /-
Copyright (c) 2021 Aaron Anderson, Jesse Michael Han, Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jesse Michael Han, Floris van Doorn
-/
import data.finset.basic
import model_theory.syntax
/-!
# Basics on First-Order Semantics
T... |
79845d26cf92a629ee328482a08aeeaea99ff0d6 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /04_Quantifiers_and_Equality.org.32.lean | 0022978c93a2441aa45f348c092b3334ce14de45 | [] | 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 | 399 | lean | /- page 60 -/
import standard
import data.nat
open nat
variable f : ℕ → ℕ
premise H : ∀ x : ℕ, f x ≤ f (x + 1)
-- BEGIN
example : f 0 ≥ f 1 → f 1 ≥ f 2 → f 0 = f 2 :=
assume `f 0 ≥ f 1`,
assume `f 1 ≥ f 2`,
have f 0 ≥ f 2, from le.trans `f 2 ≤ f 1` `f 1 ≤ f 0`,
have f 0 ≤ f 2, from le.trans (H 0) (H 1),
show f 0 = f... |
0a5680804ae3cad15de4bf3379f6479bae0a749f | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/equiv/encodable.lean | d0579500e5a37ff3e411e455031309217a9d29b4 | [
"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 | 10,981 | 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, Mario Carneiro
Type class for encodable Types.
Note that every encodable Type is countable.
-/
import data.equiv.nat
open option list nat function
/-- An enc... |
5d5da057f2fb36f12021ccc3bc9d8d9bf8e3d1da | bf35a3ed54de6fced25e870a19cf82da937bdc9e | /src/line_echo.lean | bc482f71245558a9298bbfb1797420020f0d5811 | [] | no_license | khoek/klean-demo | cd01e703e1333fd6095ea5349986a614b53383f5 | d572f3ee90589854beb66cb7499a99722c454689 | refs/heads/master | 1,585,083,090,000 | 1,533,310,995,000 | 1,533,310,995,000 | 143,000,189 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,645 | lean | import system.io
import .lib
open io
def read_sock_chunk (sock : socket) : io string := do
c ← read_sock sock 1,
return c
meta def process_command (cmd : string) : io unit := do
-- FIXME how do you concatenate strings!?! :O
io.print "printing:",
io.print_ln cmd
-- The option ℕ is where the first nl ... |
79b8b81825c96b9b2b1e98faa2836058577cd6cf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/computability/tm_to_partrec_auto.lean | a1ed89a837fdd4852d2b55cdae996ba663968d00 | [] | 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 | 38,885 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.computability.halting
import Mathlib.computability.turing_machine
import Mathlib.data.num.le... |
916487a9d8889b7c955dde1dd4a7393136af30b8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/typeclass_nested_validate.lean | 3005ce077aa1d842822e19ec9ee44bcc2e726851 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,947 | lean | /-
This example demonstrates a case where Lean4's tabled typeclass resolution may loop.
It also suggests a workaround, new instance binder semantics, new syntax support, and a new instance validation rule.
-/
#exit
class Field (K : Type) := (u : Unit)
class VectorSpace (K : Type) [Field K] (E : Type) := (u : Unit)
ins... |
8f4d5e40ca607f956d46286ea99b2adb526ae8e7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/integral/divergence_theorem.lean | 8219c2b6bc01b75cb81f17865b5e6e8a89738977 | [
"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 | 30,215 | 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 analysis.box_integral.divergence_theorem
import analysis.box_integral.integrability
import measure_theory.integral.interval_integral
/-!
# Divergence theore... |
e09879004e6bf2a88dce321885d7200b4e263739 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /algebra/ring.lean | 5399e76356e3f4f55ea8c028d1ff334290e01303 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 9,925 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn
-/
import algebra.group data.set.basic
universes u v
variable {α : Type u}
section
variable [semiring α]
theorem mul_two (n : α) : ... |
25bc9e97342f1c96d43a44abb141bdd4c89a1d8c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/dold_kan/normalized.lean | d01fa53ec4cd0cdc9214143ba69e0e9b8ca036cb | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,510 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.dold_kan.functor_n
/-!
# Comparison with the normalized Moore complex functor
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fil... |
4d944ce4465134417401494d4486bd794ae8b944 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/localization/at_prime.lean | fc7325ff90e02e2f985cf0be6f5b8f1ed0bc05e0 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 9,918 | 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, Anne Baanen
-/
import ring_theory.ideal.local_ring
import ring_theory.localization.ideal
/-!
# Localizations of commutative ri... |
480feaae37210c1508b425c370e011d6b2397acf | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/run/listex.lean | c1d84de8c649f891f29cde9cc2fcc284f139001c | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,557 | lean | universe variable u
constant in_tail {α : Type u} {a b : α} {l : list α} : a ∈ l → a ∈ b::l
constant in_head {α : Type u} {a : α} {l : list α} : a ∈ a::l
constant in_left {α : Type u} {a : α} {l : list α} (r : list α) : a ∈ l → a ∈ l ++ r
constant in_right {α : Type u} {a : α} (l : l... |
2f99a01572f9db1d00a990ac1179d358b3b292d8 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/ring_theory/witt_vector/defs.lean | 70d0f1395cf528ee56c239beacc045553117a429 | [
"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 | 11,155 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import ring_theory.witt_vector.structure_polynomial
/-!
# Witt vectors
In this file we define the type of `p`-typical Witt vectors and ring operat... |
f5112aea5bcd49bacd82f6b5210cd55376ba19b2 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/ring/prod.lean | 100b618e55be561c3f837cd21ef6dc89b851b687 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,406 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Chris Hughes, Mario Carneiro, Yury Kudryashov
-/
import algebra.group.prod
import algebra.ring.basic
import data.equiv.ring
/-!
# Semiring, ring etc structures on `R ... |
6d3716c4cf1f6aecbea791ac5c2541554b4ce21a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/valuation/valuation_subring.lean | 156e1ae708a0e2ad2c85424f85c53239047c4819 | [
"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 | 30,186 | lean | /-
Copyright (c) 2022 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Junyan Xu, Jack McKoen
-/
import ring_theory.valuation.valuation_ring
import ring_theory.localization.as_subring
import ring_theory.subring.pointwise
import algebraic_geometry.... |
0f36779f2ca384f26072b07cf44b5fb87ba4f9cc | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp22.lean | 2a491e40d44670f476f879427ddd1e80d9c3b9e2 | [
"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 | 1,603 | lean | variable vec : Nat → Type
variable concat {n m : Nat} (v : vec n) (w : vec m) : vec (n + m)
infixl 65 ; : concat
axiom concat_assoc {n1 n2 n3 : Nat} (v1 : vec n1) (v2 : vec n2) (v3 : vec n3) :
(v1 ; v2) ; v3 = cast (to_heq (congr2 vec (symm (Nat::add_assoc n1 n2 n3))))
... |
53e8fcd1701a0e1a5cf10cda894d3cf0c66b156e | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/measure/haar_of_inner.lean | b10f73db4734b211c77548c12aa7a9e131e1e066 | [
"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 | 2,922 | 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.inner_product_space.orientation
import measure_theory.measure.haar_lebesgue
/-!
# Volume forms and measures on inner product spaces
A volume f... |
3c30d5fa39b17aa70ed191a7a27602ddc7903f85 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/number_theory/divisors.lean | 25c84f5b86bf9cfd9f8c656e3e0769b49b00c709 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,094 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.big_operators.basic
import tactic
/-!
# Divisor finsets
This file defines sets of divisors of a natural number. This is particularly useful as backgr... |
c3aee05bd6ebccfe88de129aad3ec7b92fada8f2 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /scripts/mk_nolint.lean | f553e02e9b4e19907615aa6b5feaf6914059c537 | [
"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 | 1,360 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.lint system.io data.list.sort -- these are required
import all -- then import everything, to parse the library for failing linters
/-!
# mk_nolin... |
a65b2719a1d90e3bed151c68fd92cedd11bf2c9c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/filter/modeq.lean | 015caefbdf3fe1db99050199ab9b1cc8d9defb1c | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,209 | 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.nat.parity
import order.filter.at_top_bot
/-!
# Numbers are frequently modeq to fixed numbers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes... |
1e7c56dd64d538eeff212b11d872d9040c223ec6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/over.lean | ca2272a529949ca98119ea4f0cd179d7f7e487f5 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,639 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.over
import category_theory.adjunction.opposites
import category_theory.limits.preserves.basic
import category_theor... |
ff49c98a2b4e9136e4989371aae891dd3405e9bf | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/associated.lean | 66a912526745d075200abb6e25053db93c7af66e | [
"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 | 27,211 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker
Associated and irreducible elements.
-/
import algebra.group data.multiset
variables {α : Type*} {β : Type*} {γ : Type*} {δ : Type*}
open lattice
/-- ... |
f2f5760981028de6d8895618e26400607558f3a4 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/simp_tactic.lean | 85932737a04391964dd5f3521d417347ce400dc8 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,850 | 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.meta.attribute init.meta.constructor_tactic
import init.meta.relation_tactics init.meta.occurrences
open tactic
meta ... |
67dae9d20bd31bf6a7e808a90a8d963b984ee77e | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/data/rbtree/default.lean | 3e4107221da6759b491a19fb928070b029c2cbeb | [
"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 | 188 | 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.main
|
3ed539295d1389e628643b723acfe0445b07b210 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/multilinear.lean | 0e4272e0c33c846e351f21e26eee5a9711503a4c | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53,709 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import linear_algebra.basic
import algebra.algebra.basic
import data.fintype.sort
/-!
# Multilinear maps
We define multilinear maps as maps from `Π(i : ι), M₁... |
bdaa43f863f7572dee3d77009f3e19bc72801ae8 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/sym/basic.lean | 0532c8e600ddf86978dad950282ecd8e3d0eaddc | [
"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 | 11,549 | lean | /-
Copyright (c) 2020 Kyle Miller All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.multiset.basic
import data.vector.basic
import data.setoid.basic
import tactic.apply_fun
/-!
# Symmetric powers
This file defines symmetric powers of a type. ... |
ec8df747d86d4ba59bf5e7bf99d6b827afad7f0a | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/D.lean | f01bf794ea8c46abd639a106dd333abbb692cbe5 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,461 | lean | import .global
import .ideals
universe u
local notation `Ring` := CommRing.{u}
local notation `Set` := Type u
open CommRing
namespace D
variables (R :Ring)
variables (S : set R)
def D_obj (A : Ring) := {ζ : R ⟶ A | (1 : A) ∈ ideal.map (ζ) (ideal.span S)}
@[ext]lemma ext (A : Ring)(ζ1 : D_obj R S A)(ζ2 : D_obj ... |
f0354ab459d15b05c0dd42d651b100b6ab1dcf2b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /counterexamples/pseudoelement.lean | a05f885f332ae895bb3bcf6b2cafea7f4efb1179 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,475 | lean | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import category_theory.abelian.pseudoelements
import algebra.category.Module.biproducts
/-!
# Pseudoelements and pullbacks
> THIS FILE IS SYNCHRONIZED WITH MATHL... |
b250d4c79763504915b46e501327cc0e13c115e0 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.28.lean | 4c72ce601f56a610f7d2ced2da3d72ff33306e09 | [] | 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 | 418 | lean | import standard
open classical decidable inhabited nonempty
namespace hide
-- BEGIN
noncomputable definition decidable_inhabited [instance] (a : Prop) : inhabited (decidable a) :=
inhabited_of_nonempty
(or.elim (em a)
(assume Ha, nonempty.intro (inl Ha))
(assume Hna, nonempty.intro (inr Hna)))
noncomputable definiti... |
7a50cd42567e61a30a81206163881b5e555f48fb | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/hott/types/sigma.lean | 42bd425c87887e0f92d57dbd365d0861716d509e | [
"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 | 14,502 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about sigma-types (dependent sums)
-/
import ..trunc .prod
open path sigma sigma.ops Equiv IsEquiv
namespace sigma
-- remove the ₁'... |
a9076bf1c74a3ff2f9e8c338a9581221523e7dcd | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/linear_algebra/matrix/fpow.lean | 5ecce7134a84986e8db89b8595c13513e253ec94 | [
"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 | 12,326 | 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 linear_algebra.matrix.nonsingular_inverse
/-!
# Integer powers of square matrices
In this file, we define integer power of matrices, relying on
the nonsing... |
904426ba3f63cb959668cc4478c018dcb5da5c56 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /08_Building_Theories_and_Proofs.org.35.lean | 8ca5788a6feb05cbaf23b9f319622fc64ca148ff | [] | 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 | 76 | lean | import standard
import data.nat
open nat (renaming add -> plus)
check plus
|
771a03bb8eac08ac4414c6828a51b2c706d6b0c7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/fib.lean | 8421207f132060dbc270c58717bf6a557691ffe9 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,740 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import data.stream.basic
import data.nat.gcd
import tactic.ring
/-!
# The Fibonacci Sequence
## Summary
Definition of the Fibonacci sequence `F₀ = 0, F₁ = 1, F... |
f926c2e28707493c336b715ef55e0d7f23d5fda9 | 2cf781335f4a6706b7452ab07ce323201e2e101f | /lean/deps/galois_stdlib/src/galois/data/array.lean | 3e94dfb21795bc295c6cfddf415785d435c76f5b | [
"Apache-2.0"
] | permissive | simonjwinwood/reopt-vcg | 697cdd5e68366b5aa3298845eebc34fc97ccfbe2 | 6aca24e759bff4f2230bb58270bac6746c13665e | refs/heads/master | 1,586,353,878,347 | 1,549,667,148,000 | 1,549,667,148,000 | 159,409,828 | 0 | 0 | null | 1,543,358,444,000 | 1,543,358,444,000 | null | UTF-8 | Lean | false | false | 1,457 | lean | -- Additional definitions for arrays
import data.array.lemmas
import .array.lex_order
import ..logic
namespace array
/- Simplification rule for reading from an array constructed by push_back with a less-than test. -/
theorem read_push_back_lt_iff {α} {n:ℕ} (a : array n α) (x:α) (i : fin (n+1))
: read (push_back a x... |
65b0c82a78616bd20283b7a1508358d3c8153f1f | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Util/PPGoal.lean | 7c2e43591f8d1141bc6018807ad436488f7ec3cc | [
"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 | 3,091 | 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.Util.PPExt
namespace Lean
def ppAuxDeclsDefault := false
@[init] def ppAuxDeclsOption : IO Unit :=
registerOption `pp.auxDecls { defValue := pp... |
6480058151b9bae09265d699bcc03d0f6aea56e5 | 00d2363f9655e2a7618f6b94dda7e2c4e5cf8d19 | /lean_modifications/tactic_interactive_modifications.lean | b98c63395a8d355b04f2fb8dd04c639234c76c5d | [
"Apache-2.0"
] | permissive | devjuice1/lean_proof_recording | 927e276e2ab8fb1288f51d9146dcfbf0d6444a87 | bf7c527315deccd35363fa7ca89d97d7b9cb6ac1 | refs/heads/master | 1,692,914,925,585 | 1,633,018,872,000 | 1,633,018,872,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,180 | lean | /- This is a staging area for code which will be inserted
into a Lean file.
The code to be inserted is between the line comments
`PR BEGIN MODIFICATION` and `PR END MODIFICATION`
It will be inserted by `insert_proof_recording_code.py`.
Insert info:
- file: `_target/deps/lean/library/init/meta/interactive.lean`
... |
337ed900222871ac82add7b13ccc8ae354d7956b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/testing/slim_check/sampleable.lean | 3da36e6b25d90caf2f1f175631ab40078cb07091 | [
"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 | 31,350 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.lazy_list.basic
import data.tree
import data.pnat.basic
import control.bifunctor
import control.ulift
import testing.slim_check.gen
import tactic.linarith
/-!
... |
b2119c0238b7f9c48693a0e66e2f01b255977bac | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Class.lean | d86036190902c38edc1a284d59c5c3d6aa7910f1 | [
"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 | 4,410 | 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
structure ClassEntry where
name : Name
hasOutParam : Bool
namespace ClassEntry
def lt (a b : ClassEntry) : Boo... |
e976b4d19a29099a68fee49929bd522489f9ba61 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/zsqrtd/to_real.lean | 8277868f99867f07f6744eed456b3c59668dcd0a | [
"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 | 966 | 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 data.real.sqrt
import number_theory.zsqrtd.basic
/-!
# Image of `zsqrtd` in `ℝ`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a cor... |
189de9b86615509121bcbd8ff712733ca5c86edf | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/category_theory/connected.lean | eb45adee448d3349f5d326e502706c73c86a43ec | [
"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 | 9,208 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.const
import category_theory.discrete_category
import category_theory.eq_to_hom
import category_theory.punit
/-!
# Connected category
Define a co... |
499b22a5eed42f96d15d282eff3a1a66efacd948 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/limits/shapes/finite_limits.lean | 8b6e133eda2242c3f79108ee2804f46217d288ba | [
"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 | 1,916 | 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.products
universes v u
open category_theory
namespace category_theory.limits
/-- A category with a `fintype` of objects, and a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.