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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8066395d07175272c7bf47e4011411fe3526349 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/cc_lemmas.lean | 5da07f56a108bab1cafc8861a9dd9b789a574aaf | [
"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 | 4,638 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.propext init.classical
/-! Lemmas use by the congruence closure module -/
lemma iff_eq_of_eq_true_left {a b : Prop} (h : a = true) : (... |
07b01c3ab3c9054724d1c7e102c34aa42a98c1be | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/tidy.lean | dffbc908fe5a94d14378021fd70f751d60ac3cb8 | [
"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 | 1,006 | 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 tactic.tidy
open tactic
namespace tidy.test
meta def interactive_simp := `[simp]
def tidy_test_1 (a : string) : ∀ x : unit, x = unit.star :=
begin
tidy -... |
3e349280446056fc0d21bf999aba8810a63d6a12 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /09_Type_Classes.org.19.lean | bbd3ad832fac6680ca8fb68132edc773109531ee | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 722 | lean | import standard
import standard
inductive has_add [class] (A : Type) : Type :=
mk : (A → A → A) → has_add A
definition add {A : Type} [s : has_add A] :=
has_add.rec (λ x, x) s
notation a `+` b := add a b
definition has_add_nat [instance] : has_add nat :=
has_add.mk nat.add
definition has_add_int [instance] : has_a... |
62f1d22208e4e2c66c545fbc3f008a7947be7f16 | 367134ba5a65885e863bdc4507601606690974c1 | /src/combinatorics/simple_graph/adj_matrix.lean | 272685834594b9c03fbe1a9f49fa158a7eb4f6ce | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 3,155 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson, Jalex Stark.
-/
import linear_algebra.matrix
import data.rel
import combinatorics.simple_graph.basic
/-!
# Adjacency Matrices
This module defines the adjacency matrix... |
a80d192f6567f5abaed20c2b214978cc1e7ad70a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/ess_sup.lean | 101cfc27943174c300f3bb5d7f0f03a5d31d184c | [
"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 | 11,516 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.constructions.borel_space.basic
import order.filter.ennreal
/-!
# Essential supremum and infimum
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ... |
5ebd1a01d7e0c5ef15e2788ea320067d27881829 | bb31430994044506fa42fd667e2d556327e18dfe | /src/group_theory/perm/support.lean | f8aac0b2bf1e768f3737372f6872642d05c185ea | [
"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 | 20,953 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Aaron Anderson, Yakov Pechersky
-/
import data.finset.card
import data.fintype.basic
import group_theory.perm.basic
/-!
# Support of a permutation
## Main definitions
In... |
a8c58ddd084f8c1e012a7af9c911b77337e509ce | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/buffer/parser/numeral.lean | 050b505ee8b8f2cee2d682ec2ae2e7c19e4145d1 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,207 | lean | /-
Copyright (c) 2020 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.buffer.parser.basic
/-!
# Numeral parsers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4... |
7ec309fa4cbedc4c75f2eaf86e76f180d0028d63 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Meta/Check.lean | ea05f613ae953b4b1d3162af0347505c4a4d8d93 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 7,226 | 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.InferType
/-!
This is not the Kernel type checker, but an auxiliary method for checking
whether terms produced by tactics and `isDefEq` ar... |
e9d7bc0144d9238de443ebc6ea71a06f4637bc84 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/alg_rw.lean | a88d36ec3590381d4249de282c4a33338aab1809 | [
"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 | 315 | lean | import algebra.group
open algebra
section
variable {A : Type}
variable [s : comm_monoid A]
include s
theorem one_mul_one : 1 * 1 = (1:A) :=
mul_one 1
end
section
variable {A : Type}
variable [s : comm_group A]
include s
theorem one_mul_one2 : (one : A) * 1 = 1 :=
by rewrite one_mul_one
end
|
95128fbbc9964894f023c05e96d17318f70b2eff | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/hahn_banach/extension.lean | 80ab1610e970db4f132aafbeb33cbb9489dc7086 | [
"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 | 6,772 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Heather Macbeth
-/
import analysis.convex.cone.basic
import analysis.normed_space.is_R_or_C
import analysis.normed_space.extend
/-!
# Extension Hahn-Banach theorem
I... |
eae035da58d12f126c89743cad7743addc3e5d27 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1951.lean | ca6c1364e6b339640929097f132d6b72530ba86e | [
"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 | 175 | lean | instance my_pow : has_pow ℕ ℕ :=
⟨λ x n, nat.rec_on n 1 (λ _ ih, ih * x)⟩
#eval 2 ^ (3 ^ 2)
#eval 2 ^ 3 ^ 2
example (a b c : nat) : a ^ (b ^ c) = a ^ b ^ c :=
rfl
|
9a40058b3cf76e9d83a589814993cd2bb5702d19 | 61c3861020ef87c6c325fc3c3dcbabf5d6b07985 | /arity.lean | cab58afee0292d078ff6206c12abcd6e7ffc98cc | [
"Apache-2.0"
] | permissive | jonas-frey/hott3 | a623be2959e8a713c03fa1b0f34bf76a561dfa87 | a944051b4eb5919bdc70978ee15fcbb48a824811 | refs/heads/master | 1,628,408,720,559 | 1,510,267,042,000 | 1,510,267,042,000 | 106,760,764 | 0 | 0 | null | 1,507,856,238,000 | 1,507,856,238,000 | null | UTF-8 | Lean | false | false | 12,464 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about functions with multiple arguments
-/
import .init
universes u v w
hott_theory
namespace hott
variables {A : Type _} {U : Type _} {V : Type _} {W : ... |
3a1a7466f34dab2754d05c813d8b06c553b48214 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/nat/cast.lean | 8283d0dab77b1cb6088e62576592fe305f173634 | [
"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,724 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.basic
import data.nat.cast.defs
import algebra.group.pi
import tactic.pi_instances
import data.sum.basic
/-!
# Cast of natural numbers (additional th... |
514dfd0ae04f9918fe53588a796542c8678b1087 | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/compactness.lean | 5944964caa007d8af9b9c10f1be8d842e6d44c94 | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 5,414 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
import .fol
open fol set
universes u v
/-- Given an xs : list α, an x : α, a set T on α such that everything in xs which is not x is in T, retu... |
06e2daa97983277cf8e59c660dbf89ca35c14a30 | 35b83be3126daae10419b573c55e1fed009d3ae8 | /_target/deps/mathlib/data/fintype.lean | 54d80cb04b2cdbc9a358fc104ca16ed3feb26289 | [] | no_license | AHassan1024/Lean_Playground | ccb25b72029d199c0d23d002db2d32a9f2689ebc | a00b004c3a2eb9e3e863c361aa2b115260472414 | refs/heads/master | 1,586,221,905,125 | 1,544,951,310,000 | 1,544,951,310,000 | 157,934,290 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,516 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas data.vector2
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` me... |
77f37b5282bb264c92da8cff4e183212f28e1584 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/mazur_ulam.lean | c49febd0adffba1cb46818fedc545f67d61ee9bd | [] | 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,685 | 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.topology.instances.real_vector_space
import Mathlib.analysis.normed_space.add_torsor
impor... |
0f44d81424bf197cad6511babe0bc481e6276398 | e94d3f31e48d06d252ee7307fe71efe1d500f274 | /library/theories/analysis/metric_space.lean | ec45a736dd6c67dd3f2910c6c31d91bfbc20c919 | [
"Apache-2.0"
] | permissive | GallagherCommaJack/lean | e4471240a069d82f97cb361d2bf1a029de3f4256 | 226f8bafeb9baaa5a2ac58000c83d6beb29991e2 | refs/heads/master | 1,610,725,100,482 | 1,459,194,829,000 | 1,459,195,377,000 | 55,377,224 | 0 | 0 | null | 1,459,731,701,000 | 1,459,731,700,000 | null | UTF-8 | Lean | false | false | 27,519 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Metric spaces.
-/
import data.real.complete data.pnat data.list.sort ..topology.basic data.set
open nat real eq.ops classical
structure metric_space [class] (M : Type) : ... |
fdd9dcba71bd9a6eae669c9468217e2d4d9523ab | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/connected.lean | ca16b2792a06f45a4d3278896ca22d0437db4b58 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,726 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.pullbacks
import Mathlib.category_theory.limits.shapes.equalizers... |
f51e4ee64ff14be636599b9380d3b6c8f3a9a379 | 47181b4ef986292573c77e09fcb116584d37ea8a | /src/for_mathlib/hom.lean | 293e31c47e36a779b3202556e939f0c7a980851c | [
"MIT"
] | permissive | RaitoBezarius/berkovich-spaces | 87662a2bdb0ac0beed26e3338b221e3f12107b78 | 0a49f75a599bcb20333ec86b301f84411f04f7cf | refs/heads/main | 1,690,520,666,912 | 1,629,328,012,000 | 1,629,328,012,000 | 332,238,095 | 4 | 0 | MIT | 1,629,312,085,000 | 1,611,414,506,000 | Lean | UTF-8 | Lean | false | false | 478 | lean | import algebra.group_with_zero.basic
import algebra.group.hom
-- Deserves its place in matlib, as `monoid_with_zero_hom.map_inv`
theorem monoid_with_zero_hom.map_inv {G₁ G₂: Type} [group_with_zero G₁] [group_with_zero G₂]
(φ: monoid_with_zero_hom G₁ G₂) (a: G₁) (a_ne_zero: a ≠ 0): φ a⁻¹ = (φ a)⁻¹ :=
begin
apply eq... |
0fbcaa1815904c207f39656d8c3520e2cb48bb68 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_cc_missed.lean | c91cce5759866543f74ba4310f26f495121e04b6 | [
"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 | 414 | lean | set_option blast.strategy "cc"
example (C : nat → Type) (f : Π n, C n → C n) (n m : nat) (c : C n) (d : C m) :
f n == f m → c == d → n == m → f n c == f m d :=
by blast
example (f : nat → nat → nat) (a b c d : nat) :
c = d → f a = f b → f a c = f b d :=
by blast
example (f : nat → nat → nat) (a b c d... |
6a959f78ce11ae2c540ef269506035d042991bc8 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/sum.lean | 7a22cbdf76b31df7d3052f8581db972459c513b6 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,998 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.sum
Authors: Leonardo de Moura, Jeremy Avigad
The sum type, aka disjoint union.
-/
import logic.connectives
open inhabited eq.ops
notation A ⊎ B := sum A B
namespace sum... |
933132ff49206407277410386f2c34fc47bb0eda | 7bc35d4fbdda0c01e9b22a949940ee5cbb9800d0 | /manifold/differentiable.lean | 10ef6a64f6f615a5da9d30be643a884ca912ba7c | [] | no_license | truonghoangle/manifolds | e6c2534dd46579f56ba99a48e2eb7ce51640e7c0 | dcf4815b29ad363ec9712fd00b7756c36cfa7c1c | refs/heads/main | 1,638,501,090,139 | 1,636,918,550,000 | 1,636,918,550,000 | 185,779,631 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,996 | lean | import manifold.basis
import analysis.normed_space.deriv analysis.normed_space.bounded_linear_maps
open pfun
local attribute [instance] classical.prop_decidable
noncomputable theory
universes u v w
variables {α : Type} {β : Type} {γ : Type w} {n : ℕ}
variable [normed_field α]
namespace differentiable
variables {E... |
0d81fb8eb0fd215d2c3bdcfe0ffb01244510ec72 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/units.lean | 81dbba4a8e261ea7e7e38c3188ec401eec654a16 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 11,962 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.specific_limits.normed
/-!
# The group of units of a complete normed ring
This file contains the basic theory for the group of units (invertible e... |
dc8920dcc10d22da4ead9279df7facc6a7c3fa37 | 48eee836fdb5c613d9a20741c17db44c8e12e61c | /src/universal/substitution.lean | 2bae5b67cf9aa5fa877a0ac356b2b6c1046a7e9f | [
"Apache-2.0"
] | permissive | fgdorais/lean-universal | 06430443a4abe51e303e602684c2977d1f5c0834 | 9259b0f7fb3aa83a9e0a7a3eaa44c262e42cc9b1 | refs/heads/master | 1,592,479,744,136 | 1,589,473,399,000 | 1,589,473,399,000 | 196,287,552 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,114 | lean | -- Copyright © 2019 François G. Dorais. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
import .basic
namespace universal
variables {τ : Type} {σ : Type*} (sig : signature τ σ)
abbreviation substitution (dom₁ dom₂ : list τ) := Π (i : index dom₁), term sig dom₂ i.val
names... |
f6ebdd7c9749b726940ba4bdb83b31f783ec4de1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/whnfProj.lean | 27256d98302b93b9e3e0336cdafeed54847c137b | [
"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 | 523 | lean | import Lean
def h (x : Nat) := x
def f (x : Nat) := x + 1
def g (x : Nat) := (x, x+1).fst
open Lean
open Lean.Meta
def tst (declName : Name) : MetaM Unit := do
let c ← getConstInfo declName
lambdaTelescope c.value! fun _ b => do
trace[Meta.debug] "1. {b}"
trace[Meta.debug] "2. {← withReducible <| whnf b... |
1e3eeba21173f538eb8c0c0c4667d4034342a665 | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /int.lean | 0e144d212e6bbf50d03d448cec55cec4dad4ec17 | [] | no_license | skbaek/omega | ab1f4a6daadfc8c855f14c39d9459ab841527141 | 715e384ed14e8eb177a326700066e7c98269e078 | refs/heads/master | 1,588,000,876,352 | 1,552,645,917,000 | 1,552,645,917,000 | 174,442,914 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,775 | lean | import .list data.int.basic .logic
namespace int
lemma add_div {a b c : int} :
c ∣ a → c ∣ b → (a + b) / c = a / c + b / c :=
begin
intros h1 h2,
by_cases h3 : c = 0,
{ rw [h3, zero_dvd_iff] at *,
rw [h1, h2, h3], refl },
{ apply eq_of_mul_eq_mul_right h3,
rw add_mul, repeat {rw [int.div_mul_cancel... |
95de1ad57d65b846e89e32aa8587b8b3bb1ed809 | e5c11e5a7d990ce404047c2bd848eeafac3c0a85 | /src/class_group.lean | f3f307dd66ee3de87fbefade3c48ad7f4e1dfc6b | [
"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 | 16,894 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import group_theory.quotient_group
import ring_theory.dedekind_domain
/-!
# The ideal class group
This file defines the ideal class group `class_group f` of fractional id... |
bd611b67b31b81afe5e689f5f5facb8a17fe3c0e | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/order/filter/lift.lean | e2fafe9d12e8e23c6ac14e231585bcdc004e977f | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 18,013 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Lift filters along filter and set functions.
-/
import order.filter.basic
open lattice set
open_locale classical
namespace filter
variables {α : Type*} {β : Type*} {... |
50559f588f74c9135a786b575e1fc25b135dc32f | c777c32c8e484e195053731103c5e52af26a25d1 | /src/data/dfinsupp/interval.lean | e010360860147d9dcae673a70a58623258f13c2f | [
"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 | 6,802 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.locally_finite
import data.finset.pointwise
import data.fintype.big_operators
import data.dfinsupp.order
/-!
# Finite intervals of finitely supported ... |
75f4116e4f19c04b3c0991a15466a3df2cf475fe | 274748215b6d042f0d9c9a505f9551fa8e0c5f38 | /src/for_mathlib/mv_polynomial.lean | 8c8905d9318cacbef58803802289dc407aeef296 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M4P33 | 878ecb515c77d20cc799ff1ebd78f1bf4fd65c12 | 1a179372db71ad6802d11eacbc1f02f327d55f8f | refs/heads/master | 1,607,519,867,193 | 1,583,344,297,000 | 1,583,344,297,000 | 233,316,107 | 59 | 4 | Apache-2.0 | 1,579,285,778,000 | 1,578,788,367,000 | Lean | UTF-8 | Lean | false | false | 15,646 | lean | import data.mv_polynomial
-- workaround for the "open_locale at top of file" issue in Lean 3
example : ℕ := 37
open_locale classical
lemma sum.rec_comp_left (X : Type*) (Y : Type*) (β : Type*) (γ : Type*)
(i : β → X) (j : γ → X) (f : X → Y) (x : β ⊕ γ) :
f (sum.rec i j x) = sum.rec (f ∘ i) (f ∘ j) x := by cases ... |
fd3daaa6c45986c6b2a3eeb8dcb4b69326f00415 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/of_has_finite_products.lean | 593daf66b24e13fe99bc59061023bb44ecf9c3f5 | [
"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,383 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Simon Hudon
-/
import category_theory.monoidal.braided
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.terminal
/-!
# The nat... |
08bec1aa6eb83aca1a4fb562b5e8da50af181ca2 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category/basic.lean | 64bbb6dcfc1145eb8b611f7828e73a57a602f709 | [
"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,996 | 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
Extends the theory on functors, applicatives and monads.
-/
universes u v w
variables {α β γ : Type u}
notation a ` $< `:1 f:1 := f a
section functor
variables {f : ... |
7a8d1f244c46d13170164e75772d534b820b29f7 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/mv_polynomial/rename.lean | 9ae3d932c369a9093ae324c50dac12259ba4f2ab | [
"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 | 9,070 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import data.mv_polynomial.basic
/-!
# Renaming variables of polynomials
This file establishes the `rename` operation on multivariat... |
18c91178efb8cde0381e6e3d3b01bc8e30f558b6 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/polynomial/basic.lean | f498ee4c3ae0c76644c7db546a8f788b3e8d2be4 | [
"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,317 | 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 tactic.ring_exp
import tactic.chain
import data.monoid_algebra
import data.finset.sort
/-!
# Theory of univariate ... |
62d2c9bbd525d07fb001276b2c9164d73abddd3b | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/unsolvedIndCases.lean | c0e55ce21e23da513c6044536a7cad0190b66249 | [
"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 | 860 | lean | theorem ex1 (x : Nat) : 0 + x = x := by
cases x with
| zero => skip -- Error: unsolved goals
| succ y => skip -- Error: unsolved goals
theorem ex2 (x : Nat) : 0 + x = x := by
induction x with
| zero => skip -- Error: unsolved goals
| succ y ih => skip -- Error: unsolved goals
theorem ex3 (x : Nat) ... |
48cc376b836945313167bc1a6ca3a8f4d71f2924 | 3f48345ac9bbaa421714efc9872a0409379bb4ae | /src/examples/terminal_automata.lean | dcb2f088ae4bd42345bc9fcf2719a3bd5977c90e | [] | no_license | QaisHamarneh/Coalgebra-in-Lean | b4318ee6d83780e5c734eb78fed98b1fe8016f7e | bd0452df98bc64b608e5dfd7babc42c301bb6a46 | refs/heads/master | 1,663,371,200,241 | 1,661,004,695,000 | 1,661,004,695,000 | 209,798,828 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,427 | lean | import examples.automata
namespace Automata
variables {Sigma : Type} -- The alphabet
{D : Type} -- Output
open word
structure Automaton :=
(State : Type) -- Set of States
(δ : State → Sigma → State) -- δ: S × Σ → S
... |
87ada2327d72d615484c5b2c09d58d3b1ca71f55 | a338c3e75cecad4fb8d091bfe505f7399febfd2b | /src/ring_theory/dedekind_domain.lean | 5079e8f45fe06bb7a5c046ab1104cea8d8c4552d | [
"Apache-2.0"
] | permissive | bacaimano/mathlib | 88eb7911a9054874fba2a2b74ccd0627c90188af | f2edc5a3529d95699b43514d6feb7eb11608723f | refs/heads/master | 1,686,410,075,833 | 1,625,497,070,000 | 1,625,497,070,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,082 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.discrete_valuation_ring
import ring_theory.fractional_ideal
import ring_theory.ideal.over
/-!
# Dedekind domain... |
2d3ece686241745e6e7d9df8292f9c8cb29e41ed | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebra/big_operators/ring.lean | 93fa58912ba23c6c29696e4624a3057ee6faaba6 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,889 | 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 algebra.big_operators.basic
import data.finset.pi
import data.finset.powerset
/-!
# Results about big operators with values in a (semi)ring
We prove results... |
7b8d9c112be1f064d0028998e8566c8eea64b712 | a46d86797f98e604c71128429409acba8288c1f8 | /algebra/lattice/complete_lattice/powerset.lean | dee72d258e29b1ea6d77b681b1027c120b4ab1cb | [] | no_license | tizmd/lean-abstract-interpretation | 655213d76e84e093910bb6378796cdb4e1ae3565 | ad69622adc082e7009f12b17568662a599779260 | refs/heads/master | 1,610,518,429,734 | 1,498,128,216,000 | 1,498,128,216,000 | 94,891,623 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,794 | lean | import algebra.lattice.complete_lattice
import data.set
universe u
open lattice
variables {α : Type u}
def set.as_type (s : set α) := {a // s a}
instance powerset_complete_lattice (s : set α) : complete_lattice (𝒫 s).as_type
:=
{
le := λ a b, a.1 ⊆ b.1,
le_refl := λ a, set.subset.refl a.1,
le_tra... |
fdd52502391d130cafff76c0a6b3499ca3cb0f24 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/doLetElse.lean | 24435474c14ea8dadcf4fb234752976aaa7fb68d | [
"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 | 274 | lean | def foo (x? : Option Nat) : IO Nat := do
let some x := x? | return 0
IO.println s!"x: {x}"
return x
def test (input : Option Nat) (expected : Nat) : IO Unit := do
assert! (← foo input) == expected
#eval test (some 10) 10
#eval test none 0
#eval test (some 1) 1
|
649631d0b4db8648ff96be39385fa2980a4da231 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /src/Lean/Environment.lean | 1130d3a6d8b367b01c2b21cd0b48e776d3f209fa | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,657 | 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 Std.Data.HashMap
import Lean.Data.SMap
import Lean.Declaration
import Lean.LocalContext
import Lean.Util.Path
import Lean.Util.FindExpr
import Lean.U... |
110007c6e3c679dd15865ccbc3a42ccc3f45fc1a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/LetRec.lean | 73e49fe7df8dd37277d8b99d02f3d9573cfb46af | [
"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 | 5,137 | 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.Attributes
import Lean.Elab.Binders
import Lean.Elab.DeclModifiers
import Lean.Elab.SyntheticMVars
import Lean.Elab.DeclarationRange
names... |
131bdc90c3682b4ea2251beac31ab32e79483364 | 618003631150032a5676f229d13a079ac875ff77 | /src/control/bitraversable/lemmas.lean | d33c4dae02094af8c084d00d3407e08742579907 | [
"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 | 3,325 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon
-/
import control.bitraversable.basic
/-!
# Bitraversable Lemmas
## Main definitions
* tfst - traverse on first functor argument
* tsnd - traverse on second functor ar... |
4ccb6bd2a22cf8da564a5807e8751c4325eeb45f | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Quandle.lean | a8383acd7d165005a7b09332d100e700310dd0d8 | [] | 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,124 | 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 Quandle
structure Quandle (A : Type) : Type :=
(linv : (A → (A → A)))
(rinv : (A → (A → A)))
(leftDistributive : (∀ {x y z : A} , (linv x (linv y z)) = (... |
d8122bb02212e703474f08d4781744bceef5880c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/group/integration.lean | 258cf46be347d58fb5ae1fb7dc83ab83ce27ee5e | [
"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 | 8,119 | lean | /-
Copyright (c) 2022 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.integral.bochner
import measure_theory.group.measure
import measure_theory.group.action
/-!
# Integration on Groups
> THIS FILE IS SYNCHRO... |
3d9d9a931d835916fae52614e2d83446df02ee82 | f1a12d4db0f46eee317d703e3336d33950a2fe7e | /common/logic.lean | 42bbc6869ab6561286de72e6851ccf0e6d7f940e | [
"Apache-2.0"
] | permissive | avigad/qelim | bce89b79c717b7649860d41a41a37e37c982624f | b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60 | refs/heads/master | 1,584,548,938,232 | 1,526,773,708,000 | 1,526,773,708,000 | 134,967,693 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,775 | lean | import .list
inductive fm (α : Type) : Type
| true : fm
| false : fm
| atom : α → fm
| and : fm → fm → fm
| or : fm → fm → fm
| not : fm → fm
| ex : fm → fm
notation `⊤'` := fm.true _
notation `⊥'` := fm.false _
notation `A'` a := fm.atom a
notation `¬'` p := fm.not p
notation p `∧'` q := fm.an... |
17a389c801b2c22c38ef5268d8261ecb8cc46982 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Parser/Basic.lean | 26c1f91dc54f3a00369bc169ee26e1af7e436646 | [
"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 | 65,460 | 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
-/
/-!
# Basic Lean parser infrastructure
The Lean parser was developed with the following primary goals in mind:
* flexibility: Lean's g... |
828a5753683d0c273bab3302c1e6249700424b6e | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Init/NotationExtra.lean | 81d75c53983730b92536fbe832af83e896c5c3e4 | [
"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 | 8,607 | 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
Extra notation that depends on Init/Meta
-/
prelude
import Init.Meta
import Init.Data.Array.Subarray
import Init.Data.ToString
namespace Lean
macro "Macro.tr... |
fd9e2b20c18dc69f3d6cc714d871adacab23647a | df561f413cfe0a88b1056655515399c546ff32a5 | /7-advanced-multiplication-world/l2.lean | 30822cd3543ea5e548375bed26597e5fd79e0a18 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 202 | lean | theorem eq_zero_or_eq_zero_of_mul_eq_zero (a b : mynat) (h : a * b = 0) :
a = 0 ∨ b = 0 :=
begin
cases b with n,
right, refl,
rw mul_succ at h,
rw add_comm at h,
left,
exact add_right_eq_zero h,
end |
a67d8b395149e915af47773c51e75ba2b0e068c9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/transfer.lean | 431458421f488628c186829796ed486f19149c31 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 7,385 | lean | /-
Copyright (c) 2022 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.group_action.basic
import group_theory.index
/-!
# The Transfer Homomorphism
In this file we construct the tra... |
fabf012d4f15f39561c76319c6d87fbf6e580649 | bae21755a4a03bbe0a5c22e258db8633407711ad | /library/init/core.lean | a9dd83025c2bafd9d6a60812af9c0be535ceae89 | [
"Apache-2.0"
] | permissive | nor-code/lean | f437357a8f85db0f06f186fa50fcb1bc75f6b122 | aa306af3d7c47de3c7937c98d3aa919eb8da6f34 | refs/heads/master | 1,662,613,329,886 | 1,586,696,014,000 | 1,586,696,014,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,551 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Reserving notation. We do this sot that the... |
066e173ca10bf7532398577df960078b0ec74810 | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/universal/complete/functor_category.lean | bd684acd4486550aac06c344dfce81f30a0733b2 | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 1,906 | 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.functor_categories.whiskering
import category_theory.universal.comparisons
open category_theory
open category_theory.prod
namespace categ... |
94ee743ee03920ef39010d416d1ab59a65261ccf | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/set_theory/ordinal_notation.lean | 768fc2d372d69ce7bbc16a350b9e3e3cc7144954 | [
"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 | 35,964 | 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 set_theory.ordinal_arithmetic
/-!
# Ordinal notation
Constructive ordinal arithmetic for ordinals below `ε₀`.
We define a type `onote`, with constructors `... |
42370370f9121bef4b46d75617583283117ad20e | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/data/array/basic.lean | d1080b25d301d5094d498b7b0a4c049be0deadca | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 10,357 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
prelude
import init.data.nat init.data.bool init.ite_simp
universes u v w
/-- In the VM, d_array is implemented as a persistent array. -/
s... |
4c36ab358367cdf9ce608cb70a500a330901083b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/geometry/manifold/algebra/monoid.lean | ce893551579e51be34acd24feb07e9bfc22a7454 | [
"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 | 15,140 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.cont_mdiff_map
/-!
# Smooth monoid
A smooth monoid is a monoid that is also a smooth manifold, in which multiplication is a smooth map
of... |
d5f8ce8fd4bbf37c07d832b5bec7dd3413d906a7 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/order_dual.lean | ae320472037223e56620dcafcd8dfa6d7cb51bc0 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,376 | lean | /-
Copyright (c) 2020 Johan Commelin, Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Damiano Testa
-/
import order.basic
import data.equiv.basic
/-!
# Initial lemmas to work with the `order_dual`
## Definitions
`to_dual` and `of_dual` t... |
83a297bdf0f406aec9279560a3983a05a52a636d | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Elab/Util.lean | cab1a6f614e6ea8b7dd28d2b2671e92e6123252a | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 5,483 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Util.Trace
import Init.Lean.Parser
import Init.Lean.KeyedDeclsAttribute
namespace Lean
def Syntax.prettyPrint (stx : Syntax) : Fo... |
3ad32afa16b0ee7e79fc33386a9dc130367e9bee | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_ematch9.lean | 44963cb84a2229d0fad424e2033af7674c64e2c5 | [
"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 | 194 | lean | constant P : nat → Prop
definition h [reducible] (n : nat) := n
definition foo [forward] : ∀ x, P (h x) := sorry
set_option blast.strategy "ematch"
example (n : nat) : P (h n) :=
by blast
|
61329d56693d9804a7a490409d97ba9681632882 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/tactic.lean | 3d300977c637ddb088ae3cb262d0977102235a3b | [
"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 | 4,222 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import tactic.auto_cases
import tactic.tidy
import tactic.with_local_reducibility
import tactic.show_term
import topology.basic
/-!
# Tactics for topology
Currently we hav... |
4d8b04b9f7f4a6a92565bd7f2bb898ac0b251461 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Lean/Elab/DeclModifiers.lean | cb5b01666d9072fe146083010cf791b430de79b6 | [
"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 | 5,285 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Lean.Elab.Command
namespace Lean
namespace Elab
namespace Command
structure Attribute :=
(name : Name) (args : Synt... |
f7ccaa2a97fb21b3b03bf90922b701ffa672a44c | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/PrettyPrinter.lean | 05f5fc9f78b38ef14e250f51b8037292865a5e3a | [
"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 | 3,432 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.PrettyPrinter.Delaborator
import Lean.PrettyPrinter.Parenthesizer
import Lean.PrettyPrinter.Formatter
import Lean.Parser.Module
import Lean.ParserCo... |
c34108f95b1b12fab7c61b3a847bf599afe153a4 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/opposites.lean | 8cad18c8815e75b55df48592676652fef7255ef6 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 7,725 | 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.types
import category_theory.natural_isomorphism
import data.opposite
universes v₁ v₂ u₁ u₂ -- declare the `v`'s first; see `c... |
226ec2f987708fc86aa5fd4295ead17556dc1f8b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/ns1.lean | f1e40bb8385254018772b1485fe65f208a20f277 | [
"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 | 99 | lean | namespace foo
namespace boo
theorem tst : true := trivial
end boo
end foo
open foo
#check boo.tst
|
14bfeaf8636a3bc53f0bb17491db272231a3d5ed | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/monoidal/internal/Module.lean | ab44dea7c2393f61b4a61209c9b8021fdef76d5f | [
"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 | 5,279 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Module.monoidal
import algebra.category.Algebra.basic
import category_theory.monoidal.Mon_
/-!
# `Mon_ (Module R) ≌ Algebra R`
The category... |
6fdf0cfef3a9856515c9726be14e7aee218dbc96 | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/for_mathlib/function.lean | d4a606475835465f60afa6526e6afbd358380cf3 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean-perfectoid-spaces | 569b4006fdfe491ca8b58dd817bb56138ada761f | 06cec51438b168837fc6e9268945735037fd1db6 | refs/heads/master | 1,590,154,571,918 | 1,557,685,392,000 | 1,557,685,392,000 | 186,363,547 | 0 | 0 | Apache-2.0 | 1,557,730,933,000 | 1,557,730,933,000 | null | UTF-8 | Lean | false | false | 417 | lean |
-- This file is PR'd to mathlib in #993
variables {α : Type*} {β : Type*} {γ : Type*} {δ : Type*}
def function.comp₂ (f : α → β → γ) (g : γ → δ) : α → β → δ := λ x y, g (f x y)
notation g `∘₂` f := function.comp₂ f g
lemma function.uncurry_comp₂ (f : α → β → γ) (g : γ → δ) :
function.uncurry (g ∘₂ f) = (g ∘ func... |
93d76112b951bdcd44d0528dd7931bff0900e84c | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Elab/Deriving/Repr.lean | e83b60bbb8e5d1a6327cb7363dfd4905cd4409cc | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,144 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Transform
import Lean.Meta.Inductive
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
namespace Lean.Elab.Deriving.Repr
open... |
7fd1fda8580a60fe1807f7c16206516cc7595196 | 5b0c53e5aaa0e60538d10f6b619a464aaf463815 | /ch6.hlean | e14d657827e5c46604477723fe3239ad4564901b | [
"Apache-2.0"
] | permissive | bbentzen/hott-book-in-lean | f845a19ef09d48d2fb813624b4650d5832a47e10 | 9e262e633e653280b9cde5d287631fcec8501f64 | refs/heads/master | 1,586,430,679,994 | 1,519,975,089,000 | 1,519,975,089,000 | 50,330,220 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,310 | hlean | /-
Copyright (c) 2016 Bruno Bentzen. All rights reserved.
Released under the Apache License 2.0 (see "License");
Theorems and exercises of the HoTT book (Chapter 6)
-/
import .ch1 .ch2 .ch3 .ch4 init.hit
open eq prod unit bool sum sigma ua funext nat lift quotient
/- ************************************** -/
/- ... |
ada6053e28b8d2b9d89ebd4426ce9a0bde06969d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/nat/sqrt.lean | 7a8db90724389b27a31aa5b4c672930b94d32b27 | [
"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 | 9,611 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Johannes Hölzl, Mario Carneiro
-/
import data.int.basic
/-!
# Square root of natural numbers
This file defines an efficient binary implementation of the squ... |
dbaf56a468dc8710aaa4ea11186a1f90941940e8 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/lie/submodule.lean | c540682b4aefdd4287880ccba84d414d7e0a07e3 | [
"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 | 33,328 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.lie.subalgebra
import ring_theory.noetherian
/-!
# Lie submodules of a Lie algebra
In this file we define Lie submodules and Lie ideals, we construct the l... |
a96dc2956cb12f7a600e4277b1c28eaa4d4a3738 | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/mathd-algebra-139.lean | eb7900b95de551f3073cc938c40e22bc0aaeffd8 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 298 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (s : ℝ → ℝ → ℝ) (h₀ : ∀ x≠0, ∀y≠0, s x y = (1/y - 1/x) / (x-y) ) : s 3 11 = 1/33 :=
begin
sorry
end
|
6173da71bab1c4f16e7b50da940d7b94e9b563b8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/directed.lean | 82202a1e553e6aa5e4adb77a27c7b0c0a7cba045 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,655 | 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.lattice
import data.set.basic
/-!
# Directed indexed families and sets
This file defines directed indexed families and directed sets. An indexed family... |
cbccd5b6f2bddf919bc997fb50adbab7b075fd4f | 1fd908b06e3f9c1252cb2285ada1102623a67f72 | /init/meta/support.lean | 3798ade6bb8d844e3184e35921717fbd02937731 | [
"Apache-2.0"
] | permissive | avigad/hott3 | 609a002849182721e7c7ae536d9f1e2956d6d4d3 | f64750cd2de7a81e87d4828246d1369d59f16f43 | refs/heads/master | 1,629,027,243,322 | 1,510,946,717,000 | 1,510,946,717,000 | 103,570,461 | 0 | 0 | null | 1,505,415,620,000 | 1,505,415,620,000 | null | UTF-8 | Lean | false | false | 4,379 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
open expr tactic native
@[inline] instance (α) [decidable_eq α] (a b : α): decidable (a == b) :=
if h : a = b then is_true (heq_of_eq h) else is_false (h ∘ eq_of_heq)
... |
f14aeebc2897e5de61579cb4042c861891d90d79 | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love10_denotational_semantics_exercise_sheet.lean | 71553717bec5c0c9c1424a84f1ad2cc8c1ef45a2 | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 3,943 | lean | /- LoVe Exercise 10: Denotational Semantics -/
import .love10_denotational_semantics_demo
namespace LoVe
/- Question 1: Monotonicity -/
/- Prove the following two lemmas from the lecture. -/
lemma monotone_comp {α β : Type} [partial_order α] (f g : α → set (β × β))
(hf : monotone f) (hg : monotone g) :
mono... |
44646526ace14141c5f4db1a5916a0dcdcf11a2d | ec040be767d27b10d2f864ddcfdf756aeb7a9a0a | /src/assignments/assignment_5.lean | c2dc81d9b5d286b205707392518c3d2c36ed60e9 | [] | no_license | RoboticPanda77/complogic-s21 | b26a9680dfb98ac650e40539296c0cafc86f5cb4 | 93c5bcc0139c0926cc261075f50a8b1ead6aa40c | refs/heads/master | 1,682,196,614,558 | 1,620,625,035,000 | 1,620,625,035,000 | 337,230,148 | 0 | 0 | null | 1,620,625,036,000 | 1,612,824,240,000 | Lean | UTF-8 | Lean | false | false | 1,821 | lean | -- Nathaniel Monahan / ncm5jv
----------------------------------
universes u₁ u₂
def foldr
{α : Type u₁}
{β : Type u₂}
:
β →
(α → β → β) →
(list α → β)
| b f list.nil := b
| b f (h::t) := f h (foldr b f t)
-----------------------------------
inductive dihedral_actions : Type
| r_0
|... |
e591d85919d3e4b73aef33a1c5413c854f16541f | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/special_functions/trigonometric/angle.lean | 6cad43780acac3ae8130b92cb8eb57269ed13c30 | [
"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 | 8,198 | lean | /-
Copyright (c) 2019 Calle Sönne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Calle Sönne
-/
import analysis.special_functions.trigonometric.basic
import algebra.char_zero.quotient
/-!
# The type of angles
In this file we define `real.angle` to be the quotient gr... |
1e11820b30ac9442349deaa5b7a23d2628ab6898 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Data/SMap.lean | e6c61d62b8180242a6578ec99b668f8f58292720 | [
"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 | 3,093 | 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 Std.Data.HashMap
import Std.Data.PersistentHashMap
universes u v w w'
namespace Lean
open Std (HashMap PHashMap)
/- Staged map for implementing th... |
88de979d94e915c7f031699bef0dff83d68b83c7 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /test/to_additive.lean | 6307ce9e8620dd6ff69fe3ecf895cd24785f1fea | [
"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 | 2,550 | lean | import algebra.group.to_additive
@[to_additive bar0]
def foo0 {α} [has_mul α] [has_one α] (x y : α) : α := x * y * 1
class {u v} my_has_pow (α : Type u) (β : Type v) :=
(pow : α → β → α)
class my_has_scalar (M : Type*) (α : Type*) := (smul : M → α → α)
attribute [to_additive_reorder 1] my_has_pow
attribute [to_addi... |
11a1820d10dcf0989ec557527f1801c060accd3d | 649957717d58c43b5d8d200da34bf374293fe739 | /src/linear_algebra/basic.lean | fc07066177675a6a153b53304bfdcd9d0b1ea890 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 62,572 | 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
Basics of linear algebra. This sets up the "categorical/lattice structure" of
modules, submodules, and linear maps.
-/
import algebra.pi... |
fd902128f73a79e195fa4c7821762eaa6f42ad6b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/attribute_auto.lean | 3a0e6ab26ccca0b83356a456b1c4f19f6e985645 | [] | 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 | 708 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.meta.rb_map
import Mathlib.Lean3Lib.init.meta.has_reflect
impor... |
933c06d7c684238c07a7012186359e7ac73dd0a7 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/category_theory/colimit_lemmas.lean | 098f3af996801949e0c9ce8bdc2ecde06391418e | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 21,732 | lean | import category_theory.isomorphism
import .colimits
/-
* Notation and lemmas for categories with `has_coproducts`.
* Construction of pushouts in terms of coproducts and coequalizers.
-/
open set
open category_theory.category
local notation f ` ∘ `:80 g:80 := g ≫ f
namespace category_theory
universes v u
secti... |
87eac40a8806d505d329a72d6bd7235a867ca2a9 | e953c38599905267210b87fb5d82dcc3e52a4214 | /hott/types/eq.hlean | d4281124c4885c431ac13d23d4a5a00a5a1486dd | [
"Apache-2.0"
] | permissive | c-cube/lean | 563c1020bff98441c4f8ba60111fef6f6b46e31b | 0fb52a9a139f720be418dafac35104468e293b66 | refs/heads/master | 1,610,753,294,113 | 1,440,451,356,000 | 1,440,499,588,000 | 41,748,334 | 0 | 0 | null | 1,441,122,656,000 | 1,441,122,656,000 | null | UTF-8 | Lean | false | false | 19,344 | hlean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about path types (identity types)
-/
open eq sigma sigma.ops equiv is_equiv equiv.ops
-- TODO: Rename transport_eq_... and ... |
4a32fb51dbd9fc655aea11a1c1ef81a16b6c4889 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/local_ctx_bug.lean | 5a78c928cd4a017398578395f8f48a12742965d7 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 899 | lean | import data.finset data.finset.card data.finset.equiv
open nat nat.finset decidable
namespace finset
variable {A : Type}
open finset (to_nat)
open finset (of_nat)
private lemma of_nat_eq_insert : ∀ {n s : nat}, n ∉ of_nat s → of_nat (2^n + s) = insert n (of_nat s)
| 0 s h := sorry
| (succ n) s h :=
have n ∉ ... |
b410dacd1efc8b11456d98dd8a9562fdbb815cff | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/order/lattice.lean | fcb07725b9742d3c3495532e414a8dbe73ad2f1a | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 16,418 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Defines the inf/sup (semi)-lattice with optionally top/bot type class hierarchy.
-/
import order.basic
set_option old_structure_cmd true
universes u v w
-- TODO: mo... |
76b34f7a3d9083535bd4fc309071a8936d371720 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Config/Script.lean | f0cbd7cb91baae0b092257adf968447c8a10027f | [
"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 | 880 | lean | /-
Copyright (c) 2021 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lake.Util.Exit
import Lake.Config.Context
namespace Lake
/--
The type of a `Script`'s monad.
`IO` equipped information about the Lake configuration.
-/
abbrev Script... |
fd25bceba5eb03b52ef79747ffb332657038de3b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/ordered/compact.lean | 479311def485518e09c3e96605baa5b5e90be43d | [
"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 | 11,124 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Yury Kudryashov
-/
import topology.algebra.ordered.intermediate_value
/-!
# Compactness of a closed interval
In this file we prove that a closed interval in a conditi... |
0ae01f3efe01ae68020df3cc04609517dc3ff05f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/number_theory/number_field/class_number.lean | 9b1bb64056c76284abea50c1afb2994edb48050f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 1,676 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import number_theory.class_number.admissible_abs
import number_theory.class_number.finite
import number_theory.number_field.basic
/-!
# Class numbers of number fields
Thi... |
0c658846890ee5c8631df78dbc081e4df6fa2ea6 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/category/Top/limits.lean | 802c9ef52c1519d2311a921936eb20d639845ba6 | [
"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 | 2,695 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison, Mario Carneiro
-/
import topology.category.Top.basic
import category_theory.limits.types
open topological_space
open category_theory
open category_theo... |
ca486f1aad60eb6bd7a34b07a91eea562ffdbddb | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/combinatorics/set_family/compression/down.lean | df9d79b4c574a6632ffd2ccac2fab88bd27e7420 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 7,588 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.card
import data.fintype.basic
/-!
# Down-compressions
This file defines down-compression.
Down-compressing `𝒜 : finset (finset α)` along `a : α` m... |
71771d5e34fbfeb3b280ed6e041bfb9dd3939ce7 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/num4.lean | f10cf0fc77eca8dc11b28a3ac0a6b48f7ee37fdd | [
"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 | 266 | lean | --
set_option pp.notation false
set_option pp.implicit true
namespace foo
constant N : Type.{1}
constant z : N
constant o : N
constant a : N
notation 0 := z
notation 1 := o
check a = 0
end foo
check (2:nat) = 1
check foo.a = 1
open foo
check a = 1
|
305f754dac0f7e3137ab7acb7f4d6ee9b42afe95 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/241.lean | 195ca3db00e1bd792e6178f1f9f5e1476c2110be | [
"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,757 | lean | def ex1 : IO Unit := do
let mut xs : Array Nat := #[]
let xs := xs -- Error
xs := xs.push 0
IO.println xs
def ex2 : IO Unit := do
let mut xs : Array Nat := #[]
let (xs, _) := (xs, 4) -- Error
xs := xs.push 0
IO.println xs
def ex3 : IO Unit := do
let mut xs : Array Nat := #[]
match (1, 2) with
| ... |
1c02db178fed0a55995bf8ff0f339bc352d90f93 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/calculus/specific_functions.lean | 5c15034e568537941639139fedc2d1abf814ebc7 | [
"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 | 7,676 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.extend_deriv
import analysis.calculus.iterated_deriv
import analysis.special_functions.exp_log
/-!
# Smoothness of specific functions
... |
35eac4be29ff820699722b914d340dd6f48d449a | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/ns2.lean | e00d4ea83ffb266159b9a45ce90d58905d9504dc | [
"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 | 509 | lean | definition foo.id {A : Type} (a : A) := a
constant foo.T : Type.{1}
check foo.id
check foo.T
inductive foo.v.I | unit : foo.v.I
check foo.v.I
check foo.v.I.unit
namespace foo
check id
check T
check v.I
end foo
namespace bla
definition vvv.pr {A : Type} (a b : A) := a
check vvv.pr
end bla
check bla.vvv.pr
... |
bb573d93c238554a9fc00c2d0e164ba688004cef | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/filtered.lean | 8216dbc434c28fe1bef7d7ac5431e87d5dfd8054 | [
"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 | 28,578 | lean | /-
Copyright (c) 2019 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.fin_category
import category_theory.limits.cones
import category_theory.adjunction.basic
import category_theory.category.preorder
imp... |
31ed1d01a22c3e8083cce056a9870ee02d0a277a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/class_number/admissible_absolute_value.lean | 745d6a7b62df4e265442cbd1a9394588ea35d823 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,861 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.real.basic
import combinatorics.pigeonhole
import algebra.order.euclidean_absolute_value
/-!
# Admissible absolute values
> THIS FILE IS SYNCHRONIZED WITH MAT... |
e6e3e53c2e85e7c2d0aa932c12bfaad25ac0f250 | 367134ba5a65885e863bdc4507601606690974c1 | /src/measure_theory/ess_sup.lean | 0418a7b3712f5f9d6d4988d79ec8884c78ea607f | [
"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 | 4,804 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import measure_theory.measure_space
import order.filter.ennreal
/-!
# Essential supremum and infimum
We define the essential supremum and infimum of a function `f : α → ... |
946c0e4b7801262808188704000f507a707dc9e3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/protec_proj.lean | 136316a4596d8204945bb115de2a066efe1e4036 | [
"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 | 559 | lean | /-
Copyright (c) 2020 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import tactic.protected
open tactic
@[protect_proj without baz bar] structure foo : Type :=
(bar : unit) (baz : unit) (qux : unit)
open foo
run_cmd resolve_name `bar... |
e9cbb24f0cbe5bc744187b905552885e591669a5 | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /10-31-2019.lean | f23244b91eb70e63b647d93532eb85d122a64b4e | [] | no_license | joek13/cs2102-notes | b7352285b1d1184fae25594f89f5926d74e6d7b4 | 25bb18788641b20af9cf3c429afe1da9b2f5eafb | refs/heads/master | 1,673,461,162,867 | 1,575,561,090,000 | 1,575,561,090,000 | 207,573,549 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,235 | lean | -- Notes for 10/31/2019: boooooolean
inductive fuckitwe (α : Type) : Type
| fuckitwe : α → fuckitwe
def harsh := fuckitwe bool
/-
Propositions can be formalized as types, and proofs are just values of those types
-/
/-
Review we define day to be a type.
-/
inductive day : Type
| mon
| tue
| wed
| thu
| fri
| sat
... |
5c26647a4064731bdf7b2e2c0811f233e3a38355 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/clause_auto.lean | ff51472b175667a4a42da8c54fc321ffe246d99d | [] | 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,714 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.term
import Mathlib.PostPort
namespace Mathlib
/-
Definition of linear constrain clause... |
9214773cbbe155fec0dd7a75a6c3db95962db13c | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/e4.lean | 6a0cff2a71819c50be08c291f03228aa570c0aac | [
"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 | 626 | lean | definition Prop := Type.{0}
definition false : Prop := ∀x : Prop, x
check false
theorem false_elim (C : Prop) (H : false) : C
:= H C
definition eq {A : Type} (a b : A)
:= ∀ P : A → Prop, P a → P b
check eq
infix `=`:50 := eq
theorem refl {A : Type} (a : A) : a = a
:= λ P H, H
definition true : Prop
:= false = fa... |
a46800e7c758be18c1c1f55c80b003fd3a63ef13 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/free_algebra.lean | 45ba4b973db2df5b89239c1a887d91473b55a7a6 | [
"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 | 17,147 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Adam Topaz
-/
import algebra.algebra.subalgebra
import algebra.monoid_algebra.basic
import linear_algebra
/-!
# Free Algebras
Given a commutative semiring `R`, and a type... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.