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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
96ecb08532855d1800fcb4fa52b40e81e0016505 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/group_theory/presented_group.lean | eeaf9f3ee73f75a7044d547506bb37edafafa837 | [
"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 | 2,840 | lean | /-
Copyright (c) 2019 Michael Howes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Howes
Defining a group given by generators and relations
-/
import group_theory.free_group group_theory.quotient_group
variables {α : Type}
/-- Given a set of relations, rel... |
a6ce61c736274330ae5af8ea8ee7c943bc0d6806 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/local_ref_bugs.lean | 613504d744e8189545054243ca2815b07a1c204f | [
"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 | 710 | lean | set_option pp.all true
section
parameter α : Type
inductive foo : Type | a : α → foo | b
#check (foo.b : foo)
open foo
#check (foo.b : foo)
#check (b : foo)
open tactic
include α
example : true :=
by do
e ← to_expr ```(b),
t ← infer_type e,
trace "-------",
trace e,
trace t,
trace "-------",
triv
def e... |
2097c0188d89cd2a6917a4eacb3d526a8876a9a4 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /linear_algebra/tensor_product.lean | 9f31518e6ec3131e0efcbb4fdf692b14457a82ff | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 14,957 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro
Tensor product of modules over commutative rings.
-/
import group_theory.free_abelian_group
import linear_algebra.direct_sum_module
variables {R : Type*} [comm... |
007c1f1b3947d4fef74d3aabd354b6a5dc69fc16 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/const.lean | 78a6411ac0cdc0e776e69143ef7b5af4ce0537e2 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 2,814 | 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.opposites
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first; see `category_theory.category` for an explanation
open category_theory
nam... |
daec594cddd9e82536e39f7b00abaf9ed095ad80 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/error_pos.lean | ef4706d2e32b2fd38aae2ddfa6e1c6c55450b56e | [
"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 | 491 | lean | example (A : Type) (B : A → Type) (b : B) : true :=
trivial
example : ∀ (A : Type) (B : A → Type) (b : B), true :=
begin
intros, trivial
end
#check λ (A : Type) (B : A → Type) (b : B), true
#check λ (A : Type) (B : A → Type), B → true
#check λ (A : Type) (B : A → Type) b, (b : B)
example {A : Type} {B : Type} {a... |
e2b1cb1d4f6a223fd8a509ec8528b0b78bded12b | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/matrix/notation.lean | 32585fcf769c580533455582e464088f16be1966 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,732 | 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 data.fintype.card
import data.matrix.basic
import tactic.fin_cases
/-!
# Matrix and vector notation
This file defines notation for vectors and matrices. Given `a ... |
dae07152693644608827b75c5d019383ff005e3b | 3618c6e11aa822fd542440674dfb9a7b9921dba0 | /scratch/coprod/free_group.lean | 3c47af6e9857a644f994c1af124174e811d0b08f | [] | no_license | ChrisHughes24/single_relation | 99ceedcc02d236ce46d6c65d72caa669857533c5 | 057e157a59de6d0e43b50fcb537d66792ec20450 | refs/heads/master | 1,683,652,062,698 | 1,683,360,089,000 | 1,683,360,089,000 | 279,346,432 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,607 | lean | import data.list.chain data.int.basic tactic data.list.basic
variables {α : Type*}
open list
def reduced (l : list (α × ℤ)) : Prop :=
l.chain' (λ a b, a.1 ≠ b.1) ∧ ∀ a : α × ℤ, a ∈ l → a.2 ≠ 0
@[simp] lemma reduced_nil : reduced ([] : list (α × ℤ)) :=
⟨list.chain'_nil, λ _, false.elim⟩
lemma reduced_of_reduced_con... |
dc7798b568a8172410eec9a7a76ae25c288162b0 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /omin/presheaf3.lean | 9e89d58e103e24240c7f3e9f3553e46162f66509 | [] | 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 | 791 | lean | import .presheaf2
universes v u
namespace o_minimal
variables {R : Type} (S : struc R)
class psh' (X : Type v) :=
(definable : Π {K : Def S}, (K → X) → Sort v)
-- restriction
-- coherence
instance (X : Type) [definable_psh S X] : psh' S X :=
{ definable := λ K f, definable_psh.definable f }
instance Type.psh' : p... |
b9eac421b55bebb2b89778675b6c0efa4d51813f | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/basic_skills/unnamed_813.lean | fe9c1e2571f831aa54ae4136a1da298ae4aaaf2f | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 183 | lean | namespace my_ring
variables {R : Type*} [ring R]
-- BEGIN
lemma one_add_one_eq_two : 1 + 1 = (2 : R) :=
by refl
theorem two_mul (a : R) : 2 * a = a + a :=
sorry
-- END
end my_ring |
7bdec28216d032c6bd0dc47855fe55cc95a5cf2d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebraic_geometry/prime_spectrum.lean | d1e458e19e3e4ac7896ffc16932d8e8acfa253f8 | [
"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 | 20,167 | 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 topology.opens
import ring_theory.ideal.prod
import linear_algebra.finsupp
import algebra.punit_instances
/-!
# Prime spectrum of a commutative ring
The prim... |
b75e1e9ccb7a459762d1d50be74cc6fb24644eb3 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/order/directed.lean | 0ad66c03c30ebbd7b95f93d58f15fd73b3f652db | [
"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 | 3,083 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import order.lattice
import data.set.basic
universes u v w
variables {α : Type u} {β : Type v} {ι : Sort w} (r : α → α → Prop)
local infix ` ≼ ` : 50 := r
/-- A fam... |
1d6446bb5b2ac4800470ccf2498d0a280c56adcf | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Meta/Tactic/Rewrite.lean | 87ffadfd08761e0602ef2aefc67f43a0840bf080 | [
"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 | 2,560 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.AppBuilder
import Lean.Meta.KAbstract
import Lean.Meta.Check
import Lean.Meta.Tactic.Apply
namespace Lean
namespace Meta
structure Rewrit... |
6e6a8cd05e0b65e618c1bc7a917fb30ae8b5e516 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/continuous_on.lean | 0a3c6b24c34ef70bb5f3cb70710aca7571695a2c | [
"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 | 24,277 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
`nhds_within` of `nhds`
`contin... |
b5aecb49e0c9617852e6960383e24222e3e00e97 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/types/identifier_types.lean | 653fd5a04f29740ebf21403b6e5f601a69a24d3e | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 412 | lean | /-
Identifiers, bindings, types
-/
/-
Identifiers are terms in Lean. All terms have
types. So identifiers have types. The type of
an identifier is the type of the term to which
the identifier is bound.
-/
def b' : bool := (tt : bool) -- types explicit
def b := tt -- types inferred
-- type inference
d... |
0072dffae043948ea70d89681af40a26d7bf29f1 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/equiv/list.lean | bb378be238a5230f12c228c8c5521e69d2795182 | [
"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 | 10,362 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Additional equiv and encodable instances for lists, finsets, and fintypes.
-/
import data.equiv.denumerable data.nat.pairing order.order_iso
data.array.lemmas data.fin... |
58db610ea8e067c723c1318f25981418f78f9a4e | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/linear_algebra/basic.lean | e5b380bf5488b5a436913372b9cfeabd322ed287 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 78,692 | 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, Kevin Buzzard
-/
import algebra.pi_instances data.finsupp data.equiv.mul_add order.order_iso
/-!
# Linear algebra
This file defines the basics of lin... |
06c3269dbabd7accff0aab0941b2869f58d51e4d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Util/MonadBacktrack.lean | e9b1262e0d4a4e4c96ee41d1d367c66b4cdb0dfb | [
"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,215 | 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
-/
namespace Lean
/-- Similar to `MonadState`, but it retrieves/restores only the "backtrackable" part of the state -/
class MonadBacktrack (s : outParam Typ... |
cf01c3a08852437d75c8de42a8227b0886f98a89 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/class6.lean | 3b75c188e863495e114900bf211da5542c0b991f | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 294 | lean | import logic data.prod
open prod
inductive t1 : Type :=
mk1 : t1
inductive t2 : Type :=
mk2 : t2
theorem inhabited_t1 : inhabited t1
:= inhabited.mk t1.mk1
theorem inhabited_t2 : inhabited t2
:= inhabited.mk t2.mk2
instance inhabited_t1 inhabited_t2
theorem T : inhabited (t1 × t2)
:= _
|
eb5512b139e5a4dd1fa72c033b31bfb8e22fae0b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/set_theory/ordinal/arithmetic.lean | 2f30eb33d62a759d47a7692db2cb755b841ba806 | [
"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 | 95,991 | 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, Violeta Hernández Palacios
-/
import set_theory.ordinal.basic
import tactic.by_contra
/-!
# Ordinal arithmetic
Ordinals have an addition (correspond... |
d6c1f90214798a63df7cf4254e4d9c4ecfb508a7 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/data/lazy_list_auto.lean | e6e15040b2c3c4547c3feee1505983fb00239149 | [] | 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,590 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
universes u l v w
namespace Mathlib
inductive lazy_list (α : Type u) where
| nil : lazy_list ... |
f438a8b3910682d6ad6f51bf2b375a56b439b0ef | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/euclidean/basic.lean | 57d4ced0134472fee9ffe6f08c4c74ab255965dd | [
"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 | 41,868 | 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 analysis.inner_product_space.projection
import algebra.quadratic_discriminant
/-!
# Euclidean spaces
This file makes some definitions and proves... |
fdd829f86cba93b67264b19be004acc2b323b51c | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/tactic/omega/coeffs.lean | 769ca23c08e6bee8458443d8abf2ff2619521dd9 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 10,603 | lean | /- Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
Non-constant terms of linear constraints are represented
by storing their coefficients in integer lists. -/
import data.list.func
import tactic.ring
import tactic.omega.misc
name... |
576e55cbd7dee927fa3dded6f8fd063cd1630403 | abd85493667895c57a7507870867b28124b3998f | /src/data/real/cau_seq.lean | 15b55497af7825d61bbe3ac55c6861d4701a228e | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 24,856 | 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.big_operators
/-!
# Cauchy sequences
A basic theory of Cauchy sequences, used in the construction of the reals and p-adic numbers. Where
applicable, ... |
a4d568037f415dd89a400c795ed7a017944a03c6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /archive/100-theorems-list/37_solution_of_cubic.lean | efa87d1353b091e1308c82d3ca18777dcbcd3caf | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,896 | lean | /-
Copyright (c) 2022 Jeoff Lee. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeoff Lee
-/
import tactic.linear_combination
import ring_theory.roots_of_unity
import ring_theory.polynomial.cyclotomic.basic
/-!
# The Solution of a Cubic
This file proves Theorem 37 fr... |
85163aae0ef8d3a8698d3ffe3647bc6f84d990bf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/model_theory/skolem.lean | 517db8987361f380bbe45d6daf5e52e17f206b08 | [
"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,154 | 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
/-!
# Skolem Functions and Downward Löwenheim–Skolem
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requi... |
b5962b4e41515861b60d968f269bef7302f9daa1 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebraic_geometry/stalks.lean | afb7eb2c5e230dead3e4958905aa5ca9ae91f5a5 | [
"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 | 2,853 | 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 algebraic_geometry.presheafed_space
import topology.sheaves.stalks
/-!
# Stalks for presheaved spaces
This file lifts constructions of stalks and pushforward... |
9b748685611b20b54d7e594bea5fd88b08448778 | 856e2e1615a12f95b551ed48fa5b03b245abba44 | /src/topology/algebra/module.lean | 1bd3d014e0e7d6306d4a19bb084e223ed247e440 | [
"Apache-2.0"
] | permissive | pimsp/mathlib | 8b77e1ccfab21703ba8fbe65988c7de7765aa0e5 | 913318ca9d6979686996e8d9b5ebf7e74aae1c63 | refs/heads/master | 1,669,812,465,182 | 1,597,133,610,000 | 1,597,133,610,000 | 281,890,685 | 1 | 0 | null | 1,595,491,577,000 | 1,595,491,576,000 | null | UTF-8 | Lean | false | false | 41,545 | 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.uniform_space.uniform_embedding
import ring_theory.algebra
import line... |
861d9bf953dfde8690fc1239ee4aef95347eb43c | abd85493667895c57a7507870867b28124b3998f | /src/category_theory/fully_faithful.lean | 22672639a22a0fffe537f7804d7fa3bc25da99a1 | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 6,454 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import logic.function.basic
import category_theory.natural_isomorphism
universes v₁ v₂ v₃ u₁ u₂ u₃ -- declare the `v`'s first; see `category_theory.category` for an ... |
7c35a064f43645070cde6b7148ac4241a59ce680 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch3/ex0315.lean | 83aedc001d115d351c0b91f3edc4058b32d5ccce | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77 | lean | variables p q : Prop
example (hp : p) (hnp: ¬p) : q := false.elim (hnp hp)
|
5036688b16849a34d3fb7a52aab9e72d767bc98f | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/polynomial/coeff.lean | ffe52898e3a2f79f5f7e12f22f954e6e115721fc | [
"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 | 5,267 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.monomial
import data.finset.nat_antidiagonal
/-!
# Theory of univariate polynomials
The theorems ... |
a2d29ce6d333e4fbb11e6da3351d6aeed510befa | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/field_theory/splitting_field.lean | 5b91a3dd6dade1ec6f8f58a5a9beee9070464fdb | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 8,905 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Definition of splitting fields, and definition of homomorphism into any field that splits
-/
import data.polynomial
import ring_theory.principal_ideal_domain
universes u v... |
158019ddb9cb864296516ea6d43f3315d3019192 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/meta/expr.lean | a7e184993a7705481352f9e66e0b467ecd35a497 | [
"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 | 20,596 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek, Robert Y. Lewis
-/
import data.string.defs
/-!
# Additional operations on expr and related types
This file defines basic op... |
ffc3bc82bc62f73e0c50d28ba3a3f462bdf39f67 | e5c11e5a7d990ce404047c2bd848eeafac3c0a85 | /src/defs.lean | df42a970c9eec179f8b4df5ba314af4ca5231782 | [
"LPPL-1.3c"
] | permissive | lean-forward/class-number | 9ec63c24845e46efc8fa8b15324d0815918292c7 | 4fccf36d5e0e16accae84c16df77a3839ad964e4 | refs/heads/main | 1,686,927,014,542 | 1,624,886,724,000 | 1,624,886,724,000 | 327,319,245 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,971 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.equiv.basic
import algebra.group.defs
import algebra.group.hom
import logic.embedding
/-!
# Definitions of group actions
This file defines a hierarchy of gr... |
fb17afbb87eb2932e6083d33b4bc89acf4b11234 | 0d4c30038160d9c35586ce4dace36fe26a35023b | /src/analysis/calculus/deriv.lean | a091080593086e38ef9f3f756c977700114dba22 | [
"Apache-2.0"
] | permissive | b-mehta/mathlib | b0c8ec929ec638447e4262f7071570d23db52e14 | ce72cde867feabe5bb908cf9e895acc0e11bf1eb | refs/heads/master | 1,599,457,264,781 | 1,586,969,260,000 | 1,586,969,260,000 | 220,672,634 | 0 | 0 | Apache-2.0 | 1,583,944,480,000 | 1,573,317,991,000 | Lean | UTF-8 | Lean | false | false | 57,102 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sébastien Gouëzel
-/
import analysis.calculus.fderiv data.polynomial
/-!
# One-dimensional derivatives
This file defines the derivative of a function `f : 𝕜 → F` wher... |
f8ab1d20cc8169bc55b0d9282b064b77fe14cc0a | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/run/proj.lean | a21d773b07c70e583f299dc6d36864c7fcc9a9a8 | [
"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 | 353 | lean | import logic.eq
inductive sigma2 {A : Type} (B : A → Type) :=
mk : Π (a : A), B a → sigma2 B
#projections sigma2 :: proj1 proj2
check sigma2.proj1
check sigma2.proj2
variables {A : Type} {B : A → Type}
variables (a : A) (b : B a)
theorem tst1 : sigma2.proj1 (sigma2.mk a b) = a :=
rfl
theorem tst2 : sigma2.proj2 (... |
910562f60440084caefe027e49f6087c4fc15bbc | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/principia/myring/basic.lean | 7807263989a37bbc6fd3fe8cb631c11b1efd8bb3 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 5,526 | lean | namespace hidden
-- Commutative Unitary Ring
class myring (α : Type) extends has_add α, has_zero α, has_neg α, has_mul α, has_one α :=
(decidable_eq : ∀ a b : α, decidable (a = b))
(add_assoc (a b c : α) : a + b + c = a + (b + c))
(add_zero (a : α) : a + 0 = a)
(add_neg (a : α) : a + -a = 0)
(mul_assoc (a b c : α) : a... |
42b74fb2aabb75d5a1e238d8202862877470b7e3 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/category_theory/limits/shapes/types.lean | 52068c9106ad267339290a401cbec574892104a5 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,173 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.types
import category_theory.limits.shapes.products
import category_theory.limits.shapes.binary_products
import category_theory.limits.s... |
a8941b385dda0e256b2eb9122df397f2e8cdc3a6 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/limits/presheaf.lean | d91f2030933606d907530c0cb29514d0312b07df | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 16,018 | 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.adjunction.limits
import category_theory.adjunction.opposites
import category_theory.elements
import category_theory.limits.functor_category
import... |
7db03ad94d94ac812e97620328db87ce6b47d0be | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/category_theory/concrete_category/bundled_hom.lean | 82130073462e72aa8888346977a60d7d117d248e | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 5,581 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Yury Kudryashov
-/
import category_theory.concrete_category.basic
import category_theory.concrete_category.bundled
/-!
# Category instances for algebraic structures th... |
df2f0e0368e335d2b11659e5bd90271b46949841 | f7315930643edc12e76c229a742d5446dad77097 | /tests/lean/run/tactic5.lean | 268cdc81e770a365154123225fba21fbcad89288 | [
"Apache-2.0"
] | permissive | bmalehorn/lean | 8f77b762a76c59afff7b7403f9eb5fc2c3ce70c1 | 53653c352643751c4b62ff63ec5e555f11dae8eb | refs/heads/master | 1,610,945,684,489 | 1,429,681,220,000 | 1,429,681,449,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 186 | lean | import logic
open tactic (renaming id->id_tac)
definition id {A : Type} (a : A) := a
theorem tst {A B : Prop} (H1 : A) (H2 : B) : id A
:= by !(unfold id; state); assumption
check tst
|
2ac3127eba97c1eb4096fea80e60665d86f8ccdf | e61a235b8468b03aee0120bf26ec615c045005d2 | /tests/lean/run/termElab.lean | 1901a93a5cfe68daa0928f8aeb74b8aff7a6ca1a | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 687 | lean | import Init.Lean
open Lean
open Lean.Elab
open Lean.Elab.Term
set_option trace.Elab.debug true
def tst1 : TermElabM Unit := do
opt ← getOptions;
stx ← `(forall (a b : Nat), Nat);
dbgTrace "message 1"; -- This message goes direct to stdio. It will be displayed before trace messages.
e ← elabTermAndSynthesize stx none... |
d64a947bf55fba0a2dcf9c3edbe2eea6bc515d14 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp21.lean | 495221b86d3c162b85f383829a682244503d00a2 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 257 | lean | variable vec : Nat → Type
rewrite_set simple
add_rewrite Nat::add_assoc Nat::add_zeror eq_id : simple
variable n : Nat
(*
local t = parse_lean([[ vec n = vec (n + 0) ]])
print(t)
print("===>")
local t2, pr = simplify(t, "simple")
print(t2)
print(pr)
*) |
f729fc80880973a7fc98395bbf6608b6be355e62 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Meta/DiscrTree.lean | f000aff5544ad7d5287d3464db5130f4eebf8200 | [
"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 | 18,237 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.FunInfo
import Lean.Meta.InferType
namespace Lean.Meta.DiscrTree
/-
(Imperfect) discrimination trees.
We use a ... |
57e6194e87671df00dd5143bf5ddb6747b1c5b58 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Init/Control/Reader.lean | 8690305af56a2a24f556baeef9cf3dd6b5e6e37f | [
"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 | 7,071 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
prelude
import Init.Control.MonadControl
import Init.Control.Id
import Init.Control.Alternative
... |
058ef31ce7d1b365de4dbc249d88eb80c97c148f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/quadratic_discriminant.lean | 096cf464351051640dcc04190e1b9fe33e1c3408 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,785 | 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... |
8a64843b272ff389d189b313bc465ccf2001d9fb | b147e1312077cdcfea8e6756207b3fa538982e12 | /data/list/basic.lean | 894b1ce7df5b7940a2bcfff5417592094ec38055 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 153,451 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Basic properties of lists.
-/
import
tactic.interactive tactic.mk_iff_of_inductive_prop tactic... |
644667384e2d634e30e1e4c5d1ad2ae0acc08122 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/glue_data.lean | 94b388c7c0448bb3d444ba865f9387317f265d50 | [
"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 | 12,673 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import tactic.elementwise
import category_theory.limits.shapes.multiequalizer
import category_theory.limits.constructions.epi_mono
import category_theory.limits.preserves.l... |
25067ca8a3eff26424ba55004ea39dca1ccd4998 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/homotopy/interval.hlean | 05bb96132c8345d97b64af2cd21a5406e9493439 | [
"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 | 3,398 | 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
Declaration of the interval
-/
import .susp types.eq types.prod cubical.square
open eq susp unit equiv equiv.ops is_trunc nat prod
definition interval : Type₀ := ... |
2b1bb42f79c60fee2ae2f1026c220c0e27907331 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/analysis/normed_space/real_inner_product.lean | 875e8e789e1cf535b09ef9e5ccc3699ff27e43c9 | [
"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 | 22,029 | 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.quadratic_discriminant
import analysis.special_functions.pow
import tactic.monotonicity
/-!
# Inner Product Space
This file defines real inner product... |
22923a25d6de53403f9c5b71838435009eeda7bc | fa01e273a2a9f22530e6adb1ed7d4f54bb15c8d7 | /src/N2O/Data/Bytes.lean | 8b3f6385e4d3d8648a6fa4b675395d48d0cbc719 | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | o89/n2o | 4c99afb11fff0a1e3dae6b3bc8a3b7fc42c314ac | 58c1fbf4ef892ed86bdc6b78ec9ca5a403715c2d | refs/heads/master | 1,670,314,676,229 | 1,669,086,375,000 | 1,669,086,375,000 | 200,506,953 | 16 | 6 | null | null | null | null | UTF-8 | Lean | false | false | 816 | lean | def UInt16.nthByte (x : UInt16) (n : Nat) : UInt8 :=
(UInt16.land (x.shiftRight $ 8 * UInt16.ofNat n) 255).toUInt8
def UInt32.nthByte (x : UInt32) (n : Nat) : UInt8 :=
(UInt32.land (x.shiftRight $ 8 * UInt32.ofNat n) 255).toUInt8
def iotaZero : Nat → List Nat
| 0 => [0]
| n + 1 => (n + 1) :: iotaZero n
def UInt1... |
2a5ac1581b39c94c641579c96065a8956406bda9 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/qpf/multivariate/constructions/fix.lean | c4042efdb0ddfcc2e08984be1040caf65e30f47d | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,880 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Simon Hudon
-/
import data.pfunctor.multivariate.W
import data.qpf.multivariate.basic
universes u v
/-!
# The initial algebra of a multivariate qpf is again a qpf.
For ... |
111fda742b0233eec0c324d2a64e1d9ff89c4e6e | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/polynomial/group_ring_action.lean | b1d42107295c785d763d5fcf73b822222c425103 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 5,318 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.polynomial.monic
import data.polynomial.algebra_map
import algebra.group_ring_action
import algebra.group_action_hom
/-!
# Group action on rings applied to polyno... |
ff3cc894db79d9bcfd054f5e410fc876956cb9ce | b7b549d2cf38ac9d4e49372b7ad4d37f70449409 | /src/LeanLLVM/Driver.lean | cf4eed10dedb43ea914f90ecdc05dc26b7a2b42f | [
"Apache-2.0"
] | permissive | GaloisInc/lean-llvm | 7cc196172fe02ff3554edba6cc82f333c30fdc2b | 36e2ec604ae22d8ec1b1b66eca0f8887880db6c6 | refs/heads/master | 1,637,359,020,356 | 1,629,332,114,000 | 1,629,402,464,000 | 146,700,234 | 29 | 1 | Apache-2.0 | 1,631,225,695,000 | 1,535,607,191,000 | Lean | UTF-8 | Lean | false | false | 1,908 | lean | import Init.Data.RBMap
import Init.Control.Except
import Galois.Data.Bitvec
import LeanLLVM.AST
import LeanLLVM.PP
import LeanLLVM.DataLayout
import LeanLLVM.LLVMLib
import LeanLLVM.LLVMOutput
import LeanLLVM.SimMonad
import LeanLLVM.Simulate
open LLVM.
def readmainActual (x:String) : IO UInt32 := do
ctx ← FFI.ne... |
1b39bc0bdf8f90318f320042b60f9bdd83953c22 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/set/finite.lean | 671a1b373e3c8ec42633aaed235b1daaf679c966 | [
"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 | 25,213 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.fintype.basic
/-!
# Finite sets
This file defines predicates `finite : set α → Prop` and `infinite : set α → Prop` and proves some
basic... |
e7c1a94ecd2625a42f2fa8cb9f81c6fb6792491e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/class4.lean | c66da2bd2c05697a5186156fb796804ae3adad58 | [
"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 | 2,469 | lean | prelude
import logic
namespace experiment
inductive nat : Type :=
| zero : nat
| succ : nat → nat
open eq
namespace nat
definition add (x y : nat)
:= nat.rec x (λ n r, succ r) y
infixl `+` := add
theorem add.left_id (x : nat) : x + zero = x
:= refl _
theorem succ_add (x y : nat) : x + (succ y) = succ (x + y)
:= re... |
0ec0e261b5cbfaebe8a88da2756e344de8c661e9 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/ring_theory/ideal/operations.lean | 25dfa32d00f421ba5d712a1e9aec09a7443745e4 | [
"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 | 89,968 | 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.ring.equiv
import data.nat.choose.sum
import ring_theory.coprime.lemmas
import ring_theory.ideal.quotient
import ring_theory.no... |
c71af327df1c963b7df3cb0f16412a0b498bfa80 | e21db629d2e37a833531fdcb0b37ce4d71825408 | /src/def_lookup.lean | a672400c2e5848bfa1f31f9a575ef8b4440d4567 | [] | no_license | fischerman/GPU-transformation-verifier | 614a28cb4606a05a0eb27e8d4eab999f4f5ea60c | 75a5016f05382738ff93ce5859c4cfa47ccb63c1 | refs/heads/master | 1,586,985,789,300 | 1,579,290,514,000 | 1,579,290,514,000 | 165,031,073 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 102 | lean | import ..alt.def_lookup
import parlang
import mcl
import syncablep
meta def main := def_lookup.main
|
cb86eadda7bfe0951d8414827b3ec62a7c82696b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/linarith/parsing.lean | c31cdc3b9fcee330dd77d25d9e169ff29f4a44b3 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 7,534 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.datatypes
/-!
# Parsing input expressions into linear form
`linarith` computes the linear form of its input expressions,
assuming (without... |
b8ee5ee0752ccc49ee6df6ab8cb293e1479543df | 3fed20a6f59e2663e48ee3bfc33dbc79256b4a50 | /src/sequent.lean | 8a171961bf631498dbd3fffedb64e9bea79476b1 | [] | no_license | arademaker/alc-lean | 575203dae75f466cc686831d8b0d230fc3c00ced | 46d5b582d4272493a26d6d47c0bfa0622c52aae4 | refs/heads/master | 1,622,696,540,378 | 1,618,442,995,000 | 1,618,442,995,000 | 37,130,780 | 4 | 3 | null | 1,618,365,416,000 | 1,433,853,111,000 | Lean | UTF-8 | Lean | false | false | 15,566 | lean | import alc
import data.multiset
open ALC
open ALC.Concept
-- the labeled concepts
inductive Label : Type
| Forall : Role → Label
| Exists : Role → Label
structure LConcept : Type :=
mk :: (roles : list Label)
(concept : Concept)
open LConcept
open Label
def isAx : Label → Prop
| (Forall _) := true
... |
b0600877c7dedeb5405849e7a938be0a197f5415 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/preadditive/single_obj.lean | 00e2af87425d6c0cf2016a1c2714e0ce6febb495 | [
"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 | 721 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.preadditive.default
import category_theory.single_obj
/-!
# `single_obj α` is preadditive when `α` is a ring.
-/
namespace category_theory
... |
74c21c147277cb8b9649cb0f24615a63103be9cd | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/pi.hlean | 28dfa92c9896b587af3cfce494896598a54d6905 | [
"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 | 12,058 | hlean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about pi-types (dependent function spaces)
-/
import types.sigma arity
open eq equiv is_equiv funext sigma unit bool is_... |
0783893cddf9eff3f69f0a43ba62ed01cc4a11ac | 367134ba5a65885e863bdc4507601606690974c1 | /src/analysis/asymptotics/specific_asymptotics.lean | eb6b3c4b0aa279cab8f59f4e83ad7ac957192125 | [
"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 | 2,631 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.normed_space.ordered
import analysis.asymptotics.asymptotics
/-!
# A collection of specific asymptotic results
This file contains specific lemma... |
2b7f3e4ca2100f797e81dd361dc6085b9ab84e90 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Server/Watchdog.lean | 2402ede8ecb4d3d6c22266aa6e93a376129830e1 | [
"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 | 24,001 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Init.System.IO
import Init.Data.ByteArray
import Std.Data.RBMap
import Lean.Elab.Import
import Lean.Data.Lsp
import Lean.Server.FileSource
... |
a13143f9b43fbef62622ca83c5f2e5b60265390c | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/gcd_monoid.lean | 849561f47a7d123f3d2c8cdafd1b05799d3627e9 | [
"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 | 35,161 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jens Wagemaker
TODO: Provide a GCD monoid instance for `ℕ`, port GCD facts about nats
TODO: Generalize normalization monoids commutative (cancellative) monoids with or... |
0d26a82f9e40fc47d9ce70c45a110a287128a311 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/field_theory/splitting_field.lean | 33c09232c3624680e3feeb2a6d7b991b7ebdbdc9 | [
"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 | 7,795 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Definition of splitting fields, and definition of homomorphism into any field that splits
-/
import ring_theory.unique_factorization_domain
import data.polynomial ring_the... |
fa8770dcd382d6effc07640f388770d40b1359e8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/metric_space/gromov_hausdorff_realized.lean | 1245c6d4a86c0f9edb64abfa751a223f32a0368b | [
"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 | 27,335 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.metric_space.gluing
import topology.metric_space.hausdorff_distance
import topology.continuous_function.bounded
/-!
# The Gromov-Hausdorff dist... |
644f7c39670503afeba6c4d1cafaaa2ac5cb7332 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/logic/function/iterate.lean | d07e04274f4c6e102c1358a962933381992edf9d | [
"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,427 | 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 logic.function.conjugate
/-!
# Iterations of a function
In this file we prove simple properties of `nat.iterate f n` a.k.a. `f^[n]`:
* `iterate_zero`, `it... |
534f48d115894ca06ebace83e5546ec6582b87a2 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/mismatch.lean | eaa1bfd94e270b40f7cebc08ac1dc0ff6ffdb53a | [
"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 | 55 | lean | definition id {A : Type} {a : A} := a
check @id nat 1
|
ac9186f1ea3390063689893925d8c67f2007d648 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/run/quote_bas.lean | 9c42f2764f10be0f86d930256dbe40697efa615d | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 2,506 | lean | universes u v w
namespace quote_bas
inductive Expr (V : Type u)
| One {} : Expr
| Var (v : V) : Expr
| Mult (a b : Expr) : Expr
@[reducible] def Value := nat
def Env (V : Type u) := V → Value
open Expr
def evalExpr {V} (vs : Env V) : Expr V → Value
| One := 1
| (Var v) := vs v
| (Mult a ... |
a8a17f54e97b04c3b8d42b623cc5727d6663bf13 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/polynomial/algebra_map.lean | 58a367498c46d594b26ae4fd085cb1894116f976 | [
"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 | 10,507 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.eval
import algebra.algebra.tower
/-!
# Theory of univariate polynomials
We show that `polynomia... |
20970ae6ac82d24a3154ba182a680ec9d4ac1741 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/caching_user_attribute.lean | b5459dc53bcf24790ece326c925dc68e73b88109 | [
"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 | 648 | lean | @[user_attribute]
meta def foo_attr : user_attribute string :=
{ name := `foo, descr := "bar",
cache_cfg := {
mk_cache := λ ns, return $ string.join (list.map (λ n, to_string n ++ "\n") ns),
dependencies := []} }
attribute [foo] eq.refl eq.mp
set_option trace.user_attributes_cache true
run_cmd do
s :... |
fc95e9024ed9a7b4f860533d838df001b52aeeca | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Elab/Do.lean | 28196eb1d14cbeb3fd033ffede32db521d452345 | [
"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 | 70,313 | 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.Term
import Lean.Elab.BindersUtil
import Lean.Elab.PatternVar
import Lean.Elab.Quotation.Util
import Lean.Parser.Do
-- HACK: avoid code ex... |
218dc4c48a27df2fc8be26b4d427a07f76da5b94 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftSpindle_Shelf.lean | 50b206d5f0ef5e363695896ff87fe8fd6b021891 | [] | 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,515 | 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 LeftSpindle_Shelf
structure LeftSpindle_Shelf (A : Type) : Type :=
(linv : (A → (A → A)))
(leftDistributive : (∀ {x y z : A} , (linv x (linv y z)) = (linv (linv... |
e6aa9e31f8ad83f3fc5c11a46b73fbaf15fc63c8 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch3/ex0211.lean | 0e62130052721f18ccce773fed7bef641d0424ca | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 78 | lean | variables p q : Prop
variable hp : p
theorem t1 : q → p := λ (hq : q), hp
|
a701b4d3d9fc1b81e9a6d4b81a8201a1fb7217e4 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/sites/closed.lean | 8e8c0cc40eafe5af580de71e11333228b314909b | [
"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 | 12,156 | 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.sites.sheaf_of_types
import order.closure
/-!
# Closed sieves
A natural closure operator on sieves is a closure operator on `sieve X` for each `X... |
30fa0a6eaca08fcdb5ee54f130445ed6e1e22d87 | 048b0801f6dafb6486ca4f22bd0957671c3002ff | /src/basic/list.lean | 628ee62c142eb0a528b297016fe4442cd0136a24 | [
"Apache-2.0"
] | permissive | Scikud/lean-gym | e0782e36389ecfa1605a0c12dc95f67014a0fa05 | a1ca851b7c09eca1f72be2d059e3ed5536348b0b | refs/heads/main | 1,693,940,033,482 | 1,633,522,864,000 | 1,633,522,864,000 | 419,793,692 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,638 | lean | /- Author: E.W.Ayers © 2019.
Copied from the lean-tpe projcet: https://github.com/jesse-michael-han/lean-tpe-public
Some additional helpers for working with lists.
I suspect that I have duplicated some functionality here.
-/
import data.list basic.control
universe u
namespace list
variables {α β : Type u} {T : Type... |
00b3eb3e729e1ea39be0423806ff87c8a307b867 | c8af905dcd8475f414868d303b2eb0e9d3eb32f9 | /src/tactic/custom_wf.lean | db23ae0d622761eef57dc51f40229b1c422ff4a6 | [
"BSD-3-Clause"
] | permissive | continuouspi/lean-cpi | 81480a13842d67ff5f3698643210d8ed5dd08de4 | 443bf2cb236feadc45a01387099c236ab2b78237 | refs/heads/master | 1,650,307,316,582 | 1,587,033,364,000 | 1,587,033,364,000 | 207,499,661 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 595 | lean | namespace tactic
open well_founded_tactics
/-- `fst_dec_tac`, but without the `abstract` (and thus zeta reducing). -/
meta def fst_dec_tac' : tactic unit := do
clear_internals,
unfold_wf_rel,
process_lex (unfold_sizeof >> try (tactic.dunfold_target [``psigma.fst])
>> cancel_nat_... |
bbdb6da9fe9b27960bde0a78eece1d4f260d56ee | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/projection_auto.lean | 789081aa54a8f6d1a8cbf5f8f2999a3d99053a97 | [] | 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 | 11,539 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.basic
import Mathlib.PostPort
universes u_1 u_2 u_3 u_4
namespace Mathli... |
5ab9f377bb438dff9dc424c6a433318dd1692850 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/special_functions/trigonometric/bounds.lean | a781e5dd416f6538ae9e70df3ab68814bd0fe3a6 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,431 | lean | /-
Copyright (c) 2022 David Loeffler. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Loeffler
-/
import analysis.special_functions.trigonometric.basic
import analysis.special_functions.trigonometric.deriv
import analysis.special_functions.trigonometric.arctan_der... |
5f1cbbc68db53d00166f430e321de025b1d91817 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/group_theory/schur_zassenhaus.lean | d7523f51d3821e51be09470eaa224fd8f64fa67f | [
"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 | 8,736 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import group_theory.complement
import group_theory.index
/-!
# Complements
In this file we prove the Schur-Zassenhaus theorem for abelian normal subgroups.
## M... |
7bd58453d1e4dfbad14db0fcf91fd6abb4eabf9b | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Data/List/Control.lean | fb9e329f358d4e02577185fc5c9d6202dcdd98a1 | [
"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 | 5,185 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Control.Monad
import Init.Control.Alternative
import Init.Data.List.Basic
namespace List
universes u v w u₁ u₂
/-
Remark: we can define... |
bb407b7dc9139f61dd6042b1f7e3aa098e58356f | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/measure_theory/lp_space.lean | 3475758e81576870e5264ddb716ed1ab7442e3fd | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 97,621 | lean | /-
Copyright (c) 2020 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Sébastien Gouëzel
-/
import analysis.normed_space.indicator_function
import analysis.normed_space.normed_group_hom
import measure_theory.ess_sup
import measure_theory.ae_eq... |
55bebd02c42cf0a66e97cec8dcd9f00e975f8912 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/polynomial/monic.lean | 77cad7c1143cfa71dfa21dc192a04f147e13a001 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 17,558 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.reverse
import algebra.regular.smul
/-!
# Theory of monic polynomials
We give several tools for p... |
717360f92745c3258c2eedffbae23b4ede35b584 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/nat_bug.lean | 51fc2f301a4860e8f2b8df794229401107a26c04 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 789 | lean | import logic
using decidable
inductive nat : Type :=
zero : nat,
succ : nat → nat
definition refl := @eq.refl
namespace nat
definition pred (n : nat) := nat.rec zero (fun m x, m) n
theorem pred_zero : pred zero = zero := refl _
theorem pred_succ (n : nat) : pred (succ n) = n := refl _
theorem zero_or_succ (n : nat) ... |
d7ba017e2e22b3b6f6d1d94dad9de16ed5d49dce | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/run_parser.lean | 11103ec6722e04f00c75ec19660fc1da46938850 | [
"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 | 312 | lean | import tactic.core
open tactic lean.parser interactive.types
run_parser do
e ← with_input texpr "λ x:ℕ, x",
e ← to_expr e.1,
guard (e =ₐ `(λ x:ℕ, x)),
emit_code_here "def foo := 1"
example : foo = 1 := rfl
-- check that `emit_code_here` terminates properly
run_parser emit_code_here "\n"
|
3c718dc00112f0f6924d76e9631a7799082c89be | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/paracompact.lean | 9e5aa0e7903451d901cd47fadeeeed699c36d0e0 | [
"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 | 15,311 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Yury Kudryashov
-/
import topology.subset_properties
import topology.separation
import data.option.basic
/-!
# Paracompact topological spaces
A topological space `X` is... |
e0593980375044a634c4ecf1abff3d0db8b8e820 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/tactic.lean | b2c74c1474d4897e08f30e8265c9ecc43a54aebd | [
"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 | 466 | lean | import Lean.Meta
open Lean
open Lean.Meta
axiom simple : forall {p q : Prop}, p → q → p
def print (msg : MessageData) : MetaM Unit := do
trace[Meta.Tactic] msg
def tst1 : MetaM Unit := do
let cinfo ← getConstInfo `simple
let mvar ← mkFreshExprSyntheticOpaqueMVar cinfo.type
let mvarId := mvar.mvarId!
let (_, mvarI... |
214fecde25de25a09438d8fd6f6172a3f678bfa8 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/CallingConvention.lean | e7ec83e8e11803304ba55bf104b1d206bb8461a5 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,540 | lean | import Papyrus.Internal.Enum
namespace Papyrus
open Internal
/--
LLVM calling conventions.
Note that LLVM IR allows arbitrary numbers as calling convention identifiers.
-/
enum CallingConvention : UInt32
| /--
The default llvm calling convention, compatible with C.
This convention is the only calling co... |
762e3a235bbcee13dcff3c13fa03011b8a91d9eb | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Meta/PPGoal.lean | 34de76d95f05a65c74bf91cb0bf902b9d0fce2ed | [
"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 | 9,306 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Meta.InferType
import Lean.Meta.MatchUtil
namespace Lean.Meta
register_builtin_option pp.auxDecls : Bool := {
defValue := false
group :=... |
95766917039192b6d74ee1d5dc249e60bbf474ae | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/doIssue.lean | ba487ccb8b9602ab4e6cf8c4c00d144f6e0a31cb | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 466 | lean | def f (x : Nat) : IO Unit := do
x -- Error
IO.println x
def f' (x : Nat) : IO Unit := do
discard x
IO.println x
def g (xs : Array Nat) : IO Unit := do
xs.set! 0 1 -- Error
IO.println xs
def g' (xs : Array Nat) : IO Unit := do
discard <| xs.set! 0 1 -- Error
IO.println xs
def h (xs : Array Nat) : IO ... |
44a1a90164f226283107d65079dc0b38ee701c79 | 5c5878e769950eabe897ad08485b3ba1a619cea9 | /src/categories/isomorphism.lean | d210c26c64898f6db76aa5960d21d69d62eccac2 | [
"Apache-2.0"
] | permissive | semorrison/lean-category-theory-pr | 39dc2077fcb41b438e61be1685e4cbca298767ed | 7adc8d91835e883db0fe75aa33661bc1480dbe55 | refs/heads/master | 1,583,748,682,010 | 1,535,111,040,000 | 1,535,111,040,000 | 128,731,071 | 1 | 2 | Apache-2.0 | 1,528,069,880,000 | 1,523,258,452,000 | Lean | UTF-8 | Lean | false | false | 6,187 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison
import category_theory.category
import category_theory.functor
import .tactics
universes u v
namespace category_theory
structure ... |
09c3070065737d8c2a1eb609957f66db576b761d | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/algebra/uniform_group.lean | 7a8f7faf8dea85efebbe7bfe2487009eb6388249 | [
"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 | 20,527 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Uniform structure on topological groups:
* `topological_add_group.to_uniform_space` and `topological_add_group_is_uniform` can be used to
construct a... |
9e6710d31871c3d7a33f2a5a40134f3e95b7ef6f | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/smt/array.lean | e324f1bc0aa202a4038b2a04a87c6f807ccc802c | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 951 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
namespace smt
universes u v
def array (α : Type u) (β : Type v) := α → β
variables {α : Type u} {β : Type v}
open tactic
def select (a : array α β) (i : α)... |
a2a108317f322d6ba411a374813d4147708dc8d9 | b147e1312077cdcfea8e6756207b3fa538982e12 | /tests/examples.lean | 5a5ba18c47bfa3e152bfe9bce5add46d9fe7389e | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,936 | lean | import tactic data.stream.basic data.set.basic data.finset data.multiset
open tactic
universe u
variable {α : Type}
example (s t u : set ℕ) (h : s ⊆ t ∩ u) (h' : u ⊆ s) : u ⊆ s → true :=
begin
dunfold has_subset.subset has_inter.inter at *,
-- trace_state,
intro1, triv
end
example (s t u : set ℕ) (h : s ⊆ t ∩ u... |
7d24d6e5e997a22c6123a58b850087e904ef31e2 | 0f5090f82d527e0df5bf3adac9f9e2e1d81d71e2 | /src/kenji/polished.lean | e644a06710817acb6896792dbf99485b1e94726f | [] | no_license | apurvanakade/mc2020-lean-projects | 36eb42c4baccc37183635c36f8e1b3afa4ec1230 | 02466225aa629ab1232043bcc0a053a099fdb939 | refs/heads/master | 1,688,791,717,534 | 1,597,874,092,000 | 1,597,874,092,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,803 | lean | import ring_theory.fractional_ideal
import ring_theory.discrete_valuation_ring
import linear_algebra.basic
universes u
open_locale classical
variables (R : Type u) [integral_domain R] (R' : Type u) [comm_ring R']
/-
`local_id_is_id` and the other lemmas probably belong in
`ring_theory/integral_domains` or whatever
Fo... |
d61b49380382f1b615031a8adf89cb6841112288 | 1dd482be3f611941db7801003235dc84147ec60a | /src/data/nat/enat.lean | 217ea571316087f598b5435e767eb773e26a07f9 | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 7,759 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Natural numbers with infinity, represented as roption ℕ.
-/
import data.pfun algebra.ordered_group
open roption lattice
def enat : Type := roption ℕ
namespace enat
inst... |
40704a1fa28323336606e42f6deeb93c3c8f1421 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /tests/lean/run/converter.lean | 8a1a7af1e95812891bca0b9dea58699e286950b1 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 1,706 | lean | open tactic conv
open tactic
run_cmd mk_simp_attr `foo
run_cmd mk_simp_attr `bla
constant f : nat → nat → nat
@[foo] lemma f_lemma : ∀ x, f x x = 0 :=
sorry
constant g : nat → nat
@[bla] lemma g_lemma : ∀ x, g x = x :=
sorry
example (a b c : nat) : (λ x, g (f (a + 0) (sizeof x))) a = 0 :=
by conversion $
whnf >>
... |
0b0c66ad2d1b978ade5bd3a6aa8e9b2991b98664 | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/omega/find_ees.lean | b5be8c3a58484badae1f6bead9e985b4f3aa27ab | [
"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 | 5,566 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
/-
A tactic for finding a sequence of equality
elimination rules for a given set of constraints.
-/
import tactic.omega.eq_elim
variables {α β : Type}
open tactic
namespace... |
dfccdac6be1d9d66d28d07dc5f686c0da011af54 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/fintype/sort.lean | 81e53c957ecd5dc8453aa920cc83b2bda8140b51 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 848 | 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.fintype.basic
import data.finset.sort
variables {α : Type*}
open finset
/-- Given a linearly ordered fintype `α` of cardinal `k`, the equiv `mono_equiv_... |
228ea3dbba650402ddacaa8cbfff6300d08caa72 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/rbtree/basic_auto.lean | e0f42ca4e0802bd7b583969d88e1b513c2ab10f9 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,669 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.data.ordering.default
universes u l v
namespace Mathlib
inductive rbnode (α : Type u) where
| leaf :... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.