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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
98b5c34eef6750b76206310a073e2077ab32f0fd | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/data/hash_map.lean | 30dbebb0402a47cf24bbd5b8923f5ba9b2bc6f60 | [
"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 | 27,837 | 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, Mario Carneiro
-/
import data.pnat.basic
import data.array.lemmas
import algebra.group
import data.sigma.basic
universes u v w
/-- `bucket_array α β` is the... |
01d6bd9f37dbef97581b45cc78f83a204b5816b2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/paracompact.lean | 41204626271ad25bb3cf76fd7c0b400d56bd5647 | [
"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 | 15,135 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Yury Kudryashov
-/
import topology.subset_properties
import topology.separation
import data.option.basic
/-!
# Paracompact topological spaces
A topological space `X` is... |
7098d253344e0487388fb8adaba7fe65ff9e50a0 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/continued_fractions/computation/basic.lean | 139ff4d0bf6dfdd9d26ee203223cbc5ed5904b3d | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,983 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.basic
import algebra.order.archimedean
import algebra.order.field
/-!
# Computable Continued Fractions
## Summary
We formalis... |
0fe35970a70f1edc2c749fbf47bb8378a5c6ca1e | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Elab/Frontend.lean | 36dafd1a0d0e2c1cf9fa0d68307e6a07f7238a1d | [
"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 | 5,262 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Elab.Import
import Lean.Elab.Command
import Lean.Util.Profile
import Lean.Server.References
namespace Lean.Elab.Frontend
st... |
b75c17f04855f7a5bbf6f133bd889e1a76a04ae7 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Elab/Deriving/Repr.lean | d7638f551ab2a6e354bef0e7f1b0fafcb0c3516c | [
"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 | 5,206 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Transform
import Lean.Meta.Inductive
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
namespace Lean.Elab.Deriving.Repr
open... |
546f29c6071e92afec952283ee087018eefd60bf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/group_theory/quotient_group.lean | db5be864391767f34abd8bc73198862e601b514f | [] | 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 | 7,211 | lean | /-
Copyright (c) 2018 Kevin Buzzard and Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot.
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.... |
73f9e9d65885f39dd554a8901cbb01e0df1ef65e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/lint/misc.lean | 0bdf7753d5eb97d22adfb6d51cea23ce982c0112 | [] | 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,083 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.lint.basic
import Mathlib.PostPort
namespace Mathlib
/-!
# Va... |
69f0ad5984b49b02017a59ee9e56096cbe1ca74f | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/struct3.lean | f3d08cfff092b6199488c1866af5f2c821a20a82 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 1,135 | lean | universe u v
class Bind2 (m : Type u → Type v) where
bind : ∀ {α β : Type u}, m α → (α → m β) → m β
class Monad2 (m : Type u → Type v) extends Applicative m, Bind2 m : Type (max (u+1) v) where
map := fun f x => Bind2.bind x (pure ∘ f)
seq := fun f x => Bind2.bind f fun y => Functor.map y x
seqLeft ... |
2c66e1c75aa103f209c696ca5c2ce1ef3aeea707 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/bounds/order_iso.lean | 0f6958c3b49bb8c9282f337fd0503b561438e5f9 | [
"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 | 1,979 | 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, Yury Kudryashov
-/
import order.bounds.basic
import order.hom.set
/-!
# Order isomorhpisms and bounds.
-/
variables {α β : Type*}
open set
namespace order_iso
varia... |
72887f35d75906de7aeb6a9e5baff0d00f981a12 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Widget/InteractiveCode.lean | 787bb51cbb60ac214a5d64c1cc226aac79d6fdf7 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 3,189 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.PrettyPrinter
import Lean.Server.Rpc.Basic
import Lean.Widget.TaggedText
import Lean.Widget.Basic
/-! RPC infrastructure for storing and forma... |
a4fbe96ebc72e86d15d09dd49c169d3c9c4baf5e | ce4db867008cc96ee6ea6a34d39c2fa7c6ccb536 | /src/interactive_expr.lean | 1a2b528642ddf48406458054849c960b4a27ef7c | [] | no_license | PatrickMassot/lean-bavard | ab0ceedd6bab43dc0444903a80b911c5fbfb23c3 | 92a1a8c7ff322e4f575ec709b8c5348990d64f18 | refs/heads/master | 1,679,565,084,665 | 1,616,158,570,000 | 1,616,158,570,000 | 348,144,867 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 21,943 | lean | /-
Copyright (c) 2020 E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: E.W.Ayers
-/
import data.list.defs
/-!
# Widgets used for tactic state and term-mode goal display
The vscode extension supports the display of interactive widgets.
Default implementation ... |
876aed4f19997710e5c712298f4207cc72d53cb4 | 87a08a8e9b222ec02f3327dca4ae24590c1b3de9 | /src/tactic/interactive.lean | 73af8594f8f8d8aa5f70a2066975f31164ba9bdf | [
"Apache-2.0"
] | permissive | naussicaa/mathlib | 86d05223517a39e80920549a8052f9cf0e0b77b8 | 1ef2c2df20cf45c21675d855436228c7ae02d47a | refs/heads/master | 1,592,104,950,080 | 1,562,073,069,000 | 1,562,073,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,787 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import tactic.core data.list.defs
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:9001... |
a986f04f08f26f739d45aa6f4f9cc5d020e7b482 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/ring_theory/witt_vector/structure_polynomial.lean | 94f53c9710b236b358278c9b399ada4473069a9d | [
"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 | 18,525 | 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 data.fin.vec_notation
import field_theory.finite.polynomial
import number_theory.basic
import ring_theory.witt_vector.witt_polynomial
/-!
# ... |
1e147363005ba1ab3f55b9b5bf1b672fa57170eb | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/notation2.lean | fe9ac423d89babef34869b82a9bca9bc98f10d40 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 267 | lean | --
inductive List (T : Type) : Type | nil {} : List | cons : T → List → List open List notation h :: t := cons h t notation `[` l:(foldr `,` (h t, cons h t) nil) `]` := l
infixr `::` := cons
#check (1:num) :: 2 :: nil
#check (1:num) :: 2 :: 3 :: 4 :: 5 :: nil
|
172d5ce99d9d1ca950440d1d965bb6468af32253 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/noncomputable_bug.lean | 8f81f006f7e38d78d5a3230c722b72d2f412f95e | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 102 | lean | axiom f : ∀ (A : Type), A → Type
def ex5b (α : Type) (a : α) : ∀ (A : Type), A → Type :=
f
|
51606da975e304eb939b974639348faaab9bd72e | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/algebra/hott.hlean | fdf1f0076851fbe5f178bea05b66530c4cc65db7 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 2,954 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about algebra specific to HoTT
-/
import .group arity types.pi prop_trunc types.unit .bundled
open equiv eq is_trunc unit
namespace algebra
definition... |
7b0e9e25a44a4352dab7eab8c0c4edcfefce888d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/mutwf3.lean | af9b12a531871a6992cf69d7663e4138baeabba7 | [
"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,345 | lean | namespace Ex1
mutual
def f : Nat → α → α → α
| 0, a, b => a
| n, a, b => g a n b |>.1
def g : α → Nat → α → (α × α)
| a, 0, b => (a, b)
| a, n, b => (h a b n, a)
def h : α → α → Nat → α
| a, b, 0 => b
| a, b, n+1 => f n a b
end
termination_by'
invImage
(fun
| PSum.inl ⟨n, _, ... |
6c577190f5dcccbdf0bb261cc57f13c2e011fe78 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/field_theory/intermediate_field.lean | de0b97b760c5a48a76a08eda1d6354f9c57f49ec | [
"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 | 22,078 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import field_theory.minpoly.field
import field_theory.subfield
import field_theory.tower
/-!
# Intermediate fields
Let `L / K` be a field extension, given as an instance... |
0f4e949249fe7d45ec0932491396cadd48a92a30 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/774.lean | b1c5d7093cb81bdae01620c32931b04bc9b49e00 | [
"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 | 158 | lean | open nat
example : ℕ → ℕ → Prop
| 0 0 := true
| (succ n) 0 := false
| 0 (succ m) := false
| (succ n) (succ m) := this n m
|
cae7bbcd9678d9c3a179e419b6b4626817a5056b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/star/free.lean | 9e8ef68b9074040f04fd725dbadb6693dc9949f7 | [
"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,868 | lean | /-
Copyright (c) 2020 Eric Weiser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Weiser
-/
import algebra.star.basic
import algebra.free_algebra
/-!
# A *-algebra structure on the free algebra.
Reversing words gives a *-structure on the free monoid or on the fr... |
89f287e48ec591b82786ba0bf1920170380627ff | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/choice_expl.lean | d3fafec0dce97f49835f2a11225386aa367a7673 | [
"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 | 250 | lean | universe variables u
namespace N1
definition pr {A : Type u} (a b : A) := a
end N1
namespace N2
definition pr {A : Type u} (a b : A) := b
end N2
open N1 N2
constant N : Type.{1}
constants a b : N
#check @N1.pr
#check @N2.pr N a b
#check pr a b
|
936c0ebd125a4bbee8961a818c8df83049ba4af2 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/hott/funext_varieties.lean | f96f88319f905b58a57cc7da01da2889b3ed7a26 | [
"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 | 4,433 | lean | -- Copyright (c) 2014 Jakob von Raumer. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Jakob von Raumer
-- Ported from Coq HoTT
import hott.path hott.trunc hott.equiv hott.axioms.funext
open path truncation sigma function
/- In hott.axioms.funext, we defined fu... |
7d51706d395be5d3cd6c18fb717c8e6f5d9e2ada | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/convex/contractible.lean | cd5d483023228c50a6b47a6075f87bb0ae3207d3 | [
"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 | 1,699 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.convex.star
import topology.homotopy.contractible
/-!
# A convex set is contractible
In this file we prove that a (star) convex set in a real topo... |
02a867dd906a915707071da07706c9c3439b8820 | 7617a8700fc3eebd9200f1e620ee65b3565d2eff | /src/util/int32.lean | 5189c9a7ffbef93c43d609a4a2e9b18fdd82aa29 | [] | no_license | digama0/vc0 | 9747eee791c5c2f58eb53264ca6263ee53de0f87 | b8b192c8c139e0b5a25a7284b93ed53cdf7fd7a5 | refs/heads/master | 1,626,186,940,436 | 1,592,385,972,000 | 1,592,385,972,000 | 158,556,766 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,264 | lean | import data.zmod.basic order.basic
def int32 := zmod (2^32)
namespace int32
local attribute [instance]
def int32_pos : fact (0 < 2 ^ 32) := nat.pow_pos dec_trivial _
instance : has_coe int32 ℤ :=
⟨λ i, if i.val < 2^31 then i.val else i.val - 2^32⟩
instance : comm_ring int32 := by unfold int32; apply_instance
inst... |
985d6cb3e53134d66f9c8c4903db7694f403e6ba | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/Align.lean | a7c9eea01ac4b94e105a4f2befe003c00a143a6c | [
"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 | 1,899 | lean | namespace Papyrus
/--
A valid (non-zero power of two) alignment.
LLVM alignments are in terms of bytes (i.e. an alignment of 1 is byte-aligned).
-/
structure Align where
shiftVal : UInt8
h : shiftVal < 64
deriving Repr
-- TODO: Add way to compute `Align` from a raw alignment.
namespace Align
def val (self... |
df1e8feb4b1fc8e3cbf195326cc652bddff5a9b2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/homotopy/contractible.lean | 582d8056a122cd900ef404aeabad2064d94b2ed6 | [
"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 | 2,374 | lean | /-
Copyright (c) 2022 Praneeth Kolichala. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Praneeth Kolichala
-/
import topology.homotopy.path
import topology.homotopy.equiv
/-!
# Contractible spaces
In this file, we define `contractible_space`, a space that is homoto... |
5df8aee7df999ab10c006a9e3c871b3cc6d7b0fc | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/ideal.lean | f5409ebdc648da97759cdc3b8c388c8bb90f6be4 | [
"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 | 19,353 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import data.equiv.encodable.basic
import order.atoms
/-!
# Order ideals, cofinal sets, and the Rasiowa–Sikorski lemma
## Main definitions
Throughout this file, `P` is at l... |
e56fc327f58100748a2a09b68f79dc3deac8ca2b | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/elab13.lean | 521ab6dd7376732ddcada16e304c947fcc2d2663 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 253 | lean | open tactic list
#check
take c : name,
(
do {
env ← get_env,
decl ← returnex (environment.get env c),
num ← return (length (declaration.univ_params decl)),
ls ← mk_num_meta_univs 2,
return (expr.const c ls)
} : tactic expr)
|
7a3fad313217f52a5e582dbf075102588f2e72c4 | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/run/rewriter12.lean | fb4955b566731361ac50b332cebf4063d4f1a3ce | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 302 | lean | import data.nat
open nat
constant f : nat → nat
example (x y : nat) (H1 : (λ z, z + 0) x = y) : f x = f y :=
by rewrite [▸* at H1, ^{add, nat.rec_on, of_num} at H1, H1]
example (x y : nat) (H1 : (λ z, z + 0) x = y) : f x = f y :=
by rewrite [▸* at H1, ↑{add, nat.rec_on, of_num} at H1, H1]
|
feed2e2be97546a4dd253464721213e0be178163 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world1/level1.lean | fa677039e69fa6ed6e30d674a39a288618bb9a01 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 3,752 | lean | import mynat.definition -- imports the natural numbers {0,1,2,3,4,...}.
import mynat.add -- imports definition of addition on the natural numbers.
import mynat.mul -- imports definition of multiplication on the natural numbers.
namespace mynat -- hide
/-
# Tutorial World
## Level 1: the `refl` tactic.
Let's learn ... |
ffb0ec4c771a5745e1ee8760e801c2d2100c2094 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/kevin.lean | 1de3488e44c66b89af1322aecaabea1e2a198b36 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 128 | lean | import Init.Lean
new_frontend
open Lean
macro x:term "ⁿ":10000 : term => `($x ^ $(mkTermId `n))
#check fun (n : Nat) => nⁿ
|
09ac6a9f6e3ed58fb56f0afda411e948e583502a | b32d3853770e6eaf06817a1b8c52064baaed0ef1 | /src/super/inferences/distinct.lean | 0d97371dfd4a19f8a7218d8f1692fc5932c55808 | [] | no_license | gebner/super2 | 4d58b7477b6f7d945d5d866502982466db33ab0b | 9bc5256c31750021ab97d6b59b7387773e54b384 | refs/heads/master | 1,635,021,682,021 | 1,634,886,326,000 | 1,634,886,326,000 | 225,600,688 | 4 | 2 | null | 1,598,209,306,000 | 1,575,371,550,000 | Lean | UTF-8 | Lean | false | false | 298 | lean | import super.distinct super.prover_state
namespace super
meta def simplification.distinct : simplification_rule | cls :=
if cls.is_taut then
pure none
else
some <$> cls.distinct
meta def preprocessing.distinct : preprocessing_rule :=
simplification.distinct.as_preprocessing_rule
end super
|
ebdad05d450eadaf3ba40324cba1b2c9f9554d0c | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/expr.lean | d9f1002ad3be3441009d0fc8d5457633aea1f77b | [
"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 | 23,573 | 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.level init.control.monad init.meta.rb_map
universes u v
open native
/-- Column and line position in a Lean source file. -/
structur... |
82906d4d4d147020f25bf44b0f7291bd29e6bf8c | ed27983dd289b3bcad416f0b1927105d6ef19db8 | /src/inClassNotes/typeclasses/semigroup/semigroup.lean | ea0e94543435fe56d17401cf00d35f4dcdedc1d7 | [] | no_license | liuxin-James/complogic-s21 | 0d55b76dbe25024473d31d98b5b83655c365f811 | 13e03e0114626643b44015c654151fb651603486 | refs/heads/master | 1,681,109,264,463 | 1,618,848,261,000 | 1,618,848,261,000 | 337,599,491 | 0 | 0 | null | 1,613,141,619,000 | 1,612,925,555,000 | null | UTF-8 | Lean | false | false | 413 | lean | universe u
namespace hidden
/-
A semigroup is a set G with an associative multiplication operator,
mul. Many differet sets G can be treated as semigroups, as long as
it comes with an associative binary multiplication operator, mul.
-/
@[class]
structure semigroup (G : Type u) extends has_mul G : Type u :=
(mul_asso... |
bf40f19ab7460fea66a33ca2072d5afa07cd4296 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/compiler/closure_bug3.lean | 5b9c17daf6fa289ca6bb89d13f86905c1535f207 | [
"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 | 534 | lean |
def f (x : Nat) : Nat × (Nat → String) :=
let x1 := x + 1
let x2 := x + 2
let x3 := x + 3
let x4 := x + 4
let x5 := x + 5
let x6 := x + 6
let x7 := x + 7
let x8 := x + 8
let x9 := x + 9
let x10 := x + 10
let x11 := x + 11
let x12 := x + 12
let x13 := x + 13
let x14 := x + 14
let x15 := x + 15
let x16 := x + 16
let x17... |
a3905bbd83ede30cf0774ceaaa3b55f404f1a98b | 92b13ae5cb04d78dd215ae736d93f5353e0e8e87 | /exp_compiler.lean | fc1417bd2e3d857ffac58c331d04b641a52dc3c0 | [] | no_license | jroesch/exp-compiler | f2dec4f17e769e7f3b41429c41ece1f004a3f209 | 6efd4512c80df947361bdada12415bc166db5e7f | refs/heads/master | 1,585,267,520,150 | 1,469,047,597,000 | 1,469,047,597,000 | 63,471,055 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,634 | lean | import init.string
import init.bool
import init.backend
import string_ext
import list_ext
import system.IO
-- set_option trace.compiler true
-- inductive seq (A : Type) :=
-- | nil {} : seq A
-- | cons : A -> seq A -> seq A
-- definition put_seq {A : Type} (fmt : A -> string): seq A -> IO unit
-- | put_seq seq... |
ef6cc941da410e4994f5eb9d80dd7013279ea49d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/convex/strict.lean | 96d8f5740c13b0c90fbf15e293fdfa9c8a62f380 | [
"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 | 16,025 | 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 analysis.convex.basic
import topology.algebra.order.basic
/-!
# Strictly convex sets
This file defines strictly convex sets.
A set is strictly convex if the ope... |
a408b85e351471ef1c81b7713308869bfbe8c30a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/category/Module/change_of_rings.lean | f09acdc2a36480ba8ebe319247bcd6950c28fbf5 | [
"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 | 6,250 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang
-/
import algebra.category.Module.basic
import ring_theory.tensor_product
/-!
# Change Of Rings
## Main definitions
* `category_theory.Module.restrict_scalars`: given rin... |
57a61f9d40acf012d112e2687018ecf58a68ff1f | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/order/lattice.lean | aeb7abeb37813684b5b7d18b68d5dc516b93e998 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 15,970 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Defines the inf/sup (semi)-lattice with optionally top/bot type class hierarchy.
-/
import order.basic
set_option old_structure_cmd true
universes u v w
-- TODO: mo... |
43c206c2bb56ff8ba230b1375e97e1d15542c052 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/simple_graph/degree_sum.lean | f6ec91b9e4a21b564c7387ab78f15bb2683b5f5c | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,010 | 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 combinatorics.simple_graph.basic
import algebra.big_operators.basic
import data.nat.parity
import data.zmod.parity
/-!
# Degree-sum formula and handshaking lemma
T... |
e35f42b5950a6abdcd4780ff84e26af26ac6a9a9 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/univ_bug1.lean | c4fd877cd9fdc6a2af4fe025306345e633cf8c93 | [
"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 | 1,039 | lean | ----------------------------------------------------------------------------------------------------
--- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
------------------------------------------------------... |
545c5a34942740c81ca7f65fe773da4e44ea6b6c | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/fully_faithful.lean | 20e83255a96319376f1b66bcde3f3db95285e737 | [
"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 | 5,668 | 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 logic.function category_theory.isomorphism
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first; see `category_theory.category` for an explanation
namespac... |
9f5b38928181c3a330bad096bc1faffda4566c2e | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/star/chsh.lean | 094ef41d99b83966af6bde3eb41206384bf413fe | [
"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 | 11,331 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.star.basic
import algebra.order.algebra
import analysis.special_functions.pow
/-!
# The Clauser-Horne-Shimony-Holt inequality and Tsirelson's inequali... |
25e49a1ff68826ec18fe4bc290d62398a886a815 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/semilinear.lean | 376ad0e716a9823e55df9f0c20879547b73f4fe3 | [
"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,903 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Heather Macbeth
-/
import algebra.module.equiv
import data.real.basic
/-!
# Test file for conjugate linear maps
The implementation of conjugate-linear maps in mathl... |
7a2f111a8f3def88482b90db1d0df2be67f67e7f | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/lean-scheme-submission/src/spectrum_of_a_ring/quasi_compact.lean | dcc77f395e425ca9086e8dac0a0d1fe249c3c37a | [] | 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 | 9,286 | lean | /-
Spec(R) is quasi-compact.
https://stacks.math.columbia.edu/tag/00E8
-/
import topology.basic
import linear_algebra.basic
import linear_algebra.finsupp
import to_mathlib.opens
import to_mathlib.ideals
import sheaves.covering.covering
import sheaves.covering.covering_on_standard_basis
import sheaves.sheaf_on_sta... |
028cf887157b0dd78d4da332ac708ec597708e74 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/elseifDoErrorPos.lean | a1ce99b4b4b2a8ec2e1f52623ba7261c41aea2ac | [
"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 | 113 | lean | def f (x : Nat) : IO Nat := do
if x == 0 then
return 0
else if x then
return 1
else
return "a"
|
48e0f0279137a40d40aa912d204daab28ab70059 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/bases.lean | 4a198682bbca96c3db1905562c58f85a628d0df5 | [
"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 | 14,986 | 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
Bases of topologies. Countability axioms.
-/
import topology.constructions data.set.countable
open set filter lattice classical
open_locale topologica... |
607b79dd637c01879515555ce02fbc9fc7d81970 | 80162757f50b09d3cad5564907e4c9b00742e045 | /docs/attributes.lean | c8c91752f6fc7bef004ddba1180498c08e92cc32 | [] | no_license | EdAyers/edlib | cc30d0a54fed347a85b6df6045f68e6b48bc71a3 | 78b8c5d91f023f939c102837d748868e2f3ed27d | refs/heads/master | 1,586,459,758,216 | 1,571,322,179,000 | 1,571,322,179,000 | 160,538,917 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 635 | lean | /-
# A list of all of the attributes that are in Lean that I have encountered.
- `@[elab_as_eliminator]`
- `@[simp]` When a lemma is tagged with `simp`, it becomes available to the `simp [*]` tactic.
- `@[derive decidable_eq]` will automatically ad
- `attribute [pp_using_anonymous_constructor] state_t`. Use this if y... |
7d04994f45fe19b1e08e83af1f02d18e7bf2ad48 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/linarith.lean | d984ab7d785f38fcd071e2d9471f7853998948ca | [
"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 | 35,449 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.ring
import data.tree
/-!
# `linarith`
A tactic for discharging linear arithmetic goals using Fourier-Motzkin elimination.
`linarith` is (in princip... |
1358f1376e11d687b48d188e08510e5ddbe87703 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/def10.lean | 4cf71350c1ad0b2e9ab87e2a68f73f81f9e4baf7 | [
"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 | 425 | lean | new_frontend
def f : Bool → Bool → Nat
| _, _ => 10
example : f true true = 10 :=
rfl
def g : Bool → Bool → Bool → Nat
| true, _, true => 1
| _, false, false => 2
| _, _, _ => 3
theorem ex1 : g true true true = 1 := rfl
theorem ex2 : g true false true = 1 := rfl
theorem ex3 : g true false false = 2 ... |
10a4fa8fe25520eb6a39993b91457d723d7cdc4c | 5df84495ec6c281df6d26411cc20aac5c941e745 | /src/formal_ml/radon_nikodym_extra.lean | 04fbe05ee6a6709f33452062a9b202c09d306d05 | [
"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 | 3,067 | 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... |
f94e19251587534016a8f721aae779a8077bd32c | e9078bde91465351e1b354b353c9f9d8b8a9c8c2 | /crazy_hits.hlean | 5bd377a86599e840ad9b8baa9fae8e7c08c4d1c4 | [
"Apache-2.0"
] | permissive | EgbertRijke/leansnippets | 09fb7a9813477471532fbdd50c99be8d8fe3e6c4 | 1d9a7059784c92c0281fcc7ce66ac7b3619c8661 | refs/heads/master | 1,610,743,957,626 | 1,442,532,603,000 | 1,442,532,603,000 | 41,563,379 | 0 | 0 | null | 1,440,787,514,000 | 1,440,787,514,000 | null | UTF-8 | Lean | false | false | 6,227 | hlean | import hit.circle
open circle eq int nat prod sum equiv function equiv.ops is_trunc
/---------------------------------------------------------------------------------------------------
We use the Licata trick to define
HIT X :=
| b : X
| s : (S¹ → X) → X
| p : b = b
--------
this is a W-suspension X with
A = bool
B ff... |
28f3803382757d4e6f57945cf86f34df49fa8bc9 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/order/floor.lean | a6167f2ba3290ee51d2387b896fd6eec075794c7 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 25,876 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Kappelmann
-/
import tactic.abel
import tactic.linarith
/-!
# Floor and ceil
## Summary
We define the natural- and integer-valued floor and ceil functions on l... |
b9bca3907d906922079a9514434fbfc1ac955244 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/interactive.lean | c13fba4e967ab67e4ca1f10eb1943ccfd199e7e1 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 31,221 | 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.rewrite_tactic init.meta.simp_tactic
import init.meta.smt.congruence_closure init.category.combinators
import init... |
020de13962ff645daf89f684d566065fed7602da | 9060db28f6353f040da7481ea5ebcdac426589ff | /folklore/categories.lean | 5cb99e089b306f500b4736cc2f4e1ad2df72f34c | [] | no_license | picrin/formalabstracts | 9ccd859fb34a9194fa5ded77ab1bc734ababe194 | 8ebd529598cfc8b6bd02530dd21b7bf3156de174 | refs/heads/master | 1,609,476,202,073 | 1,500,070,922,000 | 1,500,070,922,000 | 97,234,461 | 0 | 0 | null | 1,500,037,389,000 | 1,500,037,389,000 | null | UTF-8 | Lean | false | false | 927 | lean | -- a random selection of facts about category theory, to be
-- fleshed out.
structure category :=
(obj : Type)
(hom : obj → obj → Type)
(id : Π (A : obj), hom A A)
(compose : Π {A B C : obj}, hom B C → hom A B → hom A C)
local infix ∘ := category.compose _
definition monomorphism {C : category} {X Y ... |
3e55d431198c6ce967a355598b80ca362c060615 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/category/CommRing/colimits.lean | 89796af4d3452f88f872b7e4377f0716ad7b6b9f | [
"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 | 12,781 | 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
import category_theory.limits.limits
import category_theory.limits.concrete_category
/-!
# The category of commutative rings h... |
62961070ab2dec6391c657c3c89996790b641bff | 4da0c8e61fcd6ec3f3be47ee14a038850c03d0c3 | /src/s5/semantics/lemmas.lean | 347008455febbc17ac0a955017d059ae03a671a2 | [
"Apache-2.0"
] | permissive | bbentzen/mpl | fcbea60204bc8fd64667e0f76a5cebf4b67fb6ca | bb5066ec51fa11a4b66f440c4f6c9a3d8fb2e0de | refs/heads/master | 1,625,175,849,308 | 1,624,207,634,000 | 1,624,207,634,000 | 142,774,375 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,284 | lean | /-
Copyright (c) 2018 Bruno Bentzen. All rights reserved.
Released under the Apache License 2.0 (see "License");
Author: Bruno Bentzen
-/
import .basic
open form classical
variable {σ : nat}
/- general facts about non-modal logical constants -/
lemma neg_tt_iff_ff {M : model} {w : wrld σ} {p : form σ... |
ed0091de2325326b9bcc3c027a0f6f14d5d2127a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/order_of_element.lean | 2f1065af425db5e037fee6d8f4e004055b9a2cb8 | [
"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 | 42,299 | 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, Julian Kuelshammer
-/
import algebra.gcd_monoid.finset
import algebra.hom.iterate
import data.int.modeq
import data.set.pointwise.basic
import data.set.intervals.infini... |
b2523123417c2663569c3437a5d75ec078e9ef16 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/antichain.lean | 38add3e0108163656f7347d2ce406e158e0b937d | [
"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,090 | 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.set.pairwise
/-!
# Antichains
This file defines antichains. An antichain is a set where any two distinct elements are not related.
If the relation is `(≤)`,... |
be641efc381ccdad6326288e34cca60a302cc6b8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/closed/zero.lean | 73fbe508f9cc5b115223a365b79e8636769144fa | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,213 | 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.closed.cartesian
import category_theory.punit
import category_theory.conj
import category_theory.limits.shapes.zero_objects
/-!
# A cartesian clo... |
ff812d4c3f2679b8241fff0585f79f09c22e2f2e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/geometry/manifold/algebra/monoid.lean | 9e2f1b77043f3f2987005ffdcd34d187d6f4680c | [
"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 | 11,074 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.times_cont_mdiff_map
/-!
# Smooth monoid
A smooth monoid is a monoid that is also a smooth manifold, in which multiplication is a smooth ... |
ed3c10989217d1835d4a122d66492a4b66f5eaa6 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/polynomial/degree/trailing_degree.lean | 56d057c9b1264235f4afad52eda1f3412b830b39 | [
"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 | 13,153 | 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.polynomial.degree.definitions
/-!
# Trailing degree of univariate polynomials
## Main definitions
* `trailing_degree p`: the multiplicity of `X` in the p... |
232c759f728c71049abadda406ccbd5f1fb0be1e | 3f1a1d97c03bb24b55a1b9969bb4b3c619491d5a | /leanpkg/leanpkg/main.lean | f9916bd2a31823846724ae2a63ccf25ea36f5e1b | [
"Apache-2.0"
] | permissive | praveenmunagapati/lean | 00c3b4496cef8e758396005013b9776bb82c4f56 | fc760f57d20e0a486d14bc8a08d89147b60f530c | refs/heads/master | 1,630,692,342,183 | 1,515,626,222,000 | 1,515,626,222,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,210 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.resolve leanpkg.git
variable [io.interface]
namespace leanpkg
def write_file (fn : string) (cnts : string) (mode := io.mode.write) : io unit := ... |
54d7120987defe7b57e9337df34019ef655e41f5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/divisibility/basic.lean | 79400687391e879d3beba75de420deca2b5e38bd | [
"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 | 4,725 | 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, Amelia Livingston, Yury Kudryashov,
Neil Strickland, Aaron Anderson
-/
import algebra.hom.group
/-!
# Divisibility
This file defin... |
bcbcbc625457b302410f48d3284693234d0ce106 | 439bc6c3e74a118aa51df633b8e1f24415804d86 | /functor.lean | 51d2eee5273e9f74b54039f28577cf6704c1dcae | [] | no_license | jcommelin/lt2019_slides | 4ca498db02b5187c5778c21b985126d52d260696 | 3234cd92920d3d4321cc2cef78b48e5fa55be413 | refs/heads/master | 1,586,718,101,957 | 1,546,930,855,000 | 1,546,930,855,000 | 162,697,592 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 419 | lean | structure functor (C : Type u₁) [category.{v₁} C]
(D : Type u₂) [category.{v₂} D] :
Type (max u₁ v₁ u₂ v₂) :=
(obj : C → D)
(map : Π {X Y : C}, (X ⟶ Y) → ((obj X) ⟶ (obj Y)))
(map_id' : ∀ (X : C), map (𝟙 X) = 𝟙 (obj X) . obviously)
(map_comp' : ∀ {X Y Z : C} (f : X ⟶ Y) (g : Y ⟶ Z),
... |
bcac54c938698b3767908c0a354814360db7fae5 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/types/equiv.hlean | 5c850e995555de48b0d2fcc91247ea8a94c12ddd | [
"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 | 4,102 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: types.equiv
Author: Floris van Doorn
Ported from Coq HoTT
Theorems about the types equiv and is_equiv
-/
import types.fiber types.arrow arity
open eq is_trunc sigma sigma.ops arro... |
332bd1cb18c227b40e6d598b9a013604533964e4 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/apply4.lean | 6a83d1caf7ef66f78be4f9475b70a5bee65e1905 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,055 | lean | open tactic bool
universe variables u
constant foo {A : Type u} [inhabited A] (a b : A) : a = default A → a = b
example (a b : nat) : a = 0 → a = b :=
by do
intro `H,
apply (expr.const `foo [level.of_nat 0]),
trace_state,
assumption
definition ex : inhabited (nat × nat × bool) :=
by apply_instance
set_option... |
80bc2fc28a9d83bb9cf6114674f0cc5489b3bd6f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/isomorphism_classes.lean | 95ddbd5a6b4a60a0ffc92789cd1ec5b669451965 | [] | 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,446 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.category.Cat
import Mathlib.category_theory.groupoid
import Mathlib.PostP... |
97a1279072a0571987b6b602a165a42424a3f8b9 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/443.hlean | b533b7a303dcae43f55ab89b3f045f4a41372ae6 | [
"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 | 330 | hlean | import algebra.group algebra.category
open eq sigma unit category algebra
section
parameters {P₀ : Type} [P : precategory P₀]
structure my_structure := (a : P₀) (b : P₀) (f : @hom P₀ P a b)
include P
structure another_structure (X : my_structure) := (field1 : hom (my_structure.a X) (my_structure.a X))
end
|
b1d006c64d53bb57850811c11967430e7b92f636 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-73.lean | 3aef05fe227ac5a1ea9d33bf1237646193b04207 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 320 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.complex.basic
import data.real.basic
example (p q r x : ℂ) (h₀ : (x - p) * (x - q) = (r - p) * (r - q)) (h₁ : x ≠ r) : x = p + q - r :=
begin
sorry
end
|
527b73619e037db287afe3559bfe40b5078bf379 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Exception.lean | bb2a5eb24ef7676b94d576d4bb7493777e4f9e15 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 6,398 | 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.Message
import Lean.InternalExceptionId
import Lean.Data.Options
import Lean.Util.MonadCache
namespace Lean
/-- Exception type used in most Le... |
d3cd2045db6319cad6b83a26668c192978b0361f | d331cb2a1798ec5004914bde4d9facf4e7f2efed | /src/sperner.lean | 7e642c4c4998e1b1baa0d51273729a0a7bb89165 | [] | no_license | CBirkbeck/FLTreg | cf56faf9ac004aeaafc6c004c18de2fdd62c193e | 1ae10cbb1b0a07ca1d0c3c8da972d81f8c72be72 | refs/heads/main | 1,693,643,959,724 | 1,635,176,944,000 | 1,635,176,944,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,046 | lean | import tactic
import data.set.finite
import data.real.basic
import data.real.ereal
import linear_algebra.affine_space.independent
import analysis.convex.basic
import topology.sequences
noncomputable theory
open set affine topological_space
open_locale affine filter big_operators
variables {V : Type*} [add_comm_grou... |
62ca6ceb34c25d43cce1b6b150bb82b124088af7 | dfd42d30132c2867977fefe7edae98b6dc703aeb | /src/bilin_form_lemmas.lean | 3ed67a68c853eef87241853d39f64140c91aedca | [] | no_license | justadzr/lean-2021 | 1e42057ac75c794c94b8f148a27a24150c685f68 | dfc6b30de2f27bdba5fbc51183e2b84e73a920d1 | refs/heads/master | 1,689,652,366,522 | 1,630,313,809,000 | 1,630,313,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,498 | lean | import linear_algebra.bilinear_form
import analysis.normed_space.inner_product
noncomputable theory
open submodule bilin_form
open_locale real_inner_product_space classical
section bilin_form_eq
variables {E F : Type*} [inner_product_space ℝ E] [inner_product_space ℝ F]
[complete_space E]
lemma bilin_form_sub_di... |
1ad58d9e7bab23dd52c45aae4321e80cc7b199ef | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/with_bot.lean | cf242a21faec832cdf77a4c531a9b0c5693f539a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,486 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.order.basic
import algebra.order.monoid.with_top
/-!
# `with_bot ℕ`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corr... |
56ab6e0bc6a5f5153f6c75373c9ceec1f419efb6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/inner_product_space/calculus.lean | 99a5cbfa254013f7a8fb9f3d8e043ac244926355 | [
"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 | 15,342 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.inner_product_space.pi_L2
import analysis.special_functions.sqrt
/-!
# Calculus in inner product spaces
In this file we prove that the inner produ... |
afc48624a3dddc418ce8c75d16847311d8507295 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/KeyedDeclsAttribute.lean | e1cfe3b6bc875d9202c829d92a92bc667734f97c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 7,248 | 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.Attributes
import Lean.Compiler.InitAttr
import Lean.ToExpr
import Lean.ScopedEnvExtension
import Lean.Compiler.IR.CompilerM
... |
1f949d18cd8849369e8109d9942efbd2ab21cfe8 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/squarefree.lean | d3dfa30d5e55c6c5365a2f010e0e06ed3854d9ed | [
"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 | 7,100 | 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 ring_theory.unique_factorization_domain
/-!
# Squarefree elements of monoids
An element of a monoid is squarefree when it is not divisible by any squares
exce... |
ed4ab4907d955f22922036a02e6f4bfc2b1c8453 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Data/RBTree.lean | 4fd618f37dceb643b763c51bc48c02fec5a63d37 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 202 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.RBTree.Basic
|
fc8e7b6e6a85367fb55d7a3f6b7c020af423c12c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/seq/computation.lean | ce1cbf7a1dc5c6df2f263faa0d275718ec029a5c | [
"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 | 37,949 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Coinductive formalization of unbounded computations.
-/
import data.stream
import tactic.basic
universes u v w
/-
coinductive computation (α : Type u) : Type u... |
0fa5d0357e8bd6d147895a181889a5d6ff2390a3 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/abstract_forcing.lean | 59226a51f092c789bcb6ab8dfef3fb82fc358811 | [
"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 | 3,582 | lean | /- The formalism of forcing, following Justin Moore's notes -/
import order.bounded_lattice tactic order.complete_boolean_algebra set_theory.zfc .to_mathlib
open lattice
universe u
@[class]def forcing_notion (α : Type u) : Type u := order_top α
-- @[instance]def has_top_forcing_notion (α : Type u) [H : forcing_not... |
d86cc97cf92c2b59ff5187082e2696b37a05ce41 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/bool.lean | 98f38e76d9648f5bf102fe2dc990cb98dafbdf3c | [
"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,855 | 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, Jeremy Avigad
-/
/-!
# booleans
This file proves various trivial lemmas about booleans and their
relation to decidable propositions.
## Notations
This fil... |
c796e211897fa130602c89b1bd5e271c5ee8f5ba | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Config/Monad.lean | e9eb16903c295880dec265e614099f924690ceb8 | [
"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 | 6,721 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lake.Config.Context
import Lake.Config.Workspace
open System
open Lean (Name)
/-! # Lake Configuration Monads
Definitions and helpers for interacting with the Lake c... |
0cff76214406e156ddc2f2f2db791f7f5987b8e0 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/nat/psub.lean | 942a40868d245b3ca44cdf35105a6aebd27e6753 | [
"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 | 2,813 | 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.nat.basic
/-!
# Partial predecessor and partial subtraction on the natural numbers
The usual definition of natural number subtraction (`nat.sub`) returns... |
2788c42dc4cc3be117882a431a6ff333a4e7a13f | 682dc1c167e5900ba3168b89700ae1cf501cfa29 | /src/del/semantics/complexitylemmas.lean | df637749ea9550edb5db6af92613bd9f047d6afa | [] | no_license | paulaneeley/modal | 834558c87f55cdd6d8a29bb46c12f4d1de3239bc | ee5d149d4ecb337005b850bddf4453e56a5daf04 | refs/heads/master | 1,675,911,819,093 | 1,609,785,144,000 | 1,609,785,144,000 | 270,388,715 | 13 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 18,364 | lean | /-
Copyright (c) 2021 Paula Neeley. All rights reserved.
Author: Paula Neeley
Following the textbook "Dynamic Epistemic Logic" by
Hans van Ditmarsch, Wiebe van der Hoek, and Barteld Kooi
-/
import del.semantics.translationdefs tactic.linarith
variables {agents : Type}
---------------------- Generic helper lemmas -... |
ff2c5da3a829ce541b33284e9e27aa7e11d43afa | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/metric_space/closeds.lean | 80953399423ac02d55f3a450ab8c0c606b63518a | [
"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 | 21,256 | 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
-/
import topology.metric_space.hausdorff_distance
import analysis.specific_limits
/-!
# Closed subsets
This file defines the metric and emetric space structure o... |
46384a204b4f6319545759caa39398ea9b867a3a | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/order/filter/filter_product.lean | c3dab0e950193fdc8f741e230163196543d4280a | [
"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 | 8,259 | lean | /-
Copyright (c) 2019 Abhimanyu Pallavi Sudhir. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abhimanyu Pallavi Sudhir
-/
import order.filter.ultrafilter
import order.filter.germ
import algebra.pi_instances
/-!
# Ultraproducts
If `φ` is an ultrafilter, then the spac... |
cbd2dd13c27e6b081dfccf5d4438c70ab68a98f8 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_10_false_and_negation.lean | 356c3cf9b6f5dc97ffe0efe31252afe25d2f4ab9 | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,419 | lean | variables p q r : Prop
namespace mth1001
section false_and_negation
/-
`false` is the name of a special proposition from which we can derive anything.
In ordinary mathematics, `false` is written `⊥` and is referred to as an
'arbitrary contradiction' or sometimes just 'contradiction'.
The tactic `exfalso` is used ... |
9f996e2c03f2b35b5b837c23bc9c2df224ed2841 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/hom/centroid.lean | f074ac30ecd293c8b7eebc62d6ae00d77e2513aa | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 12,744 | 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, Christopher Hoskin
-/
import algebra.group_power.lemmas
import algebra.hom.group_instances
/-!
# Centroid homomorphisms
Let `A` be a (non unital, non associative) algebra... |
ce7362c8aa022390f6f39e34f76949a9a23b36c7 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /tests/lean/run/class8.lean | fb3e3fd02c30fd92400c98b14c09766ccfdc7674 | [
"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 | 1,077 | lean | import logic data.prod
open tactic prod
inductive inh [class] (A : Type) : Prop :=
intro : A -> inh A
attribute inh.intro [instance]
theorem inh_elim {A : Type} {B : Prop} (H1 : inh A) (H2 : A → B) : B
:= inh.rec H2 H1
theorem inh_exists {A : Type} {P : A → Prop} (H : ∃x, P x) : inh A
:= obtain w Hw, from H, inh.in... |
a74d23c6a1aa1a921e9e3ae100f0c52b6c2e2dac | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/linear_algebra/finsupp_vector_space.lean | 77ecdbb3375dc0a567a47cf7cd52363de31c8201 | [
"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 | 7,445 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Linear structures on function with finite support `ι →₀ β`.
-/
import data.mv_polynomial
import linear_algebra.dimension
import linear_algebra.direct_sum.finsupp
noncom... |
4e2c45f2c563bb0aa3a50c5f235437807440ea82 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/logic/equiv/embedding.lean | ef8d3c64aa9cb65e4e0bc3e5501377cb40e0a06e | [
"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 | 3,859 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import logic.embedding.set
/-!
# Equivalences on embeddings
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to math... |
6024b0fd5edd3fc7a8b945c29307bace20547fba | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/645a.lean | d218fbd1adc0d08417481110b25dcc74671838d8 | [
"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 | 517 | lean | open bool
definition to_pred {A : Type} (p : A → bool) : A → Prop :=
λ a, p a = tt
definition to_pred_dec₁ [instance] {A : Type} (p : A → bool)
: decidable_pred (to_pred p) :=
begin
intro a, unfold to_pred,
induction p a,
right, contradiction,
left, reflexivity
end
definition to_pred_dec₂... |
90c19fb15e5f98620271c3d5611b7b3ee4a715c3 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/PointedPlusMagma.lean | 9d655e2cc9c93850a7c28d42a2cb1a66ecde978c | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,976 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section PointedPlusMagma
structure PointedPlusMagma (A : Type) : Type :=
(plus : (A → (A → A)))
(e : A)
open PointedPlusMagma
structure Sig (AS : Type) : Type ... |
9b1b65dfea611aadd034c1503cf4b32a86187404 | 137c667471a40116a7afd7261f030b30180468c2 | /src/measure_theory/lp_space.lean | 99f400ce73a8e4c0006095440702226f0f0e65b2 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 95,523 | 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 measure_theory.ess_sup
import measure_theory.ae_eq_fun
import measure_theory.mean_inequalities
import topology.continuous_function.compact
impor... |
0693227572c3e55c6f91521eed7d8292e069d324 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/projective_space/independence.lean | 201eb9155d0507fe944293e2a381171726fbd17f | [
"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,757 | lean | /-
Copyright (c) 2022 Michael Blyth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Blyth
-/
import linear_algebra.projective_space.basic
/-!
# Independence in Projective Space
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a c... |
f9989613aa5bad9d296746eee78d8035eb8cb201 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1224.lean | ca4e7477799969c7e44d05512b3d672420fc5ce1 | [
"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 | 462 | lean | import Lean
set_option autoImplicit false
namespace Foo.Bar
abbrev Bar := Nat
end Foo.Bar
open Foo Bar in
def myNat1 : Bar := 10 -- good
namespace Bar
end Bar
open Foo Bar in
def myNat2 : Bar := 10
open Foo.Bar in
def myNat3 : Bar := 10 -- good
open Foo Bar in
def myNat4 : Bar.Bar := 10 -- good
section
open Lean... |
ca0c7accef7440cd36f6b9590140fc337b309e7b | 54deab7025df5d2df4573383df7e1e5497b7a2c2 | /algebra/group.lean | 0e048ed39bfdd9f9a232cba0a8190eef190006c6 | [
"Apache-2.0"
] | permissive | HGldJ1966/mathlib | f8daac93a5b4ae805cfb0ecebac21a9ce9469009 | c5c5b504b918a6c5e91e372ee29ed754b0513e85 | refs/heads/master | 1,611,340,395,683 | 1,503,040,489,000 | 1,503,040,489,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,619 | 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
Various multiplicative and additive structures.
-/
universe variable u
variable {α : Type u}
section group
variable [group α]
variable (α)
theo... |
b5c57e73cc539212ad63a30ffdb2939fb8db6fbe | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group/pi_auto.lean | ae917f0e9b285865db6f7394a2643b221c4e3649 | [] | 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,637 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.pi
import Mathlib.tactic.pi_instances
import Mathlib.algebra.group.defs
impo... |
466272c1138aa18c49e5b26bf7ec5ce380cfb17d | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/integral/circle_integral.lean | 9ae1dcff760957940643bad1eec8c41120d4286a | [
"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 | 30,652 | 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 measure_theory.integral.interval_integral
import analysis.normed_space.pointwise
import analysis.special_functions.non_integrable
import analysis.analytic.ba... |
bfa0ff0af680fa177a15c291359d2b4a49359557 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/finset/order.lean | 28aeebda785d71bb988943a242d21c45242c636f | [
"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 | 712 | lean | import data.finset.basic
universes u v w
variables {α : Type u}
theorem directed.finset_le {r : α → α → Prop} [is_trans α r]
{ι} [hι : nonempty ι] {f : ι → α} (D : directed r f) (s : finset ι) :
∃ z, ∀ i ∈ s, r (f i) (f z) :=
show ∃ z, ∀ i ∈ s.1, r (f i) (f z), from
multiset.induction_on s.1 (let ⟨z⟩ := hι in ⟨z,... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.