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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
65d12bd5b35e5b1421e1364386bc2634b386af3d | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/tactic/omega/term.lean | 1b56e9e3c781bb1ae84ed4a94c60017cf0ddd292 | [
"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 | 2,321 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Normalized linear integer arithmetic terms.
-/
import tactic.omega.coeffs
namespace omega
def term : Type := int Γ list int
namespace term
@[simp] def val (v : nat β int) : t... |
bd8e875c83a689fe73c1a22887ab6d50812eeecf | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/comma.lean | 565b97bfe6458a864a926b97d5437651f027e221 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,217 | lean | /- Author: E.W.Ayers
This should be in mathlib. Some simp and extensionality lemmas for comma and over. -/
import category_theory.comma
namespace category_theory
section
universes vβ vβ vβ uβ uβ uβ -- declare the `v`'s first; see `category_theory.category` for an explanation
variables {A : Type uβ} [π : category... |
cdd791c230ecc662c4dad4b819af873499d23b1b | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/group_power/basic.lean | 458ff6a9e4a573630ddc36b645b0e05f2a1513f1 | [
"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 | 22,518 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.ordered_ring
import deprecated.group
/-!
# Power operations on monoids and groups
The power operation on monoids and groups.
We separa... |
dd39b9c7660d0a4977d8ba0165902d4ecfadbcb1 | 60bf3fa4185ec5075eaea4384181bfbc7e1dc319 | /src/game/limits/L01defs.lean | 3abce0be188765770ba63e6994b213073280c88c | [
"Apache-2.0"
] | permissive | anrddh/real-number-game | 660f1127d03a78fd35986c771d65c3132c5f4025 | c708c4e02ec306c657e1ea67862177490db041b0 | refs/heads/master | 1,668,214,277,092 | 1,593,105,075,000 | 1,593,105,075,000 | 264,269,218 | 0 | 0 | null | 1,589,567,264,000 | 1,589,567,264,000 | null | UTF-8 | Lean | false | false | 2,254 | lean | import game.sets.L01defs
import data.real.basic
import tactic.linarith
namespace xena -- hide
notation `|` x `|` := abs x -- hide
lemma zero_of_abs_lt_all (x : β) (h : β Ξ΅ > 0, |x| < Ξ΅) : x = 0 :=
eq_zero_of_abs_eq_zero $ eq_of_le_of_forall_le_of_dense (abs_nonneg x) $ Ξ» Ξ΅ Ξ΅_pos, le_of_lt (h Ξ΅ Ξ΅_pos)
-- begin hide
-... |
a3b6a71f1f919c07f4dd3f5834f186b1ef809f89 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_lean_summary/unnamed_177.lean | 072884aaf616dbe60460cd2a73df18792a84d6fc | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 100 | lean | variables p q : Prop
-- BEGIN
example (hβ : p) (hβ : q) : p β§ q :=
and.intro hβ hβ
-- END |
a9bbb0ff3d3ca52a20be701344bf53195e9ae738 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/data/real/nnreal.lean | d1a45656a45e8c330e29b57e1613f43d3e51dbae | [
"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 | 28,154 | 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.linear_ordered_comm_group_with_zero
import algebra.big_operators.ring
import data.real.basic
import data.indicator_function
/-!
# Nonnegative real num... |
e25aa2114191dfe0a5f106f9540129474366f380 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/list/nodup_equiv_fin.lean | 9248232431b5c4809271a9857da3b659d283cb2d | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,249 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import data.list.sort
import data.list.duplicate
import data.fin
/-!
# Isomorphism between `fin (length l)` and `{x // x β l}`
Given a list `l,
* if `l` ha... |
1d89e9441a7429a35d456fc62b055f9d49b9d925 | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world10/level6.lean | 4760a69f60f063e5f3e7a1b472cb26799d5363bf | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 842 | lean | import game.world10.level5 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 6: `le_antisymm`
In Advanced Addition World you proved
`eq_zero_of_add_right_eq_self (a b : mynat) : a + b = a β b = 0`.
This might be useful in this level.
-/
/- Lemma
β€ is antisymmetric. In other words, if a β€ b and b β€... |
2ab1357fc8d8ebeae06e5b0c06978f6b0c9a1a63 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/substvars1.hlean | 8da6f0e1b30468232cfef9d8db611afd175a3dfa | [
"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 | 991 | hlean | open nat
example (A B : Type) (a : A) (b : B) (hβ : A = B) (hβ : eq.rec_on hβ a = b) : b = eq.rec_on hβ a :=
begin
substvars
end
example (A B : Type) (a : A) (b : B) (hβ : A = B) (hβ : eq.rec_on hβ a = b) : b = eq.rec_on hβ a :=
begin
substvars
end
example (a b c : nat) (a0 : a = 0) (b1 : b = 1 + a) (ab : a = b)... |
f3440a4fda84fd60cd2471719426061db16c3160 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/category_theory/abelian/basic.lean | 71327bfbef85f4fcc4a1f45881924ed56bcd6319 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 22,064 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.constructions.pullbacks
import category_theory.limits.shapes.regular_mono
import category_theory.limits.shapes.biproducts
import c... |
0e06ec34cd8201c209978fe8b246a097e4461c69 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/match3.lean | e44603ab1149a6c35c081dc709392402b457e26c | [
"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 | 2,275 | lean | def f (x : Nat) : Nat :=
match x with
| 30 => 31
| y+1 => y
| 0 => 10
#eval f 20
#eval f 0
#eval f 30
universe u
theorem ex1 {Ξ± : Sort u} {a b : Ξ±} (h : a β
b) : a = b :=
match Ξ±, a, b, h with
| _, _, _, HEq.refl _ => rfl
theorem ex2 {Ξ± : Sort u} {a b : Ξ±} (h : a β
b) : a = b :=
match a, b, h with
| _, _, HEq.re... |
d9f0653469c1fa108ccd752836d423463fcb3a99 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/divisibility.lean | dbbcc8faaef3434f60fca2cd620d5a2dd8c28b94 | [
"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 | 8,521 | 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.group_with_zero
/-!
# Divisibility
This file... |
bb7a26abea4b1b7b72b6e8af8e26a9c7cff76ce2 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/quotient/default.lean | 9c1431474222e718124dfee05512b11c43b005ab | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 180 | lean | --- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad
import .basic
|
74d6e067111c1c2c0fc746ba1d30f18fcb5f1643 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/ordered_field.lean | 994465106ba935669e8504ffa9d13aaa01db13da | [
"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 | 9,393 | 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 : Ξ±}
lemma div_pos : 0 < a β 0 < b β ... |
2a7ba90651196c798da48d21942465212eefea23 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/ring/prod_auto.lean | 1f44fd9d8d537c713178476e7d70b21910af7f6b | [] | 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 | 6,381 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Chris Hughes, Mario Carneiro, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.prod
import Mathlib.algebra.r... |
335e218723c6424d8b86941080253ac482013253 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/nat/totient.lean | 779fdb641d326a4e574b6b9d6d79231f67b8706b | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 3,591 | 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 algebra.big_operators.basic
open finset
open_locale big_operators
namespace nat
def totient (n : β) : β := ((range n).filter (nat.coprime n)).card
localized "n... |
cb245d5b99fc96ba8301af58e24397de9bff4d9a | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/data/complex/basic.lean | 4454e5c72e2050297698fcb743bcc9d2053a36ad | [] | no_license | AHassan1024/Lean_Playground | ccb25b72029d199c0d23d002db2d32a9f2689ebc | a00b004c3a2eb9e3e863c361aa2b115260472414 | refs/heads/master | 1,586,221,905,125 | 1,544,951,310,000 | 1,544,951,310,000 | 157,934,290 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,366 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
The complex numbers, modelled as R^2 in the obvious way.
-/
import data.real.basic tactic.ring algebra.field
structure complex : Type :=
(re : β) (im : β... |
8f50bc2230dc9610d26327fe4f7ece9e3569a011 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/lie/free.lean | 0b36d3392daa63424ea062440be46855bf90840c | [
"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 | 10,937 | 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 algebra.lie.non_unital_non_assoc_algebra
import algebra.lie.universal_enveloping
import algebra.free_non_unital_non_assoc_algebra
... |
53618e34898b110c55c265bf89a904e58d420123 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/group_theory/sylow.lean | 9dddbbd8ee8689ba9138a5bf4ea582bcb9a5ce19 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,169 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Thomas Browning
-/
import group_theory.p_group
/-!
# Sylow theorems
The Sylow theorems are the following results for every finite group `G` and every prime number `p`.
... |
12413fb33054b4b8aaf0575178efa4f605ce2fd8 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/add_semi.lean | 3a9d504491787af7497b6e1e12d823ba2cf3d119 | [
"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 | 553 | lean | class add_semigroup (A : Type*) extends has_add A :=
(add_assoc : β a b c : A, a + b + c = a + (b + c))
class add_comm_semigroup (A : Type*) extends add_semigroup A :=
(add_comm : β a b : A, a + b = b + a)
section
universe variables u
variable {A : Type u}
example [add_semigroup A] (a : A) : a + a = a + a := rf... |
e744f4fc5a7676fd06565b2ef81578b5e07d82c1 | 0851884047bb567d19e188e8f1ad959c5ae9c5ce | /src/Topology/Material/connected_spaces.lean | e0b930918f0f8e7662f82430acd91b5a516a38fe | [
"Apache-2.0"
] | permissive | yz5216/xena-UROP-2018 | 00d3f71a831324966d40d302544ed2cbbec3fd0f | 5e9da9dc64dc51897677f8b73ab9f94061a8d977 | refs/heads/master | 1,584,922,436,989 | 1,531,487,250,000 | 1,531,487,250,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,663 | lean | import analysis.topology.topological_space
import analysis.topology.continuity
import data.set.basic
import logic.basic
open set filter lattice classical
local attribute [instance] prop_decidable
universe u
variables {Ξ± : Type u} {Ξ² : Type u} {Ξ³ : Type u} {Ξ΄ : Type u}
section
variables [t : topological_space Ξ±]
i... |
ee34485ab61dc5375dbeecb806ed932bc841d962 | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /analysis/topology/topological_structures.lean | 300d4843d5a00ae7600263509bfdc2fce10bd064 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,030 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl
Theory of topological monoids, groups and rings.
-/
import algebra.big_operators
analysis.topology.topological_space analysis.topology.continuity analysis.topology.u... |
702e6acd5fd1ebad069dbf474ee8e31200ab859d | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/level.lean | 9ac1bb604282046ecec961f238d0387022f8e121 | [
"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 | 2,139 | 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.name init.meta.format
/-- A type universe term. eg `max u v`. Reflect a C++ level object. The VM replaces it with the C++ implemen... |
5d01bcb960214d6723f74d349dd32110cb004357 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/units.lean | 8ce1f48f292e1510a084dfdfebf934534c97fea0 | [
"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 | 250 | lean | import algebra.ring.units
/--
Test division of units in a commutative ring.
Used to cause `simp` (i.e. instance resolution) to time out.
-/
example (R : Type*) [comm_ring R] (a b : RΛ£) : a * (b / a) = b :=
by simp
-- Or: `rw mul_div_cancel'_right`
|
b997bb7e3a4442f804aeb1843bd9e9150098bb24 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/category_theory/whiskering.lean | 9a1bb145ee9c11cb37e6299b85ab29117527482b | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 7,222 | 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]
... |
a60c06f5c5bc3a79c22b1b471a87c822ecc10106 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/monotonicity/default.lean | 2bfdaa80557ed864f6510f53d7ba839234c3ac32 | [] | 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 | 340 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.monotonicity.interactive
import Mathlib.tactic.monotonicity.lemmas
import Mathlib.PostPort
... |
729d64b81a4e2963853be6374de6fd287f12b633 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/has_variable_names.lean | 65064018474087010dd45214d3c81ae63ec99bf1 | [
"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,968 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.core
/-!
# A tactic for type-based naming of variables
When we name hypotheses or variables, we often do so in a type-directed fashion:
a hypothesis ... |
1966d1dbe3b445bf9cf6d8227aef4909bea609a5 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/hole1.lean | 0cbe0acdfd6f23739d774a6fa28a130c15fe13ee | [
"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 | 156 | lean | example : β a b : nat, a + b = b + a :=
Ξ» a b, {! _+_ !}
example : β a b : nat, a + b = b + a :=
begin
intros h,
exact Ξ» x, {! _+_, "lt" !}
end
|
e7270f460963b23237d8f84b55eb86e8c23cfc4f | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/exercises/src_17_even_odd_further.lean | fb157e43869241294f8b77642761b4ca99070333 | [] | 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 | 1,099 | lean | import .src_13_applications_to_even_and_odd
namespace mth1001
section even_odd_further
/-
We round of this part of the module by proving a further series of results on even and odd numbers.
We begin with a relatively straightforward result.
-/
-- Exercise 093:
example : β m n, odd (m + n) :=
begin
sorry
end
... |
20b8c1a051da7396f465cdac49bd9769901eb3b6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/number_theory/kummer_dedekind.lean | 04577ebe052922f1128a218bb7e97a67c6318e03 | [
"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,676 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Paul Lezeau
-/
import ring_theory.adjoin_root
import ring_theory.dedekind_domain.ideal
import ring_theory.algebra_tower
/-!
# Kummer-Dedekind theorem
This file proves the ... |
a0a003f8e434837c8696ca5f290080d1fd25c2ed | 92b50235facfbc08dfe7f334827d47281471333b | /tests/lean/slow/path_groupoids.lean | 540b86ef36c89280cf59f95e589fcea0f0e3815b | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 24,764 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jeremy Avigad
-- Ported from Coq HoTT
definition id {A : Type} (a : A) := a
definition compose {A : Type} {B : Type} {C : Type} (g : B β C) (f : A β B) := Ξ» x, g (f x)
infi... |
a7d7810bbdb550d947360bb0468b97f3ba242b91 | 159d60de9b76d6925aabe9aa8851dab739f7ad5e | /mathematica.lean | 5e48cbaf00ce6c45e629b2a59e22bb61f0ebf5f7 | [] | no_license | minchaowu/mathematica | af6dfc779cd31a0e68e065ffb6e3570c23ccfbbe | f05940fc4de8ea371fab36d0db0aaa73f7e75be5 | refs/heads/master | 1,609,628,681,490 | 1,504,720,495,000 | 1,504,720,495,000 | 99,462,100 | 0 | 0 | null | 1,504,720,496,000 | 1,501,990,362,000 | Lean | UTF-8 | Lean | false | false | 29,086 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import .mathematica_parser system.io
open expr string level name binder_info
namespace list
variables {Ξ± Ξ² : Type}
universes u v w
def for : list ... |
b6a6c6043c9d43f5174edaba0ecbe13b1c43b95b | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/whiskering.lean | 9dc645734c77752cc350041719dea9072b802664 | [
"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 | 7,077 | 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]
... |
8b08c2c4d7a87e7dce8f646098a93728b6b98999 | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/grothendieck.lean | 65bfd1f53a562c3e92e56d20980327702cd432ee | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 9,099 | lean | /- Author: E.W.Ayers.
This section roughly follows Chapter 3, Β§1, Β§2 of Sheaves in Geology and Logic by Saunders Maclane and Ieke M.
-/
import sieve
import category.pullbacks
universes u v w
namespace category_theory
open category_theory limits order lattice
/-- A set of sieves for every object in the category:... |
d8c1411e07d2c7c0cef10b6add1254626010c0fb | c61b91f85121053c627318ad8fcde30dfb8637d2 | /Chapter5/5-5to6.lean | f4ea1eb115457196c6d03694f09b415263e3a1a6 | [] | no_license | robkorn/theorem-proving-in-lean-exercises | 9e2256360eaf6f8df6cdd8fd656e63dfb04c8cdb | 9c51da587105ee047a9db55d52709d881a39be7a | refs/heads/master | 1,585,403,341,988 | 1,540,142,619,000 | 1,540,142,619,000 | 148,431,678 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,960 | lean | section
example (p q : Prop) (hp : p) : p β¨ q :=
begin left, assumption end
example (p q : Prop) (hqp : q β¨ p) : p β¨ q :=
begin
cases hqp with hq hp,
right, assumption,
left, assumption,
end
example (p q : Prop) (hqp : q β§ p) : p β§ q :=
begin
cases hqp with hq hp,
split; assump... |
12cf54ff05bd6419e375a26470a89ed39858558c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/computability/reduce.lean | e32cba2c57db6cd3547cfd21f92e73ecfb624940 | [] | 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 | 18,337 | lean | /-
Copyright (c) 2019 Minchao Wu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Minchao Wu, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.computability.halting
import Mathlib.PostPort
universes u_1 u_2 u_3 u v
namespac... |
c1a97f2878b7a908843101807722af70b8ee7256 | ea11767c9c6a467c4b7710ec6f371c95cfc023fd | /src/monoidal_categories/drinfeld_centre.1.lean | 34775a2d5ea98b89b010b2bc1ca236f9404cce03 | [] | no_license | RitaAhmadi/lean-monoidal-categories | 68a23f513e902038e44681336b87f659bbc281e0 | 81f43e1e0d623a96695aa8938951d7422d6d7ba6 | refs/heads/master | 1,651,458,686,519 | 1,529,824,613,000 | 1,529,824,613,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,855 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Stephen Morgan, Scott Morrison
import .drinfeld_centre
open categories
open categories.functor
open categories.products
open categories.natural_transformation
open categories.mo... |
5531ab6724650bbc4b5ebaada266e4f41ead8ceb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/parser/test1.lean | 92282cf45ed34a24562b29aa783cdf48b6d40e39 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,659 | lean | import parser
open Parser
def mkNumPairKind : IO SyntaxNodeKind := nextKind `numPair
@[init mkNumPairKind] constant numPairKind : SyntaxNodeKind := default _
def mkNumSetKind : IO SyntaxNodeKind := nextKind `numSet
@[init mkNumSetKind] constant numSetKind : SyntaxNodeKind := default _
def mkParenIdentKind : IO Synta... |
d2d6ebace546ed75395b68d47e48a2e82294a482 | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world08/level02.lean | 599cb6ceaf13d0afbeedd1831f86ee852f4728fa | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 123 | lean | theorem succ_succ_inj {a b : mynat} (h : succ(succ(a)) = succ(succ(b))) : a = b :=
begin
exact succ_inj(succ_inj(h)),
end
|
e314422126c912cd99295772b1e6983c218feee5 | 8cd4726d66eec7673bcc0325fed07d5ba5bf17c4 | /final.lean | 65af2c45a8e6ac2de879151f5926f5b251253c2e | [] | no_license | justinqcai/CS2102 | 8c5fddedffa6147fedd4b6ee7d5d39fc21f0ddab | d309f0db3f1df52eb77206ee1e8665a3b49d7a0c | refs/heads/master | 1,590,108,991,894 | 1,557,610,044,000 | 1,557,610,044,000 | 186,064,169 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,184 | lean | /-
Name:Justin Cai, jc5pz
This exam has 44 questions. Most are short, but you should
still move along. Don't get hung up for too long on any one
question. Most questions don't depend on other questions. A
good strategy is to make a pass over the exam, answer all of
the questions that are easy for you to answer, then... |
9f9102995ce892ce72c6c39a40f9c2cf8dd2f16d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/geometry/euclidean/triangle.lean | 6b7fd3c88264fd5050027fb1fbcc251e5f2d1d45 | [
"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,360 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Manuel Candales
-/
import geometry.euclidean.basic
import tactic.interval_cases
/-!
# Triangles
This file proves basic geometrical results about distances and angles
in (... |
8fd2ba9dd5d67a51bd7a5ce72e50d8b7332417f9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/list/to_finsupp.lean | be6a39ccf4be5967026d4c3ca32987c4e8eb8d95 | [
"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,439 | lean | /-
Copyright (c) 2022 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.finsupp.basic
/-!
# Lists as finsupp
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
... |
1902b09a2d8c0f361fe5f65849299337ac481e28 | ccb7cdf8ebc2d015a000e8e7904952a36b910425 | /src/misc.lean | 6960a8ad89cacade1a759a4fd2f6b8e939842da5 | [] | no_license | cipher1024/lean-pl | f7258bda55606b75e3e39deaf7ce8928ed177d66 | 829680605ac17e91038d793c0188e9614353ca25 | refs/heads/master | 1,592,558,951,987 | 1,565,043,356,000 | 1,565,043,531,000 | 196,661,367 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,786 | lean |
import data.list.basic
import tactic.linarith
namespace relation
def left_total {Ξ± Ξ²} (R : Ξ± β Ξ² β Prop) :=
β x, β y, R x y
def right_total {Ξ± Ξ²} (R : Ξ± β Ξ² β Prop) :=
left_total (flip R)
end relation
namespace punit
lemma punit_eq_iff (x y : punit) : x = y β true := by casesm* punit; simp
end punit
namespace ... |
7d3c8d889359cc023ac6a9d3d7c8ccde5e78ecea | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/direct_sum/ring.lean | fdf1ddaf985ef83c9606bd186435fa04cfff9021 | [
"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 | 21,336 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.subgroup.basic
import algebra.graded_monoid
import algebra.direct_sum.basic
import algebra.big_operators.pi
/-!
# Additively-graded multiplicative stru... |
d8714077150994d5613fbbc8ca4fed67b29972d7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/lie/skew_adjoint_auto.lean | 07861b19bf8babe12480c1e706aa8e2c2e94a571 | [] | 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 | 6,810 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.lie.basic
import Mathlib.linear_algebra.bilinear_form
import Mathlib.PostPort
universes ... |
9e51ffea480b8d4b23b2db8b37607643ef3123bb | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/MultUnaryAntiDistribution.lean | a8ac4b2422ea9d4ed5bcd7f6581609f5acea1538 | [] | 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 | 9,376 | 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 MultUnaryAntiDistribution
structure MultUnaryAntiDistribution (A : Type) : Type :=
(prim : (A β A))
(times : (A β (A β A)))
(antidis_prim_times : (β {x y... |
1677f935772341940390937f528a1ca258e7e4ae | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/direct_sum_graded.lean | 445c512f24afef0fb7c787a96406dcce73267699 | [
"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 | 15,465 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.direct_sum
import algebra.algebra.basic
import group_theory.subgroup
/-!
# Additively-graded multiplicative structures on `β¨ i, A i`
This module provides a... |
5921f9ea10a9487abda3653c6690b712094c3cd3 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/continued_fractions/computation/terminates_iff_rat.lean | 9e1533a7e164902e0826803ac447cdfdc61a341c | [
"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 | 14,197 | 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.computation.approximations
import algebra.continued_fractions.computation.correctness_terminating
import data.rat
/-!
# Termina... |
20bc1a5bcdb958860026315e98d1fe2506333c8f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/field_theory/intermediate_field.lean | 2e042dd9d840c53e109e48612ac1a3c467ef0487 | [
"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 | 14,046 | 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.subfield
import field_theory.tower
import ring_theory.algebraic
/-!
# Intermediate fields
Let `L / K` be a field extension, given as an instance `alg... |
0ff94dc3431568a51e7ea9e54988b1279d9116ee | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/category/Group/basic.lean | 7a93d954c65fe43a27cec5c6c5d9ebc44292c240 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 8,984 | 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... |
6a42a8bce2d5c56d18e60f93d150dea25d93bdb9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/combinatorics/pigeonhole.lean | 8773f0123932bc51f2fdeeabe0a40e0afc97d3f7 | [] | 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,173 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.fintype.basic
import Mathlib.algebra.big_operators.order
import Mathlib.Pos... |
e90989957e5e762951407e2d0a7b35fc19097af9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/abelian/exact.lean | 596cf13dbbb76e42c3b2b889d40badbf62930e74 | [
"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 | 18,231 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Adam Topaz, Johan Commelin, Jakob von Raumer
-/
import category_theory.abelian.opposite
import category_theory.limits.preserves.shapes.zero
import category_theory.limits.... |
3c144bb8cb42a9779b76418c5622e4d3207669f0 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /tests/lean/run/typeclass_outparam.lean | c0bd1ae72c30248402b9c8d8b08b2f194ddf34dc | [
"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 | 145 | lean | #exit
class OPClass (Ξ± : outParam Type) (Ξ² : Type) : Type := (u : Unit := ())
instance opβ : OPClass Nat Nat := {}
#synth OPClass Nat Nat
|
25cf09b136eb2529a9c3937a49f0838d3f28210b | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/algebra/group/units.lean | 4ca15e909461a8524d777ff4aac3425dc33cb552 | [
"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 | 6,260 | lean | /-
Copyright (c) 2017 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johannes, HΓΆlzl, Chris Hughes
Units (i.e., invertible elements) of a multiplicative monoid.
-/
import tactic.basic logic.function
universe u
variable {Ξ± : Type... |
793cd4987c79bce2ac9e2622e6c08b3bc10ebeff | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/geometry/manifold/mfderiv.lean | 018bbf1c805850ea78b948a6a4044059164e1dd2 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 64,340 | lean | /-
Copyright (c) 2020 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import geometry.manifold.basic_smooth_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M` and `M'` be two smooth manifolds with corners ... |
58fdf9cbf2d1310dfa61bbbce84e1bfc53926ddc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/model_theory/bundled.lean | 4f7f34dc38f06233768bca4223c57a4433b67d9b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,232 | lean | /-
Copyright (c) 2022 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import model_theory.elementary_maps
import category_theory.concrete_category.bundled
/-!
# Bundled First-Order Structures
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
... |
3d2ed921dd331d8c785a164c1427212c2438bd49 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/list/min_max.lean | ec342ac73ae67916981e723b3df54be0ddfc7ea8 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 13,218 | lean | /-
Copyright (c) 2019 Minchao Wu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Minchao Wu, Chris Hughes, Mantas BakΕ‘ys
-/
import data.list.basic
/-!
# Minimum and maximum of lists
## Main definitions
The main definitions are `argmax`, `argmin`, `minimum` and `maxi... |
f0d60847582608f919e6303c4541885d612d72ea | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/norm_swap.lean | 6d1c9a445f07500f714a312970f89d6551c9e716 | [
"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 | 4,326 | lean | import data.equiv.basic
import tactic.norm_swap
open equiv tactic
/--
To properly test that norm_swap works without the help of the simplifier,
we turn off the simp lemmas that simplify swaps of the form
`swap x y x = y` and `swap x y y = x`.
-/
local attribute [-simp] swap_apply_left
local attribute [-simp] swap_ap... |
b741109b10b9f73339311478174f753020465578 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/set/intervals/surj_on.lean | 8089ce42be73f645d25bdfa013e1805df82d024f | [
"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,473 | 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 data.set.intervals.basic
import data.set.function
/-!
# Monotone surjective functions are surjective on intervals
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4... |
2b2f80d124fb0e3b42e884e1e2e3e4e59b8929fa | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/instances/discrete.lean | 7f1af26b743318aeb72d943c067e09d982d44d43 | [
"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 | 5,253 | lean | /-
Copyright (c) 2022 RΓ©my Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: RΓ©my Degenne
-/
import order.succ_pred.basic
import topology.algebra.order.basic
import topology.metric_space.metrizable_uniformity
/-!
# Instances related to the discrete topology
We... |
a049c9f8b22138bf35e889642deb8e14077516e5 | a11f4536efad51bc2b648123619720f3b9318c0f | /src/continuous_func_open_interval.lean | 648a0f79c335bc78f76e74676f4b9f3378d3aeee | [] | no_license | ezrasitorus/codewars_lean | 909471d43f5130669a90b8e11afc37aec2f21d8f | 6d1abcc1253403511f4cfd767c645596175e4fd3 | refs/heads/master | 1,672,659,589,352 | 1,603,281,507,000 | 1,603,281,507,000 | 288,579,451 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,057 | lean | import data.real.basic data.set.intervals.basic
open set
/-
Continuous function
A function f(x) is said to be continuous at x = a if, for any Ξ΅ > 0,
there is Ξ΄ > 0 s.t. |f(x) - f(a)| < Ξ΅ whenever |x - a| < Ξ΄
-/
def continuous_at (f : β β β) (a : β) :=
β Ξ΅ > 0, β Ξ΄ > 0, β x, abs (x - a) < Ξ΄ β abs (f x - f a) ... |
fc22faa2b7d05bc8d9fdebe2b4169c8728ff8a3b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebraic_geometry/prime_spectrum/is_open_comap_C.lean | 436f841b76d8f1d6120db1e26a4ccfc0c022a693 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 3,067 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebraic_geometry.prime_spectrum.basic
import ring_theory.polynomial.basic
/-!
The morphism `Spec R[x] --> Spec R` induced by the natural inclusion `R --> R[x]`... |
722d009c044a68b12553ee28bbeb15c387a0c0ac | 59aed81a2ce7741e690907fc374be338f4f88b6f | /src/math-688/lectures/lec-1.lean | 55d522e3d287efa1e1a929ee33b8b7e937ac1f6e | [] | no_license | agusakov/math-688-lean | c84d5e1423eb208a0281135f0214b91b30d0ef48 | 67dc27ebff55a74c6b5a1c469ba04e7981d2e550 | refs/heads/main | 1,679,699,340,788 | 1,616,602,782,000 | 1,616,602,782,000 | 332,894,454 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,764 | lean | /- 28 Aug 2019 -/
/-
# Graph Theory
"geometry of position" - how things interact with each other.
## Definitions:
* A `graph` is a set of vertices `V` (usually finite), a set of edges `E`,
(usually finite), and a corresponding function that associates to each
edge in `E` two (not necessarily distinct) vertices i... |
b2926aa5f178905ebc03b1718b7d1686a8ca5ae3 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/clifford_algebra/basic.lean | 11cba46a02f1fa14ea322f37ccd40acec5e0c8dd | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 11,509 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Utensil Song
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra.basic
import linear_algebra.quadratic_form.isometry
/-!
# Clifford Algebras
We construct the ... |
d3240c039d4d042a1e6d56db7c1025f03a362a7e | bdd56e6eb0f467437e368d613de75299495d4054 | /src/category_theory/limits/shapes/products.lean | 955dfda62cfb3d6065839b5e267a94859f7d63cd | [] | no_license | truong111000/formalabstracts | 49a04c268ccee136e48e24e9d5dcb6fedea4b53e | 93a89a5c05c6fbc23eb9b914b60dcc353e609cd2 | refs/heads/master | 1,589,551,767,824 | 1,555,708,723,000 | 1,555,708,723,000 | 182,326,292 | 0 | 0 | null | 1,555,708,332,000 | 1,555,708,331,000 | null | UTF-8 | Lean | false | false | 1,314 | 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.limits.limits
import category_theory.discrete_category
open category_theory
namespace category_theory.limits
universes u v w
variables ... |
f9a3b61f3613e63172e9aa5a29d2c6d5ac229979 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/Tactic/Conv/Basic.lean | 1c6e5873ed410f2e6630841b89ad5eb2c65eac32 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,584 | 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.Reduce
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Replace
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.BuiltinTactic
n... |
f451e2266a60f087ccb9c2a5937f6160b19a92f9 | 735bb6d9c54e20a6bdc031c27bff1717e68886b9 | /data/seq/wseq.lean | 9d955e4f6aa1009e67453b4956c56afec5be7480 | [] | no_license | digama0/library_dev | 3ea441564c4d7eca54a562b701febaa4db6a1061 | 56520d5d1dda46d87c98bf3acdf850672fdab00f | refs/heads/master | 1,611,047,574,219 | 1,500,469,648,000 | 1,500,469,648,000 | 87,738,883 | 0 | 0 | null | 1,491,771,880,000 | 1,491,771,879,000 | null | UTF-8 | Lean | false | false | 51,672 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.seq.seq data.seq.computation data.dlist
universes u v w
-- While the `seq` structure allows for lists which may not be finite,
-- a weak sequence a... |
4fadf5fae125eb2162062ed86c10c55be27a2a74 | 4c630d016e43ace8c5f476a5070a471130c8a411 | /order/order_iso.lean | 56db6126523ee698d07c80559057f1d2992b1bbc | [
"Apache-2.0"
] | permissive | ngamt/mathlib | 9a510c391694dc43eec969914e2a0e20b272d172 | 58909bd424209739a2214961eefaa012fb8a18d2 | refs/heads/master | 1,585,942,993,674 | 1,540,739,585,000 | 1,540,916,815,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,083 | 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 order.basic logic.embedding data.nat.basic
open function
universes u v w
variables {Ξ± : Type*} {Ξ² : Type*} {Ξ³ : Type*}
{r : Ξ± β Ξ± β Prop} {s : Ξ² β Ξ² β Prop... |
167dc9d806e02d1e926303e1593eb08629551bdf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/group/conj_finite.lean | 3329c47cb2c869a19134dd8a4a683aed2abd7845 | [
"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,239 | lean | /-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import algebra.group.conj
import data.finite.basic
import data.fintype.units
/-!
# Conjugacy of elements of finite groups
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4... |
ad5b574bc4101a49a12a03aa0dccb4bccbaeca0e | b7fc5b86b12212bea5542eb2c9d9f0988fd78697 | /src/solutions/friday/topology.lean | f0ca87086677e25d9a3ad2c2fb8617eb24caf4a2 | [] | no_license | stjordanis/lftcm2020 | 3b16591aec853c8546d9c8b69c0bf3f5f3956fee | 1f3485e4dafdc587b451ec5144a1d8d3ec9b411e | refs/heads/master | 1,675,958,865,413 | 1,609,901,722,000 | 1,609,901,722,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,738 | lean | import topology.metric_space.basic
open_locale classical filter topological_space
namespace lftcm
open filter set
/-!
# Filters
## Definition of filters
-/
def principal {Ξ± : Type*} (s : set Ξ±) : filter Ξ± :=
{ sets := {t | s β t},
univ_sets := begin
-- sorry
tauto,
-- sorry
end,
sets_of_superset ... |
9e4404b9da70a10dab4392c73b368c1730b820aa | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/star/algebra.lean | 19ee96740ce0b60126fda1d11760a327153cc09c | [] | 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,194 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.algebra.basic
import Mathlib.algebra.star.basic
import Mathlib.PostPort
universes... |
a4cbf8f3d40a3791b494493968060133541a41b4 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/seq/computation.lean | 08b05e581a08280c49cf411c0365f67638c5869f | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 37,472 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Coinductive formalization of unbounded computations.
-/
import data.stream data.nat.basic
universes u v w
/-
coinductive computation (Ξ± : Type u) : Type u
| retu... |
93bbcfe5c74ace4848ac68c10a7f5d68c6ec4df5 | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/hints/thursday/afternoon/category_theory/exercise3/hint3.lean | 1fe951f5e711983760849dcf26489f8e29e57740 | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 693 | lean | import for_mathlib.category_theory -- This imports some simp lemmas that I realised belong in mathlib while writing this exercise.
open category_theory
variables {C : Type*} [category C]
variables {D : Type*} [category D]
lemma equiv_reflects_mono {X Y : C} (f : X βΆ Y) (e : C β D)
(hef : mono (e.functor.map f)) : ... |
e921570ae886e36047a705a218fd930a6439b31b | 43390109ab88557e6090f3245c47479c123ee500 | /src/M1P2/sheet_4.lean | 1b403dd44e43c9112d35705c29339b691a1ddfaa | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,327 | lean | import algebra.group_power data.complex.basic group_theory.coset
universes u v w x
variables {G : Type u} {Gβ : Type v} {Gβ : Type w} {Gβ : Type x}
variables [group G] [comm_group Gβ] [add_group Gβ] [add_comm_group Gβ]
-- sheet 4
-- 4. Let S be the two-element set {a, b}. Show that there are precisely 16 distinct bi... |
cca04dc7aa698ea454ccaececf30f538c10bb715 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/algebra/module.lean | 36fb9fd9ddfd5155d332be164535cb8a8baf4827 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 60,093 | lean | /-
Copyright (c) 2019 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, SΓ©bastien GouΓ«zel, Jean Lo, Yury Kudryashov
-/
import topology.algebra.ring
import topology.algebra.mul_action
import topology.uniform_space.uniform_embedding
imp... |
e966cb988ea8627416170e4475b0aea8a06c5f5b | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /tests/tactics.lean | d50ed692cea879bfeeebface830c12e0b643c237 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 15,347 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic data.set.lattice data.prod
tactic.rewrite
section solve_by_elim
example {a b : Prop} (hβ : a β b) (hβ : a) : b :=
begin
apply_assump... |
fb684d2487a6cd4b3c15d72dacde1df412a6eb90 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /stage0/src/Init/SizeOf.lean | e9aa8e0215bb5bebade85e30166c47efdb3ecefa | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,953 | lean | prelude
import Init.Core
universes u v w
/- sizeof -/
class SizeOf (Ξ± : Sort u) where
sizeOf : Ξ± β Nat
export SizeOf (sizeOf)
/-
Declare sizeOf instances and theorems for types declared before SizeOf.
From now on, the inductive Compiler will automatically generate sizeOf instances and theorems.
-/
/- Every Type... |
026225172eb75210147d0c639d198e15e969566c | 49ffcd4736fa3bdcc1cdbb546d4c855d67c0f28a | /library/init/algebra/ordered_ring.lean | a0751cfd096d2986e4c5524c001f246d622d65a0 | [
"Apache-2.0"
] | permissive | black13/lean | 979e24d09e17b2fdf8ec74aac160583000086bc8 | 1a80ea9c8e28902cadbfb612896bcd45ba4ce697 | refs/heads/master | 1,626,839,620,164 | 1,509,113,016,000 | 1,509,122,889,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,134 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.ordered_group init.algebra.ring
/- Make sure instances defined in this file have lower priority than the ones
... |
8bca63003d93b0c907e27f6e8d4ae391ca51010c | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/elab_bool.lean | 69ae3a0bf6f444f62ff2585f8b14651880907c7b | [
"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 | 113 | lean | variable b : bool
check if b then tt else ff
check if b && b then tt else ff
check if b β§ b then tt else ff
|
fd2919c633624cfc9ae735bd8754aebe433629b6 | 2c819623a83d8c53b7282622429e344389ce4030 | /proofs/util/list.lean | 38a1b6acdac9685c5222861219cd6686e28604dc | [] | no_license | uw-unsat/jitsynth | 6bc97dd1ede9da42c0b9313a4766095345493adc | 69529e18d4a8d4dace884bfde91aa26b549523fa | refs/heads/master | 1,653,802,737,129 | 1,588,361,732,000 | 1,588,361,732,000 | 260,513,113 | 14 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,114 | lean | import tactic
import tactic.find
import tactic.core
import .nat
-- Lemmas involving facts about lists
namespace jitsynth
def sublist {Ξ± : Type} : list Ξ± β β β list Ξ±
| [] n := []
| l 0 := []
| (a :: b) (n+1) := a :: (sublist b n)
lemma nth_big_i :
β Ξ± : Type,
β l : list Ξ±,
β i : β,
l.length β€ i β list.nth l... |
8f4acbd542625844003f5356dbfb1affa45dc4b9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/pderiv.lean | 3515c9eee85a709f304ce16a8888ff9a661585ee | [] | 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,177 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.variables
import Mathlib.algebra.module.basic
import Mathlib.tactic.ring
... |
6f8bbfc1cbe713702fef8d63497b094659a91755 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/option/basic.lean | 5be65125e8612a7850a76c0f105cc1519f221e68 | [
"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 | 15,910 | 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 tactic.basic
import logic.is_empty
namespace option
variables {Ξ± : Type*} {Ξ² : Type*} {Ξ³ : Type*}
lemma coe_def : (coe : Ξ± β option Ξ±) = some := rfl
lemma s... |
a3b0ece11fc4a30ce8d3978f43f67b25de4fa3b5 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /omin/uncurry.lean | dceb54ac8874d53ef2b5446ce7dbdb4422188717 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,036 | lean | import o_minimal.sheaf.yoneda
namespace o_minimal
variables {R : Type*} (S : struc R)
class is_good_uncurry' (Ξ± Ξ² Ξ³ : Type*) [function.has_uncurry Ξ± Ξ² Ξ³]
[definable_sheaf S Ξ±] [definable_sheaf S Ξ²] [definable_sheaf S Ξ³] :=
(definable_iff : β (K : Def S) (f : K β Ξ±),
definable S f β definable S (Ξ» k, βΏ(f k)))
i... |
9f0e48f323c50f0029cb533dfb7e97ea3b3394ad | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Elab/Tactic/Match.lean | 15ae4e6266e0f4ba0256ae1e72957094a926a45c | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,186 | 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.Elab.Match
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.Induction
namespace Lean
namespace Elab
namespace Tactic
structure AuxMatchTe... |
5782fc44b02e7e5916288fc55b212ef6b03ff5c5 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/def8.lean | c9e59eac71fda639cd68e4858fa00ddc027e72be | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 680 | lean | inductive imf {A B : Type} (f : A β B) : B β Type
| mk : β (a : A), imf (f a)
definition g {A B : Type} {f : A β B} : β {b : B}, imf f b β A
| .(f a) (imf.mk .(f) a) := a
example {A B : Type} (f : A β B) (a : A) : g (imf.mk f a) = a :=
rfl
definition vβ : imf nat.succ 1 :=
(imf.mk nat.succ 0)
definition vβ : imf (... |
60066cb469cf9b408b820546e3f19762fa45ac7f | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/matrix.lean | 76dd50a77430a73a2d55425acae77c858f9db181 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,076 | lean | /-
Helper classes for Lean 3 users
-/
class One (Ξ± : Type u) where
one : Ξ±
instance [OfNat Ξ± (nat_lit 1)] : One Ξ± where
one := 1
instance [One Ξ±] : OfNat Ξ± (nat_lit 1) where
ofNat := One.one
class Zero (Ξ± : Type u) where
zero : Ξ±
instance [OfNat Ξ± (nat_lit 0)] : Zero Ξ± where
zero := 0
instance [Zero Ξ±] :... |
3da4c14f9dc33c775463106c33b72bc4d66377fc | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category_theory/punit.lean | 155a7a5eacb97cc651fc4a50b653b28fbfd5b792 | [
"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 | 967 | 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.const
universes v w u -- declare the `v`'s first; see `category_theory.category` for an explanation
namespace category_theory
instance p... |
b3545b250d92c8954cfd8497903ddea898e45604 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/int/cast.lean | 81eccf479e8a717abc92f5ffccca9d113c766c11 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 8,157 | 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.int.basic
import data.nat.cast
open nat
namespace int
/- cast (injection into groups with one) -/
@[simp, push_cast] theorem nat_cast_eq_coe_nat : β n... |
66e174de6ba8a044bc2cfd5532b2948fc1ebdcf2 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/irCompilerBug.lean | 00afd8fd15f344b7634b7cc93c1ae9e70668a0f4 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 791 | lean |
structure Payload :=
(key : Nat)
(val : Nat)
@[noinline] def get? (p : Payload) (k : Nat) : Option Nat :=
if p.key == k then p.val else none
inductive T
| a (i : Nat)
| b (i : Nat)
| c (i : Nat)
| d (i : Nat)
@[noinline] def foo (p : Payload) : Option T :=
(do
let i β get? p 1;
pure (T.a i))
<|> (do
let i ... |
7d5ab96afdfd2a835832fb98d399e40332f6d97f | 41e069072396dcd54bd9fdadb27cfd35fd07016a | /src/K/jump.lean | 0c47cb2c36f6c822727f8be34796491f3a14ad54 | [
"MIT"
] | permissive | semorrison/ModalTab | 438ad601bd2631ab9cfe1e61f0d1337a36e2367e | cc94099194a2b69f84eb7a770b7aac711825179f | refs/heads/master | 1,585,939,884,891 | 1,540,961,947,000 | 1,540,961,947,000 | 155,500,181 | 0 | 0 | MIT | 1,540,961,175,000 | 1,540,961,175,000 | null | UTF-8 | Lean | false | false | 3,536 | lean | import .rules
open psum nnf node
set_option eqn_compiler.zeta true
def tableau : Ξ Ξ : list nnf, node Ξ
| Ξ :=
match get_contra Ξ with
| inl w := contra_rule w.2
| inr no_contra :=
match get_and Ξ with
| inl p :=
let Ξ := p.1.1 :: p.1.2 :: Ξ.erase (nnf.and p.val.1 p.val.2) in
let inst := and_in... |
3d18db957186676d26f595f07f13620c2d09d325 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/abelian/functor_category.lean | c8804931f296303b7193c5e5a304471b4411a81c | [
"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,493 | lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.abelian.basic
import category_theory.preadditive.functor_category
import category_theory.limits.shapes.functor_category
import category_theory.... |
d8c3d69b33ceb6160b4af679c22063f6d52ed2c7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/filter/zero_and_bounded_at_filter.lean | 5cc4433ee6424e61aad9179ba80809e432bded40 | [
"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,003 | lean | /-
Copyright (c) 2022 Chris Birkbeck. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Birkbeck, David Loeffler
-/
import algebra.module.submodule.basic
import topology.algebra.monoid
import analysis.asymptotics.asymptotics
/-!
# Zero and Bounded at filter
> THIS... |
33bff18959938d4c15f29ee492a4c82f0ee249b7 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/NormalBand.lean | 7d7032a7f08029072829356dc2f01fb1d3c9f98b | [] | 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,132 | 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 NormalBand
structure NormalBand (A : Type) : Type :=
(op : (A β (A β A)))
(associative_op : (β {x y z : A} , (op (op x y) z) = (op x (op y z))))
(idempot... |
72beb02bc2ac0ca5819c7d9db8c6694798cd555c | bdd56e6eb0f467437e368d613de75299495d4054 | /src/test.lean | 555819cc70542ecad28bb312c48523ea16acf1ed | [] | no_license | truong111000/formalabstracts | 49a04c268ccee136e48e24e9d5dcb6fedea4b53e | 93a89a5c05c6fbc23eb9b914b60dcc353e609cd2 | refs/heads/master | 1,589,551,767,824 | 1,555,708,723,000 | 1,555,708,723,000 | 182,326,292 | 0 | 0 | null | 1,555,708,332,000 | 1,555,708,331,000 | null | UTF-8 | Lean | false | false | 73 | lean | import tactic.norm_num
theorem eo0 : 2 * 4 < 9 := by norm_num
#check eo0 |
a581b898c0fb19507e8ec469a4d9735dd02404d6 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /ring_theory/ideals.lean | c434e0cc97b2644028aba513614c81f9dd90e311 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,739 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import linear_algebra.basic ring_theory.associated order.zorn
universes u v
variables {Ξ± : Type u} {Ξ² : Type v} [comm_ring Ξ±] {a b : Ξ±}
open set ... |
d483099c021635fe79d28932d84a0757490e47ed | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /examples/knot_isotopy.lean | 80fc0f9e3b9698ef99a19f3ab177ddeb8a543f03 | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,786 | lean | import tidy.tidy
inductive slice
| pos : β β slice
| neg : β β slice
| cup : β β slice
| cap : β β slice
open slice
inductive diagram
| nil
| cons : slice β diagram β diagram
infixr ` ~~ `:80 := diagram.cons
notation `t[` l:(foldr `, ` (h t, diagram.cons h t) diagram.nil `]`) := l
namespace isotopy
variable ... |
22b53c13e4fa9a8f968bcab162d08b4612497fd0 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/ring_theory/ideal/cotangent.lean | a88bf7b54a9ccf2239383987147a8878fc1bfcb9 | [
"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 | 7,430 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import ring_theory.ideal.operations
import algebra.module.torsion
import algebra.ring.idempotents
import linear_algebra.finite_dimensional
import ring_theory.ideal.local_ri... |
7022d389095c0004636d067ecbff9fc1695666e0 | e38d5e91d30731bef617cc9b6de7f79c34cdce9a | /src/core/kan/hcom.lean | b4e523d9ef1ee63db4b3ef54c6e096e6e310454c | [
"Apache-2.0"
] | permissive | bbentzen/cubicalean | 55e979c303fbf55a81ac46b1000c944b2498be7a | 3b94cd2aefdfc2163c263bd3fc6f2086fef814b5 | refs/heads/master | 1,588,314,875,258 | 1,554,412,699,000 | 1,554,412,699,000 | 177,333,390 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,945 | lean | /-
Copyright (c) 2019 Bruno Bentzen. All rights reserved.
Released under the Apache License 2.0 (see "License");
Author: Bruno Bentzen
-/
import .basic
universes u
-- homogeneous Kan composition for lines and open boxes
open interval
structure horn1 (A : Type) :=
(lid t0 t1 : I β A)
(lid0 : lid i0 ... |
3cf5cfabdcc98b6509151407c311d757b957b24d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/hit/refl_quotient.hlean | 3f5cc05e1e2035d28446f6e6ab16a3e58a37743d | [
"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 | 3,102 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Quotient of a reflexive relation
-/
import homotopy.circle cubical.squareover .two_quotient
open eq simple_two_quotient e_closure
namespace refl_quotient
sectio... |
fe1cad98119144b04f74c28804e5e9561978bc07 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/metric_space/lipschitz.lean | aaa1bfb21eb6c4a545195f1d42c557c0e824bbe0 | [
"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 | 14,021 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes HΓΆlzl, Yury Kudryashov
-/
import logic.function.iterate
import topology.metric_space.basic
import category_theory.endomorphism
import... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.