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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
aee26e833f8fd9f1949cb1d097993ce67d2ca8e1 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/field_theory/minimal_polynomial.lean | ea74a1448c1e66fbdbf3d33a5870073a0f6843f6 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 8,926 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johan Commelin
-/
import ring_theory.integral_closure
/-!
# Minimal polynomials
This file defines the minimal polynomial of an element x of an A-algebra B,
under the ass... |
451902a737b2a69c0c2488247256d7a0c2c76155 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/Top/presheaf_of_functions.lean | 972d3490fa7a6c4df4ebd7e708945a8cb04768ba | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 2,630 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.Top.presheaf
import topology.algebra.TopCommRing.basic
import category_theory.yoneda
import ring_theory.subring
import topology.algebra.continuous_fun... |
2495b28f10f5c556d27d64d3b10cc269c6d3a7a2 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/category_theory/limits/limits.lean | ad7725fa0cd248e4365cfa9ff68f65917fb023fe | [
"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 | 36,675 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Scott Morrison, Floris van Doorn
-/
import category_theory.whiskering
import category_theory.yoneda
import category_theory.limits.cones
import category_the... |
5e0218a3274a267cae2f60caef22e59615acd7f3 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Meta/Tactic/Split.lean | a5e74fb56d19153600d1ef9fdeae44777de0cfe6 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,185 | 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.Match.MatchEqs
import Lean.Meta.Tactic.Generalize
namespace Lean.Meta
namespace Split
private def getSimpMatchContext : MetaM Simp.Contex... |
f3864c2a639c5760154da6986f1b09fe25f3570e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/elim.lean | 41f2820062a63abc815934168226a5e1bd097a4b | [
"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 | 215 | lean | import logic
constant p : num → num → num → Prop
axiom H1 : ∃ x y z, p x y z
axiom H2 : ∀ {x y z : num}, p x y z → p x x x
theorem tst : ∃ x, p x x x
:= obtain a b c H, from H1, exists.intro a (H2 H)
|
eca8017e58c231598025ef7137ac760532389337 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/e18.lean | 400bc1362cbd11847ea7bf503a206c542d4db95e | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 444 | lean | inductive nat : Type :=
| zero : nat
| succ : nat → nat
inductive list (A : Type) : Type :=
| nil {} : list A
| cons : A → list A → list A
inductive int : Type :=
| of_nat : nat → int
| neg : nat → int
coercion of_nat
variables n m : nat
variables i j : int
variable l : list nat
check cons i (cons i nil)
check c... |
2c152d0be146dc4d7bd1f0c3e44be41cbd7aea37 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/tactic/omega/int/main.lean | e8b956c5b32c34f4d9a6ef882f5c96ddc0043295 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 2,571 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Main procedure for linear integer arithmetic.
-/
import tactic.omega.prove_unsats
import tactic.omega.int.dnf
open tactic
namespace omega
namespace int
local notation x ` =* `... |
675d910512544a34c05fdad1c32bd91c2f7394bf | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/overload2.lean | 1e10c4cc06d23fa52eeee8fdcadc4561c947c83f | [
"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 | 729 | lean | inductive F2 : Type
| O : F2
| I : F2
namespace F2
definition add : F2 → F2 → F2
| O O := O
| O I := I
| I O := I
| I I := O
infix (name := add) + := F2.add
end F2
open F2 nat
#reduce (1 : nat) + 1
#reduce (1 : nat) + (1 : nat)
example : true :=
begin
have H : (1 : nat) + (1 : nat) = 2,
reflexivity,
construc... |
7831f0b6d3ae4d9c1d8b93a49ee1d6913d83688e | 36938939954e91f23dec66a02728db08a7acfcf9 | /old-lean4/test_json_render.lean | 229069a7b5024a9e875a1b0b55b275457c4c542e | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 296 | lean | import json
open json
def mkTree : ℕ → Value
| 0 := Value.null
| (Nat.succ n) :=
let t := mkTree n in
Value.listObj [("a", t), ("b", t)]
open IO.Fs
def main (xs : List String) : IO Unit := do
let t := mkTree xs.head.toNat,
let val := toString t,
IO.println ((toString t).length)
|
f0b6e4c324d93eb51e493239b611033e8d24a1df | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/category_theory/instances/CommRing/colimits.lean | d96a136545d8ee637e21fc531966c5b978e400aa | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 12,080 | lean | import category_theory.instances.CommRing.basic
import category_theory.limits.limits
universes u v
open category_theory
open category_theory.instances
open category_theory.limits
-- [ROBOT VOICE]:
-- You should pretend for now that this file was automatically generated.
-- It follows the same template as colimits in... |
d40b48cc60a8e9f767e2cbbf272980004494ba57 | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/expected_value.lean | 521eec6de83120b114dd7da333b9316046ec0842 | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 23,454 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Expected values.
-/
import .sprog .graph .tfacts .compute_grad .tcont .predicates .tactics
namespace certigrad
namespace E
open sprog list
lemma E_ret {oshape : S} : Π {... |
e9bb653035eb3fbe976adbebff3dd13f530081bc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/lp_equiv.lean | 9555744026e361e9c125c54a0117b2e54754e16f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,348 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import analysis.normed_space.lp_space
import analysis.normed_space.pi_Lp
import topology.continuous_function.bounded
/-!
# Equivalences among $L^p$ spaces
> THIS FILE... |
aed446d60adcb4754d852fc62fa99b4f6c0ee00b | 618003631150032a5676f229d13a079ac875ff77 | /src/data/finset.lean | 12cb2a02bbe28ac529f5f1242550d7cb0c3adaf5 | [
"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 | 123,142 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro
Finite sets.
-/
import data.multiset
import tactic.monotonicity
import tactic.apply
open multiset subtype nat
vari... |
c511386512cfb23105e28977aecf4b256f76a482 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/multiset/finset_ops.lean | e4b878c6896f579c1d7c12d07c96e653d23afb53 | [
"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 | 8,763 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.multiset.erase_dup
/-!
# Preparations for defining operations on `finset`.
The operations here ignore multiplicities,
and preparatory for defining the co... |
48859ad8f7542b1fcd68d861f4d2068be13fe6d3 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/linear_algebra/sesquilinear_form.lean | 4a13035afd44631f4ba5e68380c45b7a8054df9f | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 8,684 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Andreas Swerdlow
-/
import algebra.module
import ring_theory.maps
/-!
# Sesquilinear form
This file defines a sesquilinear form over a module. The definition requires a ring antiaut... |
41fa3a25b309298e5e1ad7d5abbb183eb0e05316 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/real/complete.lean | 0beece400652313e3806796073b6be78d4e3d17e | [
"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 | 32,118 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
The real numbers, constructed as equivalence classes of Cauchy sequences of rationals.
This construction follows Bishop and Bridges (1985).
At this point, we no longer... |
30fdfdad4f9061a81521900b4b65a6e5adca99ef | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Util/SmartNaming.lean | 1c3241bc6cb792cc068706b6684125dd82f60f5c | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 3,106 | lean | import Mathport.Binary.Basic
open Lean
-- Ways to write `xs` as `ys ++ zs`, with `ys` nonempty.
def List.splits1 : List a → List (List a × List a)
| [] => []
| (x :: xs) => ([x], xs) :: (splits1 xs).map (fun (ys, zs) => (x :: ys, zs))
namespace Mathport.Binary
open Mathlib.Prelude.Rename
def reverseName (rm : Rena... |
fa245996e5d43201baf7ff732754e093db47174f | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/limits/creates.lean | 7a52c115ddb4db6a435dca63e2331e007b85b1ab | [
"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 | 16,491 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.preserves.basic
open category_theory category_theory.limits
namespace category_theory
universes v u₁ u₂ u₃
variables {C : Type u₁} [cate... |
5fd4c130ca1cbd0869b75ce062172ba596cae3e5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/measure/null_measurable.lean | 3786a0640063145d83e22bad7c3f58d5806329c0 | [
"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 | 18,773 | 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, Yury Kudryashov
-/
import measure_theory.measure.ae_disjoint
/-!
# Null measurable sets and complete measures
## Main definitions
### Null measurable... |
2e46883e5c5f7d87000496c03d1e3e898237e5fe | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/instances/real_vector_space.lean | 4b97a552f691f4af273f1b395af78dd14ae26543 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 1,491 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import topology.algebra.module
import topology.instances.real
/-!
# Continuous additive maps are `ℝ`-linear
In this file we prove that a continuous map `f : E →+ F... |
ed03accf7d8cebcec923f41432b88a3d45e18932 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/simple.lean | c7f2433aeaccdc6f6357ada20d31d94cbe2a315f | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 8,692 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import category_theory.limits.shapes.zero_morphisms
import category_theory.limits.shapes.kernels
import category_theory.abelian.basic
import category_t... |
17f88dbe435ca4f6af98df3d34a6393f648c9f8c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/real/ennreal.lean | eb95ca8a41007a7cdaae4c1770221ba6c36364ec | [
"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 | 84,660 | 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 data.real.nnreal
import algebra.order.sub.with_top
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_top ℝ≥0` to be the ty... |
d6e0eca2acbaa4730b8925c3a0cc7a4d4d19f087 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/algebra/Mon/colimits.lean | 3d6bbe71d37eb3ad8f837ed385813dbd3ce245c6 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 6,688 | 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.Mon.basic
import category_theory.limits.limits
/-!
We build colimits of monoids.
We do so knowing nothing about monoids.
In particular, I want to cla... |
4de9cd008e3a39cb6d1d7985d21034faff6fdbce | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/data/pi.lean | 571b9d2098f08dd6e8dfdc3ed1e33e265571dc91 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,047 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Eric Wieser
-/
import tactic.split_ifs
import tactic.simpa
import algebra.group.to_additive
/-!
# Instances and theorems on pi types
This file provides basic... |
515ab84cd60eae9bedc30cb524155d49ce7eadf7 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20161026_ICTAC_Tutorial/ex7.lean | 7296be284c38392068a1083fc75b060a6c47e2e2 | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 98 | lean | check list
check prod
check prod Type nat
check Type × nat
check Type 4 × nat
check list Type
|
70eb49b764eb37458d53a8d5b7b1ba9b65d68ab2 | ea11767c9c6a467c4b7710ec6f371c95cfc023fd | /src/monoidal_categories/lemmas/pentagon_in_terms_of_natural_transformations.lean | 6a0cd4bea9621baca5054bf99cdd1ab99ba7ef6b | [] | 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 | 1,227 | 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 .pentagon_in_terms_of_natural_transformations_definitions
import tidy.its
open categories
open categories.functor
open categories.products
... |
23e90e3736bb8b4453d227d14381494fe2a41e23 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/category/monad/writer.lean | 69019b832402b19efbc0855511a0f6ba1839062f | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 7,027 | lean |
/-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
The writer monad transformer for passing immutable state.
-/
import tactic.basic category.monad.basic
universes u v w
structure writer_t (ω : Type u) (m : Type u... |
7e377a88ea546dee07af32993d5d9823fc7c1d63 | cbcb0199842f03e7606d4e43666573fc15dd07a5 | /src/topology/algebra/monoid.lean | e3b6d5f8e6126efbfbbedea033ab0af97258a780 | [
"Apache-2.0"
] | permissive | truonghoangle/mathlib | a6a7c14b3767ec71156239d8ea97f6921fe79627 | 673bae584febcd830c2c9256eb7e7a81e27ed303 | refs/heads/master | 1,590,347,998,944 | 1,559,728,860,000 | 1,559,728,860,000 | 187,431,971 | 0 | 0 | null | 1,558,238,525,000 | 1,558,238,525,000 | null | UTF-8 | Lean | false | false | 5,171 | 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
Theory of topological monoids.
TODO: generalize `topological_monoid` and `topological_add_monoid` to semigroups, or add a type class
`topological_opera... |
e7b6e54b32e94843dde73a8610e64435b95b910b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finset/lattice.lean | 1f9561d3225195ee8b8a57aeec6f62032ff28f47 | [
"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 | 57,273 | 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 data.finset.fold
import data.finset.option
import data.finset.prod
import data.multiset.lattice
import order.complete_lattice
/-!
# Lattice operations on fins... |
07137b23737ae1212fff201b200b586636976093 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/quadratic_form/basic.lean | bea24f88c4f4daed97ee762ef8aabfbc1546c893 | [
"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 | 37,892 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Kexing Ying, Eric Wieser
-/
import algebra.invertible
import linear_algebra.matrix.determinant
import linear_algebra.matrix.bilinear_form
import linear_algebra.matrix.symmet... |
f890354db1d7f288950aa3d8fda0d8b42eba0d02 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/rees_algebra.lean | 437facd972edeb30c9c4dc628e3d5ad1c2e6d9ca | [
"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,081 | 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.finite_type
/-!
# Rees algebra
The Rees algebra of an ideal `I` is the subalgebra `R[It]` of `R[t]` defined as `R[It] = ⨁ₙ Iⁿ tⁿ`.
This is used to pr... |
510a003791c82a8831bc14213dd97436f21b230a | 59a4b050600ed7b3d5826a8478db0a9bdc190252 | /src/category_theory/discrete_category.lean | 07d966a5525a90fac5117bebc5ba62af985c5a3f | [] | no_license | rwbarton/lean-category-theory | f720268d800b62a25d69842ca7b5d27822f00652 | 00df814d463406b7a13a56f5dcda67758ba1b419 | refs/heads/master | 1,585,366,296,767 | 1,536,151,349,000 | 1,536,151,349,000 | 147,652,096 | 0 | 0 | null | 1,536,226,960,000 | 1,536,226,960,000 | null | UTF-8 | Lean | false | false | 1,736 | 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 category_theory.functor
import category_theory.tactics.obviously
import category_theory.equivalence
namespace category_theory
universes u... |
d718fdf02fffd49c6b288fc46573f5362951a7b2 | 302b541ac2e998a523ae04da7673fd0932ded126 | /tests/bench/pair.lean | e0a7e7451e62073eb7f939804b2a105e6a041818 | [] | no_license | mattweingarten/lambdapure | 4aeff69e8e3b8e78ea3c0a2b9b61770ef5a689b1 | f920a4ad78e6b1e3651f30bf8445c9105dfa03a8 | refs/heads/master | 1,680,665,168,790 | 1,618,420,180,000 | 1,618,420,180,000 | 310,816,264 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 237 | lean | set_option trace.compiler.ir.init true
inductive L
| Nil
| Cons1 : Nat -> L -> L
| Cons2 : Nat -> Nat -> L -> L
open L
def fold : L -> L
| Nil => Nil
| Cons1 n l => Cons1 n (fold l)
| Cons2 x y l => Cons1 (x + y) (fold l)
|
aa78446bd639f5729add6cc858ad1ad69f73c63e | 500f65bb93c499cd35c3254d894d762208cae042 | /src/category_theory/adjunction/basic.lean | d5179b7adeed06f3f31e8e29970ce2632a544ba6 | [
"Apache-2.0"
] | permissive | PatrickMassot/mathlib | c39dc0ff18bbde42f1c93a1642f6e429adad538c | 45df75b3c9da159fe3192fa7f769dfbec0bd6bda | refs/heads/master | 1,623,168,646,390 | 1,566,940,765,000 | 1,566,940,765,000 | 115,220,590 | 0 | 1 | null | 1,514,061,524,000 | 1,514,061,524,000 | null | UTF-8 | Lean | false | false | 10,304 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin
-/
import category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first;... |
9d9ec6080485efff3be5be5b930c9633315d0dad | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/eq_to_hom.lean | 3dc47fe4e1f459153274e6fbf5ffe0e921ba6fe4 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 2,849 | lean | /-
Copyright (c) 2018 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison
-/
import category_theory.isomorphism
import category_theory.functor_category
import category_theory.opposites
universes v v' u u' -- declare the `v`'s first;... |
3d6aa5b65687b312907adb8613a0cb6c524d7f71 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/projection.lean | ac662dac37e42b3836fd5dda28a07b2d4f3b3640 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 16,736 | 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 linear_algebra.quotient
import linear_algebra.prod
/-!
# Projection to a subspace
In this file we define
* `linear_proj_of_is_compl (p q : submodule R E) (... |
c72fa789330c65b8725861f6b2f65df11b73590b | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Compiler/LCNF/CompilerM.lean | ae9c0e49d56e67286a0d0ae59a53871ed5d53329 | [
"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 | 18,725 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.CoreM
import Lean.Compiler.LCNF.Basic
import Lean.Compiler.LCNF.LCtx
import Lean.Compiler.LCNF.ConfigOptions
namespace Lean.Compiler.LCNF
/--
T... |
dca239cf29c3659959b0bd20fbf2ad71f0c56266 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/smt/congruence_closure.lean | bfe07135a17b0ff83ff178fa44a7c0f4b127eda8 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,857 | 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.set_get_option_tactics
structure cc_config :=
/- If tt, congruence closure will treat implicit instance arguments... |
cb3e0d5b9c4aec76c8251a8d03e385b9d661d8cd | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/ring_theory/integral_closure.lean | ed9139d3588668acc25be2470abcbf5a10f784ac | [
"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 | 25,823 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import ring_theory.adjoin.basic
import ring_theory.polynomial.scale_roots
import ring_theory.polynomial.tower
/-!
# Integral closure of a subring.
If A is an R-algebra then `... |
db41b32ba7c7bc31621968a414717fbd4c7b216f | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/linear_ordered_comm_group_with_zero.lean | e2d289a9f66df7e5414b1d71bdd30e4625ff97c2 | [
"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,808 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin, Patrick Massot
-/
import algebra.ordered_group
import algebra.group_with_zero
import algebra.group_with_zero.power
import tactic.abel
/-!
# Linearly ordered com... |
6e3354023587082dec37e1a706ecb60700f1da85 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/IO_test.lean | 8e0e2ed8595b88638d34da7298a771c8e28c2098 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 2,880 | lean | prelude
import Init.System.IO
import Init.Data.List.Control
import Init.Data.ToString
open IO.FS
def check_eq {α} [BEq α] [Repr α] (tag : String) (expected actual : α) : IO Unit :=
unless (expected == actual) do
throw $ IO.userError $
s!"assertion failure \"{tag}\":\n expected: {repr expected}\n actual: {r... |
6043e66acbd09956a1ac4f055d4ac343d51dc67c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/multiplicity.lean | a0bfb28b600319f376c38948ce90c5ebd90a04aa | [
"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 | 22,821 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Chris Hughes
-/
import algebra.associated
import algebra.big_operators.basic
import ring_theory.valuation.basic
/-!
# Multiplicity of a divisor
> THIS FILE IS SYNCH... |
09e90e9ae6490fbd731ff8cb3b26501fb4ffcf50 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/stateRef.lean | 9438d59ad973ae1e7753e7b797f442aa2cb493c6 | [
"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 | 1,580 | lean | new_frontend
def f (v : Nat) : StateRefT Nat IO Nat := do
IO.println "hello"
modify fun s => s - v
get
def g : IO Nat :=
f 5 $.run' 20
#eval (f 5).run' 20
#eval (do set 100; f 5 : StateRefT Nat IO Nat).run' 0
def f2 : ReaderT Nat (StateRefT Nat IO) Nat := do
let v ← read
IO.println $ "context " ++ toString v
modify... |
b82d5deff17b550325cece92187d10109b1555d8 | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Lean/Server/FileWorker/RequestHandling.lean | e90334d4f6c1495ddc54fb358ba54f29f9dc00ec | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,407 | lean | /-
Copyright (c) 2021 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.DeclarationRange
import Lean.Data.Json
import Lean.Data.Lsp
import Lean.Server.FileWorker.Utils
import Lean.Server.Requests
import... |
65ed74da2dfd0a94e0b3defd20c5cdb1b30a1c1e | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/cs/lib.lean | 5adfbc591952a3cb3f566f90bad61e5c4b7374e3 | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 16,686 | lean | import tactic.basic
import tactic.omega
import tactic.apply_fun
import data.option.basic
import .util
import .lang
import .sym
import .svm
namespace sym
--- The following lemmas depend on (has_eval Model SymB SymV SymR). --
section eval_generic
variables
{Model SymB SymV SymR : Type}
(ev : has_eval Mod... |
15dad7c3a850143eaf924ba1d144de2b6c88bd11 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/order/conditionally_complete_lattice.lean | f0385e4d019d5369a8cc0c41ec8e2cb2096e351c | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 28,028 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
Adapted from the corresponding theory for complete lattices.
-/
import
order.lattice order.complete_lattice order.bounds
tactic.finish data.set.finite
/-!
# T... |
da42b3f76a972b7ac9d8af57b8e1b13bd36baae5 | 827a8a5c2041b1d7f55e128581f583dfbd65ecf6 | /susp_K.hlean | 6c35144b8a5f3f6dc26287a33d7235d0a221f637 | [
"Apache-2.0"
] | permissive | fpvandoorn/leansnippets | 6af0499f6f3fd2c07e4b580734d77b67574e7c27 | 601bafbe07e9534af76f60994d6bdf741996ef93 | refs/heads/master | 1,590,063,910,882 | 1,545,093,878,000 | 1,545,093,878,000 | 36,044,957 | 2 | 2 | null | 1,442,619,708,000 | 1,432,256,875,000 | Lean | UTF-8 | Lean | false | false | 1,794 | hlean | import .susp_set types.unit
open susp eq is_trunc
definition is_contr_loop [instance] {A : Type} [is_set A] (a : A) : is_contr (a = a) :=
is_contr_of_inhabited_prop idp
namespace susp
universe variable u
variable {P : Prop.{u}}
definition code_K {x y : susp P} (p : x = y) : trunctype.{u} (-2) :=
begin
... |
3167a8313dda49f97766ad900ba820384611962c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/preadditive/injective_resolution.lean | 1ef24b230c5a945f801afe8eaa56ec8f48b1149c | [
"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,874 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Scott Morrison
-/
import category_theory.preadditive.injective
import algebra.homology.single
/-!
# Injective resolutions
A injective resolution `I : InjectiveResolution ... |
9676aca6ebbee725933d957179c3a09df8c17d3d | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/theories/analysis/sqrt.lean | 027e6870ad930d6b197c2c469f829a2d00a82140 | [
"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,188 | lean | /-
Copyright (c) 2015 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Jeremy Avigad
The square root function.
-/
import .ivt
open analysis real classical
noncomputable theory
private definition sqr_lb (x : ℝ) : ℝ := 0
private theorem... |
f2ab5b7b30d4fce5ec49461645401f7b03f28e29 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean.lean | c0f2146003f3da8e3865ff7ebbdb36019aad758c | [
"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 | 794 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data
import Lean.Compiler
import Lean.Environment
import Lean.Modifiers
import Lean.ProjFns
import Lean.Runtime
import Lean.ResolveName
import L... |
db04144c2964677099cf90a98abcb3e9e37e99ce | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/filter/filter_product.lean | ef6bfa38056468f93873a7fec53f03c8371fdb38 | [] | 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,288 | 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, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.filter.ultrafilter
import Mathlib.order.filter.g... |
5feb2dd440b574850710c9348b92d9d0e3d4ab39 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/int/gcd.lean | 74ad4895f189128b61d61971bc9ebc2d347b835b | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 5,149 | lean | /-
Copyright (c) 2018 Guy Leroy. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sangwoo Jo (aka Jason), Guy Leroy, Johannes Hölzl, Mario Carneiro
-/
import data.int.basic data.nat.prime
/-!
# Extended GCD and divisibility over ℤ
## Main definitions
* Given `x y : ℕ`,... |
5895d5b08720a6b84b1bc15e0f67fb346eaea703 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/derivingRepr.lean | e88cc34f51a538b019b6d553dbece97570fa5d75 | [
"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 | 979 | lean | structure Foo where
name : String
val : List Nat
lower : Nat := List.length val
inv : val.length >= lower
flag : Bool
deriving Repr
#eval { name := "Joe", val := List.iota 40, flag := true, inv := by decide! : Foo }
inductive Tree (α : Type) where
| node : List (Tree α) → Bool → Tree α
| leaf : ... |
ed5a40c346d2caee41cea725cae7059fa5b3e6dc | 94e33a31faa76775069b071adea97e86e218a8ee | /src/linear_algebra/vandermonde.lean | b548a2cb00e323ade9ff69840477ccc09dc96f73 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 5,567 | 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 algebra.big_operators.fin
import algebra.geom_sum
import group_theory.perm.fin
import linear_algebra.matrix.determinant
/-!
# Vandermonde matrix
This file defines... |
e3202767e0d6b77292743aa6d1d9ba5c2680a68f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/fixed_points.lean | 881bfb6cc6e9eb4749437695566daf96800267cd | [] | 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,973 | 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, Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.complete_lattice
import Mathlib.dynamics.fixed_points.basic
import Mathlib... |
292ae5056ef3761944fad53f86393c7a84d08b7e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/finiteness.lean | 7a47344442139836d26c9e87f16b874ddfea242b | [
"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 | 15,304 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import data.set.pointwise.finite
import group_theory.quotient_group
import group_theory.submonoid.operations
import group_theory.subgroup.basic
import set_theory.c... |
d6a5637986923349f00df9e50e2187b33518065c | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/group_with_zero/basic.lean | 5ac2e047923e4c7ab1a62b71efbeb5f893eb62ba | [
"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 | 43,247 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group.inj_surj
import algebra.group_with_zero.defs
import algebra.hom.units
import logic.nontrivial
import group_theory.group_action.units
/-!
# Group... |
c5e0e45baf9fc6ee7307d6837b4a2b0e8766c574 | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/algebra/category/constructions/comma.hlean | 29342b46d5a9f1cdabe4bee86c2408e5872a5607 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 6,745 | 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
Comma category
-/
import ..functor.basic ..strict ..category
open eq functor equiv sigma sigma.ops is_trunc iso is_equiv
namespace category
structure comma_ob... |
c4fc15e3fa2c6f0349948956501327af2d672b1e | fef48cac17c73db8662678da38fd75888db97560 | /src/for_mathlib/exactly_divides.lean | da7959feefcfc63a10ebf9b4fb23d6acf319f8a9 | [] | no_license | kbuzzard/lean-squares-in-fibonacci | 6c0d924f799d6751e19798bb2530ee602ec7087e | 8cea20e5ce88ab7d17b020932d84d316532a84a8 | refs/heads/master | 1,584,524,504,815 | 1,582,387,156,000 | 1,582,387,156,000 | 134,576,655 | 3 | 1 | null | 1,541,538,497,000 | 1,527,083,406,000 | Lean | UTF-8 | Lean | false | false | 4,496 | lean | import data.nat.prime
import algebra.order_functions
open nat
-- local attribute [trans] dvd_trans
-- Definition
def exactly_divides (p : ℕ) (r : ℕ) (n : ℕ) := p^r ∣ n ∧ ¬(p^(succ r) ∣ n)
notation p`^`r `∣∣`:50 n:50 := exactly_divides p r n
section
variable {p : ℕ}
-- Equivalent definitions
lemma exactly_divides'... |
0bdec7a3cb5151b285f5d3563746baf9a028250a | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/t11.lean | 88f7bb7311459f35c52178083aca660dbecf162b | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 380 | lean | variable A : Type.{1}
definition bool : Type.{1} := Type.{0}
variable Exists (P : A → bool) : bool
notation `exists` binders `,` b:(scoped b, Exists b) := b
notation `∃` binders `,` b:(scoped b, Exists b) := b
variable p : A → bool
variable q : A → A → bool
check exists x : A, p x
check ∃ x y : A, q x y
notation `{`... |
13c401167a67a34ab9361f1b69c26eaa3d94e889 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/Open.lean | 9d0576079cbcc8fc256313d0a23860b774671d64 | [
"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 | 4,302 | 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.Log
import Lean.Elab.Util
namespace Lean.Elab
namespace OpenDecl
variable [Monad m] [STWorld IO.RealWorld m] [MonadEnv m]
variable [MonadExcep... |
d446380885cf0acf50195c54ed23c3be0324a0e9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/500_lean3.lean | 67a3de01d18adf74f7fa7fe95c57df838f8a5cc4 | [
"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 | 125 | lean | example (foo bar : Option Nat) : False := by
have : do { let x ← bar; foo } = bar >>= fun x => foo := rfl
admit
done
|
8009447c904ba5c91d34aa965af34b0edbe375cd | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/strict.hlean | a39a413cad23e5c69607a80c35790411d07fa7c2 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 1,502 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
-/
import .functor.basic
open is_trunc eq
namespace category
structure strict_precategory [class] (ob : Type) extends precategory ob :=
mk' ... |
f3a1417e1ce862efee223b6323ce1812e091eb77 | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/products/associator.lean | 7ab05e6e099993f522842436c4e34430b99454ac | [] | no_license | PatrickMassot/lean-category-theory | 0f56a83464396a253c28a42dece16c93baf8ad74 | ef239978e91f2e1c3b8e88b6e9c64c155dc56c99 | refs/heads/master | 1,629,739,187,316 | 1,512,422,659,000 | 1,512,422,659,000 | 113,098,786 | 0 | 0 | null | 1,512,424,022,000 | 1,512,424,022,000 | null | UTF-8 | Lean | false | false | 1,057 | 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 ..products
open categories
open categories.functor
open categories.natural_transformation
namespace categories.products
-- PROJECT; by ag... |
9c5daf5f803a94628599288135020f00fb6cdd17 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/quadratic_discriminant.lean | 9ff7b107a4acc86857d5c72f91cc21ee370beb38 | [
"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 | 5,760 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import algebra.char_p.invertible
import order.filter.at_top_bot
import tactic.linarith
/-!
# Quadratic discriminants and roots of a quadratic
This file defines the di... |
7958909606a11b33166a3113f8d3c99147b4ce76 | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/hit/pushout.hlean | 070fd7c46996704cb3f83d890c3e48fe450a0a07 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 14,463 | hlean | /-
Copyright (c) 2015-16 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Ulrik Buchholtz, Jakob von Raumer
Declaration and properties of the pushout
-/
import .quotient types.sigma types.arrow_2
open quotient eq sum equiv is_trunc ... |
7ef7373eb78d94e2044ffbba580fca4764a94833 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/using_smt2.lean | bf0c31e0bf1324396c39e02e48f7662798360606 | [
"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 | 1,275 | lean | open smt_tactic
lemma ex (p q : Prop) : p → q → p :=
by using_smt $ intros
lemma ex2 (p q : Prop) : ¬ p → q → ¬ p :=
by using_smt $ intros
lemma ex3 (p q : Prop) : p → (p ↔ q) → q :=
by using_smt $ intros
lemma ex4 (p q : Prop) : p → (p → q) → q :=
by using_smt $ intros
lemma ex5 (p q : Prop) : (p → q) → p → q :=
... |
baaaac149dc024e8a12e5813c86ddc14d690293c | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/st_options.lean | f59581b23bb1bbb28b877756f609f6b2d576344a | [
"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 | 2,938 | lean | set_option structure.eta_thm true
set_option structure.proj_mk_thm true
structure has_mul [class] (A : Type) :=
(mul : A → A → A)
structure has_add [class] (A : Type) :=
(add : A → A → A)
structure has_one [class] (A : Type) :=
(one : A)
structure has_zero [class] (A : Type) :=
(zero : A)
structure has_inv [class]... |
689f40934e2d30c8e98e5e23711280b3190ccf0a | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p1_categories/c7_cat_of_cats.lean | 7858cc78ca0cdbd2371ec5050862bdef79e89841 | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 67 | lean | import .c7_cat_of_cats.s1_basic
import .c7_cat_of_cats.s2_conduche
|
8881f4a68de886954c1ae61503b925b62ae42b31 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/list/range.lean | 443509f7701e83e2c41b13e876be7088ec5ae271 | [
"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 | 11,950 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Scott Morrison
-/
import data.list.chain
import data.list.nodup
import data.list.of_fn
import data.list.zip
/-!
# Ranges of naturals as lists
This file sho... |
63814c72be9cef5871580ecdb02a527ea855db5f | 9cba98daa30c0804090f963f9024147a50292fa0 | /old/src/classical_acceleration.lean | f9fb560fc8e3c91f2760e49419da606cd1876d4f | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 571 | lean | import .classical_velocity
import .classical_time
-- id serves as unique ID for a given acceleration space
structure classicalAcceleration : Type :=
mk :: (id : ℕ) (v : classicalVelocity) (t : classicalTime)
-- provide standard 3D acceleration object
def worldAcceleration := classicalAcceleration.mk 0 worldVelocity ... |
753826b942b86ed88db6f2a54457aa354e1a3195 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/trace.lean | 5f16361c7da3877a6b40ee94916d2da853a07d2b | [
"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 | 23,502 | 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 linear_algebra.matrix.bilinear_form
import linear_algebra.matrix.charpoly.minpoly
import linear_algebra.determinant
import linear_algebra.finite_dimensional
import ... |
1c91a32731c6c8d7185f70030e24f45ad98b30ee | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/order_functions.lean | 0d851a82e276f7a06209428c2b6e1f74cfbf34c8 | [
"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 | 5,119 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.order
import order.lattice
/-!
# `max` and `min`
This file proves basic properties about maxima and minima on a `linear_order`.
## Tags
min, max
-/... |
33736b7a74735745c8bccbaefc19d7d840a94929 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/category_theory/monad/limits.lean | 30383f13b4b8a193a0d6f94b783e8f0fc02156e4 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 4,698 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.monad.adjunction
import category_theory.adjunction.limits
namespace category_theory
open category
open category_theory.limits
universes v₁ v₂... |
feb8fd10f4a6f1c94319c92fe23e231f025c46ed | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/metric_space/hausdorff_distance.lean | ad1ea0644a4e024849d1c504ce1c67fbf929260a | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 32,321 | 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
The Hausdorff distance on subsets of a metric (or emetric) space.
Given two subsets `s` and `t` of a metric space, their Hausdorff distance is the smallest `d`
such... |
7902211ee07e8691a5db5b44bfe9870810488e03 | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/multiplication/3.lean | fe7c2e8d497401c11ec85af438a5d4648c05211d | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 144 | lean | lemma one_mul (m : mynat) : 1 * m = m :=
induction m with n hn,
rwa mul_zero,
rw [mul_succ, hn, one_eq_succ_zero, add_succ],
simp,
end
|
d8dcfb85c83824aa75ffb7b0f679976a710c7ed2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group/to_additive_auto.lean | 4e5626849cda9b959f4ce4aa718cc21ac4873ba8 | [] | 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 | 2,857 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury Kudryashov.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.transform_decl
import Mathlib.tactic.algebra
import Mathlib.PostPo... |
1ec7448fce9b82c98767e2fb9d781321f09156a5 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/analytic/linear.lean | cd667f725283e48801d6a22e811f9a7839927617 | [
"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,257 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.analytic.basic
/-!
# Linear functions are analytic
In this file we prove that a `continuous_linear_map` defines an analytic function with
th... |
9fcbe933380eb4c11b732ac42c41022051b4f47e | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/Elab/ResolveName.lean | b7d03feb70652c4290f7e09f88b8a8a68e2e79f5 | [
"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 | 5,782 | 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.Hygiene
import Lean.Modifiers
import Lean.Elab.Alias
namespace Lean
namespace Elab
inductive OpenDecl
| simple (ns : Name... |
6f22e429c876cdbaf27dfc312affaa7cc7dc9e91 | 3c453925e3aae41b20e0567130c33a61fb1c5854 | /src/vec_space.lean | 86b1d2febb81b1e95c716adf5a65e233d676b309 | [] | no_license | agusakov/vector_spaces | f7e272e9403a87a72b49d92ce759e4ebe9e4d55c | b23954c19b357a689e2a73e07fcf6c9e4a74713a | refs/heads/master | 1,670,493,487,137 | 1,596,908,778,000 | 1,596,908,778,000 | 283,599,211 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,167 | lean | import algebra.field
import algebra.module
universes u v w x
--class has_scalar (F : Type u) (α : Type v) := (smul : F → α → α)
--infixr ` • `:73 := has_scalar.smul
-- modules for a ring
class vec_space (F : Type u) (α : Type v) [field F] [add_comm_group α]
extends has_scalar F α :=
(smul_add : ∀ (r : F) (x y : α)... |
4dd0226b5b7b2a6cfa847e20aa57961e2ca8e3a6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/partialIssue.lean | 55dc64c0d5cd1a3ec467f1b4f36e1b5a1613ab68 | [
"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 | 252 | lean | import Lean.CoreM
#eval Lean.addDecl <| .mutualDefnDecl [{
name := `False_intro
levelParams := []
type := .const ``False []
value := .const `False_intro []
hints := .opaque
safety := .partial
}]
theorem False.intro : False := False_intro
|
1bd3951f803ccc5c1a8d9f09e479a18f6f00b652 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /gourp1.lean | bb9afe946f05be1a2b1549ec1b88c90a3a2d9390 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,312 | lean | import tactic.find data.equiv algebra.group_power data.fintype data.set.finite set_theory.cardinal data.set.lattice
noncomputable theory
local attribute [instance, priority 0] classical.prop_decidable classical.dec_pred
local attribute [instance] set_fintype
open fintype
local infix `^` := gpow
universe u
instance {... |
7d3a0392840c246f71e8ec57e0759471c74e6f87 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/algebra/order.lean | fa106d3de01d14d20680c409e1183ffa9b157887 | [
"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 | 9,443 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
universe u
variables {α : Type u}
@[simp] lemma ge_iff_le [preorder α] {a b : α} : a ≥ b ↔ b ≤ a := iff.rfl
@[simp] lemma gt_iff_lt [preorder α] {a b : α} : a > b ↔... |
0701c090db8dbdcdc862bbe3535cd11c76e02ccd | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/data/support.lean | 6ef0c804df3fb2d3565b590e0b762c6594f3a72f | [
"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 | 4,542 | 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 order.conditionally_complete_lattice
import algebra.big_operators
/-!
# Support of a function
In this file we define `function.support f = {x | f x ≠ 0}` a... |
3d1f559155456409d213ae0c35aa9f7f4b51c7ff | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/depFieldIssue.lean | 1583584138429e81e6dec1e10982553073d03cc4 | [
"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,156 | lean | import Lean
inductive SF : Type u → Type u → Type (u+1) where
| seq {as bs cs: Type u}: SF as bs → SF bs cs → SF as cs
| fan {as bs cs: Type u}: SF as (bs × cs)
inductive SF' (m: Type (u+1) → Type u)[Monad m]: Type u → Type u → Type (u+1) where
| seq {as bs cs: Type u}: SF' m as bs → SF' m bs cs → SF' m as c... |
319f27ee143985ae9a10e3f76a933e3139a9d5d1 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/deprecated/submonoid.lean | 1cec680bb520167fe8cd2c51f62a932b27ee1843 | [
"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,086 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard
-/
import group_theory.submonoid.basic
import algebra.big_operators.basic
import deprecated.group
/-!
# Unbund... |
bbfc6386e63599c5d6e64dc47fe514da7ecc05eb | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group/basic.lean | d69c65d41f6cba2910a9d86e9e1cad06d05b6c45 | [] | 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 | 23,111 | 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, Simon Hudon, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.defs
import Mathlib.logic.funct... |
d93e1c2bd9f4c6c0a5b40195d1b6243ffc3e7bd8 | 49ffcd4736fa3bdcc1cdbb546d4c855d67c0f28a | /library/init/algebra/ordered_group.lean | 7f71d40289fa5d953558e938c5398d9d25e29006 | [
"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 | 20,011 | 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.order init.algebra.group
/- Make sure instances defined in this file have lower priority than the ones
define... |
6555f75c4f53b8fb51dd64d83551747f943e8df9 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/order/complete_lattice.lean | b14b56aa9a85fdd9d0cdf2a385e197e8a3373e4d | [
"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 | 40,766 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.bounds
/-!
# Theory of complete lattices
## Main definitions
* `Sup` and `Inf` are the supremum and the infimum of a set;
* `supr (f : ι → α)` and `in... |
3a9846ba71b3bffa1067ace9a83bbcc039a96d52 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/nullstellensatz.lean | cc6e6adabe9b96fa5b40d365924f6f69efe74a0b | [
"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,177 | lean | /-
Copyright (c) 2021 Devon Tuma. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Devon Tuma
-/
import ring_theory.jacobson
import field_theory.is_alg_closed.basic
import field_theory.mv_polynomial
import algebraic_geometry.prime_spectrum
/-!
# Nullstellensatz
This fil... |
a2193eb6696413be5510e537fac0d66cf2ede7db | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Mon/limits.lean | d297a826df94852c9e880c2143935b8e0c7321d8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,586 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.pi
import Mathlib.algebra.category.Mon.basic
import Mathlib.group_theory.subm... |
dcd1f5c8c34a9869c3b046aa09a5137ae9d02ef7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/set_theory/ordinal/basic.lean | c9ccd28a73e4811983e94ef93802651ba5d8c2c8 | [
"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 | 48,616 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import data.sum.order
import order.initial_seg
import set_theory.cardinal.basic
/-!
# Ordinals
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ch... |
7d9168c355258a1407cb4683f1ed6773c25513a6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/subring/basic.lean | 57554df96a9d1f2a7d09270dde0f28b75e5e6d11 | [
"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 | 46,820 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import group_theory.subgroup.basic
import ring_theory.subsemiring.basic
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subring type `subring... |
0ae690ec47ae38eef5469c9f4867e9425ff44f03 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/category_theory/limits/shapes/kernels.lean | 3f78c56eaf5a27ff25592646d61c2522e2745716 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,320 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import category_theory.limits.shapes.zero
import category_theory.limits.shapes.equalizers
/-!
# Kernels and cokernels
In a category with zero morphis... |
6811f579e2c0b552b773b0e7be6675e81843cd15 | fe84e287c662151bb313504482b218a503b972f3 | /src/poset/category.lean | a2266d19393fcbab4f537cad265a81ddc1bf36ec | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 551 | lean | import category_theory.concrete_category
universes u v
open category_theory
@[reducible] def POSet : Type (u+1) := bundled partial_order
namespace POSet
instance (P : POSet) : partial_order P := P.str
/-
instance concrete_is_poset_hom :
concrete_category @is_group_hom :=
⟨by introsI α ia; apply_instance,
by i... |
561651477164e51a7dcaff455d32b58f6dd4b490 | 5ca87fb2890eabae94422af0565520bfafd6c4ae | /lean/common.lean | 9a0a661d51a669c59bd4b594720c562f1fef196f | [
"Apache-2.0"
] | permissive | dagit/reopt-vcg | 5b7e1a0eceaac4736fd8ab8985d861c86ac5cff2 | a80da1c1ff8dbf28d864b30999b166f76e66e231 | refs/heads/master | 1,585,418,433,534 | 1,541,806,437,000 | 1,541,806,437,000 | 148,844,174 | 0 | 0 | null | 1,536,960,966,000 | 1,536,960,966,000 | null | UTF-8 | Lean | false | false | 25,526 | lean | import .coe1
-- This tries to prove a property by just running the evaluator.
meta def dec_trivial_tac : tactic unit := do
tgt ← tactic.target,
tactic.apply $ (`(@of_as_true) : expr) tgt,
tactic.triv
def unlines : list string → string := list.foldr (λx r, x ++ "\n" ++ r) ""
-- Library for buidling s expression... |
c9cc47ccbfa9247ec8592dbac9483706e86eb91f | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/ring_theory/ideal/operations.lean | b3d1b9ef509f15baeedb8025c3ce5f00b331cd80 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,153 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.operations
import algebra.algebra.tower
import data.equiv.ring
import data.nat.choose.sum
import ring_theory.ideal.quotient
import ring_theory.non_zero_d... |
8f23ab71723360e59711253eecc34dbcdd7a6352 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/measure_theory/l1_space.lean | 395d0d153a528bb96e8b17dc9dc987ba48bb8f91 | [
"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 | 36,481 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.lp_space
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic properties o... |
16462af4131507c90d3504d7f0a25664fd7697c9 | 37683ecbb27d7c2037bfd9ad7e06d662f460a005 | /homotopy/susp.hlean | 285653a32a4da545d8451128a4540a33c243bfc4 | [
"Apache-2.0"
] | permissive | GRSEB9S/Spectral-1 | b2443b09cae7aac1247b1f88c846c532ac802b8e | dd14277e0bfc6270a488eb3b9ec231484065b9d8 | refs/heads/master | 1,631,315,269,407 | 1,522,048,315,000 | 1,522,799,803,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,495 | hlean | import .pushout types.pointed2 ..move_to_lib
open susp eq pointed function is_equiv lift equiv is_trunc nat
namespace susp
variables {X X' Y Y' Z : Type*}
definition iterate_susp_iterate_susp_rev (n m : ℕ) (A : Type*) :
iterate_susp n (iterate_susp m A) ≃* iterate_susp (m + n) A :=
begin
induction n wi... |
014e8c283b105e97de118ec534ebe6a80d8b0008 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/prime_ideal.lean | 09e5457b2ea8054d71bb992b2b50e30f0f807119 | [
"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 | 6,176 | lean | /-
Copyright (c) 2021 Noam Atar. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Noam Atar
-/
import order.ideal
import order.pfilter
/-!
# Prime ideals
## Main definitions
Throughout this file, `P` is at least a preorder, but some sections require more
structure, su... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.