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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a1998eed96727fe0a3832f9193fcd4382f1f0995 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Sloop.lean | 4906f1d4647659c0b77819f2aa425929aa98ccc8 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,589 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section Sloop
structure Sloop (A : Type) : Type :=
(e : A)
(op : (A → (A → A)))
(commutative_op : (∀ {x y : A} , (op x y) = (op y x)))
(antiAbsorbent : (∀... |
7aee91b8646b6c9540ed3898a54f397d1dba8344 | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/noetherian.lean | d23b530eddb2919f5b304ad962890397a2031808 | [
"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 | 29,127 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import algebraic_geometry.prime_spectrum
import data.multiset.finset_ops
import linear_algebra.linear_independent
import order.order_... |
74e24f0cf9b76791ef6ecf87860d6ed88a7fa7db | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean/imap.lean | e8cc504429464c176f27c37e74061aa90f45f95a | [
"Apache-2.0"
] | permissive | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 1,185 | lean | /- A simple interval map -/
structure {u v} data.imap.imap_entry (k : Type u) (val : Type v) : Type (max u v) :=
(start : k)
(extent : k)
(value : val)
@[reducible]
def {u v} data.imap (k : Type u) (val : Type v) (lt : k -> k -> Prop)
:= list (data.imap.imap_entry k val)
namespace data.imap
section
univer... |
7c848360b09790fce23917d9005fb77bafe39800 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Meta/WHNF.lean | 7a02c30814f828b2e9baf79a8689f7ba0d28386a | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 23,362 | 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... |
b12194e40073764af8dedc0081b15ead1ed585ad | ff5230333a701471f46c57e8c115a073ebaaa448 | /tests/lean/as_pattern.lean | bc6aede0a29b0073019faa8da5c939209b6253f8 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 1,201 | lean | namespace as_pattern
inductive foo
| a | b | c
inductive bar : foo → Type
| a : bar foo.a
| b : bar foo.b
def basic : list foo → list foo
| x@([_]) := x -- `@[` starts an attribute
| x@_ := x
#print prefix as_pattern.basic.equations
def nested : list foo → list foo
| (x@foo.b :: _) := [x]
| x ... |
bfcbcd3908d7e3c62d447b85af75379410c6ffb9 | 5ec8f5218a7c8e87dd0d70dc6b715b36d61a8d61 | /archi/x86_64.lean | 2c9f9d67dfcd4220a067c6bad7bdf08993b0d1de | [] | no_license | mbrodersen/kremlin | f9f2f9dd77b9744fe0ffd5f70d9fa0f1f8bd8cec | d4665929ce9012e93a0b05fc7063b96256bab86f | refs/heads/master | 1,624,057,268,130 | 1,496,957,084,000 | 1,496,957,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 761 | lean | import ..flocq
/- Architecture-dependent parameters for x86 in 64-bit mode -/
namespace archi
open flocq
def ptr64 : bool := tt
def big_endian : bool := ff
def align_int64 := 4
def align_float64 := 4
def splitlong := bnot ptr64
lemma splitlong_ptr32 : splitlong = tt → ptr64 = ff := λh, bool.no_confusion h
def d... |
4fd9b872694334d647c8449125835b11b82a98b6 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/lcnfEtaExpandBug.lean | ca9671d39b63c3d4f42969781b35bbf5eca427b8 | [
"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 | 79 | lean | import Lean
#eval Lean.Compiler.compile #[``Lean.Elab.Command.elabEvalUnsafe]
|
22e4a3b66c2e993af995fe2267d81300648e6fca | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/algebra/group.lean | e852600f98c0f0645a9d38b94b12343a6987f672 | [
"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 | 17,318 | 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
Theory of topological groups.
-/
import algebra.pointwise order.filter.pointwise
import group_theory.quotient_group
import topology.alg... |
b7a3155a1d41d8f3b14fea1f39c18300fe3967f9 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/analysis/filter.lean | 24cd91f6c78b1aa180e3fa26b672da86cf7a8e9f | [
"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 | 11,834 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Computational realization of filters (experimental).
-/
import order.filter
open set filter
/-- A `cfilter α σ` is a realization of a filter (base) on `α`,
represent... |
f33af61497b54515f35dd594836613465dbb7dac | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/geometry/manifold/mfderiv.lean | 839de1f922f3681319da616509b9bd585be44917 | [] | 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 | 117,327 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.geometry.manifold.basic_smooth_bundle
import Mathlib.PostPort
universes u_1 u_2 u_3 ... |
892464f9c417ba507d0e91deeaf207f127a943b8 | 70f8755415fa7a17f87402cde4651e9f4db1b5bb | /src/data/fix/parser/basic.lean | 380c21402caa0d980b34c9dcefb5acf47845576a | [
"Apache-2.0"
] | permissive | shingarov/qpf | ab935dc2298db12c87ac011a2e4d2c27e0bdef4b | debe2eacb8cf46b21aba2eaf3f2e20940da0263b | refs/heads/master | 1,653,705,576,607 | 1,570,136,035,000 | 1,570,136,035,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,710 | lean |
import data.fix.inductive_decl
import mvqpf
import data.fix.equations
import category.bitraversable.instances
universes u
lemma foo {n} {p : mvpfunctor n} {v} (C : p.apply v → Sort*) {a : p.A} {f g : p.B a ⟹ v} (h : f = g) (x : C ⟨a,f⟩) : C ⟨a,g⟩ :=
by cases h; apply x
namespace tactic
open native
meta def map_ar... |
f46551e493919cc5709508ab6c2084730130b692 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/set_theory/surreal/dyadic.lean | da5531ca8bd9f083f8530555e6620cbd7176e338 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,444 | lean | /-
Copyright (c) 2021 Apurva Nakade. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Apurva Nakade
-/
import set_theory.surreal.basic
import ring_theory.localization
/-!
# Dyadic numbers
Dyadic numbers are obtained by localizing ℤ away from 2. They are the initial obje... |
f0fe37d3bcc5fbafc811c4923d2008a8e9876719 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/real/irrational.lean | 36e5cd1957698473b39d067032986f2caefe2d19 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 9,672 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Yury Kudryashov
-/
import data.real.sqrt
import data.rat.sqrt
import ring_theory.int.basic
import data.polynomial.eval
i... |
e7c4253d8f21830180b9c1ee6435dbe856ee4db6 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/compacts.lean | 0739b1f025b127653482a941bed2097f960a6971 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 4,754 | 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 topology.homeomorph
/-!
# Compact sets
## Summary
We define the subtype of compact sets in a topological space.
## Main Definitions
- `closeds α` is th... |
43b0e5fed8588f240241389a9498a672c9a93224 | bf532e3e865883a676110e756f800e0ddeb465be | /set_theory/ordinal.lean | 92cb23c3d58c125062b478f36451516ff001fc6a | [
"Apache-2.0"
] | permissive | aqjune/mathlib | da42a97d9e6670d2efaa7d2aa53ed3585dafc289 | f7977ff5a6bcf7e5c54eec908364ceb40dafc795 | refs/heads/master | 1,631,213,225,595 | 1,521,089,840,000 | 1,521,089,840,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 116,987 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Ordinal arithmetic.
Ordinals are defined as equivalences of well-ordered sets by order isomorphism.
-/
import order.order_iso set_theory.cardinal data.sum
noncomputable... |
c789a61c17279760b0166c149a9d36d4d9698efe | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Test.lean | 856469f134c9668c6859d746c98411bb5b3cd7e0 | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 167 | lean | import Mathlib
import Mathbin
#check Semiring
#lookup3 semiring
#check Semiringₓ
#lookup3 nat.exists_infinite_primes
example (n : Nat) : n + n = 2 * n := by ring
|
179990b99d6441e2f402274b2db9de573cff7eb0 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Init/Data/Stream.lean | f277d7e0b3114060efe094c2ecd9883a0aadedcd | [
"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 | 3,192 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Andrew Kent, Leonardo de Moura
-/
prelude
import Init.Data.Array.Subarray
import Init.Data.Range
/-
Remark: we considered using the following alternative des... |
f2dacde85b3396246f8069291d7da96a8a732e05 | 0ed3609caf1962115b28aeb010d2bda5f67ddc4c | /src/tactic/hint.lean | 1b30816c6003f99731f161bc4e6506f1ec721cd2 | [
"Apache-2.0"
] | permissive | jonaslippert/mathlib | 82dba29632969e3ed1c153a6454306f6bc9d9037 | 1435a196db69a7886a11e310e8923f3dcf249b81 | refs/heads/master | 1,609,938,673,069 | 1,582,018,388,000 | 1,582,018,388,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,547 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.tidy
namespace tactic
namespace hint
/-- An attribute marking a `tactic unit` or `tactic string` which should be used by the `hint` tactic. -/
@[user... |
00cb9adcd1da4b86ccf7bbb4c94eca8143e9a263 | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/data/dfinsupp.lean | 83c3116ed84e2f649f9c86492376b1b78c0943a6 | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,508 | 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.linear_map
import algebra.module.pi
import algebra.big_operators.basic
import data.set.finite
/-!
# Dependent functions with finite suppo... |
6f3df2be2d37e20818aae7dbc4e102aa54880e2c | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/PreDefinition/WF/Main.lean | a3b553d01b33ce38b4e66803733aba3e1b6e99eb | [
"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 | 2,546 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.WF.TerminationHint
import Lean.Elab.PreDefinition.WF.PackDomain
import Lean.Elab.PreDefi... |
893a1b3e257a8c43aaf33d4ea8f7133365c56dd1 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/wiedijk_100_theorems/inverse_triangle_sum.lean | b2a77cc1c4be976c5f91c80d02f3ab48edd562e2 | [
"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,226 | lean | /-
Copyright (c) 2020. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jalex Stark, Yury Kudryashov
-/
import algebra.big_operators.basic
import data.real.basic
/-!
# Sum of the Reciprocals of the Triangular Numbers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any cha... |
096c3b141543512ededefcd5db5e6a71a07dd49e | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/normed_space/exponential.lean | 02ec614fa4be03373ab9b5b894d1e52d16907112 | [
"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 | 24,829 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.calculus.deriv
import analysis.calculus.fderiv_analytic
import analysis.specific_limits
import data.complex.exponential
import analysis.complex.ba... |
b36363bdfe5f9cce2a79adc902ed0db7f571dde4 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/set/pairwise.lean | a387ff4c2b58402221662c1af36e35bf83b0b493 | [
"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 | 2,220 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.set.lattice
import tactic.wlog
/-!
# Relations holding pairwise
This file defines pairwise relations.
## Main declarations
* `pairwise p`: States that... |
d7376823616a4ad291ec9796d0c0ae49d6080c36 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Init/Logic.lean | 4f0fe2c5a8adce988f45b02138f64a70b9f98f24 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 21,408 | 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
-/
import Mathlib.Tactic.Basic
universe u v w
@[simp] theorem opt_param_eq (α : Sort u) (default : α) : optParam α default ... |
3a8772f82f12681aa52cb6a8785c7c26ee657662 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic23.lean | 0f2673436cfeea8c747781feac118ca07f8dd5c3 | [
"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 | 954 | lean | import logic
namespace experiment
inductive nat : Type :=
| zero : nat
| succ : nat → nat
namespace nat
definition add (a b : nat) : nat
:= nat.rec a (λ n r, succ r) b
infixl `+` := add
definition one := succ zero
-- Define coercion from num -> nat
-- By default the parser converts numerals into a binary representat... |
25c4f8287628d5b3857a2a86f1dd5f883bfeffd2 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/data/subtype/basic.lean | be0a766c352f3b2410da214ffd9e5c302ba3e825 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 723 | 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, Jeremy Avigad
-/
prelude
import init.logic
open decidable
universes u
namespace subtype
def exists_of_subtype {α : Type u} {p : α → Prop} : { x // p x } → ∃... |
40cf33d05980af9821aaa53c6db856d7207d6042 | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/backends/bfs/baseline.lean | d1377226107fde7737c73aaa6fb4dee72388b657 | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 2,276 | lean | import tactic.tidy
import evaluation
namespace baseline
section tidy_proof_search
meta def tidy_default_tactics : list string := [
"refl"
, "exact dec_trivial"
, "assumption"
, "tactic.intros1"
, "tactic.auto_cases"
, "apply_auto_param"
, "dsimp at *"
, "simp at *"
, "ext1"
, "fsplit... |
e2fa9adc3cd21043cedc133cc6e1bbd332f57241 | ebb7367fa8ab324601b5abf705720fd4cc0e8598 | /homotopy/degree.hlean | 7d44180a620dfcbe047d90f9ce3ddb1f7b7c5778 | [
"Apache-2.0"
] | permissive | radams78/Spectral | 3e34916d9bbd0939ee6a629e36744827ff27bfc2 | c8145341046cfa2b4960ef3cc5a1117d12c43f63 | refs/heads/master | 1,610,421,583,830 | 1,481,232,014,000 | 1,481,232,014,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,735 | hlean | import homotopy.sphere2 ..move_to_lib
open fin eq equiv group algebra sphere.ops pointed nat int trunc is_equiv function circle
definition eq_one_or_eq_neg_one_of_mul_eq_one {n : ℤ} (m : ℤ) (p : n * m = 1) : n = 1 ⊎ n = -1 :=
sorry
definition endomorphism_int_unbundled (f : ℤ → ℤ) [is_add_homomorphism f] (n : ... |
3f58df943253e0c069492cc41268f821ba981f5c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/match.lean | 25ea123537aaa446547859a4a19ab0192cba7a06 | [
"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 | 329 | lean | structure S where
fn1 : Nat
value : Bool
name : String
def f (s : S) : Nat := by
refine s.
--^ textDocument/completion
def g (s : S) : Nat := by
match s.
--^ textDocument/completion
theorem ex (x : Nat) : 0 + x = x := by
match x with
--^ $/lean/plainGoal
| 0 => done
--^ $/lean/p... |
7c3fef66afc013fb8814c5e0e79480f534e8a4e4 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Meta/Match/MatcherInfo.lean | 48bb230b7f536773fa70f54a6dc313764e8cbd9b | [
"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 | 3,950 | 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.Basic
namespace Lean.Meta
namespace Match
/--
A "matcher" auxiliary declaration has the following structure:
- `numParams` parameters
- m... |
cf7a5b9de47a44f1892379d15615e24fe0130d85 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/category_theory/graded_object.lean | cc034543b72ef356562b7017ff79c828b74fef55 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,165 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.shift
import category_theory.concrete_category
import category_theory.pi.basic
import algebra.group.basic
/-!
# The category of graded objects... |
bb8220c5faa9e1336f0249d7d77ea44bd6eb3d45 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/norm_cast_sum_lambda.lean | c9ed874f0e925cbf374e2f323bcc968e921469bc | [
"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 | 410 | lean | import tactic.norm_cast
constant series {α} (f : ℕ → α) : α
@[norm_cast] axiom coe_series (f : ℕ → ℕ) :
((series (λ x, f x) : ℕ) : ℤ) = series (λ x, f x)
@[norm_cast] axiom coe_le (a b : ℕ) : (a : ℤ) ≤ b ↔ a ≤ b
run_cmd do
l ← norm_cast.make_guess ``coe_series,
guard $ l = norm_cast.label.move
example (f : ℕ → ℕ... |
b72c2b1b47a83339e67ef5407b664533ee599a73 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/analysis/normed_space/basic.lean | a4081bb988588c340efd97ad3c33dd0190490e02 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 24,936 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal topology.instances.complex
import topology.a... |
4c254c835a331a52da01f2aa8222dc33bbba0172 | e07b1aca72e83a272dd59d24c6e0fa246034d774 | /src/surreal/cardinal/schroeder_bernstein.lean | d6f2e2e5d6d47147ff2983674a140ba858ec881c | [] | no_license | pedrominicz/learn | 637a343bd4f8669d76819ac660a2d2d3e0958710 | b79b802a9846c86c21d4b6f3e17af36e7382f0ef | refs/heads/master | 1,671,746,990,402 | 1,670,778,113,000 | 1,670,778,113,000 | 265,735,177 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,430 | lean | import order.fixed_points order.zorn
universes u v
namespace function
namespace embedding
variable {α : Type u}
theorem schroeder_bernstein {β : Type v} {f : α → β} {g : β → α} :
injective f → injective g → ∃ H : α → β, bijective H :=
begin
classical,
intros hf hg,
casesI is_empty_or_nonempty β with hβ hβ,
... |
68699aa394f35a31e7e9b9191e75030584d192e1 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/subtype/default.lean | 37426003573a8704a09854ad825d9b5e272ad795 | [
"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 | 245 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.data.subtype.basic init.data.subtype.instances
|
94f390edaca98a85cb3a2053aa06a3b8a2d9f25a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/periodic.lean | 1ca286569804a477a7c268655e895794f8d8f915 | [
"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 | 19,824 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import algebra.big_operators.basic
import algebra.field.opposite
import algebra.module.basic
import algebra.order.archimedean
import data.int.parity
import grou... |
5e9a8e97dfd70e11e67bea22c2bbebebb3f783c9 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/algebraic_geometry/structure_sheaf.lean | 096b080f01e7c8ca7f27f9e98d9cb3c4c87e4232 | [
"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 | 25,003 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import algebraic_geometry.prime_spectrum
import algebra.category.CommRing.colimits
import algebra.category.CommRing.limits
import topology.sheaves.loc... |
d39d07fa785eccc08a727ec882329a9e0d16f791 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/tools/super/simp.lean | 2dd44a794b53a90c35edbc8da85ac81f7e6351d6 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,506 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause_ops .prover_state
open tactic monad
namespace super
meta def prove_using_assumption : tactic unit := do
tgt ← target,
ass ← mk_local_def `h tgt,
exact ... |
a0a4ec9a3ad19396755c76631642d11035acfcdf | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/geometry/manifold/derivation_bundle.lean | f463781aa276ba78c8a465e6831a7ae1fc9e8e3c | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,438 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.algebra.smooth_functions
import ring_theory.derivation
/-!
# Derivation bundle
In this file we define the derivations at a point of a m... |
5b804cf907e7d24286e5445fb2b5ca9daa927fc6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_geometry/locally_ringed_space/has_colimits.lean | 15e89cc7ced7a09a4ac4f9577037199212172d9a | [
"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 | 12,963 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.locally_ringed_space
import algebra.category.Ring.constructions
import algebraic_geometry.open_immersion
import category_theory.limits.constructio... |
e7c54492e5a947be7112c27bdb32924e29304837 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/topology/order.lean | 2e0f7f6fc87dfba07203199a54bf5a80f479f800 | [
"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 | 30,274 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.basic
/-!
# Ordering on topologies and (co)induced topologies
Topologies on a fixed type `α` are ordered, by reverse inclusion.
That... |
cf02e3ade8a5c0efedd3441d5e7d91c3f7db4fa2 | 61ccc57f9d72048e493dd6969b56ebd7f0a8f9e8 | /src/measure_theory/integration.lean | ee562c9646064599be0bfa0e365bb3b337823d96 | [
"Apache-2.0"
] | permissive | jtristan/mathlib | 375b3c8682975df28f79f53efcb7c88840118467 | 8fa8f175271320d675277a672f59ec53abd62f10 | refs/heads/master | 1,651,072,765,551 | 1,588,255,641,000 | 1,588,255,641,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 57,198 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
941654819802c7f42ed8062d4e222fa66e55c1e0 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/fin/basic.lean | f00f9a20db11ee35640ad745beb794e23dac6aef | [
"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 | 64,247 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
-/
import tactic.apply_fun
import data.nat.cast
import order.rel_iso
import tactic.localized
/-!
# The finite type with `n` elements
`fin n` is the type... |
dba3e145a2cec8c55f7666013277b3acf90a4599 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rewriter11.lean | 674bc80b3839dc39d8d11bb47c6f6f28e686b2cf | [
"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 | 494 | lean | import algebra.ring
open algebra eq.ops
variable {A : Type}
theorem zero_mul1 [s : ring A] (a : A) : 0 * a = 0 :=
have H : 0 * a + 0 = 0 * a + 0 * a,
begin
rewrite add_zero,
rewrite -(add_zero 0) at {1},
rewrite right_distrib
end,
show 0 * a = 0, from (add.left_cancel H)⁻¹
theorem zero_mul2 [s : ring... |
081bc48f7919fba561112510b13df1220f0d6bfa | 740993c2939128e433a4feddfe605721331a0c75 | /laplacian.lean | 6ef3703aad3c4f518389ad39229101036360c64f | [] | no_license | gabrielmoise/Lean-work | 436bb7bf1e8144eb1aa90cc161b386a6ee6892bf | 52b2a2c840f8477e293cbb897335a19ebf482cf7 | refs/heads/master | 1,681,251,086,221 | 1,620,036,203,000 | 1,620,036,203,000 | 360,084,138 | 0 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 10,288 | lean | /-
Copyright (c) 2021 Gabriel Moise. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Moise.
-/
import algebra.big_operators.basic
import combinatorics.simple_graph.adj_matrix
import combinatorics.simple_graph.basic
import linear_algebra.matrix
import project.inc... |
abbe279488ad7eb6ce5f3d87b259bacbdccabb58 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/basic.lean | 315c0d6d6a2893682b4f27476884fb0fa0319366 | [
"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 | 25,769 | 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
-/
import algebra.algebra.restrict_scalars
import analysis.normed.field.basic
import data.real.sqrt
/-!
# Normed spaces
In this file we define (semi)no... |
71c596f5fc181587ed443e9fca3c83f7cadf3bd2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /counterexamples/canonically_ordered_comm_semiring_two_mul.lean | 624471d03aeb542eb7294665f2e387d05df4e608 | [
"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,100 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import data.zmod.basic
import ring_theory.subsemiring.basic
import algebra.order.monoid.basic
/-!
A `canonically_ordered_comm_semiring` with two different elements `a`... |
94c3bcf7300744e1727d891e201c856da0204cff | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/LinearArith/Simp.lean | 173c759a86d80a7b637844338113047b47f104a9 | [
"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 | 808 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.LinearArith.Basic
import Lean.Meta.Tactic.LinearArith.Nat.Simp
namespace Lean.Meta.Linear
private def parentIsTarget (parent? : Op... |
69e5478f4b4816057433fb11a2c4ecefa19a6783 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/notation3.lean | ec50bc15250aee8bc88e3792b5628d4dfd5e5f3e | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 296 | lean | --
inductive List (T : Type) : Type | nil {} : List | cons : T → List → List open List notation h :: t := cons h t notation `[` l:(foldr `, ` (h t, cons h t) nil) `]` := l
open prod num
constants a b : num
#check [a, b, b]
#check (a, true, a = b, b)
#check (a, b)
#check [(1:num), 2+2, 3]
|
0e0bedb1c8b8ef9b2296b609e43b440c39db6aae | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/meta/congr_lemma.lean | a47acff1913e4c3235fbe782eeefc54819eb7dda | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 6,154 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.format init.function
/-- This is a kind attached to an argument of a congruence lemma that tells the simplifier h... |
706b26539fbeb4407be33194888926bd633d6174 | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/pilex.lean | 1bf8b121471080480bd54bff0dbfc87a91d9d206 | [
"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,346 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.ordered_pi
import order.well_founded
import algebra.order_functions
variables {ι : Type*} {β : ι → Type*} (r : ι → ι → Prop)
(s : Π {i}, β i → β i → Pro... |
3cfd6717042d869aca1d82b4ab79bddda33dab98 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/phashmap_inst_coherence.lean | 0b4c5d50937a8344250081e21a7ce2161178d018 | [
"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 | 369 | lean | import Std.Data.PersistentHashMap
open Std
def m : PersistentHashMap Nat Nat :=
let m : PersistentHashMap Nat Nat := {};
m.insert 1 1
def natDiffHash : Hashable Nat :=
⟨fun n => USize.ofNat $ n+10⟩
-- The following example should fail since the `Hashable` instance used to create `m` is not `natDiffHash`
#eval @Persi... |
8384ea063854dd1bcd46ba271b6889da514d9890 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/category/monad/cont.lean | 885b932409cd2f041e65013a51cce2c47d136217 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 2,826 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Monad encapsulating continuation passing programming style, similar to
Haskell's `Cont`, `ContT` and `MonadCont`:
http://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Mon... |
2ec8c89f03d3659d2a6d28f2c9d9aba39768debf | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Meta/AbstractMVars.lean | a74ac2fb3075d11c76fbdbcbf89e7c5939d7e0d4 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 5,646 | 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... |
2c52914e0f25ac1123b6d50163b3e94ce10c8175 | 8eeb99d0fdf8125f5d39a0ce8631653f588ee817 | /src/measure_theory/l1_space.lean | aa8e1fd562213581fb37607bc301c680cd5ae975 | [
"Apache-2.0"
] | permissive | jesse-michael-han/mathlib | a15c58378846011b003669354cbab7062b893cfe | fa6312e4dc971985e6b7708d99a5bc3062485c89 | refs/heads/master | 1,625,200,760,912 | 1,602,081,753,000 | 1,602,081,753,000 | 181,787,230 | 0 | 0 | null | 1,555,460,682,000 | 1,555,460,682,000 | null | UTF-8 | Lean | false | false | 37,519 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.ae_eq_fun
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic properties o... |
abb8e1ced1a2cde9774139aa286455c90d4008b5 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/list/sublists.lean | a23405897b56aec0544a4140bca5288cbca7c8fa | [
"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 | 12,704 | lean | /-
Copyright (c) 2019 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.basic
import data.nat.choose.basic
/-! # sublists
`list.sublists` gives a list of all (not necessarily contiguous) sublists of a list.
This file c... |
762ec75f98c3d9605549b0df4c81e13673a05ca7 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/tools/super/cdcl.lean | a7aaaf5747fc59f85ae5a6e80bb8708808dc6bf7 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 857 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .clausifier .cdcl_solver
open tactic expr monad super
meta def cdcl_t (th_solver : tactic unit) : tactic unit := do
as_refutation, local_false ← target,... |
54bf74cb71bad29cdb1686c129a143ea1d411a89 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/opaque.lean | ff68f54473676991094ee87d799e6690a0b02edd | [
"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 | 283 | lean | import macros
import subtype
import optional
using subtype
using optional
namespace sum
set_opaque optional false
set_opaque subtype false
set_opaque some false
set_opaque optional::none false
set_opaque rep false
set_opaque subtype::abst false
set_opaque optional_pred false
end
|
e3e16adc05fa7070857ee4128724df63239d931e | d72901cc240bd78b8b0384565e4f4dee8abd3a86 | /src/group_theory/perm/sign.lean | 39899a60abcc08102f063cdf17af6a514fb86900 | [
"Apache-2.0"
] | permissive | leon-volq/mathlib | 513b24765349bb5187df9d898b92beadf96124d9 | 0cc93a137e9b2e243f8ae1f808fa7225ce0fe143 | refs/heads/master | 1,676,294,376,990 | 1,610,838,688,000 | 1,610,838,688,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,173 | 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.fintype.basic
import data.finset.sort
import group_theory.perm.basic
import group_theory.order_of_element
/-!
# Sign of a permutation
The main definition of... |
3b56de895bd7c62990b3f703345e26abfd3e1ddd | 995658a556256a6694fe5c98b91f7f6f6c11bb77 | /src/cauchy.lean | d1ca0e2a25d4b647630d59de7b0d88ae8f5ef414 | [
"MIT"
] | permissive | bhgomes/lean-riemann-hypothesis | d803047f27ea21f03414bbfb59395608ed0bc05f | c36b744a2dc4a7a50c7de770096bd9a051f42ab9 | refs/heads/master | 1,678,533,614,591 | 1,614,755,910,000 | 1,614,755,910,000 | 275,204,877 | 16 | 3 | null | null | null | null | UTF-8 | Lean | false | false | 24,800 | lean | /- ------------------------------------------------------------------------- -|
| @project: riemann_hypothesis |
| @file: cauchy.lean |
| @authors: Brandon H. Gomes, Alex Kontorovich |
... |
e53e1671ab3f3eced8dae92bde9a1da03fc47d5c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/functor/const.lean | ae1fc08e30df6a089f93624c940601bbd36a3af6 | [
"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,043 | lean | /-
Copyright (c) 2018 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.opposites
/-!
# The constant functor
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspond... |
ccfdad380ee080e5342e0aa9480f2f441ecdab30 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/measure_theory/pi.lean | 1381683750f99a094cb814a89ee85e296a4e3157 | [
"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 | 21,441 | 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 measure_theory.prod
/-!
# Product measures
In this file we define and prove properties about finite products of measures
(and at some point, countable pr... |
9614cc4a33f38be82a7698b1bafa511be7649393 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/finset/powerset.lean | 36432c5a5b76ac3b90d1e106074e16bc496b7e76 | [] | 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 | 3,064 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.finset.basic
import Mathlib.PostPort
universes u_1
namespace Mathlib
/-!
# The powe... |
75ff3fd9686eb78ce6f5aec6b656acf0008cff46 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/instances/affine_scheme.lean | af34de42571001c7f811c72f402a751e9134e74b | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 938 | lean | /-
An affine scheme is a scheme.
-/
import topology.opens
import spectrum_of_a_ring.spec_locally_ringed_space
import scheme
universe u
open topological_space
variables (R : Type u) [comm_ring R]
-- Spec(R) is a locally ringed space and it covers itself.
def affine_scheme : scheme (Spec R) :=
{ carrier := Spec.... |
6aa4092080648b2e09bafba242b93218e4ddefe9 | 618003631150032a5676f229d13a079ac875ff77 | /src/deprecated/ring.lean | d11114037a6044bb5bb23f6f0c49aea73405e4c6 | [
"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 | 4,673 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import deprecated.group
import algebra.ring
/-!
# Unbundled semiring and ring homomorphisms (deprecated)
This file defines typeclasses for unbundled semiring and rin... |
1ddd881ae5373e0fa343aa733d56f0a4421a4583 | 7a0854479980a89e813e3c93d127f09a8e2c3a7e | /src/subgroup/definitions.lean | c9aa568ff0aa7aa438268ab486b5135e40613a05 | [] | no_license | cfbolz/group-theory-game | 020e382df58bf9a510dce38304f27400e4ef0b80 | b5282ce72a2a22e9ba1b48cee432ff3d77496040 | refs/heads/master | 1,668,643,052,237 | 1,594,820,769,000 | 1,594,820,769,000 | 279,899,736 | 0 | 0 | null | 1,594,825,474,000 | 1,594,825,473,000 | null | UTF-8 | Lean | false | false | 3,651 | lean | import group.theorems -- basic interface for groups
import group.group_powers
/-!
Basic definitions for subgroups in group theory.
Not for the mathematician beginner.
-/
-- We're always overwriting group theory here so we always work in
-- a namespace
namespace mygroup
/- subgroups (bundled) -/
/-- A subgroup of... |
da8438ca28e5e1d275e10f1e6be4787a8543e4e0 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/complex/module.lean | 6c535361971fcd13d78559597edf66e7579770db | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 11,570 | lean | /-
Copyright (c) 2020 Alexander Bentkamp, Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Sébastien Gouëzel, Eric Wieser
-/
import algebra.order.smul
import data.complex.basic
import data.fin.vec_notation
import field_theory.tower
... |
5bb394926bd54e7a113bbf088839064bacd8cf1f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/field_theory/splitting_field.lean | a744680255b0c5c12429325ca11b7328b536ac8e | [
"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 | 37,046 | 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 ring_theory.adjoin_root
import ring_theory.algebra_tower
import ring_theory.algebraic
import ring_theory.polynomial
import field_theory.minpoly
import linear_algeb... |
f93aa8c909e15c303052e719850dae8ff60b6ebf | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/filtered.lean | 7e488ff2b1b699a4910ccc24d0bde413eb2a611d | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 922 | lean | import category_theory.limits.limits
import order.filter
open category_theory.limits
namespace category_theory
universes u₁ v₁
variables α : Type u₁
class directed [preorder α] :=
(bound (x₁ x₂ : α) : α)
(i₁ (x₁ x₂ : α) : x₁ ≤ bound x₁ x₂)
(i₂ (x₁ x₂ : α) : x₂ ≤ bound x₁ x₂)
variables (C : Type u₁) [𝒞 : category... |
ef3cdc823eff57b553880825beee79523cbc33d5 | 9c2e8d73b5c5932ceb1333265f17febc6a2f0a39 | /src/K/full_language.lean | a1bb06423055771639b60c6363e50d326140321c | [
"MIT"
] | permissive | minchaowu/ModalTab | 2150392108dfdcaffc620ff280a8b55fe13c187f | 9bb0bf17faf0554d907ef7bdd639648742889178 | refs/heads/master | 1,626,266,863,244 | 1,592,056,874,000 | 1,592,056,874,000 | 153,314,364 | 12 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 9,783 | lean | import .semantics
inductive fml
| var (n : nat)
| neg (φ : fml)
| and (φ ψ : fml)
| or (φ ψ : fml)
| impl (φ ψ : fml)
| box (φ : fml)
| dia (φ : fml)
open fml
@[simp] def fml_size : fml → ℕ
| (var n) := 1
| (neg φ) := fml_size φ + 1
| (and φ ψ) := fml_size φ + fml_size ψ + 1
... |
20a69d25c82f18afaca7de84a0897bfbdf57dcc2 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/uniform_space/abstract_completion.lean | b3fb43df37e8e7ad2006406372bc2a1ea6c8ba7d | [
"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 | 11,184 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.uniform_embedding
/-!
# Abstract theory of Hausdorff completions of uniform spaces
This file characterizes Hausdorff completions of a ... |
2362d25202a212dbe5b4a66ffa46e9efa8243ae3 | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/exercises_sources/friday/analysis.lean | d009b4afcf856438eb5d1354a4a7528b00346d22 | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 4,770 | lean | import analysis.analytic.composition
import analysis.normed_space.real_inner_product
import topology.metric_space.pi_Lp
import analysis.calculus.iterated_deriv
import analysis.calculus.mean_value
import analysis.calculus.implicit
import measure_theory.bochner_integration
import measure_theory.lebesgue_measure
namespa... |
069652185a7445a34f2575f214b0f349d71eecd9 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /11_Tactic-Style_Proofs.org.35.lean | dadc571448b5a5ecbccc2cc7f89d5f683b6aa182 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 197 | lean | import standard
open nat
variables (f : nat → nat) (k : nat)
example (H₁ : f 0 = 0) (H₂ : k = 0) : f k = 0 :=
begin
rewrite H₂, -- replace k with 0
rewrite H₁ -- replace f 0 with 0
end
|
5039ab531f832f25a5ff27345114c0f62f721cf7 | 7b66d83f3b69dae0a3dfb684d7ebe5e9e3f3c913 | /src/hints/thursday/afternoon/category_theory/exercise2/hint.lean | f6ea917f8c9bbba1af000d7ca4177f582e4b6a44 | [] | permissive | dpochekutov/lftcm2020 | 58a09e10f0e638075b97884d3c2612eb90296adb | cdfbf1ac089f21058e523db73f2476c9c98ed16a | refs/heads/master | 1,669,226,265,076 | 1,594,629,725,000 | 1,594,629,725,000 | 279,213,346 | 1 | 0 | MIT | 1,594,622,757,000 | 1,594,615,843,000 | null | UTF-8 | Lean | false | false | 574 | lean | /-!
Try:
```
def functor.preadditive.preserves_biproducts (F : C ⥤ D) (P : F.preadditive) (X Y : C) :
F.obj (X ⊞ Y) ≅ F.obj X ⊞ F.obj Y :=
{ hom := biprod.lift (F.map biprod.fst) (F.map biprod.snd),
inv := biprod.desc (F.map biprod.inl) (F.map biprod.inr), }
```
Observing:
1. Lean is happy with the definitions `... |
a7575a936b619e92db66886e22ba8ec1f5105129 | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/data/real/nnreal.lean | 5cf75ab73cdb3b8bacc5dfd3bf680c49448a7915 | [
"Apache-2.0"
] | permissive | sflicht/mathlib | 220fd16e463928110e7b0a50bbed7b731979407f | 1b2048d7195314a7e34e06770948ee00f0ac3545 | refs/heads/master | 1,665,934,056,043 | 1,591,373,803,000 | 1,591,373,803,000 | 269,815,267 | 0 | 0 | Apache-2.0 | 1,591,402,068,000 | 1,591,402,067,000 | null | UTF-8 | Lean | false | false | 25,136 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import data.real.basic
noncomputable theory
open_locale classical
/-- Nonnegative real numbers. -/
def nnreal := {r : ℝ // 0 ≤ r}
locali... |
255debe404cd0b21e37844e64573dc7ff83cdb57 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/analysis/seminorm.lean | d091c34161f1d46a3d9c654425331f36b33bafd8 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,124 | lean | /-
Copyright (c) 2019 Jean Lo. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jean Lo
-/
import algebra.pointwise
import analysis.normed_space.basic
/-!
# Seminorms and Local Convexity
This file introduces the following notions, defined for a vector space
over a nor... |
47082ddf433d051809664e393077c8cdf6a6245a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/monad/cont_auto.lean | d27d306c31489ed9f7d13aa3773afa9c15c112a8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,820 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Monad encapsulating continuation passing programming style, similar to
Haskell's `Cont`, `ContT` and `MonadCont`:
<http://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Mo... |
54b800a49f53c52cc7c41d1277a92263aa11b30a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cc_ac2.lean | ba0fe2dc8d3cb483747b93e4af703ed6f88336a7 | [
"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 | 357 | lean | open tactic
instance aa : is_associative ℕ (+) := ⟨nat.add_assoc⟩
instance ac : is_commutative ℕ (+) := ⟨nat.add_comm⟩
instance ma : is_associative ℕ (*) := ⟨nat.mul_assoc⟩
instance mc : is_commutative ℕ (*) := ⟨nat.mul_comm⟩
example (a b c d : nat) (f : nat → nat → nat) : b + a = d → f (a + b + c) a = f (c + d) a :=... |
28176b6512ca78ee328d1499ceb751f40b168e64 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/generalize_proofs.lean | f938c4b5e56c9b7739792dee935f98dba5a5921a | [
"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,099 | lean | import tactic.generalize_proofs
example (x : ℕ) (h : x < 2) : classical.some ⟨x, h⟩ < 2 :=
begin
generalize_proofs a,
guard_hyp a : ∃ x, x < 2,
guard_target classical.some a < 2,
exact classical.some_spec a,
end
example (a : ∃ x, x < 2) : classical.some a < 2 :=
begin
generalize_proofs,
guard_target class... |
3e948e80b8bb25cae268ec2d789c3f330757dfe7 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/order/filter/ultrafilter.lean | ce9bfe91ba624c26cce67243c17c9e20c66b432a | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,802 | 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
-/
import order.filter.cofinite
/-!
# Ultrafilters
An ultrafilter is a minimal (maximal in the set order) proper filter.
In this file we define
* `is_u... |
faac5ec8874795840fddf2f4b073de8233e40609 | 6c7d3318f9e137ff78c170e5986abe531d316cd1 | /inClassNotes/01_polymorphicFunctions.lean | 904745b6fc6d18e6e860b93db4e7f5e51ceab2eb | [] | no_license | sethfertig/complogic-s21 | 3a2c1d90cbb4a9292a8afbe78f46797193f4293f | efb63424d873def3945a04238327b2551af67500 | refs/heads/master | 1,677,812,457,719 | 1,613,059,434,000 | 1,613,059,434,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 906 | lean |
def id_nat : nat → nat :=
λ n, n
def id_string : string → string :=
λ n, n
def id_bool : bool → bool :=
λ n, n
-- parametric polymorphism
namespace hidden
#check 1
#check "Hello"
#check tt
-- Types are terms
#check nat
#check string
#check bool
def id' : Π (α : Type), α → α :=
λ α,
λ n,
... |
8ae5e55884c6ed38e37d024a1389d15d044b9749 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic5.lean | 8bb70744fae6c2b30515097cf6bc6dd9d97c1d20 | [
"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 | 180 | lean | import logic
open tactic (renaming id->id_tac)
infixl `;`:15 := tactic.and_then
theorem tst {A B : Prop} (H1 : A) (H2 : B) : id A
:= by (unfold id; state); assumption
check tst
|
1b80f84b44288be5b2c3d2156022abc542cb5324 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/list/range.lean | 2715a0bdd535a1e281ca0094bede0fbeeffd8a20 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 8,251 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Scott Morrison
-/
import data.list.chain
import data.list.nodup
import data.list.of_fn
open nat
namespace list
/- iota and range(') -/
universe u
variabl... |
b861d1107a6fe3966d53aff4155d42bd4df32435 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/topology/category/Top/open_nhds.lean | 9bec730d9f65722c7d848fb99fc3d6487b4d9376 | [
"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 | 4,298 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.category.Top.opens
import category_theory.filtered
open category_theory
open topological_space
open opposite
universe u
variables {X Y : Top.{u}} (... |
4b21bf4ff69148542210648be0082238eed2e0d7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/perm/basic.lean | 0f6b7a4f8c9abd0839333b1979eca5a0b18c74f2 | [
"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 | 21,024 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import algebra.group.pi
import algebra.group.prod
import algebra.hom.iterate
import logic.equiv.set
/-!
# The group of permutations (self-e... |
849864154f70d71a1414e4d66ad350bf809573c5 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/set/disjointed.lean | 5092ab777d9c6c70d9cbdf64b7bd8fa0e7e3eb85 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 4,496 | 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
Disjointed sets
-/
import data.set.lattice
import tactic.wlog
open set classical
open_locale classical
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type ... |
dc6bcf2ebf32fab52da578a6c1ef94e2f1b7e319 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/252.lean | 128dffe890211ca49da93ce184118269c3bf18f4 | [
"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 | 331 | lean | open nat
inductive tree (A : Type)
| leaf : A → tree
| node : tree → tree → tree
#check tree.node
definition size {A : Type} (t : tree A) : nat :=
tree.rec (λ a, 1) (λ t₁ t₂ n₁ n₂, n₁ + n₂) t
#check _root_.size
#reduce size (tree.node (tree.node (tree.leaf 0) (tree.leaf 1))
(tree.leaf 0))
|
3a1afafa16d97000db0d6c43235ad4ea911d5323 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/dsimpZetaIssue.lean | 3347c15152e2bbc863447e1e56fa9bdc53be3c4e | [
"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 | 417 | lean | example : let x := 0; x + 5 = 5 := by
dsimp (config := { zeta := false, failIfUnchanged := false })
trace_state
simp
example : let x := 0; x + 5 = 5 := by
dsimp
example : let x := 0; x + y = y := by
dsimp
trace_state
rw [Nat.zero_add]
example : let x := 0; x + y = y := by
dsimp (config := { zeta := f... |
09af9c641173a6e9ba429f0a936002d814545d38 | cb1829c15cd3d28210f93507f96dfb1f56ec0128 | /theorem_proving/09-structures_and_records.lean | d52cbf5c63da36f04a45efd9f3b61b94fa4f7d0e | [] | no_license | williamdemeo/LEAN_wjd | 69f9f76e35092b89e4479a320be2fa3c18aed6fe | 13826c75c06ef435166a26a72e76fe984c15bad7 | refs/heads/master | 1,609,516,630,137 | 1,518,123,893,000 | 1,518,123,893,000 | 97,740,278 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 432 | lean | -- 9. Structures and Records
#print "==========================================="
#print "Section 9.1. Declaring Structures"
#print " "
namespace Sec_9_1
end Sec_9_1
#print "==========================================="
#print "Section 9.2. Objects"
#print " "
namespace Sec_9_2
end Sec_9_2
#print "============... |
e188c6df98a90f7664208d613e91755f233ea78e | 4fa161becb8ce7378a709f5992a594764699e268 | /src/topology/metric_space/contracting.lean | 5f33723b695007548c1c20735c4bf6a56fb9ce04 | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 15,224 | lean | /-
Copyright (c) 2019 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import analysis.specific_limits
import data.setoid.basic
import dynamics.fixed_points.topology
/-!
# Contr... |
ed5a1ce0b7806c090c2787136f6326917f03ef96 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/sheaves/presheaf_of_rings_on_basis.lean | 58f80a7a371edc2f6827dda858fbe1f3bdf10eb1 | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,457 | lean | /-
Presheaf of rings on basis.
https://stacks.math.columbia.edu/tag/007L
(just says that the category of rings is a type of algebraic structure)
-/
import sheaves.presheaf_on_basis
universe u
open topological_space
structure presheaf_of_rings_on_basis (α : Type u) [TX : topological_space α]
{B : set (opens... |
83c28e9ad4131fe2ca2a5d0d5c83545330a4b5a6 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/measure_theory/decomposition/unsigned_hahn.lean | 8b019cfce4c7c1d39c33fdde362bc33d7eaa9428 | [
"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,766 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import measure_theory.measure.measure_space
/-!
# Unsigned Hahn decomposition theorem
This file proves the unsigned version of the Hahn decomposition theorem.
## M... |
6363d337a3c4142c32b5695be71ad3b5a43e2cc9 | 4767244035cdd124e1ce3d0c81128f8929df6163 | /category_theory/comma.lean | f79d11637bdeddb5436c69f85218599713f3db5d | [
"Apache-2.0"
] | permissive | 5HT/mathlib | b941fecacd31a9c5dd0abad58770084b8a1e56b1 | 40fa9ade2f5649569639608db5e621e5fad0cc02 | refs/heads/master | 1,586,978,681,358 | 1,546,681,764,000 | 1,546,681,764,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,276 | 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
import category_theory.types
import category_theory.isomorphism
import category_theory.whiskering
import category_theory.opposites
namespace cate... |
4c1f01c7b69d45f95c0d4ebdfec6f8454b253f18 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/logic/embedding.lean | a7522a040ea371deac89f8e7abcef3d7285f5bc6 | [
"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 | 15,347 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.equiv.basic
import data.sigma.basic
/-!
# Injective functions
-/
universes u v w x
namespace function
/-- `α ↪ β` is a bundled injecti... |
ab65afa82b03a1f912d555841f33ec71529246db | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/logic/relator.lean | 8fd8d1d8a9af2b57af696e02bc455192d49fd19c | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 3,736 | 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
Relator for functions, pairs, sums, and lists.
-/
prelude
import init.core init.data.basic
namespace relator
universe variables u₁ u₂ v₁ v₂
reserve infixr ` ⇒ `:40
... |
268d7145c6a71841991c6066a0e98813cf7d0f71 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Load.lean | 11a8de79640d2ab7881b960d8534be28bc06ea89 | [
"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 | 168 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lake.Load.Main
|
e584ffab6752e8bcc9f510aa712648df70982558 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/homotopy/susp.hlean | 3d6cadefeea5ebaa2800381e6c1ce0b1aea0acec | [
"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 | 7,584 | 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 suspension
-/
import hit.pushout types.pointed cubical.square
open pushout unit eq equiv
definition susp (A : Type) : Type := pushout (λ(a : A), s... |
c89af13adcc6dd40a0fc506d38d1e9d59639be79 | 1437b3495ef9020d5413178aa33c0a625f15f15f | /analysis/topology/continuity.lean | 4463ce6cdc0635bdbdea9375832bedb39da1b357 | [
"Apache-2.0"
] | permissive | jean002/mathlib | c66bbb2d9fdc9c03ae07f869acac7ddbfce67a30 | dc6c38a765799c99c4d9c8d5207d9e6c9e0e2cfd | refs/heads/master | 1,587,027,806,375 | 1,547,306,358,000 | 1,547,306,358,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 72,198 | 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
Continuous functions.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and U... |
1babc911af72fef6da069862125b41d3ad0931b9 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/homotopy_theory/formal/cofibrations/factorization_from_cylinder.lean | e538c1143eb4f42ef6644cad2b5d8b2542617d4b | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 3,614 | lean | import category_theory.pasting_pushouts
import .cofibration_category
universes v u
open category_theory
open category_theory.category
local notation f ` ∘ `:80 g:80 := g ≫ f
namespace homotopy_theory.cofibrations
open homotopy_theory.weak_equivalences
open homotopy_theory.weak_equivalences.category_with_weak_equival... |
9f9a43f0d24b9d8556497ff9c5d8193c2123bc55 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/algebra/tower.lean | 0fce7692812237d60926c1ba22e4017c5eb2cc6b | [
"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 | 11,716 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.subalgebra
/-!
# Towers of algebras
In this file we prove basic facts about towers of algebra.
An algebra tower A/S/R is expressed by having instance... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.