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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6c2ff75fab78b62432cc98ee24e8de93db9e1168 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/number_theory/arithmetic_function.lean | 2326486d77b920e2c91d12d697a91d8d1f11bdaa | [
"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 | 32,574 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.big_operators.ring
import number_theory.divisors
import algebra.squarefree
import algebra.invertible
/-!
# Arithmetic Functions and Dirichlet Convolut... |
a44f1481947bbed6e43c9c1c68f08fcce084e13c | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Init/Control/Lawful.lean | d400331b7ea03912778cfef9d9dd5a7424d1526d | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 14,439 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura
-/
prelude
import Init.SimpLemmas
import Init.Control.Except
import Init.Control.StateRef
open Function
@[simp] theorem monadLift_self [Mo... |
703f57c73652234acf9a88fda64ade3018006e33 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/polynomial/hasse_deriv.lean | deb2b4d9968f5494df3cd78e628ec116ad51ff10 | [
"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 | 8,566 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.nat.choose.cast
import data.nat.choose.vandermonde
import data.polynomial.derivative
/-!
# Hasse derivative of polynomials
The `k`th Hasse derivative o... |
db1a40615ecf95bb626c6fbce20a5b0383751e0b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/list/min_max.lean | f38af432cc5ecd0f9d22e2cec1043f675a6d7167 | [
"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 | 12,899 | lean | /-
Copyright (c) 2019 Minchao Wu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Minchao Wu, Chris Hughes
-/
import data.list.basic
/-!
# Minimum and maximum of lists
## Main definitions
The main definitions are `argmax`, `argmin`, `minimum` and `maximum` for lists.
... |
7428557ac2dbecd21d3647178c164d196f60248f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/group_with_zero.lean | 91620671d73a67e38a1bdade9e3dfe812ba974bf | [
"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,369 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import topology.algebra.monoid
import algebra.group.pi
import topology.homeomorph
/-!
# Topological group with zero
In this file we define `has_continuous_i... |
c4d8345fa8bf624ff6d8a1fd271bfb3e1d4755d4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/buffer/parser/basic.lean | 30f1b1f17d5ef2edd6791fbea540e3ed4a140d4a | [
"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 | 110,117 | 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.string.basic
import data.buffer.basic
import data.nat.digits
import data.buffer.parser
/-!
# Parsers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ... |
7408353636a1631ece47314b137d9b98b32728fd | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Meta/AbstractMVars.lean | 50701eb0178fc72a250e452efe08139c86b3a83e | [
"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 | 5,666 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
namespace Lean.Meta
structure AbstractMVarsResult where
paramNames : Array Name
numMVars : Nat
expr : Expr
deriving... |
693973890f4e0561a1dc7c0beb36bd267dc5a0d2 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/macro_args.lean | b756cf7d788d1ab279ddcb3a07951d0b6914830d | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 61 | lean | #eval ``({pos . line := has_zero.zero, col := 1}).to_raw_fmt
|
cc763b37938c60b4c6d88dafc82ff9cf2a73dc05 | 3c9dc4ea6cc92e02634ef557110bde9eae393338 | /stage0/src/Init/System/ST.lean | 2e57269872a87a9ac0f63fd811d8d3ca75b55d3f | [
"Apache-2.0"
] | permissive | shingtaklam1324/lean4 | 3d7efe0c8743a4e33d3c6f4adbe1300df2e71492 | 351285a2e8ad0cef37af05851cfabf31edfb5970 | refs/heads/master | 1,676,827,679,740 | 1,610,462,623,000 | 1,610,552,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,435 | 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
import Init.Classical
import Init.Control.EState
import Init.Control.Reader
def EST (ε : Type) (σ : Type) : Type → Type := EStateM ε σ
abbrev ST (σ... |
60367fa9ddfdba7864e753d27f8a7d2a5eb9a3df | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/withReducibleAndInstancesCrash.lean | 738e5bf59ae17932c5b8ed93cf6fadde324a97b7 | [
"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 | 467 | lean | import Lean
@[reducible] def foo (x : Nat) := x + 1
@[reducible] def bla (x y : Nat) := foo (foo x) + foo (foo x)
@[reducible] def boo (x y : Nat) := foo (bla (foo x) (foo y) * bla (foo y) (foo x) * bla (foo y) (foo x))
open Lean
open Lean.Meta
def tst : MetaM Unit := do
let c ← getConstInfo `boo
lambdaTelescope ... |
453c9802384c9a1e8a3600637bafbefc4f31fd9c | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Meta/RecursorInfo.lean | ce2104c3ef70863a1be1181daa7eefea71b0b646 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,036 | 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.AuxRecursor
import Lean.Util.FindExpr
import Lean.Meta.ExprDefEq
namespace Lean.Meta
def casesOnSuffix := "casesOn"
def recOnSuffix ... |
f768313926870797ecb2ffcdafe36deba99f3504 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/tactic/mk_iff_of_inductive_prop.lean | 0541df729ff3810554657bbd115c84dd33f316cb | [
"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 | 8,154 | 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
Generation function for iff rules for inductives, like for `list.chain`:
∀{α : Type*} (R : α → α → Prop) (a : α) (l : list α),
chain R a l ↔ l = [] ∨ ∃{b : α... |
8b2c64232532a03691115c068bc77edc369084e9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/interval_cases.lean | 5fd7bfac4410fac3541ed9ea7fb99dd5af66d511 | [
"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,376 | 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.fin_cases
import data.fin.interval -- These imports aren't required to compile this file,
import data.int.interval -- but they are needed at the use sit... |
feb1182dca818609a94da10e3971f90c6975406f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/control/bitraversable/basic.lean | da7ed08820de84b1f694df87112b125656f9cdb6 | [
"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,796 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.bifunctor
import control.traversable.basic
/-!
# Bitraversable type class
Type class for traversing bifunctors. The concepts and laws are taken from
<https... |
e6198ea41325dacd1ad944a0ed1ff4109209a608 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/continued_fractions/computation/approximations.lean | 7ce314a0f8b925485162827530e0d701280a8629 | [
"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 | 14,569 | lean | /-
Copyright (c) 2020 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.translations
import algebra.continued_fractions.continuants_recurrence
import algebra.continued_fractions.terminate... |
85f454d9793f4ed616df01161baa92a378b7f77c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/real/cau_seq_completion.lean | d0f1dfc984bfcaa5f171c06406973a6e63592984 | [
"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 | 11,692 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Robert Y. Lewis
-/
import data.real.cau_seq
/-!
# Cauchy completion
This file generalizes the Cauchy completion of `(ℚ, abs)` to the completion of a commutative ring
... |
16c547d9add765eb5bdf1bcde4829f8af3ec9086 | 3618c6e11aa822fd542440674dfb9a7b9921dba0 | /scratch/inductive_step.lean | a797c9e23ace5f09f57133847aa68ac9d3eedc8b | [] | no_license | ChrisHughes24/single_relation | 99ceedcc02d236ce46d6c65d72caa669857533c5 | 057e157a59de6d0e43b50fcb537d66792ec20450 | refs/heads/master | 1,683,652,062,698 | 1,683,360,089,000 | 1,683,360,089,000 | 279,346,432 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,111 | lean | import for_mathlib.coproduct group_theory.semidirect_product
noncomputable theory
universe u
variables {ι : Type} [decidable_eq ι] (r : free_group ι) (T : set ι) [decidable_pred T]
open free_group
def phi : closure_var T →* mul_aut (free_group (free_group ι)) :=
{ to_fun := λ g : closure_var T, free_group.equiv (m... |
92481240d519f4d7db54f207488b0b37c5e9b026 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/natural_isomorphism.lean | 106976a674e48845f6e472419bebb7e6ba1145e5 | [
"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 | 6,330 | 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_category
import category_theory.isomorphism
open category_theory
-- declare the `v`'s ... |
7adca1ae29ba92a5904a8e40981806597d5e31f1 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/algebra/module/linear_map.lean | 6d3d05eab22a0dd793c7f4174b910e2d7e7e6ef3 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,458 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro, Anne Baanen
-/
import algebra.group.hom
import algebra.module.basic
import algebra.group_action_hom
/-!
# Linear maps and... |
0bb830da47f112b696b603461181a03b8a4a0764 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/single_obj.lean | 033642514465a991f0711a52a9b9821e6d2cc261 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,365 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import category_theory.endomorphism
import category_theory.category.Cat
import algebra.category.Mon.basic
/-!
# Single-object category
Single object category with... |
81b956ad89774d50f2a598f846089e5cd85785a1 | f10d66a159ce037d07005bd6021cee6bbd6d5ff0 | /to_integral_domain.lean | c7ebe7d0ef24b546e61a950c0f8750297656d9d0 | [] | no_license | johoelzl/mason-stother | 0c78bca183eb729d7f0f93e87ce073bc8cd8808d | 573ecfaada288176462c03c87b80ad05bdab4644 | refs/heads/master | 1,631,751,973,492 | 1,528,923,934,000 | 1,528,923,934,000 | 109,133,224 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 11,955 | lean | import data.finsupp
import algebra.ring
import .to_finset
import .to_multiset
import to_comm_semiring
noncomputable theory
local infix ^ := monoid.pow
open classical multiset
local attribute [instance] prop_decidable
local notation a `~ᵤ` b : 50 := associated a b
universe u
variable {α : Type u}
variable [integral_d... |
8aa2751e9e6d934212b773e316ee7f6e9bb0460a | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/tactic/transform_decl.lean | 698bfd96d2f42f8ceb842d502b58cc4754ab330f | [
"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 | 4,356 | lean | /-
Copyright (c) 2017 Mario Carneiro All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import tactic.core
namespace tactic
open expr
/-- Auxilliary function for `additive_test`. The bool argument *only* matters when applied
to exactly... |
99d80e9af31110e64cfb2047c2399be7dff844f0 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/analysis/normed_space/multilinear.lean | 68160c4b9c4cf2bb1bb538811380bb9df68446b4 | [
"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 | 73,293 | 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.normed_space.operator_norm
import topology.algebra.multilinear
/-!
# Operator norm on the space of continuous multilinear maps
When `f` is a c... |
c0da0c79c826b587c308775fedec161eb866f8ad | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/854.lean | 08b8d86eb28fcdf734da25ec311031889d159c59 | [
"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 | 427 | lean | example (a : Nat) : (a - 8000) + 1 = Nat.succ (a - 8000) := by
rfl
theorem mwe (a : Nat) : (a - 100000000) + 1 <= 1 := by
apply Nat.succ_le_succ
sorry
@[irreducible]
def someConstant : Nat := 100000000
theorem mwe' (a : Nat) : (a - someConstant) + 1 <= someConstant + 1 := by
apply Nat.succ_le_succ
sorry
t... |
3b64e75edd87e80cefa345f053ffa47ee509800b | 0851884047bb567d19e188e8f1ad959c5ae9c5ce | /src/Topology/Material/Path_Homotopy.lean | dd9bb51e016b08a8cae49149d6b94dcec97abda2 | [
"Apache-2.0"
] | permissive | yz5216/xena-UROP-2018 | 00d3f71a831324966d40d302544ed2cbbec3fd0f | 5e9da9dc64dc51897677f8b73ab9f94061a8d977 | refs/heads/master | 1,584,922,436,989 | 1,531,487,250,000 | 1,531,487,250,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,930 | lean | import analysis.topology.continuity
import analysis.topology.topological_space
import analysis.topology.infinite_sum
import analysis.topology.topological_structures
import analysis.topology.uniform_space
import analysis.real
import data.real.basic tactic.norm_num
universe u
open set filter lattice classical
noncompu... |
8ade42934436c78a164723dbcab5221fdbf8a2d0 | aa2345b30d710f7e75f13157a35845ee6d48c017 | /tests/tactics.lean | 907bd74d021db3ea95dd2fc9b43bb5eccc6f44ca | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 17,434 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic data.set.lattice data.prod data.vector
tactic.rewrite data.stream.basic
tactic.tfae tactic.converter.interactive
tactic.r... |
cac6ae4ee23ff690387c63bcae649c96bafb8526 | 359199d7253811b032ab92108191da7336eba86e | /src/mywork/mid-term_review/hw-3_practice.lean | 0b0f6b716016019a7abd77c8b6223d86e8849f10 | [] | no_license | arte-et-marte/my_cs2120f21 | 0bc6215cb5018a3b7c90d9d399a173233f587064 | 91609c3609ad81fda895bee8b97cc76813241e17 | refs/heads/main | 1,693,298,928,348 | 1,634,931,202,000 | 1,634,931,202,000 | 399,946,705 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,670 | lean | -- 1
example : 0 ≠ 1 :=
begin
assume zero_eq_one,
contradiction, -- **Cannot construct a proof of false.**
end
-- 2
example : 0 ≠ 0 → 2 = 3 :=
begin
assume zero_neq_zero,
exact false.elim (zero_neq_zero (eq.refl 0)), -- **zero_neq_zero (0 = 0) does not construct a proof of false because (0 = 0) is a propositio... |
65b7033ba4bec7e6585339b58c25af5abec609d5 | a86a9700120276bf446dd65cec481ed4a39a584c | /demo.lean | 8de3c03506b52224b457072bec24031b3b644252 | [] | no_license | svanderbleek/lean4tools | 21a06e35511a934696f3ab53d70b98fc32cbab0b | a3e7816b44bbd61566d12b7c7f8f3339a3f4ffec | refs/heads/main | 1,677,036,069,474 | 1,612,052,699,000 | 1,612,052,699,000 | 334,540,831 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 538 | lean | -- Defines a function that takes a name and produces a greeting.
def getGreeting (name : String) := s!"Hello, {name}! Isn't Lean great?"
-- The `main` function is the entry point of your program.
-- Its type is `IO Unit` because it can perform `IO` operations (side effects).
def main : IO Unit :=
-- Define a list of... |
d5ec1b8fbc472dec3a71db13f83da18a6d0b3b49 | 6772a11d96d69b3f90d6eeaf7f9accddf2a7691d | /examples/naturals.lean | 40827eb0e849d1e1dad9fa0351fb4db39ccf62cf | [] | no_license | lbordowitz/lean-category-theory | 5397361f0f81037d65762da48de2c16ec85a5e4b | 8c59893e44af3804eba4dbc5f7fa5928ed2e0ae6 | refs/heads/master | 1,611,310,752,156 | 1,487,070,172,000 | 1,487,070,172,000 | 82,003,141 | 0 | 0 | null | 1,487,118,553,000 | 1,487,118,553,000 | null | UTF-8 | Lean | false | false | 1,464 | 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
import ..functor
import ..natural_transformation
import ..products
import ..monoidal_category
namespace tqft.categories.example... |
fe69a4b2490a14fbbd5446ca1c2b3dd15d4de737 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /set_theory/cofinality.lean | a4c52a4508a863b78340af3a3155f8462910efb8 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 16,758 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Cofinality on ordinals, regular cardinals.
-/
import set_theory.ordinal
noncomputable theory
open function cardinal
local attribute [instance] classical.prop_decidable
... |
30a351d7fb224c1ca395218f4623f72221f3ba7a | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/algebra/group/pi.lean | c63306f818a4d09601443164cbc2b77d6741e2b5 | [
"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 | 11,617 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import data.pi
import data.set.function
import tactic.pi_instances
import algebra.group.hom_instances
/-!
# Pi instances for groups and monoids
This file ... |
1448524326982fd4b78ee8f917395a4dda614e48 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world6/level1.lean | d9b70103b9da947f9cd522c145b9cd84e03b5153 | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 3,095 | lean | -- World name : Proposition world
/-
# Proposition world.
A Proposition is a true/false statement, like `2 + 2 = 4` or `2 + 2 = 5`.
Just like we can have concrete sets in Lean like `mynat`, and abstract
sets called things like `X`, we can also have concrete propositions like
`2 + 2 = 5` and abstract propositions ca... |
16a808c6dd4319744066046aa77d2af09ecc08e6 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/concrete_category/bundled.lean | e29df77fc1aa5f305abe2c1e568b1ccb66e9f6bc | [
"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 | 1,774 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Reid Barton, Sean Leather
Bundled types.
-/
/-!
`bundled c` provides a uniform structure for bundling a type equipped with a type class.
We provide `... |
c2c0fc257983542d6f1ce23a477f7d48994aba40 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/ordmap/ordset_auto.lean | 5d87007773349d7eaaae564a448a1d65630eaaba | [] | 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 | 51,391 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.ordmap.ordnode
import Mathlib.algebra.ordered_ring
import Mathlib.data.nat.dist
import... |
0f682b76de171312ac67a2e7353361cac092b621 | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /category_theory/limits/limits.lean | d0e637dacb2c48d679451b256e497639534e6916 | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,773 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison, Reid Barton, Mario Carneiro
import category_theory.whiskering
import category_theory.yoneda
import category_theory.limits.cones
open category_theory category_th... |
615425c549053613961edb8a1d763625db99bd8e | 9060db28f6353f040da7481ea5ebcdac426589ff | /meta_data.lean | 8d8e54faf02e3bfc3602141d99cb4c0e48dd1adb | [] | no_license | picrin/formalabstracts | 9ccd859fb34a9194fa5ded77ab1bc734ababe194 | 8ebd529598cfc8b6bd02530dd21b7bf3156de174 | refs/heads/master | 1,609,476,202,073 | 1,500,070,922,000 | 1,500,070,922,000 | 97,234,461 | 0 | 0 | null | 1,500,037,389,000 | 1,500,037,389,000 | null | UTF-8 | Lean | false | false | 656 | lean | -- The type of results
inductive {u} result : Type (u+1)
| Proof : Π {P : Prop}, P → result
| Construction : Π {A : Type u}, A → result
| Conjecture : Prop → result
/-
TODO: This definition forces all the results in a particular fabstract
to lie in the same universe.
-/
-- Each formal abstract contains an instance of ... |
edd6b43f5dc46565a0bb52835fbb5362a1e77a5a | 07c76fbd96ea1786cc6392fa834be62643cea420 | /tests/lean/hott/614.hlean | 0e5d8451bb94f021b222ebe811fbb97502637a50 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 593 | hlean | import homotopy.circle
open circle eq int pi
attribute circle.rec [recursor]
protected definition my_decode {x : circle} (c : circle.code x) : base = x :=
begin
induction x,
{ revert c, exact power loop },
{ apply arrow_pathover_left, intro b, apply concato_eq, apply eq_pathover_r,
rewrite [power_con,trans... |
10e1a67122ceb2c0ad28839b1f95c01e1727cbd5 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/algebra/algebra/basic.lean | bcbf30428a8b059a64b6c7421770bf9aa4c7789a | [
"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 | 53,083 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.iterate_hom
import data.equiv.ring_aut
import algebra.module.basic
import linear_algebra.basic
/-!
# Algebras over commutative semirings
In th... |
26968ce83f2a7a335ac2ab67e7b627c3ccbb390b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/normed_space/linear_isometry_auto.lean | 10bc5fb39ac81bdb4235b6d4856b0e0cbfe5a88c | [] | 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 | 26,024 | lean | /-
Copyright (c) 2021 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.metric_space.isometry
import Mathlib.PostPort
universes u_6 u_7 u_8 l u_1 u_2 u_... |
615d62bd2a14b7a93c448497813bd75a42224534 | 7b4371534ac437ca8cfb325dd5c6638ff111d31a | /logic_util.lean | 91993cac05192eafa4d1878cdd2fafbabb4380a9 | [] | no_license | Shamrock-Frost/boolean_rings | 6d78294568b6b9ad7b9c67b5de5e9545227826da | 5da11beeaa37ec186c1deff946f2dbf7594fceb4 | refs/heads/master | 1,588,394,857,485 | 1,553,973,949,000 | 1,553,973,949,000 | 177,757,941 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,009 | lean | instance {T} {S : set T} [h : decidable_pred S]
: decidable_pred (set.compl S) :=
λ x, decidable.cases_on (h x)
(λ h, is_true h)
(λ h, is_false (λ h', h' h))
lemma and.distrib_left (P Q R : Prop) : P ∧ (Q ∨ R) ↔ (P ∧ Q) ∨ (P ∧ R) :=
iff.intro
(assume h : P ∧ (Q ∨ R),
have hp : P := and.lef... |
1787387a26f20c36d3cde3cb31603fba60929775 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/combinatorics/erase.lean | dcc9e403b9310625da54bed48e894a42dd64bfc3 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,815 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
This is about the obvious bijection (X \ {x}) ∐ 1 ≃ X, or
(option (erase a)) ≃ α in Lean notation.
-/
import data.fintype
namespace combinatorics
variables {α : Ty... |
911545310fe059dd37981cfa44919b36ffce724a | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/category_theory/concrete_category/bundled_hom.lean | 3afa1db2e89508bcdd5495060066f89b67530286 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 5,061 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Yury Kudryashov
-/
import category_theory.concrete_category.basic
import category_theory.concrete_category.bundled
/-!
# Category instances for algebraic structures th... |
0fc732251f6c8dc221073a1a082dc8a2e20becb3 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/core.lean | 78e2b9b218a7922e1e39585b16dd0c34862e5fca | [
"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 | 294 | lean | import Lean.CoreM
open Lean
open Lean.Core
def f : CoreM Nat := do {
env ← getEnv;
cinfo ← getConstInfo `Nat.add;
trace! `Elab "trace message";
liftIO $ IO.println $ toString cinfo.type;
liftIO $ IO.println "testing...";
pure 10
}
#eval f
set_option trace.Elab true
#eval f
|
ecda0bc37251d487aaac619135ef3f2a6c01dda6 | 976d2334b51721ddc405deb2e1754016d454286e | /lean_at_mc2020_source/source/solutions/exercise_induction.lean | 61deb4733f6f7900a29828b4fc472762adf1887b | [] | no_license | kbuzzard/lean-at-MC2020 | 11bb6ac9ec38a6caace9d5d9a1705d6794d9f477 | 1f7ca65a7ba5cc17eb49f525c02dc6b0e65d6543 | refs/heads/master | 1,668,496,422,317 | 1,594,131,838,000 | 1,594,131,838,000 | 277,877,735 | 0 | 0 | null | 1,594,142,006,000 | 1,594,142,005,000 | null | UTF-8 | Lean | false | false | 2,666 | lean | import tactic
import data.int.basic
-- a rw puzzle?
example
(p : ℕ → Prop) (n : ℕ) (hn : p n)
(h8 : ∀ n, p n ↔ p (n + 8))
(h3 : ∀ n, p (n + 3) ↔ p n) :
p (n + 1) :=
begin
rw ← h3 at hn,
rw ← h3 at hn,
rw ← h3 at hn,
rw h8,
exact hn,
end
--
example : fin 0 ≠ fin 1 :=
begin
have : ∃ b : fin 1, tru... |
04f5af4dad6b5e7ed2ff5bbc7f0800360b40f3c7 | 5d76f062116fa5bd22eda20d6fd74da58dba65bb | /src/snarks/babysnark/vars.lean | 43ab0475f5df790fa600305ab94ce45839771e22 | [] | no_license | brando90/formal_baby_snark | 59e4732dfb43f97776a3643f2731262f58d2bb81 | 4732da237784bd461ff949729cc011db83917907 | refs/heads/master | 1,682,650,246,414 | 1,621,103,975,000 | 1,621,103,975,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 201 | lean |
section
/-- An inductive type from which to index the variables of the 3-variable polynomials the proof manages -/
@[derive decidable_eq]
inductive vars : Type
| X : vars
| Y : vars
| Z : vars
end |
00b95fd49a6e957237a8e4b471f612506fd73eae | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/int/cast.lean | 516d76b8882162e5255286428e99d89f4629e846 | [
"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 | 11,658 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.int.basic
import data.nat.cast
/-!
# Cast of integers
This file defines the *canonical* homomorphism from the integers into a type `α` with `0`,
`1`, `+... |
2cf1f9f56346ac8273a910346d7d723fb1514c5d | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/test/amc12b-2002-p4.lean | ee573dd160afe630ecf92c92bf1fb9b7c7c0c9d7 | [
"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 | 316 | 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
import data.rat.basic
open_locale rat
example (n : ℕ+) (h₀ : ( 1 /. 2 + 1 /. 3 + 1 /. 7 + 1 /. ↑n ).denom = 1 ) : n = 42 :=
begin
sorry
end
|
f5c29881fd033a13190d71917450040e6369ea60 | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/for_mathlib/topology.lean | 3fcc015fa708af1de3573e7d8f7c799cc5e98945 | [
"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 | 8,457 | lean | import topology.opens
import topology.uniform_space.cauchy
import topology.algebra.group
import for_mathlib.function
import for_mathlib.filter
open topological_space
-- predicates we need for topological rings
-- We need to think whether we could directly use the class t2_space (which is not using opens though)
def... |
ddfb2da2457a3288e62b011aecc43c0ed7c1eb71 | 60bf3fa4185ec5075eaea4384181bfbc7e1dc319 | /src/game/sup_inf/lub_prodSets.lean | 011b33f44e6e2410d46d7571621358dbe8d68443 | [
"Apache-2.0"
] | permissive | anrddh/real-number-game | 660f1127d03a78fd35986c771d65c3132c5f4025 | c708c4e02ec306c657e1ea67862177490db041b0 | refs/heads/master | 1,668,214,277,092 | 1,593,105,075,000 | 1,593,105,075,000 | 264,269,218 | 0 | 0 | null | 1,589,567,264,000 | 1,589,567,264,000 | null | UTF-8 | Lean | false | false | 1,180 | lean | import data.real.basic
import ..sets.sets_level09
namespace xena -- hide
/-
# Chapter 3 : Sup and Inf
## Level 9
An intermediary result to be used in the next level.
-/
-- main result in lemma sup_mem_prod_of_sets
-- begin hide
--def mem_prod_sets (A : set ℝ) (B : set ℝ) := { x : ℝ | ∃ y ∈ A, ∃ z ∈ B, x = y * z}
-... |
1ba9909155ee8444a16ee3e42fd1f6f41c71c653 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/analysis/normed_space/multilinear.lean | 80da874210ccdb837442abd1b0f5add67217199c | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 73,231 | 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.normed_space.operator_norm
import topology.algebra.multilinear
/-!
# Operator norm on the space of continuous multilinear maps
When `f` is a c... |
80ea9667b139cc2adce6053fdc5defe003e8fe79 | fe84e287c662151bb313504482b218a503b972f3 | /src/poset/upper.lean | aee72717ec80a008b65e1e549fc9663f9ac59a98 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,465 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
Given a finite poset `P`, we define `upper P` to be the set of
subsets `U ⊆ P` that are closed upwards. We order this by
*reverse* inclusion, to ensure that the map... |
ad3469899d35270167de35197cc24e19a0d7166e | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/Reformat/Input.lean | 43649bfc6375a0a4ccabb4e595e4f6e6d890b5a8 | [
"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 | 9,611 | 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
/-
The kernel definitional equality test (t =?= s) has special support for idDelta ... |
a99cadfeb5920d34921a4ec205b87106a17aadf3 | b3c7090f393c11bd47c82d2f8bb4edf8213173f5 | /src/bundled_quotients.lean | 305e58794b18dc0df66acc4bb4456ae1b9c83f6d | [] | no_license | ImperialCollegeLondon/lean-groups | 964b197478f0313d826073576a3e0ae8b166a584 | 9a82d2a66ef7f549107fcb4e1504d734c43ebb33 | refs/heads/master | 1,592,371,184,330 | 1,567,197,270,000 | 1,567,197,270,000 | 195,810,480 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 792 | lean | import group_theory.quotient_group bundled_subgroup
namespace quotient_group
variables {G : Type*} [group G] {N : subgroup G} (h : is_normal_subgroup N)
open function
def quotient' {G : Type*} [group G] {N : subgroup G} (h : is_normal_subgroup N) := quotient N.carrier
instance quotient'_is_group {G : Type*} [group... |
d0e1bf524203d93212f176682ee3bc118f5a0923 | 82e44445c70db0f03e30d7be725775f122d72f3e | /archive/100-theorems-list/9_area_of_a_circle.lean | c6c2ced3620d6027db960999881ef3a9a1c0acc6 | [
"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 | 6,442 | lean | /-
Copyright (c) 2021 James Arthur, Benjamin Davidson, Andrew Souther. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: James Arthur, Benjamin Davidson, Andrew Souther
-/
import measure_theory.interval_integral
import analysis.special_functions.sqrt
/-!
# Freek № 9: The... |
4817f17aec14acbb5a4ef6175792311f3570c0a1 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/category_theory/monad/algebra.lean | e31a4eef2f99611f74ae32afd4d645bdd4acbbfb | [
"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 | 12,109 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.monad.basic
import category_theory.adjunction.basic
import category_theory.reflects_isomorphisms
/-!
# Eilenberg-Moore (co)algeb... |
96f4b0571aae0cb766ebd1a26e747ed80083da58 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/small_complete.lean | 5eed263d4d6083c570768c28f3f79799f7058351 | [
"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,058 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.products
import set_theory.cardinal.basic
/-!
# Any small complete category is a preorder
We show that any small category which ha... |
85fb9bba8e59cbae8e5afcbb2728ae5cec5c5d8a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/clifford_algebra/grading.lean | 6e9f3a429a8185777fd26f791e50d2464a61d0b8 | [
"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 | 9,361 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import linear_algebra.clifford_algebra.basic
import data.zmod.basic
import ring_theory.graded_algebra.basic
/-!
# Results about the grading structure of the clifford algeb... |
d465de1810f4c282c14140a3ab01791fab366a16 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/class_group.lean | 59466077dfe9ac295fdf18ad44ca8bf1670fd876 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 15,428 | 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 group_theory.quotient_group
import ring_theory.dedekind_domain.ideal
/-!
# The ideal class group
This file defines the ideal class group `class_group R` of fracti... |
fb2942191502c34694ca6de1e379fa11fee00a85 | 6b02ce66658141f3e0aa3dfa88cd30bbbb24d17b | /stage0/src/Lean/Elab/Do.lean | a62cd4143b904d352fecbd8aaa8e2de1669371fb | [
"Apache-2.0"
] | permissive | pbrinkmeier/lean4 | d31991fd64095e64490cb7157bcc6803f9c48af4 | 32fd82efc2eaf1232299e930ec16624b370eac39 | refs/heads/master | 1,681,364,001,662 | 1,618,425,427,000 | 1,618,425,427,000 | 358,314,562 | 0 | 0 | Apache-2.0 | 1,618,504,558,000 | 1,618,501,999,000 | null | UTF-8 | Lean | false | false | 66,221 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.Elab.Match
import Lean.Elab.Quotation.Util
import Lean.Parser.Do
namespace Lean.Elab.Term
open L... |
a93979cb36cb2a5801b35eb48d10d86e8342125c | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/limits/shapes/strong_epi.lean | ba3ba7c3e67d7f287bd7a6d328de173b807923e2 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,031 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.arrow
/-!
# Strong epimorphisms
In this file, we define strong epimorphisms. A strong epimorphism is an epimorphism `f`, such
that for every co... |
66a4f32364a92b92af6ee99aa6a5d5239ed217d2 | a339bc2ac96174381fb610f4b2e1ba42df2be819 | /hott/homotopy/sphere.hlean | c6066e0f5824d11df8310c82ee54d4d011b9c3d9 | [
"Apache-2.0"
] | permissive | kalfsvag/lean2 | 25b2dccc07a98e5aa20f9a11229831f9d3edf2e7 | 4d4a0c7c53a9922c5f630f6f8ebdccf7ddef2cc7 | refs/heads/master | 1,610,513,122,164 | 1,483,135,198,000 | 1,483,135,198,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,724 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the n-spheres
-/
import .susp types.trunc
open eq nat susp bool is_trunc unit pointed algebra
/-
We can define spheres with the following possib... |
17fd780228ec3bc1fa465a4345378732cafa3090 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/reducible.lean | 5a719cb03176c3fdfb37d801a6fc14ffa8de8e69 | [
"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 | 1,220 | lean | definition x [reducible] := 10
definition y := 20
definition z [irreducible] := 30
definition w := 40
(*
local env = get_env()
local x = Const("x")
local y = Const("y")
local z = Const("z")
local w = Const("w")
local val_x = env:find("x"):value()
local val_y = env... |
032854e62e107fee1d436272407184fe00dec0ea | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/abelian/exact.lean | 67d1b304d6fdd271bf07adb13924f48efef6842f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 18,120 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Adam Topaz, Johan Commelin, Jakob von Raumer
-/
import category_theory.abelian.opposite
import category_theory.limits.preserves.shapes.zero
import category_theory.limits.... |
fec5a190980e8b3d397b9321c8f28b225505bd21 | 9028d228ac200bbefe3a711342514dd4e4458bff | /archive/100-theorems-list/70_perfect_numbers.lean | ce08c52150aedc484ed9dc10d9c546d185d36323 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,138 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Aaron Anderson.
-/
import number_theory.arithmetic_function
import number_theory.lucas_lehmer
import algebra.geom_sum
/-!
# Perfect Numbers
This file proves (currently one direction ... |
270504573c182f30047bc6b96a8d86575b84592b | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/group_theory/group_action.lean | fc9c41108223de2fb130e8b266c2e048955f40b6 | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 6,544 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.set.finite group_theory.coset
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
/-- Typeclass for types with a scalar multiplication operatio... |
db7ed8bdb8862dd1e46dd21bd5590f184ce082cb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/probability/martingale/borel_cantelli.lean | 4a97b49a346b9e3bfe1766207125af990bcec4c9 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 18,825 | 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 probability.martingale.convergence
import probability.martingale.optional_stopping
import probability.martingale.centering
/-!
# Generalized Borel-Cantelli lemma
... |
ef0278c77875a03e3220665b085895fcd3d6f273 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/mv_polynomial/invertible.lean | b3e3d4740e211539bc578c799a20ad5d2ed0b97a | [
"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 | 1,034 | 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.mv_polynomial.basic
import ring_theory.algebra_tower
/-!
# Invertible polynomials
This file is a stub containin... |
2ac7e8e3cb67cce4e4f55fd4f768676e9fa8a1f2 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/topology/local_homeomorph.lean | 937372ce4f183912246b2b033fdad507f7c2b837 | [
"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 | 37,421 | 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 data.equiv.local_equiv
import topology.homeomorph
import topology.opens
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subset... |
7d4a21e8676b8afeed31cb9e65bc7e3f4b53f141 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/discrete_quotient.lean | f7b952645ee47fe02802b7f2b0c6829b1bd466b1 | [
"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 | 14,300 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Calle Sönne, Adam Topaz
-/
import topology.separation
import topology.subset_properties
import topology.locally_constant.basic
/-!
# Discrete quotients of a topological space.
This file... |
8c155b4ccc59da3d425861a2c644423a97b6c88d | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/data/dfinsupp.lean | f4c16ed67d2cb13bebba1c0e9973a056e65788eb | [
"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 | 40,666 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
-/
import algebra.module.pi
import algebra.big_operators.basic
import data.set.finite
import group_theory.submonoid.basic
/-!
# Dependent functions with finite su... |
3d2452e7610701ed44bacef2448a6f9fed41fc5b | f0050a24971f1b7315211eec6e02a8eee618ce6b | /src/big_step/basic.lean | 04c40a1d422527b5a183c4b7f9d4e2b3dfe19104 | [
"Apache-2.0"
] | permissive | ttowncompiled/excaLibur | 9574f2acb0bafcd59f59423b63a62c15442ea5f7 | 7d8371bf998012d4f8c49d3fe2bf540e2517c688 | refs/heads/master | 1,670,710,035,703 | 1,599,670,584,000 | 1,599,670,584,000 | 292,720,923 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,542 | lean | /-
Copyright (c) Ian Riley. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ian Riley
-/
import common
inductive big_step : (stmt × scope) → scope → Prop
| skip {s : scope} : big_step (stmt.skip, s) s
| assign {x : string} {a : scope → Prop} {s : scope} :
big_step ... |
7dc90103fd303997387a1d8f976da7c2972e5ed3 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/scopedParsers.lean | 44122fd648e308e8c586ae05c98206f9a5fb7f7c | [
"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 | 305 | lean | def f (x y : Nat) := x + 2*y
namespace Foo
scoped infix:65 (priority := default+1) "+" => f
theorem ex1 (x y : Nat) : x + y = f x y := rfl
#check 1 + 2
end Foo
#check 1 + 2
theorem ex2 (x y : Nat) : x + y = HAdd.hAdd x y := rfl
open Foo
theorem ex3 (x y : Nat) : x + y = f x y := rfl
#check 1 + 2
|
c0de1ed6df8aa845d510cb074ffa73d80ea228aa | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/meta/environment.lean | 372a792f57a0feaa8ba503af5300f2bd2da5d53b | [
"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 | 11,417 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.declaration init.meta.exceptional init.data.option.basic
import init.meta.rb_map
/-- An __environment__ contains all of the declar... |
2cd65be8d07f1dfaeb0834230f8d136123c0911b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/geometry/manifold/instances/real.lean | 68c0d91035bb9463e7a4b4784cdd8bc550131ea9 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,430 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.geometry.manifold.algebra.smooth_functions
import Mathlib.linear_algebra.finite_dimen... |
e40e3451a7eaa82138534e6e8c695a45b2d80aa2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/limits/constructions/over/products.lean | 23fec24394be3fa445487babce0119857cbd3245 | [] | 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,817 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.over
import Mathlib.category_theory.limits.shape... |
92bc8c1d27f16d9b0d47ec34bffdb0c397bd2eb7 | 3618c6e11aa822fd542440674dfb9a7b9921dba0 | /src/multirelation/approach2/tactic.lean | f77bb0fedf77989c5714ec671d51dcb5702f5209 | [] | no_license | ChrisHughes24/single_relation | 99ceedcc02d236ce46d6c65d72caa669857533c5 | 057e157a59de6d0e43b50fcb537d66792ec20450 | refs/heads/master | 1,683,652,062,698 | 1,683,360,089,000 | 1,683,360,089,000 | 279,346,432 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,088 | lean | import .approach2_ref
namespace group_rel
open expr tactic free_group native
meta structure cache :=
(G : expr)
(univ : level)
(red : transparency)
(ic : ref instance_cache) -- instance_cache for G
(atoms : ref (buffer expr))
(free_group_simp_lemmas : simp_lemmas)
@[derive [monad, alternative]]
meta def group_rel_m ... |
850b0a6c5c7c6875681d54f7a0cb302c5bfcaf9b | 38aa1f7792ba7c73b43619c5d089e15d69cd32eb | /grasshopper.lean | d52bb696f05c0e0e1879576fc502cd05940affb5 | [] | no_license | mirefek/my-lean-experiments | f8ec3efa4013285b80cd45c219a7bc8b6294b8cc | 1218fecbf568669ac123256d430a151a900f67b3 | refs/heads/master | 1,679,449,694,211 | 1,616,190,468,000 | 1,616,190,468,000 | 154,370,734 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,814 | lean | import tactic
import data.finset
-----------------------------------------------------------------
--------------------- helpers -----------------------------
def subtract_emb (c:ℤ) : ℤ ↪ ℤ := ⟨λx:ℤ, x-c, begin
intros,
unfold function.injective,
show ∀ x y : ℤ, x-c = y-c → x = y, by omega,
end⟩
lemma lt_... |
9f2c86daf75c0f2de26a1b4555947872db0b512a | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/with_zero.lean | 9d019991854eabed9e200c2601266258a2f77138 | [
"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 | 9,967 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin, Patrick Massot
-/
import algebra.order.group
/-!
# Linearly ordered commutative groups and monoids with a zero element adjoined
This file sets up a special clas... |
8beb877031329c919983cdc410d84c9eea5a9ffa | b147e1312077cdcfea8e6756207b3fa538982e12 | /group_theory/coset.lean | c82b52ef2603133bf25c88f05160b3702554af07 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,824 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup data.equiv.basic data.quot
open set function
variable {α : Type*}
def left_coset [has_mul α] (a : α) (s : set α) : se... |
9bdcef6896f47340f0db8c898a6922b952e0cc0b | 500f65bb93c499cd35c3254d894d762208cae042 | /src/tactic/sanity_check.lean | 50552319a8227c26147266618a3a7787f893c6bc | [
"Apache-2.0"
] | permissive | PatrickMassot/mathlib | c39dc0ff18bbde42f1c93a1642f6e429adad538c | 45df75b3c9da159fe3192fa7f769dfbec0bd6bda | refs/heads/master | 1,623,168,646,390 | 1,566,940,765,000 | 1,566,940,765,000 | 115,220,590 | 0 | 1 | null | 1,514,061,524,000 | 1,514,061,524,000 | null | UTF-8 | Lean | false | false | 7,233 | 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
-/
import tactic.core
/-!
# sanity_check command
This file defines the `#sanity_check` and `#sanity_check_mathlib` commands, to spot common mistakes in the curren... |
1729093cd42909882fd847b6bb69a2b5bbeed35e | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/analysis/inner_product_space/dual.lean | 285d397dc7f6b21615964e640b9c20af66a6c542 | [
"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 | 5,191 | 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.inner_product_space.projection
import analysis.normed_space.dual
/-!
# The Fréchet-Riesz representation theorem
We consider an inner product space... |
2249b2730a0c9dbe68a734d1c24e5ddd0d7ee18b | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/fintype/basic.lean | a4af095ec33017a300df9582f30142c9736304ef | [
"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 | 72,854 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.array.lemmas
import data.finset.pi
import data.finset.powerset
import data.sym.basic
import group_theory.perm.basic
import order.well_founded
import tacti... |
739fdc9a6e7611036967d242c6943eade50f515d | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/countable_dense_linear_order.lean | 26f6e2e4bab10c3397565b7cfa96d21f94303dc8 | [
"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 | 9,632 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import order.ideal
import data.finset
/-!
# The back and forth method and countable dense linear orders
## Results
Suppose `α β` are linear orders, with `α` countable and ... |
9d87256717d8ab129fe5cf2fb8085c469aa76434 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Constructions.lean | a3dc55cc46bf46529ba6bc936597eb2d6de350cc | [
"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,752 | 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.AuxRecursor
import Lean.Meta.AppBuilder
namespace Lean
@[extern "lean_mk_cases_on"] opaque mkCasesOnImp (env : Environment) (declName : @& Nam... |
8fb301cfd4ef5350aef6b0150b1b771b6425f304 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/set/intervals/unordered_interval.lean | 49135fd958b78c3f27322bb758f7d018074f548f | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,277 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import order.bounds
import data.set.intervals.image_preimage
/-!
# Intervals without endpoints ordering
In any decidable linear order `α`, we define the set of elemen... |
84773e20d2a8bb59770a95626d33f6ce5a418663 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/topology/category/Profinite.lean | 6c089b227647dfbf6de1bd4235cdb7cd37f01a6b | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,706 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Calle Sönne
-/
import topology.category.CompHaus
import topology.connected
import topology.subset_properties
import category_theory.adjunction.reflective
import category... |
f0703d6491906485588ee41832d3018412165b71 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/groupoid.lean | f6f72ba74b7fe2094c5d02680ad16474c675f8e9 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 2,300 | lean | /-
Copyright (c) 2018 Reid Barton All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison, David Wärn
-/
import category_theory.category
import category_theory.isomorphism
import category_theory.epi_mono
import data.equiv.basic
namespace category_t... |
9e99f0819db25fa58a3aee7dcd93764ea09689c7 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/topology/algebra/ring.lean | 84f505da62f7e792c085a8b53106516b33d417d1 | [
"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,455 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Theory of topological rings.
-/
import topology.algebra.group
import ring_theory.ideal.basic
open classical set filter topological_space
open_locale cl... |
3df89a0e003b4287ab2356b8629b170514476a65 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/sites/pretopology.lean | 93243383e6e1c171f8cb851544fd8b42256b5b47 | [
"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,441 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.sites.grothendieck
/-!
# Grothendieck pretopologies
Definition and lemmas about Grothendieck pretopologies.
A Grothendieck pretopology for a cat... |
5bae8df60c30bbadbc9fa57a2779c858aa8d0ed1 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/metric_space/emetric_space.lean | 2c7cc51777bf12db0deec72a83aface6281d32be | [
"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 | 46,764 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
-/
import data.real.ennreal
import data.finset.intervals
import topology.uniform_space.uniform_em... |
2c23bba15d7c8c758455c97ce2740b0220677f58 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0503.lean | b6ff654feea8b1f29dc900e9d48ceb60c2112414 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 336 | lean | variable f : ℕ → ℕ
variable h : ∀ x : ℕ, f x ≤ f (x + 1)
example : f 0 ≥ f 1 → f 1 ≥ f 2 → f 0 = f 2 :=
assume : f 0 ≥ f 1,
assume : f 1 ≥ f 2,
have f 0 ≥ f 2, from le_trans this ‹f 0 ≥ f 1›,
have f 0 ≤ f 2, from le_trans (h 0) (h 1),
show f 0 = f 2, from le_antisymm this ‹f 0 ≥ f 2›
|
b151636332df99d4d0c5e19b34a4ec3b9170d8b2 | b210f3162055e6c91af0e5938b8e29ad2b66957d | /notes02.18.20.lean | a324f25af8c8688d8aec16b9a19d8057ac10e7ca | [] | no_license | colemanjenkins/SharedFiles | db8a5cea23e51b7781ce779af546045c4230c17d | 6ac3cc21a2912f3c8e62a23a882384b0b2a5d41b | refs/heads/master | 1,608,650,217,053 | 1,598,992,893,000 | 1,598,992,893,000 | 236,838,099 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 568 | lean | def fac : ℕ → ℕ
| 0 := 1
| (n' + 1) := (n' + 1)*(fac n') --n' = n-1
inductive dm_list (α : Type)
| nil {} : dm_list
| cons (h: α)(t :dm_list) : dm_list
def length {α :Type} : dm_list α → ℕ
| dm_list.nil := 0
| (dm_list.cons h t) := 1 + length t
def append {α : Type} : dm_list α → dm_list α → dm_list α
| (dm_list.... |
707260e19852631cd03d5e439d8182edfd3d4c89 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/types.lean | 92862aed37746a1bd9f1747692d83818d2df3d25 | [
"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 | 17,527 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.limits.shapes.images
import category_theory.filtered
import tactic.equiv_rw
universes v u
open category_theory
open category_the... |
dfcd6ec081fcd30d886671bded9c0763297a29c1 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /core/data/list.lean | 937af0f701a166db20f424a217e608e034ac5934 | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 420 | lean |
namespace list
universes u v w
variables {α : Type u} {β : Type v} {γ : Type w}
instance [decidable_eq α] : has_sdiff (list α) :=
⟨ list.diff ⟩
/- partition -/
def partition_map (f : α → β ⊕ γ) : list α → list β × list γ
| [] := ([],[])
| (x::xs) :=
match f x with
| (sum.inr r) := prod.map id (cons r) $ partition_... |
01a1851d4e7e129d287342902a7428e20aac06f6 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/complex/basic.lean | f503c786cc88619bbc0ae72f2d88e75854b6d019 | [
"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 | 20,084 | lean | /-
Copyright (c) 2017 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Mario Carneiro
-/
import data.real.basic
/-!
# The complex numbers
The complex numbers are modelled as ℝ^2 in the obvious way.
-/
/-! ### Definition and basic arithmme... |
e8892047d0a6d2c6aa091a48b34c1b1737e14f13 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/sum/basic.lean | 590a4957cca64d6bb810e504fa0437296c352aae | [
"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 | 14,885 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yury G. Kudryashov
-/
import data.option.basic
/-!
# Disjoint union of types
This file proves basic results about the sum type `α ⊕ β`.
`α ⊕ β` is the type made of a... |
3989663e62b33061eff0c25ab44dc1a3ddd0cbd3 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/measure_theory/measure/stieltjes.lean | cddd18465cdfa435788cebaf1ef5288d8457e362 | [
"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 | 16,765 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov, Sébastien Gouëzel
-/
import measure_theory.constructions.borel_space
/-!
# Stieltjes measures on the real line
Consider a function `f : ℝ → ℝ` whi... |
00ac34e3358485da1758f6bf960e7d6c89c270c5 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/comma.lean | b253ab8d82beeaf69fb7bac124845f1328f3a58d | [
"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 | 22,289 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johan Commelin, Bhavik Mehta
-/
import category_theory.punit
import category_theory.reflect_isomorphisms
/-!
# Comma categories
A comma category is a construction in ... |
20557620cf26e56d79fe4eade4be37b418095974 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/combinatorics/simple_graph/basic.lean | 705afec04d3a7b91d3262526db77de8a368d87f0 | [
"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,068 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark, Kyle Miller, Alena Gusakov, Hunter Monroe
-/
import data.fintype.basic
import data.set.finite
import data.sym.sym2
/-!
# Simple ... |
1fc975974c9b365b160f3dc0802ca235c382d4d7 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/ring_theory/ideal/local_ring.lean | e43054bcad6173b1f2ed770f0309d6616b07be78 | [
"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,437 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes, Mario Carneiro
-/
import algebra.algebra.basic
import algebra.category.CommRing.basic
import ring_theory.ideal.operations
/-!
# Local rings
Define local rings a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.