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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
83f1ada3f002a33b6a7124094a6ea09da3769b74 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/algebra/basic.lean | bea860c9921cd1c30919e52660a921632bbb9880 | [
"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 | 56,580 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import tactic.nth_rewrite
import data.matrix.basic
import data.equiv.ring_aut
import linear_algebra.tensor_product
import ring_theory.subring
import deprecated... |
6ecfa7ef2d69fc3b62b194acc6c930914b9546ce | 2d34dfb0a1cc250584282618dc10ea03d3fa858e | /src/Mbar/complex2.lean | e81bbf93c75596aa1c89f30e3dff92b082f7b55b | [] | no_license | zeta1999/lean-liquid | 61e294ec5adae959d8ee1b65d015775484ff58c2 | 96bb0fa3afc3b451bcd1fb7d974348de2f290541 | refs/heads/master | 1,676,579,150,248 | 1,610,771,445,000 | 1,610,771,445,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,786 | lean | import Mbar.complex
import for_mathlib.equalizers
open_locale classical nnreal
noncomputable theory
open opposite breen_deligne category_theory category_theory.limits
variables (BD : package) (c' : ℕ → ℝ≥0) [BD.suitable c']
variables (V : NormedGroup) (S : Type*) (r r' c c₁ c₂ c₃ c₄ : ℝ≥0) (a : ℕ) [fintype S]
/-
TO... |
db3856d6055cda2ada61ec8ebb587af9a8ccd7af | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/data/multiset_extra.lean | f74f5e074d35f37e747f0b14afd82c0d43cb4999 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,779 | lean | import data.multiset
import data.list_extra
namespace multiset
open multiset
variables {α : Type*}
def all_prop (p : α → Prop) (s : multiset α) : Prop :=
quot.lift_on s (list.all_prop p) (λ l₁ l₂ e, by {change list.perm l₁ l₂ at e,
apply propext,
apply @list.perm_induction_on α
(λ l₁ l₂, list.all_prop p l₁ ↔ ... |
815da49e6f8b32ef06ef8caf8c460371cf905050 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/matrix/basic.lean | d681d732fc5882f2fd114a7bfcd1b1c3c8ddbe30 | [
"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 | 86,157 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin, Lu-Ming Zhang
-/
import algebra.algebra.pi
import algebra.big_operators.pi
import algebra.big_operators.ring
import al... |
9b445a24ca129536078d91f71cb4362956fdb58f | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/data/finsupp/basic.lean | 24ed24806adce0ceab2ba39c2e1bf3ab07b17c74 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 105,540 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Scott Morrison
-/
import data.finset.preimage
import algebra.indicator_function
import algebra.group_action_hom
/-!
# Type of functions with finite support
For any ty... |
382bf03388705b0db705a20ea59fb6c3ac4101eb | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/order/complete_lattice.lean | 9883b130d4e45d9882cd2cfb59ba11b444e6fdd2 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 40,070 | 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 order.bounds
/-!
# Theory of complete lattices
## Main definitions
* `Sup` and `Inf` are the supremum and the infimum of a set;
* `supr (f : ι → α)` and `in... |
e279eea7e046733a70c675d49f5860eb48e2a0e0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/linarith/verification.lean | ea5123b0dd715ff691737eb2d0b3d2eca5f21aff | [
"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 | 7,288 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.elimination
import tactic.linarith.parsing
/-!
# Deriving a proof of false
`linarith` uses an untrusted oracle to produce a certificate of... |
09419cebf9702981e870b8b2a98341d7d52e28dc | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/Internal/Enum.lean | cb05f0b9edb730d0b4e29c18bfb3979f6b53bb7c | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,405 | lean | import Lean.Parser.Command
open Lean Parser Command
namespace Papyrus.Internal
def mkSealedEnumReprInst (ty : Syntax) (ctors : Array Syntax) : MacroM Syntax := do
let currNamespace ← Macro.getCurrNamespace
let ctorFmts ← ctors.mapM fun ctor =>
`(Std.format $(quote <| toString (currNamespace ++ ctor[2].getId)... |
75d6039256afb3bfd4f7ec34514ca9f715df2353 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/algebra/char_p/invertible.lean | d22b4acf207ad91b467c1da14ec2ce2ef774a2ff | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,914 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import algebra.invertible
import algebra.field
import algebra.char_p.basic
/-!
# Invertibility of elements given a characteristic
This file includes some instances of `inv... |
fe44df96ca3a432d129619b25aaea904230edf65 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /algebra/ordered_field.lean | 27e617b3f9f7fc618318df5260fa63ef5c289464 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 8,093 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.ordered_ring algebra.field
section linear_ordered_field
variables {α : Type*} [linear_ordered_field α] {a b c d : α}
def div_pos := @div_pos_of_pos_o... |
cd4968f07a32ee99446499e00fcd44215bca79c1 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_simp_st1.lean | 290e3b168f760a16c6a49d1013694cba42dc131e | [
"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 | 467 | lean | import data.nat
open algebra nat
section
open nat
set_option blast.strategy "preprocess" -- make sure simplifier is not used by default
attribute add.comm [simp]
attribute add.assoc [simp]
attribute add.left_comm [simp]
example (a b c : nat) : a + b + b + c = c + b + a + b :=
by simp
example (a b c : nat) ... |
8e606a3553e8e0b41e5b490b9c471b87613be3a9 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/tactic/lint/basic.lean | ce58c13ea8979be35eb051daee4e43027ab69add | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,174 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Robert Y. Lewis, Gabriel Ebner
-/
import tactic.core
/-!
# Basic linter types and attributes
This file defines the basic types and attributes used by the linting
... |
eea52b4557b73e3ebd01e18799e1ad40dca43110 | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/lectures/lecture_24 copy.lean | 5f610ad04e3e545d00bb11d01ab947afa07cfa94 | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,506 | lean | import .lecture_23
variables {α β : Type} (r : β → β → Prop)
local infix `≺`:50 := r
/-
UNIVERSAL QUANTIFICATION OVER AN EMPTY SET IS TRUE
Let's review the most puzzling of the examples from
last time: a relation r = {(0,1), (2,3)} we said is
transitive because it satisfies the constraint that
defines transitivi... |
c6036ea06ac974bbb7194c37479139794edcc5b7 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/data/is_equiv.lean | fac8a6419aa59a2d512f15d4f2fbad85e00f5c45 | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 844 | lean | import data.equiv.basic
universes u v w
variables {α : Sort u} {β : Sort v} {γ : Sort w}
-- A constructive version of `bijective`.
structure Is_equiv (f : α → β) :=
(e : α ≃ β)
(h : f = e)
instance (f : α → β) : subsingleton (Is_equiv f) :=
⟨begin
intros e e',
cases e with ee eh, cases e' with e'e e'h,
have : ... |
2b861c581537ffa0b598b02454363832a3c191f6 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /counterexamples/phillips.lean | faa9bc48063de70a3b195ef3fc111a935716d75e | [
"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 | 28,554 | 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 analysis.normed_space.hahn_banach
import measure_theory.measure.lebesgue
/-!
# A counterexample on Pettis integrability
There are several theories of i... |
d331aa381045c4c7036bddd9e6a3ead711010781 | b9d8165d695e844c92d9d4cdcac7b5ab9efe09f7 | /src/analysis/calculus/deriv.lean | 3459a583e03514d9403b61c2ed4a0acb6b55b9ca | [
"Apache-2.0"
] | permissive | spapinistarkware/mathlib | e917d9c44bf85ef51db18e7a11615959f714efc5 | 0a9a1ff463a1f26e27d7c391eb7f6334f0d90383 | refs/heads/master | 1,606,808,129,547 | 1,577,478,369,000 | 1,577,478,369,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 38,099 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → F` where `𝕜` is a
norm... |
3ff896d85bca97eac61b55e08561bb657cf04282 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/calculus/mean_value.lean | b47d53a0bc5788be3e018112904cad35f4a596f4 | [
"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 | 48,033 | 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, Yury Kudryashov
-/
import analysis.calculus.local_extr
import analysis.convex.topology
/-!
# The mean value inequality and equalities
In this file we prove the ... |
455c9822ab41a99874df1250fa7464d87540655d | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/group_theory/free_abelian_group.lean | 621d2cc1b4936a4b9adf982eca14c6e4afd116ba | [
"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 | 18,855 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.group.pi
import group_theory.free_group
import group_theory.abelianization
import algebra.module.basic -- we use the ℤ-module structure on an add_comm_group in ... |
e46f010719274baa56f1db08c78287b1bef9ba4e | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Data/Options.lean | ad8498e6695616568d239b7e0999218eebfd08dd | [
"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 | 5,429 | 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.ImportingFlag
import Lean.Data.KVMap
namespace Lean
def Options := KVMap
def Options.empty : Options := {}
instance : ... |
87573dd02f7de76836b2e9ecda267b6436b80ad2 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/category_theory/functor.lean | 664f21bf590358af322920e1ac9b130ff9e2ced0 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 3,460 | 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
Defines a functor between categories.
(As it is a 'bundled' object rather than the `is_functorial` typeclass parametrised
by the underlyin... |
0d756ac11dd26d9c390a599e1311f7835c2fd586 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/monad/coequalizer.lean | 8e08c1c3ff8c64b0094249b3598c995d6079875e | [
"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,990 | 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.reflexive
import category_theory.limits.shapes.split_coequalizer
import category_theory.monad.algebra
/-!
# Special coequalizers as... |
c26b8b46c85685d612e30696b22a1ee881dacbe6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/System/Promise.lean | dcbbe302a58e526c7466b443527bd51e8310248c | [
"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,862 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
prelude
import Init.System.IO
namespace IO
/-- Internally, a `Promise` is just a `Task` that is in the "Promised" or "Finished" state. -/
private opaque Promi... |
3994a23717ab480168a49013fe014ccd1d82b19d | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/padics/default.lean | 24308ab9d7da4fb97e05eecb47d6c31fab42a63f | [
"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 | 33 | lean | import data.padics.padic_integers |
9fe0867bdf50c087c6e4d7de7575bbf8634e054c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/algebra/algebra.lean | c5535d52c521c1e3bcb71dd5b907310878bf29d2 | [
"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 | 3,973 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.algebra.subalgebra
import topology.algebra.module
/-!
# Topological (sub)algebras
A topological algebra over a topological semiring `R` is a topologi... |
81ebeccbcc483c75efc037b4529593b9da17f79f | eb9357a70318e50e095b58730bebfe0cffee457f | /lean/love10_denotational_semantics_demo.lean | ac9ea893c1e0878084f4ec828796a94effe4b543 | [] | no_license | Vierkantor/logical_verification_2021 | 7485dd916953131d501760f023d5b30fbb74d36a | 9500b9c194e22a9ab4067321cfed7a1f445afcfc | refs/heads/main | 1,692,560,845,086 | 1,624,721,275,000 | 1,624,721,275,000 | 416,354,079 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,507 | lean | import .love08_operational_semantics_demo
/-! # LoVe Demo 10: Denotational Semantics
We review a third way to specify the semantics of a programming language:
denotational semantics. Denotational semantics attempt to directly specify the
meaning of programs.
If operational semantics is an idealized interpreter and ... |
24a718acd7972f9eb6e255cad92140709ca6b16b | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/list/sigma.lean | 87240807b53649d6140175bbbaa35e72545598b3 | [
"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 | 25,783 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Sean Leather
-/
import data.list.perm
import data.list.range
import data.sigma
/-!
# Utilities for lists of sigmas
This file includes several ways of interacting with... |
992d02c1a9d5775caae7acbb398c5479f2c4390c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/polynomial/ring_division.lean | 176fc768f91a8663f424aec280e3f9661a25191b | [
"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 | 27,919 | 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, Johan Commelin
-/
import data.polynomial.basic
import data.polynomial.div
import data.polynomial.algebra_map
import data.se... |
ac751fc2a26f616ce768ff27414f76dde1535c24 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/limits/concrete_category.lean | 4891c3a8f2da708d5f0f0dd9e9484cd1fa6ed1ca | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 3,064 | 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 category_theory.limits.limits
import category_theory.concrete_category.basic
/-!
# Facts about (co)limits of functors into concrete categories
-/
universes w... |
04b4e8ae8a7f976a43637fc91c60fd6cf4b94fba | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/normed_space/units.lean | 8d42ad7b18e2fc66b9d3d1f7f2c1ac7b9cb749f3 | [
"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 | 11,564 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.specific_limits
import analysis.asymptotics
/-!
# The group of units of a complete normed ring
This file contains the basic theory for the group o... |
e4b6a09b1646d3ccb269b04a6855d9532d0257c7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/abel.lean | 49c67499f6b44672978ce7320b0f733c3ca36b8a | [] | 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 | 5,311 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.norm_num
import Mathlib.PostPort
universes u_1 l
namespace Mathlib
/-!
# The `ab... |
786a2cfaa736c604906fd0dcafc68a16b9aace64 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/set/intervals.lean | 606f211a0e2c52e599c7acf3793b26c222f455ae | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 4,118 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Intervals
Nameing conventions:
`i`: infinite
`o`: open
`c`: closed
Each interval has the name `I` + letter for left side + letter for right side
TODO: This is j... |
662e0a1b069d5323e5f3bb1468a719760970c87e | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/field_theory/finite.lean | 41c025489dfd5a0fdbb66ac02bc327243650f6cb | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 7,426 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Joey van Langen, Casper Putz
-/
import data.equiv.ring
import data.zmod.basic
import linear_algebra.basis
import ring_theory.integral_domain
universes u v
variables {K : ... |
b34da950d9217ed171a8e9a344774da5dee9ca12 | bb31430994044506fa42fd667e2d556327e18dfe | /src/analysis/normed_space/int.lean | 51d30e87fa72d20169537fed49855516684af7dd | [
"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 | 1,439 | 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 analysis.normed.field.basic
/-!
# The integers as normed ring
This file contains basic facts about the integers as normed ring.
Recall that `‖n‖` denotes th... |
30a8629b6e5ea34dca7529e71dc3604cc52ecf99 | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /Exercises week 2/12_exercise_sheet.lean | 9e62a2124eebc092b613feb6030c2e8682e0794d | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,942 | lean | /- Exercise 1.2: Basics — Proofs -/
/- Question 1: Natural numbers -/
namespace my_nat
def add : ℕ → ℕ → ℕ
| 0 n := n
| (nat.succ m) n := nat.succ (add m n)
-- def add : nat → nat → nat
-- | m nat.zero := m
-- | m (nat.succ n) := nat.succ (add m n)
-- lemma natzero (m : nat) : add m 0 = m:=
-- be... |
22db126791e5fc0c99db57a8f643e08850944341 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/normed/group/hom.lean | 4142138d6d579c4151bc243d8f014f0afbdd8d15 | [
"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 | 34,755 | 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 analysis.normed_space.basic
import analysis.specific_limits
import topology.sequences
/-!
# Normed groups homomorphisms
This file gathers definitions and el... |
d8417fe64732de44c9b38007b0b0c65ecdfd25d8 | f57570f33b51ef0271f8c366142363d5ae8fff45 | /src/aristotelian_logic.lean | 1ef5fd3be91b6afd2f5851e0cc51899ecea152fd | [] | no_license | maxd13/lean-logic | 4083cb3fbb45b423befca7fda7268b8ba85ff3a6 | ddcab46b77adca91b120a5f37afbd48794da8b52 | refs/heads/master | 1,692,257,681,488 | 1,631,740,832,000 | 1,631,740,832,000 | 246,324,437 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,092 | lean | import predicate_logic tactic.find
open logic
universe u
namespace syllogistic
section syllogism
parameters {sort : Type u} [decidable_eq sort]
parameter {σ : @signature sort _}
-- Aristotelian syllogistic calculus with individuals and conversions (including singular conversion).
-- "singular conversion" means we sup... |
169a9e7c4ceaedb801f3e3149e020a3c1cb8bfac | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/invertible.lean | dc54958a6766bc0cf2b9962bd9d7b9a3d6d48ee4 | [
"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 | 9,594 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
A typeclass for the two-sided multiplicative inverse.
-/
import algebra.char_zero
import algebra.char_p
/-!
# Invertible elements
This file defines a typeclass `invertible ... |
52a14181f30587313bc82d883ade84590d2f9326 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/100-theorems-list/82_cubing_a_cube.lean | 330a23188f703087e43aa8e686e1072d0f9d8381 | [
"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 | 22,932 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.real.basic
import data.set.finite
import data.set.intervals
/-!
Proof that a cube (in dimension n ≥ 3) cannot be cubed:
There does not exist a partit... |
2154f8923e9ddbd9365ec60f68691f60b58b027a | 2bafba05c98c1107866b39609d15e849a4ca2bb8 | /src/week_1/Part_B_sets.lean | 649dabff3b9c1cfc7d9b0d3fbe39652269780e0d | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/formalising-mathematics | b54c83c94b5c315024ff09997fcd6b303892a749 | 7cf1d51c27e2038d2804561d63c74711924044a1 | refs/heads/master | 1,651,267,046,302 | 1,638,888,459,000 | 1,638,888,459,000 | 331,592,375 | 284 | 24 | Apache-2.0 | 1,669,593,705,000 | 1,611,224,849,000 | Lean | UTF-8 | Lean | false | false | 3,071 | lean | import tactic
-- Let `Ω` be a "big underlying set" and let `X` and `Y` and `Z` be subsets
variables (Ω : Type) (X Y Z : set Ω) (a b c x y z : Ω)
namespace xena
/-!
# subsets
Let's think about `X ⊆ Y`. Typeset `⊆` with `\sub` or `\ss`
-/
-- `X ⊆ Y` is the same as `∀ a, a ∈ X → a ∈ Y` , by definition.
lemma subse... |
5eae272e39c11dfa2d53c2cd730cf93d3fc37ab3 | a1179fa077c09acc49e4fbc8d67084ba89ac4f4c | /tutorials/src/exercises/07_first_negations.lean | bd269a172e4e953f7cc5ce094288b7a4a9469c43 | [] | no_license | Seeram/Lean-proof-assistant | 11ca0ca0e0446bacdd1773c4c481a3653b2f1074 | e672d46e0e5f39d8de2933ad4f4cac095ca6094f | refs/heads/master | 1,682,754,224,366 | 1,620,959,431,000 | 1,620,959,431,000 | 299,000,950 | 0 | 1 | null | 1,620,680,462,000 | 1,601,200,258,000 | Lean | UTF-8 | Lean | false | false | 6,787 | lean | import tuto_lib
import data.int.parity
/-
Negations, proof by contradiction and contraposition.
This file introduces the logical rules and tactics related to negation:
exfalso, by_contradiction, contrapose, by_cases and push_neg.
There is a special statement denoted by `false` which, by definition,
has no proof.
So ... |
116f728c76be0ed4b6ac3d5b5c66f1befd52e695 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/group_theory/free_group.lean | 9be9c7c676ea280e4a0c9bdb0a6f7f3ef4ef86f4 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 30,948 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free groups as a quotient over the reduction relation `a * x * x⁻¹ * b = a * b`.
First we introduce the one step reduction relation
`free_group.red.step`: w * x * x⁻¹ * v ~... |
747d875ec4701216b8dd04aebd0b650303ecc6d0 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/lie/matrix.lean | 635b07e9bce2e977d7a7f31866fe62287c4c6fa3 | [
"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 | 3,472 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.of_associative
import linear_algebra.matrix.reindex
import linear_algebra.matrix.to_linear_equiv
/-!
# Lie algebras of matrices
An important class of L... |
7ec18b770e94dc5f05e01ea1197d25bdeb6c17b0 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/topology/metric_space/emetric_space.lean | 98341c1736d4d449cabd3afe6b662620a6079326 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 32,036 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Extended metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
This file is devoted to the definition and study of `emetric_spaces`, i... |
e59edf253c7e825f06fd6d5600ccdd1e8c034d88 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/simple_auto.lean | 72e59046f99692c9f51f5755b6246fb8047158c0 | [] | 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,942 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.zero
import Mathlib.category_theory.limits.sha... |
9ff9cfce7007cbba55f19ebe262bb3dd7ece144a | 618003631150032a5676f229d13a079ac875ff77 | /src/order/filter/basic.lean | 9153d7320a3a5df07ac7d1e2443da5e9592982c7 | [
"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 | 112,099 | 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, Jeremy Avigad
-/
import order.zorn
import order.copy
import data.set.finite
/-!
# Theory of filters on sets
## Main definitions
* `filter` : filters on a set;
* `at... |
611f563a238f8d881ae5c78716a218608cda34d9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/probability/density.lean | 5545c5925759df88a89576002c15ab63b65c6737 | [
"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 | 19,163 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.decomposition.radon_nikodym
import measure_theory.measure.lebesgue
/-!
# Probability density function
This file defines the probability density func... |
21fe3a5efad98bed3f7c76032f8c886ac8f17de0 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/iterate_hom.lean | e3508f841a1e2dc3b7523a653d4956576a4e0a69 | [] | 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 | 5,546 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group_power.default
import Mathlib.logic.function.iterate
import Mathlib.PostPort
... |
3b1e7c02a901f79396ed35aeac4be3953faac6a3 | 246309748072bf9f8da313401699689ebbecd94d | /src/category_theory/limits/shapes/types.lean | c507a34ee76db819b678f2bfc7a767997926bb99 | [
"Apache-2.0"
] | permissive | YJMD/mathlib | b703a641e5f32a996f7842f7c0043bab2b462ee2 | 7310eab9fa8c1b1229dca42682f1fa6bfb7dbbf9 | refs/heads/master | 1,670,714,479,314 | 1,599,035,445,000 | 1,599,035,445,000 | 292,279,930 | 0 | 0 | null | 1,599,050,561,000 | 1,599,050,560,000 | null | UTF-8 | Lean | false | false | 6,950 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.types
import category_theory.limits.shapes.products
import category_theory.limits.shapes.binary_products
import category_theory.limits.s... |
0821c2d35fb136f4dfeeb8bcab24e417f3a46659 | 3863d2564418bccb1859e057bf5a4ef240e75fd7 | /hott/types/equiv.hlean | 149cfe4f53b289833b2bbcfdc866aa7e670a7bfb | [
"Apache-2.0"
] | permissive | JacobGross/lean | 118bbb067ff4d4af48a266face2c7eb9868fa91c | eb26087df940c54337cb807b4bc6d345d1fc1085 | refs/heads/master | 1,582,735,011,532 | 1,462,557,826,000 | 1,462,557,826,000 | 46,451,196 | 0 | 0 | null | 1,462,557,826,000 | 1,447,885,161,000 | C++ | UTF-8 | Lean | false | false | 11,283 | hlean | /-
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 the types equiv and is_equiv
-/
import .fiber .arrow arity ..prop_trunc cubical.square
open eq is_trunc sigma sigma.ops pi fibe... |
f9f78ab19e278b0b64b39ef3c386a85a7f1a30ff | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /archive/miu_language/decision_nec.lean | 5763e59fbc93f0afd4072f1867a272e4ec89e297 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 6,707 | lean | /-
Copyright (c) 2020 Gihan Marasingha. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gihan Marasingha
-/
import .basic
import data.nat.modeq
import tactic.ring
/-!
# Decision procedure: necessary condition
We introduce a condition `decstr` and show that if a string... |
a5cf66bc5ceaf41dd9e011eaf1f3a76ca03f7664 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/apply_class_issue.hlean | db6a6a09d0f115840d88ff142f81fd94222cb083 | [
"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 | 305 | hlean | open is_trunc
section
parameters {P : Π(A : Type), A → Type}
definition my_contr {A : Type} [H : is_contr A] (a : A) : P A a := sorry
definition foo2
(A : Type)
(B : A → Type)
(a : A)
(x : B a)
(H : Π (a : A), is_contr (B a)) --(H : is_contr (B a))
: P (B a) x :=
by apply (@my_contr _ _)
end
|
9c9e2881a6a717775b3a4aacbd8a478f84e0e583 | 6df8d5ae3acf20ad0d7f0247d2cee1957ef96df1 | /ExamPractice/FinalCS.lean | 01ab7b8d7dbd52de12310638a0a03c69c8766b02 | [] | no_license | derekjohnsonva/CS2102 | 8ed45daa6658e6121bac0f6691eac6147d08246d | b3f507d4be824a2511838a1054d04fc9aef3304c | refs/heads/master | 1,648,529,162,527 | 1,578,851,859,000 | 1,578,851,859,000 | 233,433,207 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 322 | lean | namespace hidden -- Namespace hidden allows us do define our own inductive
--types even if they have a standard parallel
/-
To calculate the number of functions that can be made
x = # of inputs, y = # of output
# of functions = (2^y)^(2^x) assuming it is a binary function
-/
end hidd... |
37cb50f3c5cbe05511776375e29b810a5c1a3090 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/equiv/basic.lean | a517f73b4c0cf2763dce8db03cc0347c9d1e7330 | [
"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 | 79,990 | 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, Mario Carneiro
-/
import data.set.function
import algebra.group.basic
/-!
# Equivalence between types
In this file we define two types:
* `equiv α β` a.k.a... |
9352c586ec60254f7ea86cf3f2dbf973096a4ee9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/order/monotone_continuity.lean | 957caae659ca6efbf58ed3f63affc4472dee5d5d | [
"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 | 17,258 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov, Heather Macbeth
-/
import topology.algebra.order.basic
import topology.algebra.order.left_right
/-!
# Continuity of monotone functions
In this file we prove t... |
c1c1efeba6acedd1f84a5ea9ec33054fa62959b4 | 1a61aba1b67cddccce19532a9596efe44be4285f | /library/theories/number_theory/irrational_roots.lean | 919e593e171a5abef7eccbc2b8870e251de35d80 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 7,149 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
A proof that if n > 1 and a > 0, then the nth root of a is irrational, unless a is a perfect nth power.
-/
import data.rat .prime_factorization
open eq.ops
/- First, a te... |
81c14af860ed7f95e5bd2c31b74c1c1e4de71ece | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/group/to_additive.lean | 090fc59d2b84b842418e485cdfb90bd715dd500d | [
"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 | 25,272 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury Kudryashov, Floris van Doorn
-/
import tactic.transform_decl
import tactic.algebra
/-!
# Transport multiplicative to additive
This file defines an attribute `to_... |
670db8b4da0389fd2125288aef6f14c6c0f992e2 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/algebra/group/pi.lean | ff31bdd8c6cf549c06584eab42fc2f8008185464 | [
"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 | 5,610 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.ordered_group
import tactic.pi_instances
/-!
# Pi instances for groups and monoids
This file defines instances for group, monoid, semigroup ... |
44b52de91490688dd748c5b507349b088f5f7786 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/algebra/Mon/colimits.lean | 2d268830355d0144a0e49cb8d42499bfc3402c89 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 6,533 | lean | import algebra.Mon.basic
import category_theory.limits.limits
universes v
open category_theory
open category_theory.limits
/-
We build colimits of monoids.
We do so knowing nothing about monoids.
In particular, I want to claim that this file could be produced by a python script
that just looks at the output of `#pr... |
066183f262dda4e9fce104d54a0f6ef357b6e650 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/ConstantRefs.lean | a842a7fa7703f3cbbfc0f55b2dce5268ea32324c | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,649 | lean | import Papyrus.Context
import Papyrus.IR.TypeRefs
import Papyrus.IR.ConstantRef
namespace Papyrus
namespace TypeRef
/- Get a reference to a null (`0`) constant of this type. -/
@[extern "papyrus_get_null_constant"]
constant getNullConstant (self : @& TypeRef) : IO ConstantRef
/- Get a reference to a constant of thi... |
5411a1dde727662d913bd8c7c03b1c3198489625 | 5df84495ec6c281df6d26411cc20aac5c941e745 | /src/formal_ml/probability_space.lean | d2cc33db13a7f413b88374cb4102e4d260d7f794 | [
"Apache-2.0"
] | permissive | eric-wieser/formal-ml | e278df5a8df78aa3947bc8376650419e1b2b0a14 | 630011d19fdd9539c8d6493a69fe70af5d193590 | refs/heads/master | 1,681,491,589,256 | 1,612,642,743,000 | 1,612,642,743,000 | 360,114,136 | 0 | 0 | Apache-2.0 | 1,618,998,189,000 | 1,618,998,188,000 | null | UTF-8 | Lean | false | false | 97,365 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
5443157ac1d46b3672a7d18d5a8588c72c25319e | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp33.lean | 40d1c98dca81f38833fe04e521df7bdc9d671bc9 | [
"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 | 229 | lean | import tactic
variable f {A : TypeU} : A → A
axiom Ax1 (a : Bool) : f a = not a
axiom Ax2 (a : Nat) : f a = 0
rewrite_set S
add_rewrite Ax1 Ax2 not_false : S
theorem T1 (a : Nat) : f (f a > 0)
:= by simp S
print environment 1
|
bd00f008d43d44bc1a8b2b907c9598464a7726bb | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/algebra/category/Group/basic.lean | a62959c2448e5a2ada425f74b21f6b35390736e1 | [
"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 | 8,773 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.category.Mon.basic
import category_theory.endomorphism
/-!
# Category instances for group, add_group, comm_group, and add_comm_group.
We introduce th... |
95a54f11b23e15a867efa0f33008f575755c5594 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measure/lebesgue/integral.lean | 126802eae5fd55f04deb8738672befe385714cfc | [
"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,419 | 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, Sébastien Gouëzel, Yury Kudryashov
-/
import measure_theory.integral.set_integral
import measure_theory.measure.lebesgue.basic
/-! # Properties of integration with res... |
03d90acda09d8589342472bb8f8c6da180656abc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/lp_space.lean | 143ea4968c7be84a6390d8413bf6e5c468760ecf | [
"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 | 127,382 | lean | /-
Copyright (c) 2020 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Sébastien Gouëzel
-/
import analysis.normed_space.indicator_function
import analysis.normed.group.hom
import measure_theory.function.ess_sup
import measure_theory.function.... |
bda6e0e9811756b7cbf41843748e6e46cec9c74d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/number_theory/arithmetic_function_auto.lean | e48ecb4ad3b397a831b40d9f7955d85ef6e31f2f | [] | 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 | 21,579 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.big_operators.ring
import Mathlib.number_theory.divisors
import Mathlib.algebra.squ... |
4f4dea638fb8db99a0db7d7216235b64d150e307 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/metric_space/gromov_hausdorff_realized.lean | aabf4b28c8c9b7d03673c62e13b42de287b3568f | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,953 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
Construction of a good coupling between nonempty compact metric spaces, minimizing
their Hausdorff distance. This construction is instrumental to study the Gromov-... |
5be43321c15102fe40d6b37b3781973c3d77c073 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Util/RecDepth.lean | d1308c042a123d024563765a68c3eee44fc99ccb | [
"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 | 480 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.Options
namespace Lean
def getMaxRecDepth (opts : Options) : Nat :=
opts.getNat `maxRecDepth defaultMaxRecDepth
@[init] def maxRecDepth ... |
7fd20598c967fee9b0d316b16833dd2578aa9209 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/big_operators/part_enat.lean | e5ac611f40870d0044e216a1eb1ab968b42a813b | [
"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 | 539 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import algebra.big_operators.basic
import data.nat.part_enat
/-!
# Big operators in `part_enat`
A simple lemma about sums in `part_enat`.
-/
open_locale big_ope... |
9d9084bad55c7ce5497cd9c89f873864d8b21b5d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/sum.lean | 5bcdc1c4246907fba6532fecad9f861836c9cba9 | [
"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 | 591 | 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, Jeremy Avigad
The sum type, aka disjoint union.
-/
prelude
import init.logic
notation A ⊕ B := sum A B
universe variables u v
variables {A : Type u} {B : ... |
f5ac89bb228ca9e3b4c15cc61d7625de5c27c8b2 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Init/Control/Reader.lean | d75bf990c3e21f86db0b2e3a37c3758388becce1 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 1,053 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
prelude
import Init.Control.Basic
import Init.Control.Id
import Init.Control.Except
namespace Re... |
19690b5260b4b13c6d670d0276306a2efe63b2f9 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/data/option/basic.lean | 54db24c5eb7c6bd4ba5f6966c41f279414c79d8f | [
"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 | 3,280 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic init.category
open decidable
universe variables u v
namespace option
def to_monad {m : Type → Type} [monad m] [alternative m] {... |
4fd3136af6f4b688da2cc6bdbb2fdbada81291b0 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/whiskering.lean | e7234c434629730714701f4627a12b1da3dcbde3 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 7,850 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.natural_isomorphism
namespace category_theory
universes u₁ v₁ u₂ v₂ u₃ v₃ u₄ v₄
section
variables (C : Type u₁) [𝒞 : category.{v₁} C]
... |
bfb7ec99a93fae70157f9024f6cf978de11aaddb | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/tactic_id_bug.lean | a32786a22134357d536a2f57aa8443e051e87f11 | [
"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 | 712 | lean | import algebra.function
import logic.funext
open function
structure bijection (A : Type) :=
(func finv : A → A)
(linv : finv ∘ func = id)
(rinv : func ∘ finv = id)
attribute bijection.func [coercion]
namespace bijection
variable {A : Type}
protected theorem eq {f g : bijection A}
(func_eq : func f = func g... |
be36b5534d052cc6414d888ebf0039826643cbe5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Simp/DefaultAlt.lean | c279d8cc6d4b1522bccd2eadf673fd0f2c77bbdf | [
"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,963 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.Simp.SimpM
namespace Lean.Compiler.LCNF
namespace Simp
/--
Return the alternative in `alts` whose body appears in most arms,
and... |
31eed9dd004126f95bc67d6edd358e2ad3bae1aa | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/game/impartial_auto.lean | c001092bfd3d99134b873136e0a0232892c4c5f5 | [] | 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,243 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.set_theory.game.winner
import Mathlib.tactic.nth_rewrite.default
import Mathlib.tactic.equiv_rw
i... |
90c8251878ae4008bf8e64811bece4710d99c8cc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/general_linear_group.lean | ecd9604d7dce605ed8cda0c5a58f17189c8f6528 | [
"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 | 8,467 | lean | /-
Copyright (c) 2021 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck
-/
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.special_linear_group
/-!
# The General Linear group $GL(n, R)$
This file defines the elements... |
e25862705e0e3b31ae460e5430aaa1e0b14c94d6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1267.lean | 2f0730174e56e814caa800a208922ce388fba29a | [
"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 | 177 | lean | example : 1 = 2 := calc
_ = _ := sorry
example : 1 = 2 :=
calc
_ = _ := sorry
example : 1 = 2 := by calc
_ = _ := sorry
example : 1 = 2 := by
calc
_ = _ := sorry
|
c56355fc1874483360a873605bcc2aaf5bea293e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/filter/cofinite.lean | a9257107c807bb0cc472b6cd4f2e4a8b3a74371a | [
"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 | 7,816 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.at_top_bot
import order.filter.pi
/-!
# The cofinite filter
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any cha... |
f308b3e984c5fb73ee2627dcaccee46e143441eb | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/real/golden_ratio.lean | dcb176a4d26680c35a8bac85a12a1e926f37dc43 | [
"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 | 5,663 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Alexey Soloyev, Junyan Xu
-/
import data.real.irrational
import data.nat.fib
import data.matrix.notation
import tactic.ring_exp
import algebra.linear_recurrence
/-... |
7d361452de48029a4c6d81e5823b868be77dee62 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/sym/basic.lean | 8a473e659f09533eb4b5072957bce88d755258d3 | [
"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 | 4,653 | 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.vector2
/-!
# Symmetric powers
This file defines symmetric powers of a type. The nth symmetric power
consists of homogeneous n-tup... |
350dac8a4331f346940900ee47a6a360e6f22b48 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/smt/prove_auto.lean | 4dafa2e611fe5d820b31d47a317e2bce25bc1423 | [] | 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 | 91 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
namespace Mathlib
end Mathlib |
f39ab54479a4000f0db554e720df0536a3ef6596 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Lean/Compiler/Util.lean | 974d5b133100145a5931e08ed3d8dce679af1a27 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,906 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Environment
namespace Lean
namespace Compiler
def neutralExpr : Expr := mkConst `_neutral
def unreachableExpr : Expr := m... |
d33b11aba0523942631997f7e2c335214d87198b | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/prod/default.lean | d3e25a6d4f331ccbaa1341f06e9aacdc3be4bd7f | [
"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 | 231 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura, Jeremy Avigad
import data.prod.decl data.prod.thms data.prod.wf
|
0bbfe2d32d3c925055282d2369e0f1581654599b | 5883d9218e6f144e20eee6ca1dab8529fa1a97c0 | /src/data/has_mem.lean | 2f8808dc419c73f2067d630deabd4049205eeee7 | [] | no_license | spl/alpha-conversion-is-easy | 0d035bc570e52a6345d4890e4d0c9e3f9b8126c1 | ed937fe85d8495daffd9412a5524c77b9fcda094 | refs/heads/master | 1,607,649,280,020 | 1,517,380,240,000 | 1,517,380,240,000 | 52,174,747 | 4 | 0 | null | 1,456,052,226,000 | 1,456,001,163,000 | Lean | UTF-8 | Lean | false | false | 290 | lean | /-
This file defines the `decidable_eq` instance of the `has_mem` class.
-/
universes u v
variables {α : Type u} {γ : Type v}
instance has_mem.decidable_eq (a : α) (b : γ) [has_mem α γ]
: decidable_eq (has_mem.mem a b) :=
λ p₁ p₂, decidable.is_true (proof_irrel p₁ p₂)
|
6215a708a3174194fb54740e452ba7c130b07d60 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /11/a.lean | e5fdc65d0bd21489ab15cfdac02f922e9c24fb4a | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,814 | lean | def Array.mkFun {α : Type} (n : Nat) (f : Nat → α) : Array α :=
Array.mk ((List.range n).map f)
inductive Seat
| floor | empty | occupied
open Seat
def Seat.beq : Seat → Seat → Bool
| floor, floor => true
| empty, empty => true
| occupied, occupied => true
| _, _ => false
instance : BEq Seat := ⟨Seat.beq⟩
instance... |
9d2c11339f81f58172393d8b44a571c6e3da7c2c | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/commutative_algebra/localization.lean | 40730551395370ce9145d38db5b4552c82d729f8 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,207 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
This is about localization of commutative rings and semirings.
The most common approach is to start with a commutative ring
`A` and a subset `S` that contains `1` an... |
1bedc9e9f757f9de0503a6308505c32731dfe60f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/category/Semilat.lean | 49a62906cbed40e2aea3287d003aabeee6da4c25 | [
"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,105 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.category.PartOrd
import order.hom.lattice
/-!
# The categories of semilattices
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requir... |
30ff531b3019b96fb4cb9b9a4ae81789c584c93b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/instances/sphere.lean | c7a7a668c29bf9550bff941acff3f20202fb4013 | [
"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,815 | 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... |
cc38aaf3cf0275c815a365348abd099614a7cdb7 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/continuous_function/ideals.lean | 0ca31fed642c9e41c2d0a42b19216f9054678b5f | [
"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 | 21,632 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import topology.algebra.algebra
import topology.continuous_function.compact
import topology.urysohns_lemma
import data.complex.is_R_or_C
import analysis.normed_space.u... |
49460076f1313814e9c7aeb4520bd0818a62886e | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/measure_theory/bochner_integration.lean | 9ba815e253006be11ca5b6bb3533ae691fa95e15 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 54,985 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.simple_func_dense
import analysis.normed_space.bounded_linear_maps
/-!
# Bochner integral
The Bochner integral extends the definition of the Le... |
d590a5f187e5fdcf78a8cef8370053d92a5ca653 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/ring_theory/valuation/valuation_subring.lean | 847de810756997f2d6ba4b274b3ec62dfeb491a3 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 25,351 | 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 algebraic_geometry.prime_spectrum.basic
/-!
# Valuatio... |
e3226cff402aa47ee29423a07663107d657b52f5 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/sieve.lean | ac6a3501832cdaddc83d79ab7e88ee19d72da8cf | [] | 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 | 7,866 | lean | /- Author: E.W.Ayers -/
import category_theory.comma
import category_theory.limits.shapes.finite_limits
import category_theory.yoneda
import order.complete_lattice
import data.set.lattice
import .comma
universes u v
namespace category_theory
/-- A sieve on X is a set of morphisms to X that is closed under left compo... |
9a6192556e57950f248442a5cc3b6a00b568e53f | f0f12a5b81106a798deda31dca238c11997a605e | /Playlean4/Group/Normal.lean | 0cb5d2be45a6136dea1dbe238ee36e4330185495 | [
"MIT"
] | permissive | thejohncrafter/playlean4 | fe7119d492aab07048f78333eeda9862f6471740 | 81df180a71b8d84d0f45bc98db367aad203cf5df | refs/heads/master | 1,683,152,783,765 | 1,621,879,382,000 | 1,621,879,382,000 | 366,563,501 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,147 | lean |
import Playlean4.Group.Basic
import Playlean4.Group.Subgroup
import Playlean4.Group.LRClasses
import Playlean4.Group.OnSet
namespace Group
namespace Subgroup
variable {G : Type} (law : G → G → G) [grp : Group G law]
local infixl:70 " * " => id' law
@[appUnexpander id'] def normal.UnexpandGMul : Lean.PrettyPrinter.... |
a2c9e780833f74d831bf67cd621223e35c7ae03e | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Elab/Tactic/BuiltinTactic.lean | e417872a6b95042b5f76a453f361317576c34878 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 15,592 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Contradiction
import Lean.Meta.Tactic.Refl
import Lean.Elab.Binders
import Lean.Elab.Open
import ... |
4ee4983f2998143c399d022701c37b43256ff8f2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/order_iso_nat.lean | f74000f5e5e54bd9342e4acb4062b5b97893b1ce | [
"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 | 9,216 | 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.equiv.denumerable
import data.nat.lattice
import logic.function.iterate
import order.hom.basic
/-!
# Relation embeddings from the naturals
This file all... |
8dc2d2617da14ec0f33ae5ab46d7bdce83cffc57 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/algebra/category/strict.hlean | 241fe32d6d48b9cb5c2cadf68aff44c488b8ca64 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,498 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
-/
import .functor.basic
open is_trunc eq
namespace category
structure strict_precategory [class] (ob : Type) extends precategory ob :=
mk' ... |
82d63844f2525d645992fc26ab5672ce90d1bb17 | abd85493667895c57a7507870867b28124b3998f | /src/linear_algebra/nonsingular_inverse.lean | 63b40a528928fca57a9c5d31c8f6560067ab1e3f | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 15,504 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
-/
import algebra.associated
import linear_algebra.determinant
import tactic.linarith
import tactic.ring_exp
/-!
# Nonsingular inverses
In this file, we define an inverse for ... |
64df43fde9cc6d02768e68030c1c27f697ac69cc | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/number_theory/basic.lean | e7dd31d3e6aeb0747543553465999d734d9b1471 | [
"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 | 1,425 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import algebra.geom_sum
import ring_theory.ideal.quotient
/-!
# Basic results in number theory
This file should contain basic results in number theory. ... |
10b8bb3c8fc8f5360d1a21dd03f65cf6e41794b8 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/doSeqRightIssue.lean | b050dd9450749e754517dd55c947cd37678d4faf | [
"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 | 314 | lean | --
set_option autoImplicit false
universe u
variable {α : Type u}
variable {β : α → Type v}
infix:50 " ≅ " => HEq
theorem ex {p₁ p₂ : Sigma (fun a => β a)} (h₁ : p₁.1 = p₂.1) (h : p₁.2 ≅ p₂.2) : p₁ = p₂ :=
match p₁, p₂, h₁, h with
| ⟨_, _⟩, ⟨_, _⟩, rfl, HEq.refl _ => rfl
|
e964f85d8d1c444a947b2d749557e81cf9370e8a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/control/lift_auto.lean | 1b27a0142604c03abc7bf9fa3f51f7413a634a71 | [] | 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 | 5,317 | 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.