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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b4d1fa092b416c42419d0c1d438f217bcd382f46 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/constructions.lean | 565bf50b7a7b704c144f46b222d639b5607b8c72 | [
"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 | 58,023 | 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, Patrick Massot
-/
import topology.maps
import topology.locally_finite
import order.filter.pi
/-!
# Constructions of new topological spaces from old one... |
47b4834c210a80aab95e76b18abc49dd3e66fdc1 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /examples/lean/abelian.lean | cf3d35dc43c2529b2dcd2056cdb41d87e66da189 | [
"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 | 7,424 | lean | import macros
definition associative {A : (Type U)} (f : A → A → A) := ∀ x y z, f (f x y) z = f x (f y z)
definition is_identity {A : (Type U)} (f : A → A → A) (id : A) := ∀ x, f x id = x
definition inverse_ex {A : (Type U)} (f : A → A → A) (id : A) := ∀ x, ∃ y, f x y = id
universe s ≥ 1
definition group :... |
70ee77e53611a42c12c524125a61e7b7b6112f1d | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/setoid/partition.lean | b5120189338aa89b01aec53180cf7421ff437612 | [
"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 | 8,973 | lean | import data.setoid.basic
import data.set.lattice
/-!
# Equivalence relations: partitions
This file comprises properties of equivalence relations viewed as partitions.
## Tags
setoid, equivalence, iseqv, relation, equivalence relation, partition, equivalence class
-/
namespace setoid
variables {α : Type*}
/-- If ... |
4f3c13795263674d82c52a467484818cc175a761 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/calculus/parametric_integral.lean | 70202a072b66af4356fc44807621fd5f00bf26e6 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 14,720 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import measure_theory.set_integral
import analysis.calculus.mean_value
/-!
# Derivatives of integrals depending on parameters
A parametric integral is a function wi... |
ddd9bb957dd73e867033e7bc38b46cd19c283362 | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/pullback_colimit.lean | 1141a1f4d58805fe2d2677c2bec8017e9d21b004 | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 2,392 | lean | import locally_cartesian_closed
namespace category_theory
open category limits
noncomputable theory
universes v u
variables {C : Type u} [category.{v} C]
variables {J : Type v} [small_category J]
variables {K₁ K₂ : J ⥤ C}
variables (c₁ : cocone K₁) {c₂ : cocone K₂} (t₂ : is_colimit c₂)
variables (τ : K₁ ⟶ K₂) (f : ... |
4ddb225a374945af08cb6f4d49d1da7abd92c286 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/algebra/group_power/lemmas.lean | c5f41361d61d3c93f102ec5be2d3871a8c809db3 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,935 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.group_power.basic
import algebra.invertible
import algebra.opposites
import data.list.basic
import data.int.cast
import data.equiv.basic... |
0913dda796ab69d63e1d37de8b2376ea69ff4a8a | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/eq2.lean | 40dea371bb5e874f56285343efc30ccb074a6f72 | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 9,479 | lean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about 2-dimensional paths
-/
import .cubical.square
universes u v w
hott_theory
namespace hott
open function hott.is_equiv hott.equiv
namespace eq
vari... |
ddcb7ff0b64f9f20900d9495fed906b4d3c5695c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/list.lean | 0b2106f3a7affc80184d92340f12ed5660649401 | [
"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 | 8,722 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import topology.constructions
import topology.algebra.monoid
/-!
# Topology on lists and vectors
-/
open topological_space set filter
open_locale topological_space filt... |
6079b8bb77b46638207e8a49eaeb7c317e8afab9 | a9fe717b93ccfa4b2e64faeb24f96dfefb390240 | /main.lean | e0ce6b5fff22d8b2416f78163dad628f011c3a82 | [] | 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 | 113 | lean | import .is_lia .int.main .nat.main
meta def omega : tactic unit :=
monad.cond is_lia_goal int.omega nat.omega
|
f908b66b0286879005a70a20bd54ad126357f46b | e21db629d2e37a833531fdcb0b37ce4d71825408 | /src/parlang/defs.lean | a7631a11836e45907589e4b54544b247453c8a64 | [] | 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 | 8,423 | lean | import data.list.basic -- basic operations on `list`
import data.option.basic -- basic operations on `option`
import data.set.basic
import data.vector
import data.vector2
import logic.function -- function update and inverses
import aux
namespace parlang
variables {n : ℕ} {σ : Type} {ι : Type} {τ : ι → Type} [deci... |
213b2cd8d96e1e5329ab1bf23d05afbf8e7ee8b9 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/matrix/basic.lean | 3bf474a617d61859bb90cb3e78e3f6a4b045402d | [
"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 | 12,043 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
Matrices
-/
import algebra.module algebra.pi_instances
import data.fintype
universes u v
def matrix (m n : Type u) [f... |
8e237f5b7bd3b5df7ecc26441c6c1c4a46581650 | 5a6ff5f8d173cbfe51967eb4c96837e3a791fe3d | /mm0-lean/x86/matching.lean | 44b3dc049454362ce86e6390cfb128be5cf189fa | [
"CC0-1.0"
] | permissive | digama0/mm0 | 491ac09146708aa1bb775007bf3dbe339ffc0096 | 98496badaf6464e56ed7b4204e7d54b85667cb01 | refs/heads/master | 1,692,321,030,902 | 1,686,254,458,000 | 1,686,254,458,000 | 172,456,790 | 273 | 38 | CC0-1.0 | 1,689,939,563,000 | 1,551,080,059,000 | Rust | UTF-8 | Lean | false | false | 32,865 | lean | import x86.lemmas data.set.lattice data.list.basic data.pfun data.list.alist
namespace x86
inductive flag_place | CFP | ZFP | SFP | OFP
def flag_place.read (f : flags) : flag_place → bool
| flag_place.CFP := f.CF
| flag_place.ZFP := f.ZF
| flag_place.SFP := f.SF
| flag_place.OFP := f.OF
def flag_place.write (f : fl... |
032b0e15f9c629e10b5ae24bb286b4394e3f4068 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/equiv/functor.lean | 71e568780ecfeb511d35e6472a386a8067e6918e | [
"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 | 2,646 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Simon Hudon, Scott Morrison
-/
import data.equiv.basic
import control.bifunctor
/-!
# Functor and bifunctors can be applied to `equiv`s.
We define
```lean
def functor... |
47c806f99eabae9e469437f87372ec4a2628d021 | 92bfaf170880e47d55bf51d5a782fffd76db2f5f | /melting_point/ens.lean | 87d6bf7b1094c865351af84da99b04730d320e4b | [] | no_license | forked-from-1kasper/melting_point | d33403e1985d876a2c7c06859962cc0c37570189 | e5ea4a0917de086b7e5b122e8d5aa90d2761d147 | refs/heads/master | 1,624,785,375,577 | 1,618,305,367,000 | 1,618,305,367,000 | 222,729,018 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,872 | lean | noncomputable theory
open classical
axiom cls : Type
axiom V : set cls
def ens := subtype V
namespace cls
axiom contains : ens → cls → Prop
instance : has_mem ens cls := ⟨contains⟩
axiom comp : (ens → Prop) → cls
@[simp] axiom compβrule : Π (φ : ens → Prop) (x : ens), (x ∈ comp φ) = φ x
axiom ext : ∀ {α... |
49c57296774976861cc861a895e3897912705b6b | f1dc39e1c68f71465c8bf79910c4664d03824751 | /library/init/data/int/order.lean | 28436c94cb2a15e3b0b743ae67cf5b804265d04a | [
"Apache-2.0"
] | permissive | kckennylau/lean-2 | 6504f45da07bc98b098d726b74130103be25885c | c9a9368bc0fd600d832bd56c5cb2124b8a523ef9 | refs/heads/master | 1,659,140,308,864 | 1,589,361,166,000 | 1,589,361,166,000 | 263,748,786 | 0 | 0 | null | 1,589,405,915,000 | 1,589,405,915,000 | null | UTF-8 | Lean | false | false | 11,818 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The order relation on the integers.
-/
prelude
import init.data.int.basic init.data.ordering.basic
local attribute [simp] sub_eq_add_neg
namespace int
private def nonn... |
8af7e8155ad6775e1e4b7b128759a15401a8a8d6 | a3db153d66921f9d5a199b60b52ab3c21cf0e023 | /src/basic.lean | a8acd8a01546962b79968b15fb89e4723eac1b98 | [
"MIT"
] | permissive | metalogical/sia-lean | 3bd87a76b3ee6d910cbf182eb2a0e6d9eca3c056 | f8e354dd2ff6c09c4e001c1f80f6112c62da8592 | refs/heads/master | 1,629,775,811,523 | 1,512,684,874,000 | 1,512,684,874,000 | 106,763,566 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,807 | lean | import .sia
namespace sia
section
parameters {R : Type} [sia R]
variables {a b c : R}
@[reducible] private def Delta := Delta R
@[reducible] private def DeltaT := subtype Delta
-- Useful properties of Delta
lemma neg_delta : forall d: DeltaT, Delta (-d.val) :=
assume d, calc -d.val * ... |
ab60e74c445f7b7754a669df6b190a2b75d002a8 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/sec_param_pp.lean | 9e1a41360f2c64b7f2e215525f29c68d6c2be599 | [
"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 | 271 | lean | section
parameters {A : Type} (a : A)
variable f : A → A → A
definition id : A := a
check id
definition pr (b : A) : A := f a b
check pr f id
set_option pp.universes true
check pr f id
definition pr2 (B : Type) (b : B) : A := a
check pr2 num 10
end
|
85d10ed2d34d48114f47cd1a1472c2a51ff5dc52 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed_space/star/exponential.lean | f7a147543e7816cd6f8673ccaf5210846ab74a3b | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,435 | lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import analysis.normed_space.star.basic
import algebra.star.module
import analysis.special_functions.exponential
/-! # The exponential map from selfadjoint to unitary
... |
bcbc559719939a644c4a7aa348f5b0a50e0cf6a0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/matrix/charpoly/eigs.lean | 684f1bb8e94be0b0de12b3f373db24af911bdf19 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,739 | lean | /-
Copyright (c) 2023 Mohanad Ahmed. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mohanad Ahmed
-/
import data.polynomial.basic
import field_theory.is_alg_closed.basic
/-!
# Eigenvalues are characteristic polynomial roots.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4... |
eaa9ff6c56825c520600007d3533a169963ac93f | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/ring_theory/polynomial/rational_root.lean | 79dd1115324a8cc43b6069dfd4e775441e623fc3 | [
"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 | 5,041 | 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 ring_theory.integrally_closed
import ring_theory.polynomial.scale_roots
/-!
# Rational root theorem and integral root theorem
This file contains the rational root... |
a0787e2fcf7cf2db063aa66a400d9c17c2c56d7b | 92b50235facfbc08dfe7f334827d47281471333b | /tests/lean/run/tactic26.lean | 70e229eba1a8d6e44113640de0b34e5ca8270f09 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 838 | lean | import logic data.num
open tactic inhabited
namespace foo
inductive sum (A : Type) (B : Type) : Type :=
| inl : A → sum A B
| inr : B → sum A B
theorem inl_inhabited {A : Type} (B : Type) (H : inhabited A) : inhabited (sum A B)
:= inhabited.destruct H (λ a, inhabited.mk (sum.inl B a))
theorem inr_inhabited (A : Ty... |
9f36d675c6b45b2028217b458f0714a66ae52e3c | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/linear_algebra/affine_space.lean | 7c2556a36ce4cd4bf1a76d6e29de9530d33b4101 | [
"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 | 62,528 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import algebra.add_torsor
import data.indicator_function
import linear_algebra.basis
noncomputable theory
open_locale big_operators
open_locale classical
/-!
# Affine s... |
151680e55315bb0f2447a39d9975fbaf9560266c | 761d983a78bc025071bac14a3facced881cf5e53 | /new_affine/real_affine_space.lean | 77b07603aab2f8fc0f2b70591d82c07f04f1c095 | [] | no_license | rohanrajnair/affine_lib | bcf22ff892cf74ccb36a95bc9b7fff8e0adb2d0d | 83076864245ac547b9d615bc6a23804b1b4a8f70 | refs/heads/master | 1,673,320,928,343 | 1,603,036,653,000 | 1,603,036,653,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,459 | lean | import linear_algebra.affine_space.basic
import ..new_affine.affine_coordinate_space
import data.real.basic
namespace real_affine
abbreviation real_vec := aff_vec ℝ
abbreviation real_pt := aff_pt ℝ
abbreviation r3_vec := real_vec 3
abbreviation r3_pt := real_pt 3
universes u v w
structure aff_struct :=
(X : T... |
1295b8cc000f3dab2d808cc982ffce16260c8884 | aa101d73b1a3173c7ec56de02b96baa8ca64c42e | /src/my_exercises/07_first_negations.lean | edc2bae977561a16cadada2b70eeb85bfdbf2a1d | [
"Apache-2.0"
] | permissive | gihanmarasingha/tutorials | b554d4d53866c493c4341dc13e914b01444e95a6 | 56617114ef0f9f7b808476faffd11e22e4380918 | refs/heads/master | 1,671,141,758,153 | 1,599,173,318,000 | 1,599,173,318,000 | 282,405,870 | 0 | 0 | Apache-2.0 | 1,595,666,751,000 | 1,595,666,750,000 | null | UTF-8 | Lean | false | false | 9,929 | lean | import tuto_lib
import data.int.parity
/-
Negations, proof by contradiction and contraposition.
This file introduces the logical rules and tactics related to negation:
exfalso, by_contradiction, contrapose, by_cases and push_neg.
There is a special statement denoted by `false` which, by definition,
has no proof.
So ... |
b62949f9f8010990d3beafd43690e18481ebef41 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/compiler/t4.lean | 10785ed045bc0e07db0bd6ba20dd2fa2e19939ba | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 3,362 | lean | /- Benchmark for new code generator -/
inductive Expr
| Val : Int → Expr
| Var : String → Expr
| Add : Expr → Expr → Expr
| Mul : Expr → Expr → Expr
| Pow : Expr → Expr → Expr
| Ln : Expr → Expr
open Expr
def Expr.toString : Expr → String
| (Val n) := toString n
| (Var x) := x
| (Add f g) := "(" ++ Expr.toString f +... |
e0e7f50ed379be3672aa0ad8df6659c1c90c8fd8 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/group_theory/submonoid/membership.lean | b08568d2c533f08eaf7f4f0a876f2429e15bccef | [
"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 | 9,534 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.submonoid.operations
import algebra.big_operators.ba... |
92f7b762a7272238748d056f94676f5ca74bc99a | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/ho.lean | 8daa9d9e385d7ec96d8272cb139974d904c31bce | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 207 | lean | import data.nat
inductive star : Type₁ :=
z : star,
s : (nat → star) → star
check @star.rec
check @star.cases_on
example (f : nat → star) : ¬ star.z = star.s f :=
assume H, star.no_confusion H
|
743d1e510a6792a0cab37a154397b39555bd3477 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/logic/unique.lean | 9f1b2ae34b3b4099a3b98483cd0da0209ddde272 | [
"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,099 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import tactic.basic
import logic.is_empty
/-!
# Types with a unique term
In this file we define a typeclass `unique`,
which expresses that a type has a unique term.... |
b5afe14a3c52e26bedf56d345da38614f5aca631 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/kcomp.lean | d86373cfffe6c0d5faab9e230810548690521e69 | [
"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 | 973 | lean | set_option pp.notation false
constant A : Type
constants a b : A
constant P : A → Type
constant H₁ : a = a
constant H₂ : P a
constant H₃ : a = b
constant f {A : Type} (a : A) : a = a
#reduce (eq.rec H₂ (@f A a) : P a)
#reduce (eq.rec H₂ H₁ : P a)
#reduce (eq.rec H₂ H₃ : P b)
#reduce (eq.rec H₂ (@eq.refl A a... |
132a73f3a82d0fb3db9d82c30028bfeee5c3bab1 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/algebraic_geometry/locally_ringed_space.lean | a48931df75a9cd01a395314078e8d6e6b3fc81a6 | [
"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 | 4,881 | 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 algebraic_geometry.sheafed_space
import algebra.category.CommRing.limits
import algebra.category.CommRing.colimits
import algebraic_geometry.stalks
import rin... |
f88783f25dd67fc8f7d12d874067d704bea786a9 | dc253be9829b840f15d96d986e0c13520b085033 | /algebra/left_module.hlean | 8bbb2246fc56678325ab6e1bc472d1517d19da68 | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 26,663 | hlean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Floris van Doorn
Modules prod vector spaces over a ring.
(We use "left_module," which is more precise, because "module" is a keyword.)
-/
import al... |
7fac0d900dcb7ccb9ef6a8a2426661e6339e22e7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/choiceMacroRules.lean | 78284b5035012b468265fb2cb6f7a30aef212c28 | [
"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 | 457 | lean | syntax:65 (name := myAdd1) term "+++" term:65 : term
syntax:65 (name := myAdd2) term "+++" term:65 : term
macro_rules (kind := myAdd1)
| `($a +++ $b) => `(Nat.add $a $b)
macro_rules (kind := myAdd2)
| `($a +++ $b) => `(Append.append $a $b)
#check (1:Nat) +++ 3
theorem tst1 : ((1:Nat) +++ 3) = 1 + 3 :=
rfl
#check f... |
0ea898a6c3fba554f3f321ecdfb3afc76b38f119 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/smt/congruence_closure.lean | a8bb307d9de915402e751c414f267915fc99a2d8 | [] | 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 | 566 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.interactive_base
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.meta.set_get... |
d2d8f0b39ac2bdcbcaaa5e02e6db6222ab14bad2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/equiv/encodable/basic.lean | d6f36f012ed9fe55b91658e61262bd730ba0c823 | [] | 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 | 15,532 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Mario Carneiro
Type class for encodable Types.
Note that every encodable Type is countable.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
imp... |
afd79873ef223bfdf0364be37341394c483300fb | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/order/filter/cofinite.lean | 2ef81659503488bec1645b1e862b01400ca2453e | [
"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,811 | 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, Jeremy Avigad, Yury Kudryashov
-/
import order.filter.at_top_bot
/-!
# The cofinite filter
In this file we define
`cofinite`: the filter of sets with finite compleme... |
4a7d90c4539c14a04cad81a291fb5fb1c2b5bb0b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/derive.lean | 42879132647bbc1ac0fea25945da471ab69fefb2 | [] | 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 | 796 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
Attribute that can automatically derive typeclass instances.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.attribute
import Mathlib.Lean3Lib.ini... |
26420dd10cd6d28cab3f1df62b8af79883b9dc4f | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/common/cairo_secp/elliptic_curves.lean | a921869b62dea1107ad21e1c4c7844d5fcc0227a | [] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 4,896 | lean | import data.zmod.algebra
import tactic
class ec_field (F : Type*) extends field F :=
(deceqF : decidable_eq F)
(two_ne_zero : (2 : F) ≠ 0)
instance ec_field.decidable_eq (F : Type*) [h : ec_field F] : decidable_eq F :=
h.deceqF
def on_ec {F : Type*} [field F] (p : F × F) := p.2^2 = p.1^3 + 7
lemma eq_or_eq_neg_of_e... |
758dd71c802dc58266d94ad0b839dd621f4cc679 | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/group/add_circle.lean | 93388f293ccf4c6c97449de3ff92bd9a62929a3a | [
"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 | 5,356 | lean | /-
Copyright (c) 2022 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import measure_theory.integral.periodic
import data.zmod.quotient
/-!
# Measure-theoretic results about the additive circle
The file is a place to collect measure-theoret... |
347edc671c675554108802ac4d1e8ad5a5841078 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/580.hlean | e48e83b3a3d5d4ccb62558f9cdeae2e79b6604ba | [
"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 | 359 | hlean | section
parameters (A : Type) (a b z : A) (add : A → A → A) (le : A → A → Type₀)
local notation 0 := z
local infix + := add
local infix ≤ := le
definition add_zero (x : A) : x + 0 = x := sorry
set_option pp.universes true
definition le_add_of_nonneg_right (H : a + 0 ≤ a + b) : a ≤ a + b :=
begin
rewrite add_zero a... |
18705930326df3884fb90b5ad21c35f421da8ae4 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/convex/extrema.lean | 7cdb67adfffcf57ce208f83026c44b068eb815fc | [
"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 | 5,441 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import analysis.calculus.local_extr
import topology.algebra.affine
/-!
# Minima and maxima of convex functions
We show that if a function `f : E → β` is convex, ... |
6188e999fc2d585b5a5817bed90872228571b10d | 7fc0ec5c526f706107537a6e2e34ac4cdf88d232 | /src/linear_algebra/monoid_star_algebra.lean | 3e805bf0eee8498cedca52a6af61ce394e2ff2e4 | [
"Apache-2.0"
] | permissive | fpvandoorn/group-representations | 7440a81f2ac9e0d2defa44dc1643c3167f7a2d99 | bd9d72311749187d3bd4f542d5eab83e8341856c | refs/heads/master | 1,684,128,141,684 | 1,623,338,135,000 | 1,623,338,135,000 | 256,117,709 | 0 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 26,917 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury G. Kudryashov, Scott Morrison
-/
import data.finsupp
import ring_theory.algebra
import linear_algebra.star_algebra
import topology.algebra.infinite_sum
import data... |
fdfb678691bba56b25a79be677772b9b37e4c6ae | 618003631150032a5676f229d13a079ac875ff77 | /src/linear_algebra/lagrange.lean | 058eed1e48129eec201e10bc3f369aec1a7d7dd2 | [
"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 | 6,946 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kenny Lau.
-/
import ring_theory.polynomial algebra.big_operators
/-!
# Lagrange interpolation
## Main definitions
* `lagrange.basis s x` where `s : finset F` and `x : F`: the Lagrange b... |
30e076b3aad20bcdbcc76ecdbd937317b4ea3629 | 3984ab8555ab1e1084e22ef652544acdfc231f27 | /src/Regret Minimization in Games with Incomplete Information - template.lean | 2be70c4492c764265b7cddb76e92ae06a0c6b191 | [] | no_license | mrakgr/CFR-in-Lean | a35c7a478795cc794cc0caff3199cf28c8ee5448 | 720a3260297bcc158e08833d38964450dcaad2eb | refs/heads/master | 1,598,515,917,940 | 1,572,612,355,000 | 1,572,612,355,000 | 217,296,108 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,499 | lean | import data.rat
-- `constant`s are axiomatic definitions. They are inherently noncomputable.
constant Infoset : Type
constant Policy : Type
def maximize {α : Type} : α × list α → (α → ℚ) → ℚ | (x,xs) f := xs.foldl (fun s a, max s (f a)) (f x)
def list.fsum {α : Type} : (α → ℚ) → list α → ℚ | f l := l.foldl (fun s a, ... |
760253e13690a8813f0f791f88bbe1110eb087d1 | 4d7079ae603c07560e99d1ce35876f769cbb3e24 | /src/stability.lean | a62b20c50252222263994123785cf31be16ebe9f | [] | no_license | chasenorman/Formalized-Voting | 72493a08aa09d98d0fb589731b842e2d08c991d0 | de04e630b83525b042db166670ba97f9952b5691 | refs/heads/main | 1,687,282,160,284 | 1,627,155,031,000 | 1,627,155,031,000 | 370,472,025 | 13 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,064 | lean | import main
import split_cycle
open_locale classical
variables {V X : Type}
def minus_candidate (P : Prof V X) (b : X) : Prof V {x : X // x ≠ b} := λ v x y, P v x.val y.val
def strong_stability [fintype V] (F : VSCC) (P : Prof V X) : Prop :=
∀ (a b : X) (e : a ≠ b), 0 ≤ margin P a b → (⟨a, e⟩ : {x : X // x ≠ b})... |
09a4479104d2ec349f18d13e3748b59ea75701ff | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/monotonicity/interactive.lean | be3ca23b63c6c8fa47dfaa29f547a6af8b52ce9e | [
"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 | 23,516 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.monotonicity.basic
import control.traversable
import control.traversable.derive
import data.dlist
variables {a b c p : Prop}
namespace tactic.interactive
o... |
210b981341eeb015949b351dd2b878051c66f91a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/lifting_properties.lean | 4ebc2ffa9b26495f65ceb71111ec71e4084a5af3 | [
"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,342 | lean | /-
Copyright (c) 2021 Jakob Scholbach. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob Scholbach
-/
import category_theory.arrow
import category_theory.limits.preserves.shapes.terminal
/-!
# Lifting properties
This file defines the lifting property of two arrows... |
1f145690f27f4dfe37881398061e4df846193786 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/order/order_iso.lean | a9e7fad94bc65905a3be27b8ad0c3e33f6bb633d | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 14,861 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import logic.embedding
import logic.function.iterate
import order.rel_classes
open function
universes u v w
variables {α : Type*} {β : Type*} {γ : Type*}
{r : α →... |
066478548bb5a4447898c7ecdce2a7e4e2045842 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/do_match_else.lean | bf16e9dfd427b46c46d2c287b0c8737ebe5b5ccf | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 566 | lean | open tactic
set_option pp.all true
meta def app2 (f a b : expr) :=
expr.app (expr.app f a) b
example (a b c x y : nat) (H : nat.add (nat.add x y) y = 0) : true :=
by do
a ← get_local `a, b ← get_local `b, c ← get_local `c,
H ← get_local `H >>= infer_type,
(lhs, rhs) ← match_eq H,
nat_add : expr ← mk_const `n... |
78b7fe649367aadf641fed41a4e03894bfd29269 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/padics/ring_homs.lean | 06ec8c3472d65d00c93443d0accd24d4f7fae22a | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 24,775 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import data.padics.padic_integers
/-!
# Relating `ℤ_[p]` to `zmod (p ^ n)`
In this file we establish connections between t... |
2ed9e4243f17914fea1b72d9826c6b62e0eb5702 | 7490bf5d40d31857a58062614642bb5a41c36154 | /dm_prod_test.lean | d62723a352d108169aa15e44dcdf8a252c29e188 | [] | no_license | reesegrayallen/Lean-Discrete-Mathematics | 9f1d6fe1c814cc9264ce868a67adcf5a82566e22 | 00c875284613ea12e0a729f519738aab8599456b | refs/heads/main | 1,674,181,372,629 | 1,606,801,004,000 | 1,606,801,004,000 | 317,387,970 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,497 | lean | /-
HOMEWORK 3
Reese Allen (rga2uz)
CS2102 - Sullivan
-/
import .dm_prod
-- defining ordered pairs to use in testing
def p1 := dm_prod.mk 5 2
def p2 := dm_prod.mk 3 tt
def p3 := dm_prod.mk ff tt
#check p1 -- dm_prod ℕ ℕ
#check p2 -- dm_prod ℕ bool
#check p3 -- dm_prod bool bool
-- additional ordered pairs
de... |
57e06b0984e00e05764e7a4e500f9a3cc2ef6c79 | 92b50235facfbc08dfe7f334827d47281471333b | /hott/init/num.hlean | 5e67d8aa70eb65feabcf6386ed900ceb7350073c | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 3,360 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.logic init.bool
open bool
definition pos_num.is_inhabited [instance] : inhabited pos_num :=
inhabited.mk pos_num.one
namespace pos_nu... |
90e7a627b191e18545d9372491725e8f897615a4 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/list/chain.lean | 29a547f48b65223b98a5a9e301caca543d09954e | [
"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 | 7,553 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Yury Kudryashov
-/
import data.list.pairwise
universes u v
open nat
variables {α : Type u} {β : Type v}
namespace list
/- chain relation (conjunction of... |
ba34740881e78e7631a3efcf036b41fbd65ff48c | 8be24982c807641260370bd09243eac768750811 | /src/test.lean | 3b8aaa3c79bb1c61472cd9783a808017288f4cc5 | [] | no_license | jjaassoonn/transcendental | 8008813253af3aa80b5a5c56551317e7ab4246ab | 99bc6ea6089f04ed90a0f55f0533ebb7f47b22ff | refs/heads/master | 1,607,869,957,944 | 1,599,659,687,000 | 1,599,659,687,000 | 234,444,826 | 9 | 1 | null | 1,598,218,307,000 | 1,579,224,232,000 | HTML | UTF-8 | Lean | false | false | 8,676 | lean | import measure_theory.set_integral
import measure_theory.bochner_integration
import measure_theory.interval_integral
import measure_theory.lebesgue_measure
import analysis.special_functions.exp_log
import small_things
import tactic
noncomputable theory
open_locale classical
open_locale big_operators
notation α`[X]` :... |
908f21c9b01bbd37f15d4a03d7b8dc0dd250cafc | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/mismatch.lean | 9c18bf3502620466d96e4c629ac5370e3af3f74a | [
"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 | 82 | lean | -- definition id {A : Type} {a : A} := a
definition o : num := 1
check @id nat o
|
5e6c75c64cd3f43719ef477916221b4923a2ac0e | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/hhg/nat.lean | 92358b313ddb59ae6786d334d8dee6a632d89de4 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 406 | lean | inductive nat2 : Type
| zero : nat2
| succ : nat2 -> nat2
--#print nat2
inductive aexp : Type
| num : nat -> aexp -- TODO: need Z
| var : string -> aexp
| add : aexp -> aexp -> aexp
| sub : aexp -> aexp -> aexp
| mul : aexp -> aexp -> aexp
| div : aexp -> aexp -> aexp
lemma add_zero2 : ∀ (n : ℕ), 0 + n = n :... |
a40b1a06efdda94c432601682b65650cd60d9f3a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/real/pi/bounds.lean | 48790c51e6d406b7a8e5c22549d5d37c7fc9e965 | [
"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 | 7,798 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Mario Carneiro
-/
import analysis.special_functions.trigonometric.basic
/-!
# Pi
This file contains lemmas which establish bounds on `real.pi`.
Notably, these inc... |
f0ccf372a3348af24fb2084aa64b696735bb24de | ac89c256db07448984849346288e0eeffe8b20d0 | /src/Init/Prelude.lean | 6861c0cfc0b658f6a830ecb73bcf0e5449d96c31 | [
"Apache-2.0"
] | permissive | chepinzhang/lean4 | 002cc667f35417a418f0ebc9cb4a44559bb0ccac | 24fe2875c68549b5481f07c57eab4ad4a0ae5305 | refs/heads/master | 1,688,942,838,326 | 1,628,801,942,000 | 1,628,801,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 75,439 | 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
-/
prelude
universe u v w
@[inline] def id {α : Sort u} (a : α) : α := a
/- `idRhs` is an auxiliary declaration used to implement "smart unfolding". It is u... |
cae54bee826ad5fac2d63a24feabe8188e188c77 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/calculus/fderiv.lean | 2dcaaae1573f0b4bfcfb22ea7a17390f26d00d63 | [
"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 | 139,309 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.asymptotics.asymptotic_equivalent
import analysis.calculus.tangent_cone
import analysis.normed_space.bounded_linear_... |
3a8e52a11977b91b7e3bbc2386ec7347ef95ec84 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/jordan_holder.lean | ab622f412faaef6114b3ba70a42564f7575cd01f | [
"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 | 30,653 | lean | /-
Copyright (c) 2021 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import order.lattice
import data.list.sort
import logic.equiv.fin
import logic.equiv.functor
import data.fintype.card
/-!
# Jordan-Hölder Theorem
This file proves the Jo... |
2f378d28d91c0f586758992f2c274b5304f9e42b | 874a8d2247ab9a4516052498f80da2e32d0e3a48 | /eulerv2.lean | fd2c36280d83c1aa7df22c230b71719cb780af40 | [] | no_license | AlexKontorovich/Spring2020Math492 | 378b36c643ee029f5ab91c1677889baa591f5e85 | 659108c5d864ff5c75b9b3b13b847aa5cff4348a | refs/heads/master | 1,610,780,595,457 | 1,588,174,859,000 | 1,588,174,859,000 | 243,017,788 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,148 | lean | import analysis.normed_space.basic
import topology.instances.ennreal
import analysis.normed_space.basic
import topology.instances.ennreal
import algebra.archimedean algebra.geom_sum
import data.nat.choose data.complex.basic
import tactic.linarith
import analysis.calculus.deriv
import data.complex.exponential
open fins... |
eec770fd2b1058cf796e0500472edc8381d8ea34 | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/logic/unnamed_293.lean | f9224b471228dc0411abcd8dc9e22fcbc5ead492 | [] | 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 | 114 | lean | variables A B : Prop
-- BEGIN
example : A ∧ B → B ∧ A :=
begin
intro h,
exact ⟨h.2, h.1⟩
end
-- END |
7a46146b954a8d7f968259d86662aa94bcf56a90 | 798dd332c1ad790518589a09bc82459fb12e5156 | /tests/linarith.lean | a06c5a25555051a7a9edc180c680c34b064495a7 | [
"Apache-2.0"
] | permissive | tobiasgrosser/mathlib | b040b7eb42d5942206149371cf92c61404de3c31 | 120635628368ec261e031cefc6d30e0304088b03 | refs/heads/master | 1,644,803,442,937 | 1,536,663,752,000 | 1,536,663,907,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,176 | lean | import tactic.linarith
example (h1 : (1 : ℚ) < 1) : false :=
by linarith
example (e b c a v0 v1 : ℚ) (h1 : v0 = 5*a) (h2 : v1 = 3*b) (h3 : v0 + v1 + c = 10) :
v0 + 5 + (v1 - 3) + (c - 2) = 10 :=
by linarith
example (ε : ℚ) (h1 : ε > 0) : ε / 2 + ε / 3 + ε / 7 < ε :=
by linarith
example (x y z : ℚ) (h1 : 2*x < ... |
7834355a28c527bd51626636457cb57a195501f6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/category/Top/basic.lean | f212483491efe5c7391ea2e9f5aeddf7983fef38 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,669 | 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 category_theory.concrete_category.bundled_hom
import category_theory.elementwise
import topology.continuous_function.basic
/-!... |
691e5f72f2b9898c38cab9ed9af9cf6afe78355e | b70447c014d9e71cf619ebc9f539b262c19c2e0b | /hott/eq2.hlean | e3d239c094de2c7453272dba56bf5e8771f678cd | [
"Apache-2.0"
] | permissive | ia0/lean2 | c20d8da69657f94b1d161f9590a4c635f8dc87f3 | d86284da630acb78fa5dc3b0b106153c50ffccd0 | refs/heads/master | 1,611,399,322,751 | 1,495,751,007,000 | 1,495,751,007,000 | 93,104,167 | 0 | 0 | null | 1,496,355,488,000 | 1,496,355,487,000 | null | UTF-8 | Lean | false | false | 5,612 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about 2-dimensional paths
-/
import .cubical.square
open function
namespace eq
variables {A B C : Type} {f : A → B} {a a' a₁ a₂ a₃ a₄ : A} {b b' : B}
... |
5509c4f76cab4d7133bfa748fd3c19c6c4933401 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/contractible.lean | 88bf959d51e582c6625f67c583b722181d8aebd2 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,738 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.convex.star
import topology.homotopy.contractible
/-!
# A convex set is contractible
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to t... |
120cad99360d3210091aa0af0d6cefb9eba1aeab | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/group/units.lean | 978fa33f275847ae66273e5aaf37cb188c4c0703 | [
"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 | 18,221 | lean | /-
Copyright (c) 2017 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johannes Hölzl, Chris Hughes, Jens Wagemaker
-/
import algebra.group.basic
import logic.nontrivial
/-!
# Units (i.e., invertible elements) of a monoid
An elemen... |
8477fcb3f06e12c844223c7af0f4f26d08df0bdb | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/tactic/congr.lean | e0d6f2672b6a8b9ce8ead01978c804b9a398c966 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,641 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.lint
import tactic.ext
/-!
# Congruence and related tactics
This file contains the tactic `congr'`, which is an extension of `congr`, and various ... |
7ae8d05607b0a754c10ae3710bef78f4decbf3f0 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/inner_product_space/spectrum.lean | ad3cca6d234c95513359217f851137ba3d4e36b0 | [
"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,374 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.inner_product_space.rayleigh
import analysis.inner_product_space.pi_L2
/-! # Spectral theory of self-adjoint operators
This file covers the spectr... |
6c35ea0890a7d78b3db24ee87056b1ddfa24e984 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/mv_polynomial/cardinal.lean | ff7a3335a6beef8c1807558c073cec036d86237f | [
"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 | 2,046 | lean | /-
Copyright (c) 2021 Chris Hughes, Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Junyan Xu
-/
import data.finsupp.fintype
import data.mv_polynomial.equiv
import set_theory.cardinal.ordinal
/-!
# Cardinality of Multivariate Polynomial Ring
Th... |
77ee3542c9c5d9df289f0ae63184ed2ccc72eb4a | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/353.lean | bc3ffd78ef9d6edf4d8a93917cfbae50ac4fb8c0 | [
"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 | 478 | lean | class ArrSort (α : Sort u1) where
Arr : α → α → Sort u2
class Arr (α : Sort u1) (γ : Sort u2) where
Arr : α → α → γ
infix:70 " ~> " => Arr.Arr
@[defaultInstance]
instance inst1 {α : Sort _} [ArrSort α] : Arr α (Sort _) := { Arr := ArrSort.Arr }
instance inst2 : ArrSort Prop := { Arr := λ a b => a → b }
set_option ... |
d0f13cafa569de37ad7ac19948273c4ca5245adc | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/analysis/calculus/inverse.lean | 1e91b9213fe3dc837e35f36f741a69b715a7604f | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 21,386 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov.
-/
import analysis.calculus.deriv
import topology.local_homeomorph
import topology.metric_space.contracting
/-!
# Inverse function theorem
In this file we prove the... |
b52ba6d808a8e77a350e3dab9cc10176bd43fc12 | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world6/level3.lean | bd72573157ccb010d7c7ba9bcf9b06fc6c8dc152 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 198 | lean | lemma maze (P Q R S T U: Prop)
(p : P)
(h : P → Q)
(i : Q → R)
(j : Q → T)
(k : S → T)
(l : T → U)
: U :=
begin
have q := h(p),
have t := j(q),
have u := l(t),
exact u,
end |
c4e3cf5cd26eef1abb3506a734e0353d4b8a84e2 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/hit/circle.hlean | 694aa8208e47e69ea0d5c555f0101fb5fcd4b9db | [
"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 | 3,698 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: hit.circle
Authors: Floris van Doorn
Declaration of the circle
-/
import .sphere
open eq suspension bool sphere_index equiv
definition circle [reducible] := suspension bool --red... |
fef3eb862505514dbab555d46b55c4dc26283c1e | 626e312b5c1cb2d88fca108f5933076012633192 | /src/algebra/ordered_group.lean | f9c9372de4a1e90c3f9f465ddd7c5885a82b0d7b | [
"Apache-2.0"
] | permissive | Bioye97/mathlib | 9db2f9ee54418d29dd06996279ba9dc874fd6beb | 782a20a27ee83b523f801ff34efb1a9557085019 | refs/heads/master | 1,690,305,956,488 | 1,631,067,774,000 | 1,631,067,774,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 45,594 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl
-/
import algebra.ordered_monoid
import order.rel_iso
import order.order_dual
/-!
# Ordered groups
This file develops ... |
e16d7a72412a4f5e3f15776cce9bd7b609cd3dde | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/leanpkg/cyclic/Cyclic.lean | 5af4f224d95231cffe6adfe49d145aef68b8d0ea | [
"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 | 16 | lean | import Cyclic.A
|
4ea430c3bd0b47d5a84784a10edd9583e86c760e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/affine_space/affine_subspace.lean | 0aed92209fba84a643a6ba2cabc7cc8b0db19a02 | [
"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 | 54,912 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import data.set.intervals.unordered_interval
import linear_algebra.affine_space.affine_equiv
/-!
# Affine spaces
This file defines affine subspaces (over modules) and t... |
88a13bb13f66e8116510f50e69f54454eb6b36e0 | 0005a183d2afe3c7d097776749c13513cae91b66 | /src/bigop.lean | c475a669bb708cf757e4d28aaff312d7a3951794 | [] | no_license | PatrickMassot/bigop | 9f85014752aa632c270bafbd96400512839220eb | af53ad615b619e3c05fe119f98f939ff010f7e6d | refs/heads/master | 1,584,009,287,023 | 1,562,778,117,000 | 1,562,778,117,000 | 130,576,309 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 12,452 | lean | import tactic.ext
import tactic.linarith
import pending_lemmas
open list
variables {R : Type*} {I : Type*} (op : R → R → R) (nil: R)
(r : list I) (P : I → Prop) [decidable_pred P] (F : I → R)
local infix ` ◆ `:70 := op -- type using \di
/- Starting from `F : I → R`, `r : list I`, a composition law `op` o... |
9db95b32ef91c107b59b33e9936d3a2e23e3420e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/format.lean | 4d02e0d2958a443c2e5b17cc3c2bc8f355a4bc8b | [
"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 | 289 | lean | import system.io
open list
#eval pp ([["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"], ["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"],
["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"], ["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"]],
[(10:nat), 20, 30])
|
675511e42ea0a099c109a4616b1815bfc44b989a | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/init/wf.lean | 34b62313e1f4106803055326f6d18b51292d716f | [
"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 | 4,384 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.relation init.tactic
inductive acc {A : Type} (R : A → A → Prop) : A → Prop :=
intro : ∀x, (∀ y, R y x → acc R y) → acc R x
namespace a... |
183c71e764a138c2c2cf2e19fbc6365b1a8ddd7b | ea7e4e10c8e02ca90fe014eb18bf5a44ce3a3502 | /src/affine_algebraic_set.lean | dfc65bbf831affb609e4f01acb3bb96b82413a18 | [
"Apache-2.0"
] | permissive | roro47/M4P33 | d4f49cc1a45954e03b42eaca559c9ab8024b1a38 | 34a93f45035add9dc909203f7957ce3822c38cdd | refs/heads/master | 1,607,563,697,384 | 1,578,860,560,000 | 1,578,860,560,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,029 | lean | /-
Copyright (c) 2020 Kevin Buzzard
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, and whoever else wants to join in.
-/
import for_mathlib.algebraically_closed
import data.mv_polynomial
/-!
# Affine algebraic sets
This file defines affine algebraic subsets of affine n-spa... |
2c6d581590389ac9b7e0582683febfe9898b6a45 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Init/Prelude.lean | a6e7a6fad85bf945f209f7e55d46a9dfbd59784e | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 61,186 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
universes u v w
@[inline] def id {α : Sort u} (a : α) : α := a
abbrev Function.comp {α : Sort u} {β : Sort v} {δ : Sort w} (f : β → δ) (g : α → β... |
b10b9c18d6791b74f528bd4be68a1882d9b384cd | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /src/Lean/Meta/WHNF.lean | 157b0544482540798c9babc3be548d722e7f3d1a | [
"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 | 22,042 | 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.ToExpr
import Lean.AuxRecursor
import Lean.ProjFns
import Lean.Meta.Basic
import Lean.Meta.LevelDefEq
import Lean.Meta.GetConst
import Lean.Meta... |
4b6b86409d9fb4ca988b45f0204ce15fe898f67c | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /test/equiv_rw.lean | 701c17160f95533a226d6caded093aaf722c8a9b | [
"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 | 9,075 | 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 tactic.equiv_rw
import control.equiv_functor.instances -- these make equiv_rw more powerful!
-- Uncomment this line to observe the steps of constructing appro... |
2316ba162a5aa34eb292ff5451b3158df8195223 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/alias1.lean | 8b07b25a10486528bd3e3424c995eb99e5cf7587 | [
"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 | 54 | lean | alias BB : Bool.
variable x : BB.
print environment 1. |
7006ea84e3db611098a7db851f91157171672680 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Prelude.lean | 4e2c2b9f8eec0e38e0acc83e2743efcdeaa5081d | [
"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 | 177,361 | 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, Mario Carneiro
-/
prelude -- Don't import Init, because we're in Init itself
set_option linter.missingDocs true -- keep it documented
/-!
# Init.Prelude
Thi... |
7be47ca50842eb0e7a4871c885c0752ced71791b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/mutualdef1.lean | c24deb843cff494fcccd668fd04354abb7a2d9f0 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 462 | lean | --
mutual
def f (x : Nat) : Nat → Nat
| 0 => 1
| x+1 => g x
theorem g (x : Nat) : Nat → Nat -- cannot mix theorems and definitions
| 0 => 2
| x+1 => f x
end
mutual
def f : Nat → Nat
| 0 => 1
| x+1 => g x
example : Nat := -- cannot mix examples and definitions
g 10
end
mutual
def f (x : Nat) : Nat → Nat... |
f97b9cb58a8b84226cc1bf072696f2e9f5142023 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/category_theory/isomorphism.lean | 16206c5ca7ea69c8ace3257d2fae81fe814be43d | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,213 | 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, Floris van Doorn
-/
import category_theory.functor
/-!
# Isomorphisms
This file defines isomorphisms between objects of a category.
## M... |
0295af615e4e5641936d5754e3354290eb780479 | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /tests/playground/parser/syntax.lean | 1e014bf661c9bf26796ef2500f6627c48e5c1814 | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,625 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
-/
prelude
import init.lean.name init.lean.format init.data.array
-- namespace Lean
namespace Parser
open Lean
/-- A hygiene marker introduc... |
a94d04e6b1f9b7572d5a6ffe11c186a0d934309f | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/Tactic/Util.lean | d7cdc693807713960f7eb57e5105980a7e1aba6f | [
"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 | 6,328 | 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.Util.ForEachExpr
import Lean.Meta.Basic
import Lean.Meta.AppBuilder
import Lean.Meta.PPGoal
namespace Lean.Meta
/-- Get the user name of the g... |
d70228a107e11ce7597ebfa854d7f0abcc0d5083 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/init/reserved_notation.lean | 55cad3d402002f1456ff1a623866b27e1fd61bc6 | [
"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 | 7,421 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Floris van Doorn
-/
prelude
import init.datatypes
notation `assume` binders `,` r:(scoped f, f) := r
notation `take` binders `,` r:(scoped f... |
014bf410eec7a01229000c201e4305eafdb06a6e | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /src/Lean/Compiler/IR/Basic.lean | 6b34ef8551987975a5dd35b329200bdfc2e65525 | [
"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 | 25,708 | 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.Data.KVMap
import Lean.Data.Name
import Lean.Data.Format
import Lean.Compiler.ExternAttr
/-
Implements (extended) λPure and λRc proposed in the ... |
d605ac7fc040bcf2316c491c817f3c88565cfa5b | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/Match/Basic.lean | 8a7109ce18eb50f74a5e4591c542ca707eddcfd7 | [
"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 | 14,436 | 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.Check
import Lean.Meta.CollectFVars
import Lean.Meta.Match.MatcherInfo
import Lean.Meta.Match.CaseArraySizes
namespace Lean.Meta.Match
de... |
abb314b2c12adb6af08d27c9faadbcefacf5ef07 | 3268ab3a126f0fef71459fbf170dc38efe5d0506 | /algebra/left_module.hlean | 83ee6eaa0b258470b9b7c18749b6de381d6a8516 | [
"Apache-2.0"
] | permissive | soraismus/Spectral | f043fed1a4e02ddfeba531769b2980eb817471f4 | 32512bf47db3a1b932856e7ed7c7830b1fc07ef0 | refs/heads/master | 1,585,628,705,579 | 1,538,609,948,000 | 1,538,609,974,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,818 | hlean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Floris van Doorn
Modules prod vector spaces over a ring.
(We use "left_module," which is more precise, because "module" is a keyword.)
-/
import al... |
7bfc15237dee80244c795577cca001b4fe52523d | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/ring_theory/finiteness.lean | 01258563d0d99e5b73f50be13f5a372bd2ce98fa | [
"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 | 20,185 | 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 ring_theory.noetherian
import ring_theory.ideal.operations
import ring_theory.algebra_tower
/-!
# Finiteness conditions in commutative algebra
In this file ... |
403ad20ba8da08c88edfbe619266d0748a5def8b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/uniform_integrable.lean | 789d0c95688e220d7657817d3acce57301e84620 | [
"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 | 48,695 | lean | /-
Copyright (c) 2022 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.function.convergence_in_measure
import measure_theory.function.l1_space
/-!
# Uniform integrability
This file contains the definitions for uniform i... |
3a60b527b2dc7873f896d334524dff1dddbcedc4 | 8930e38ac0fae2e5e55c28d0577a8e44e2639a6d | /data/equiv/encodable.lean | 120a0f47e4e44f4c868275b66f3209392a8dc16e | [
"Apache-2.0"
] | permissive | SG4316/mathlib | 3d64035d02a97f8556ad9ff249a81a0a51a3321a | a7846022507b531a8ab53b8af8a91953fceafd3a | refs/heads/master | 1,584,869,960,527 | 1,530,718,645,000 | 1,530,724,110,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,923 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Mario Carneiro
Type class for encodable Types.
Note that every encodable Type is countable.
-/
import data.equiv.nat
open option list nat function
/-- An enc... |
db36eec42aeaedb4552a5a285317be10bc4d5b7c | 367134ba5a65885e863bdc4507601606690974c1 | /src/control/bitraversable/instances.lean | 37b46e8e5e6a6c3ea84c63aefd238da2ea9f71cd | [
"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,396 | 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.lemmas
import control.traversable.lemmas
/-!
# bitraversable instances
## Instances
* prod
* sum
* const
* flip
* bicompl
* bicompr
... |
a7c634fccec3c326289b17c733569c8520a5b027 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/metric_space/completion.lean | f9271f26ee2b8318f89aca9f277155284e8cc27d | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,096 | 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.uniform_space.completion
import topology.metric_space.isometry
import topology.instances.real
/-!
# The completion of a metric space
Completio... |
a6c109f8653d56b8ca87dc7f2a98f960ad287ff9 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/polynomial/induction.lean | 10f7f2a91162fe554df8fa1939154667fe4e270d | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 3,067 | lean | /-
Copyright (c) 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.coeff
import ring_theory.ideal.basic
/-!
# Induction on polynomials
This file contains lemmas dea... |
ac27f3448f0462b6fd4724fabdbc558387e14e04 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/linear_algebra/matrix/determinant.lean | 01ca391f7a7ccfa833435ec0fc0a2e0fd3684cb5 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,361 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Tim Baanen
-/
import data.matrix.pequiv
import data.matrix.block
import data.fintype.card
import group_theory.perm.fin
import group_theory.perm.sign
import algebra.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.