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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
36b49f068d44c2596d0a7a767d8647083bdd5596 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/simp_out_param.lean | db206782a6bdb18afc3b50d0404304ec6cc36b40 | [
"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 | 694 | lean | prelude
import init.meta.interactive
namespace unbundled
class broken₁ (A : Type*) :=
(f : A → A)
open broken₁
class broken₂ (A : Type*) (a : out_param $ A) [broken₁ A] :=
(f_eq : ∀ x, f x = a)
open broken₂
-- Even if the goal doesn't contain an instance of `broken₂`, the parameter `a`
-- to `f_eq` should still be ... |
76eeed1f991ba42c5ea03c741d683123fd26fa93 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/281.lean | a32d9e29c7fce6b18e7f170e61eed034cd637052 | [
"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 | 280 | lean | inductive V (α : Bool → Type) : Bool → Type
| mk₁ {b} : α true → V α b
| mk₂ : V α false → V α false
def V.map {α β} (f : (b : Bool) → α b → β b) : {b : Bool} → V α b → V β b
| _, mk₁ x => mk₁ (f true x)
| _, mk₂ e => mk₂ (e.map f)
|
5adf61b42f185f3cc6b5da769b220df073f37084 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/ring_theory/euclidean_domain.lean | 9e2ce9664e80dd31db0829cff7daf960ff160198 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,531 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Chris Hughes
-/
import ring_theory.coprime
import ring_theory.ideal.basic
/-!
# Lemmas about Euclidean domains
Various about Euclidean domains are proved; all of them... |
144bfdbe6d040ee590ba192c574b6eec4f0a6e00 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/order/bounded_lattice.lean | 77e17849ca321015ebf7fed516e1acaaccee2d42 | [
"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 | 39,806 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Defines bounded lattice type class hierarchy.
Includes the Prop and fun instances.
-/
import order.lattice
import data.option.basic
import tactic.pi_instances
set_opt... |
7d4239560de1b6b6e5ed4da1f0b238dfd7dffa5b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/set_theory/ordinal/fixed_point.lean | 5d54671f8501611e1692f35f2cc6da3043cfc801 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 23,248 | lean | /-
Copyright (c) 2018 Violeta Hernández Palacios, Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios, Mario Carneiro
-/
import set_theory.ordinal.arithmetic
/-!
# Fixed points of normal functions
We prove various statements abo... |
47ab0178ee18397ce6b4034e59e82aa93f9e6329 | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/linear_algebra/sesquilinear_form.lean | 837c811e3deb5e3493192b686e78a0b1a93e7954 | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 8,637 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Andreas Swerdlow
-/
import algebra.module ring_theory.maps
/-!
# Sesquilinear form
This file defines a bilinear form over a module. The definition requires a ring antiautomorphism... |
35f38fbf919fefe2c1631db153456fa67bdd6f15 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/algebra/geom_sum.lean | 33fe7c6d9a06c65acead687ff7d84b33e6672ed8 | [
"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,384 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
-/
import algebra.group_with_zero.power
import algebra.big_operators.order
import algebra.big_operators.ring
import algebra.big_operators.intervals
/-!
# Partial sum... |
c507e9c59f51cf74019a94cb16176ddcd7a840ad | 367134ba5a65885e863bdc4507601606690974c1 | /src/control/traversable/lemmas.lean | 01842944f38b2f2b69b073560381ee9dfdbe9c06 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 3,804 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Lemmas about traversing collections.
Inspired by:
The Essence of the Iterator Pattern
Jeremy Gibbons and Bruno César dos Santos Oliveira
In Journal of Functional... |
7627ad079cea83b9956757980b65c42a19f6ac99 | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/hash_map.lean | cb28f4e732e74f52ea51426285838c9827f7aa8d | [
"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 | 27,762 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import data.list.basic data.pnat data.array.lemmas
universes u v w
/-- `bucket_array α β` is the underlying data type for `hash_map α β`,
... |
50d9638d422fb9032226430099587344a38cbefe | 6fb1523f14e3297f9ad9b10eb132e6170b011888 | /src/2021/logic/sheet5.lean | 9a44ddfabeb6e46ab13ddc16e72c1877fbe9be54 | [] | no_license | jfmc/M40001_lean | 392ef2ca3984f0d56b2f9bb22eafc45416e694ba | 4502e3eb1af550c345cfda3aef7ffa89474fac24 | refs/heads/master | 1,693,810,669,330 | 1,634,755,889,000 | 1,634,755,889,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,414 | lean | /-
Copyright (c) 2021 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Kevin Buzzard
-/
import tactic -- imports all the Lean tactics
/-!
# Logic in Lean, example sheet 5 : "iff" (`↔`)
We learn about how to manipulate `P ↔ Q` in Lean.
## Tactics
You'... |
89627482e14fe7a44f422faf7eefe9da4b97aa87 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/option.lean | a926493c3e80114c97b19764a3151336ba6301b1 | [
"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 | 3,318 | 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
-/
prelude
import init.logic init.monad init.alternative
open decidable
universe variables u v
attribute [instance]
definition option_is_inhabited (A : Type ... |
a839a3950015ee786442d5d86dfa92fa69f6a865 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/ind5.lean | 7aabee10e55f9e633b36387751bda135a3751cc6 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 174 | lean | definition Prop : Type.{1} := Type.{0}
inductive or (A B : Prop) : Prop :=
intro_left : A → or A B,
intro_right : B → or A B
check or
check or.intro_left
check or.rec
|
ec8d53c2089bb1e51021aced70627170030fd267 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/arith_eval_uint32.lean | b644100c92c9d1d438bdaaceffb90a9ee00d90a4 | [
"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 | 455 | lean | inductive Expr
| Var : UInt32 → Expr
| Val : UInt32 → Expr
| Add : Expr → Expr → Expr
open Expr
def dec (n : UInt32) : UInt32 :=
if n = 0 then 0 else n-1
def mkExpr : UInt32 → UInt32 → Expr | n, v =>
if n = 0 then Val v
else Add (mkExpr (n-1) (v+1)) (mkExpr (n-1) (dec v))
def eval : Expr → UInt32
| Var x => 0
| V... |
9bf78ab23c029dd6401939c0e30019993d5ead2a | 2662838d4e13f0ccc8c72b15fad39eed96e9e148 | /examples/sets.lean | 6e0c6f8a6156c3a96984e29e5a7280a354a6343f | [] | no_license | avigad/nlp | 3c57390046518f11ec6e6e7732f0fe5ae3794674 | a937dbb2f5dfc91d35b5b55795eab6cb0ced712f | refs/heads/master | 1,609,032,855,319 | 1,446,922,577,000 | 1,446,922,577,000 | 45,743,759 | 0 | 0 | null | 1,446,912,972,000 | 1,446,912,971,000 | null | UTF-8 | Lean | false | false | 6,604 | lean | import data.set
open set classical
variable {X : Type}
variables A B C D : set X
-- Here is a short, though laconic, Lean proof of Proposition 0.1.
example : A ∪ (B ∩ C) = (A ∪ B) ∩ (A ∪ C) :=
eq_of_subset_of_subset
(take x,
suppose x ∈ A ∪ (B ∩ C),
or.elim this
(suppose x ∈ A, and.intro (or.inl this... |
230e5d13a41f9400c2d65731456efe292620d616 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/manifold/partition_of_unity.lean | 7598e00e1f47955a24aa4d84b01b7ffeddf68aba | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 27,470 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import geometry.manifold.algebra.structures
import geometry.manifold.bump_function
import topology.metric_space.partition_of_unity
import topology.shrinking_l... |
4596274e419e183931abee2feae646676b1b8245 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/ring_theory/witt_vector/witt_polynomial.lean | 4d3d03cc81fb734332ff203d0c40eb921d806189 | [
"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 | 10,588 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import algebra.invertible
import data.mv_polynomial.variables
import data.mv_polynomial.comm_ring
import data.mv_polynomial.expand
import data.zmod.... |
3608451c3a5efa073f1e7f61e14fb563ceee08f8 | 90fa9fe9dea3618a11a131395140bd5365706e2b | /update.lean | 613e1e7b3df8831580f1dc7f5119432b3aea545f | [] | no_license | Grayson9352/fortnite | 5a303b0bb77724f70f3e3c45606ca0b2dec07fa1 | b9abbb9f1394ad1048c38e59dbcc3167b8c4f2dd | refs/heads/main | 1,682,798,000,276 | 1,621,638,863,000 | 1,621,638,863,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10 | lean | x\0040XaR
|
605be1ddd76f769fda5a061b0989c8564f6ac7a1 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/computability/partrec.lean | c5a3c13381e7391bfc1e22e347f8da9cf8fd813a | [
"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 | 28,206 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
The partial recursive functions are defined similarly to the primitive
recursive functions, but now all functions are partial, implemented
using the `roption` monad, and... |
4ae0a77f9b5da624a5333e5f603f8f2f6808b39d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/omega/nat/dnf.lean | 95e2507509282dbccaec996822d9105a67b5766e | [
"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 | 5,000 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
import data.list.prod_sigma
import tactic.omega.clause
import tactic.omega.nat.form
/-!
# DNF transformation
-/
namespace omega
namespace nat
open_locale omega.nat
@[simp] ... |
78868fa6e430bf04e26d4eb515c2d8c0d6e9fda1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/nilpotent.lean | 3acfd6222da00c6f4997bfc5a7e4439356bfbf85 | [
"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 | 38,017 | lean | /-
Copyright (c) 2021 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Ines Wright, Joachim Breitner
-/
import group_theory.quotient_group
import group_theory.solvable
import group_theory.p_group
import group_theory.sylow
import data.nat.fa... |
7eec421f1b0e258dedf1d23a0853b50b78c562eb | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/order/module.lean | 8c3ef26904dd8517b96a7f5b5ef0eb03cf329919 | [
"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 | 8,240 | 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, Yaël Dillies
-/
import algebra.order.smul
/-!
# Ordered module
In this file we provide lemmas about `ordered_smul` that hold once a module structure is present.
##... |
c77fec9c6d7a5310754ab3affbc06a21cdc95e44 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/complex/cauchy_integral.lean | 33d2020f4862446d7ee8210b0a8452413c5012ae | [
"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 | 36,596 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import measure_theory.measure.complex_lebesgue
import measure_theory.integral.divergence_theorem
import measure_theory.integral.circle_integral
import analysis.calc... |
26d99fb41ef0b2945af14770a139d028a171091d | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch5/ex0302.lean | 035d5e2842c32a56f14167b409b297462a96e719 | [] | 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 | 123 | lean | example (p q : Prop) : p ∧ q → q ∧ p :=
begin
intro h,
cases h with hp hq,
constructor, exact hq, exact hp
end
|
0c399334daae9a555a482fdfddc51947f882473a | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/ring_theory/polynomial/scale_roots.lean | 54db400530fb2bbac1eba2246d3451b04aecf761 | [
"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 | 5,040 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Devon Tuma
-/
import ring_theory.polynomial.basic
import ring_theory.non_zero_divisors
section scale_roots
variables {A K R S : Type*} [integral_domain A] [field K] [comm_... |
8aa976d24107834a4ab03155a2560bb1af5cbd68 | 98beff2e97d91a54bdcee52f922c4e1866a6c9b9 | /src/sieve.lean | df1741c9dbb977e80b331f0e9b01cb3cf95e5ffe | [] | no_license | b-mehta/topos | c3fc43fb04ba16bae1965ce5c26c6461172e5bc6 | c9032b11789e36038bc841a1e2b486972421b983 | refs/heads/master | 1,629,609,492,867 | 1,609,907,263,000 | 1,609,907,263,000 | 240,943,034 | 43 | 3 | null | 1,598,210,062,000 | 1,581,877,668,000 | Lean | UTF-8 | Lean | false | false | 9,542 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, E. W. Ayers
-/
import category_theory.over
import category_theory.limits.shapes.finite_limits
import category_theory.yoneda
import order.complete_lattice
import data.set.l... |
4f04b3ebd3d80911340c2b2f99a59a66ab7ce52f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/specific_groups/alternating.lean | c5922d72f872c53afe89f5bd65fa76993f2d3e96 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 15,200 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import group_theory.perm.fin
import tactic.interval_cases
/-!
# Alternating Groups
The alternating group on a finite type `α` is the subgroup of the permutation gr... |
2a1b340130ed159970fa67cc72921883c7e0ff51 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/tactic/modded.lean | 8ebede8e898b8802129eba0d7433386abb355dc5 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 3,612 | lean | -- modded induction', cases', rw'
-- *TODO* -- waiting for simon PR for symmetry'
import tactic.interactive
run_cmd mk_simp_attr `leakage
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:9001 := many
namespace tactic
namespace interactive
open interactive interactive.types expr
privat... |
4bc55b583c1b45b965e4606256642fd996bae92f | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/calculus/fderiv_analytic.lean | ce82fb6b3c0ca4a5bd40c80ee92b27b9873695a6 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 7,200 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.deriv
import analysis.analytic.basic
import analysis.calculus.cont_diff
/-!
# Frechet derivatives of analytic functions.
A function expre... |
5e349faeb6f877b06601aa0b50fd639743ef2800 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/nat/cast_field.lean | 756844efebfc6ab7371ec90e600788c6f74c4c3f | [
"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 | 1,904 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Yaël Dillies, Patrick Stevens
-/
import algebra.order.field
import data.nat.cast
/-!
# Cast of naturals into fields
This file concerns the canonical homomorphism `ℕ →... |
ab7706ce8cefc737e5ef966aacc94bd2cf9439cd | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/protected_test.lean | cf50ccde1804369a725b97bee6f45e23ecd5626c | [
"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 | 298 | lean | namespace nat
check induction_on -- ERROR
check rec_on -- ERROR
check nat.induction_on
check less_than_or_equal.rec_on -- OK
check nat.less_than_or_equal.rec_on
namespace le
check rec_on -- ERROR
check less_than_or_equal.rec_on
end le
end nat
|
a5aed87fc9c1cf07bb1267144a9c7762c4adb8b9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/add_torsor_bases.lean | e41165992a954136aafaebaac3e833e7402f9754 | [
"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 | 7,118 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.normed_space.finite_dimension
import analysis.calculus.affine_map
import analysis.convex.combination
import linear_algebra.affine_space.basis
/-!
# Bases i... |
514d03e960f6fb4134f3bdce3d656ad268a3adce | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/sizeof3.lean | 082352af8ada6424c3f0a568d5f49fe3abff4667 | [
"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 | 495 | lean | mutual
inductive AList (α β : Type u)
| nil
| cons (a : α) (t : BList α β)
inductive BList (α β : Type u)
| cons (b : β) (t : AList α β)
end
#print AList.nil.sizeOf_spec
#print AList.cons.sizeOf_spec
#print BList.cons.sizeOf_spec
mutual
inductive Foo (α : Type u)
| mk (cs : AList (Foo α) (Boo α... |
1db7b2186b7e4759ae6c2736300832374262ac17 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/interactive.lean | e64e4e054e37dbb64f15e22972e756006fd88b00 | [] | 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 | 32,920 | 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, Jannis Limperg
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.meta.type_context
import Mathlib.Lean3Lib.init.... |
f37878e32e0cd7037554435f79f92edec3644e4a | f608b09bd951f29eccb4c27187f55223000fa85f | /2020/lean/day1.lean | 60fc543ee72d7360a8073b692ce2646617f86c0b | [] | no_license | bobismijnnaam/advent-of-code | 9482d954b8f381b28a4823337e3688963fd05d6d | 471b9cad04eba7010da79416aef7a3218b1f4541 | refs/heads/master | 1,639,530,767,572 | 1,639,425,773,000 | 1,639,425,773,000 | 225,140,719 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,118 | lean | import .lovelib
import init.data.char.basic
namespace Day1
def search_helper : ℕ → ℕ → list ℕ → list (ℕ × ℕ)
| needle a (b :: bs) :=
if a + b = needle
then (a, b) :: search_helper needle a bs
else search_helper needle a bs
| _ _ [] := []
def search : ℕ → list ℕ → list (ℕ × ℕ)
| needle (n :: ns) := sear... |
e9d2463e0fecedb2bf47c65efc619006f7510f1c | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/basic.lean | b4e1bd06932af5c7aea037a02e83cecfb07240a0 | [
"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 | 23,015 | 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 analysis.normed.field.basic
import analysis.normed.group.infinite_sum
import data.matrix.basic
import topology.sequences
/-!
# Normed spaces
... |
180baf629721f3fed3097052725e27e47b3d4811 | c86b74188c4b7a462728b1abd659ab4e5828dd61 | /stage0/src/Lean/Data/Json/FromToJson.lean | ea956e438e9d4869e75c296548182f5dcdeffc4d | [
"Apache-2.0"
] | permissive | cwb96/lean4 | 75e1f92f1ba98bbaa6b34da644b3dfab2ce7bf89 | b48831cda76e64f13dd1c0edde7ba5fb172ed57a | refs/heads/master | 1,686,347,881,407 | 1,624,483,842,000 | 1,624,483,842,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,127 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Lean.Data.Json.Basic
namespace Lean
universes u
class FromJson (α : Type u) where
fromJson? : Json → Except String α
export FromJson (fromJ... |
304eec51715a99db694039f00d52060af23c0dc3 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/measure_theory/function/conditional_expectation/real.lean | e9f7021abe50c80683ca41820240116f30832e36 | [
"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 | 19,612 | lean | /-
Copyright (c) 2022 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Kexing Ying
-/
import measure_theory.function.conditional_expectation.indicator
/-!
# Conditional expectation of real-valued functions
This file proves some results reg... |
c100872341a86e1db315e241b0031cef939ce56e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/category/Ring/constructions.lean | d577bca1f06323b84c1eda30208a47d819fa2ea8 | [
"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 | 7,791 | 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 category_theory.limits.shapes.pullbacks
import ring_theory.tensor_product
import algebra.category.Ring.limits
import algebra.category.Ring.colimits
import category_t... |
199295d1ee4a5b2b52b53917e9e8ea12b021c91b | f47872278edfa65030d6cd0604480581b09ae4b5 | /src/ordered/between.lean | 4c37c96653a1162c256927538a8fc19fb553bd70 | [
"MIT"
] | permissive | ocornoc/geodude | c822c494d9ed5d6dd2efa434cbaa5e0e42c22691 | e63c87db67f1686c902e9bcd1863e74e1a29457f | refs/heads/master | 1,681,951,483,388 | 1,620,592,363,000 | 1,620,595,412,000 | 287,442,904 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,404 | lean | /-
Copyright 2020 Grayson Burton
License available in the LICENSE file.
-/
import data.set.basic tactic
private lemma {u} set_ins_comm {α : Type u} (x y : α) :
({x, y} : set α) = {y, x} :=
by simp [set.insert_def, or.comm]
/-- A strict betweenness relation. -/
class {u} has_betweenness (α : Type u) : Type u :=... |
7ea970a55e964327d2b921586297958d508a204a | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Elab/PreDefinition/WF/Eqns.lean | df87a094b3676c24459b108651691168c0e7e5cf | [
"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 | 9,991 | 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.Rewrite
import Lean.Meta.Tactic.Split
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.Eqns
namespace Lean.Elab.... |
bd357a3dfac6cf0770b3b45f7497713dd54985b0 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/uniform_space/cauchy.lean | 5f98409cb50a4e0b99d550d14dae854148dd64ce | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 16,084 | 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
Theory of Cauchy filters in uniform spaces. Complete uniform spaces. Totally bounded subsets.
-/
import topology.uniform_space.basic
open filter topol... |
93312575bf5f7e0d6fbd9bfe5ce7030d489dbe1d | 8e2026ac8a0660b5a490dfb895599fb445bb77a0 | /library/init/data/array.lean | 35f5ee82ddf16e7d3a518fb063b446972607e436 | [
"Apache-2.0"
] | permissive | pcmoritz/lean | 6a8575115a724af933678d829b4f791a0cb55beb | 35eba0107e4cc8a52778259bb5392300267bfc29 | refs/heads/master | 1,607,896,326,092 | 1,490,752,175,000 | 1,490,752,175,000 | 86,612,290 | 0 | 0 | null | 1,490,809,641,000 | 1,490,809,641,000 | null | UTF-8 | Lean | false | false | 3,713 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.nat
universes u w
structure array (α : Type u) (n : nat) :=
(data : fin n → α)
def mk_array {α} (n) (v : α) : array α n :=
{data ... |
591d8966e18812d434bf9dd1e389449ff0286378 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /examples/standard/constable.lean | 656b423e93594cacfc7683abea7cc0b6fe41c6e9 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,056 | lean | -- Theorems/Exercises from "Logical Investigations, with the Nuprl Proof Assistant"
-- by Robert L. Constable and Anne Trostle
-- http://www.nuprl.org/MathLibrary/LogicalInvestigations/
import logic
-- 2. The Minimal Implicational Calculus
theorem thm1 {A B : Prop} : A → B → A
:= assume Ha Hb, Ha
theorem thm2 {A B C ... |
9ad3e749ff560e55f0993ee4701df85e839654c3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/mv_polynomial/pderiv_auto.lean | e17664736f10cbfd101ee82848491f8e67daaf27 | [] | 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,286 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.mv_polynomial.variables
import Mathlib.algebra.module.basic
import Mathlib.tactic.ring
... |
ac851e31a32205ce4c3d2bb3fd499d28d80f7a4e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/list/range.lean | 7732a69fe75750502c2b5b2311a535736b5a4838 | [
"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 | 10,544 | 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
import data.list.zip
/-!
# Ranges of naturals as lists
This file sho... |
87fb2a747a0df2d0b18d86fe5639ac73b75e64ce | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/seq/wseq.lean | b0c0fd63a5f83a3850b8395551262c766b3697c2 | [
"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 | 54,991 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.seq.seq
import data.dlist
universes u v w
/-
coinductive wseq (α : Type u) : Type u
| nil : wseq α
| cons : α → wseq α → wseq α
| think : wseq α → ... |
2735ca7373daa1f313c3e12f71b7b49c1736224c | 9bf90df35bb15a2f76571e35c48192142a328c40 | /src/ch1.lean | 3da233a1020b17fe6e8113d0cf73c6997213b8ad | [] | no_license | ehaskell1/set_theory | ed0726520e84990d5f3180bafa0a3674ed31fb5e | e6c829c4dd953d98c9cba08f9f79784cd91794fb | refs/heads/master | 1,693,282,405,362 | 1,636,928,916,000 | 1,636,928,916,000 | 428,055,746 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,144 | lean | import logic
import set_theory.zfc
namespace Set
-- We have ext axiom. (Set.ext)
-- Set.eq_empty proves there is only one empty set (using extensionality).
-- We have pairing axiom. (Set.mem_pair)
theorem pair_commutative {x y : Set} : ({x, y} : Set) = {y, x} :=
begin
apply Set.ext,
intro z,
simp [Set.mem_pair]... |
a4fed8dffcc84e92941de012513465d97471553c | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/data/polynomial/derivative.lean | a71ed17d3a2dba13fa59f2303104f782f58e3a55 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 10,939 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.field_division
/-!
# Theory of univariate polynomials
-/
noncomputable theory
local attribute [... |
725aee19d70d1d9067a1d579c4cdd20b29e81cbe | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/measure_theory/measurable_space_def.lean | b7d688c5a87b16f8d09eba631de43ed70b7e39cf | [
"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 | 17,486 | 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 algebra.indicator_function
import data.equiv.encodable.lattice
import data.set.countable
import order.disjointed
import order.filter.basic
impo... |
ae1652394e6e2d2013301c356a7808ff87129192 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/finset/sort.lean | e306fdcb623afe23ec480d7b4ff9e570abb1356f | [
"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 | 10,465 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.finset.lattice
import data.multiset.sort
/-!
# Construct a sorted list from a finset.
-/
namespace finset
open multiset nat
variables {α β : Type*}
/-!... |
3e555f5d8a29b00758e142e7ed27711792680cfc | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/init/types/prod.hlean | be336c4e66abf986c1c0e311133e47595ce1cfef | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,590 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.types.prod
Author: Leonardo de Moura, Jeremy Avigad
-/
prelude
import ..wf ..num
definition pair := @prod.mk
namespace prod
notation A * B := prod A B
notation A × ... |
80d983704def8fd07aca4f9279907d1d479bc0eb | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/noc_list.hlean | 8b7cc1b0290eac472f99c2872e37b35658a26deb | [
"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 | 704 | hlean | set_option pp.universes true
check @not
inductive list (A : Type) : Type :=
| nil {} : list A
| cons : A → list A → list A
namespace list
open lift
theorem nil_ne_cons {A : Type} (a : A) (v : list A) : nil ≠ cons a v :=
λ H, down (list.no_confusion H)
theorem cons.inj₁ {A : Type} (a₁ a₂ : A) (v₁ v₂ : list... |
be014f8f385b98205a7456edf0d040c06d5160d5 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/calculus/affine_map.lean | 10a08f23164a3a954ea23294c3b65c7ab6b45e4b | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 913 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.normed_space.continuous_affine_map
import analysis.calculus.cont_diff
/-!
# Smooth affine maps
This file contains results about smoothness of affine maps.... |
004dd0b6dd862d53764875bf8a026fdb6b26ce60 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/simp_failIfUnchanged.lean | 995111a73be84a1b82359a5298458bbee7ae6c3e | [
"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 | 879 | lean | example (h : False) : False := by
fail_if_success
simp (config := { failIfUnchanged := true })
cases h
example (h : (a :: [b]).length = 3) : False := by
fail_if_success
simp (config := { failIfUnchanged := true }) only at h
simp (config := { failIfUnchanged := false }) only at h
simp (config := { fai... |
3d70fa9c826624b76619229ff7bf938853742841 | f1dc39e1c68f71465c8bf79910c4664d03824751 | /tests/lean/vm_override.lean | 4f109fa7ffa1e143c62115d069135ff3118edffa | [
"Apache-2.0"
] | permissive | kckennylau/lean-2 | 6504f45da07bc98b098d726b74130103be25885c | c9a9368bc0fd600d832bd56c5cb2124b8a523ef9 | refs/heads/master | 1,659,140,308,864 | 1,589,361,166,000 | 1,589,361,166,000 | 263,748,786 | 0 | 0 | null | 1,589,405,915,000 | 1,589,405,915,000 | null | UTF-8 | Lean | false | false | 8,738 | lean | /- Author: E.W.Ayers -/
meta def hello_override := `hello_override.name
@[vm_override hello_override] -- this means that the VM should replace the definition of `hello` with `hello_override` when evaluating.
meta def hello := `hello.name
#print hello -- should use `hello
#eval hello ... |
a7d56055cdec3bab422ed136688b0c6b43e208fd | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/1954.lean | 48b20bb4ec838743dd4076684c6fa2036637309c | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 99 | lean | def all (p : Nat → Prop) : Prop := ∀x, p x
example {p : Nat → Prop} (h : all p) : p 0 := h 0
|
34dac5e474b61d6858b004d1c0ca911289cc022b | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/category/Preorder.lean | f5ad17ec3141287740a768d88fed825a2031e30f | [
"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 | 945 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import order.preorder_hom
import category_theory.concrete_category
import algebra.punit_instances
/-! # Category of preorders -/
open category_theory
/-- The categ... |
7c56c2cb225c1d0e5b3619d9c537c6fde4b615f5 | fa94c6d0fc6f04b86b0d3ca6e6dea9dd87d28bc8 | /I.lean | 3e35602f0f2653b650c65c9b92dcf78818280485 | [] | no_license | tabsg/complexNoGame | 5e5cc6946b8e1e41023cf4af79f06060f2b355dd | 6d765d2e75e99ccab2dda70f44ff06aa286f5bdd | refs/heads/master | 1,657,040,370,406 | 1,590,094,335,000 | 1,590,094,335,000 | 265,948,577 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,554 | lean | /-
Copyright (c) 2020 The Xena project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kevin Buzzard
Thanks: Imperial College London, leanprover-community
The complex numbers, modelled as R^2 in the obvious way.
-/
import complex.basic -- tutorial level
/-!
# Level 1... |
edfdc0bd2a0bcaf786e32bb794fd825dcba69013 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/zmod/basic.lean | 665af70d088d4d7bbc698ce112410be1483a6c71 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 15,358 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.int.modeq data.int.gcd data.fintype data.pnat.basic
open nat nat.modeq int
def zmod (n : ℕ+) := fin n
namespace zmod
instance (n : ℕ+) : has_neg (zmod n) :... |
386276428381d2405bf821f23e2231a90ed9df0b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/pilex.lean | b578712d54a89c9a084c2b6a9c504e1c5e4953f6 | [
"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,660 | 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
/-!
# Lexicographic order on Pi types
This file defines the lexicographic relation fo... |
142df0e5aae733fa53961ad75cfe6625c64efbaa | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/logic/equiv/embedding.lean | 0d4e4832daf74c483da5b7ea840d3ee1e2a6aecd | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 3,711 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import logic.embedding
/-!
# Equivalences on embeddings
This file shows some advanced equivalences on embeddings, useful for constructing larger
embeddings from sma... |
8079deb81e5f4629498be4abaa79d7407929dc71 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/analysis/calculus/fderiv.lean | 97f4a5a3744cd11821781f6eeec7b228ac47254c | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 120,075 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
import analysis.normed_space.units
import analysis.asymptotic_equivalent
/-!
# The Fréchet de... |
92654df3f33ce2747d8ad69f9b1aca95924dcbc1 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/limits/shapes/constructions/limits.lean | e3d54ed670afb607430de2cbbf28efb67bd82681 | [
"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 | 54 | lean | -- TODO construct limits from products and equalizers
|
d4d6076c5a2567eeb001ff93d6dc3bcd8a0f6685 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/mvar_fvar.lean | 04ad2435b5a217cc8adb94253410160b1443319f | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 287 | lean | import Lean
new_frontend
open Lean
#eval (mkFVar `a).hasFVar
#eval (mkApp (mkConst `foo) (mkFVar `a)).hasFVar
#eval (mkApp (mkConst `foo) (mkConst `a)).hasFVar
#eval (mkMVar `a).hasMVar
#eval (mkApp (mkConst `foo) (mkMVar `a)).hasMVar
#eval (mkApp (mkConst `foo) (mkConst `a)).hasMVar
|
3fd07f2c8722439f00e4afc0279197a19073552a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/star/unitary.lean | f77c38d44449517d85191afedf8e39829c8359e6 | [
"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 | 4,752 | lean | /-
Copyright (c) 2022 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Shing Tak Lam, Frédéric Dupuis
-/
import algebra.star.basic
import group_theory.submonoid.membership
/-!
# Unitary elements of a star monoid
This file defines `unitary R`, where `R`... |
4c6d76a6f984374708580a82f35612b90db53abe | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/linear_pmap.lean | 121830900998db281bd2cc308caa3ca2c03a8ba6 | [
"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 | 29,896 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Moritz Doll
-/
import linear_algebra.basic
import linear_algebra.prod
/-!
# Partially defined linear maps
A `linear_pmap R E F` or `E →ₗ.[R] F` is a linear map from ... |
33a4b6621421e541a5982249d1a0a5a45362e3c0 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/concrete_category/basic.lean | aec43f92176106992c4bd40af2355510a1241581 | [
"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 | 6,927 | 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, Yury Kudryashov
-/
import category_theory.types
import category_theory.epi_mono
/-!
# Concrete categories
A concrete catego... |
7eab86e11472b2fdecc082cb5bbaba828a8d56a4 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Init/Data/Random.lean | 235ad0c6a025e52a8f72dfc5c0c2354a06bded8e | [
"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 | 4,119 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.System.IO
import Init.Data.Int
universes u
/-
Basic random number generator support based on the one
available on the Haskell library
-... |
03fd7848f17b3bb82cc1f755f53012819dd91938 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/measure_theory/measure/lebesgue.lean | c6977362895d192baae005c730932ee3d159a6fb | [
"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 | 25,539 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import measure_theory.constructions.pi
import measure_theory.measure.stieltjes
import linear_algebra.matrix.transvection
import dynamics.ergodic.meas... |
066c028a3a0b38a69a6817e3050e88d5f444e225 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finite/card.lean | e916fa3a0192777e3639afd6dd0432ff4a9aa973 | [
"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 | 7,432 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import set_theory.cardinal.finite
/-!
# Cardinality of finite types
The cardinality of a finite type `α` is given by `nat.card α`. This function has
the "junk value" of ... |
acbae331bf4306ce0495727d181e720224996dd5 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/hott/uuu.lean | d05878e5cec9fbcc79477833435f6f39ef335454 | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,313 | lean | -- Porting Vladimir's file to Lean
notation `assume` binders `,` r:(scoped f, f) := r
notation `take` binders `,` r:(scoped f, f) := r
inductive empty : Type
inductive unit : Type :=
| tt : unit
inductive nat : Type :=
| O : nat
| S : nat → nat
inductive paths {A : Type} (a : A) : A → Type :=
| idpath : paths a a
... |
04e5194dbf0b7e20ebc111529179b4a5369e50bd | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/data/list/alist.lean | 2e6ef05795c540184e1e5e23a682364de81c3619 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 6,135 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
Association lists.
-/
import data.list.sigma
universes u v w
open list
/-- `alist α β` is a key-value map stored as a linked list.
It is a wrapper aroun... |
217ef8b183da0a67e69ec34343ed3ef8b644f682 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/Top/epi_mono.lean | 4a501ce34e30bff6c65e0eb848421eff3219ffdd | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 874 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import topology.Top.adjunctions
import category_theory.epi_mono
universe u
open category_theory
open Top
namespace Top
lemma epi_iff_surjective {X Y : Top.{u}} (f : X ⟶... |
d68eabe2b1f90df1ec29a0976f54fdac2896a0f7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/simple_graph/coloring.lean | 7f71a8f81b713de492777d7782985e7470e89f73 | [
"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 | 15,599 | lean | /-
Copyright (c) 2021 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Kyle Miller
-/
import combinatorics.simple_graph.clique
import data.nat.lattice
import data.setoid.partition
import order.antichain
/-!
# Graph Coloring
> THIS FILE ... |
e9054d6f1a37831c068d9da2f98d0b7cc260de11 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/algebra/category/CommRing/default.lean | d76c4f6e805cf734f71f408914b7b3732913f0ab | [
"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 | 166 | lean | import algebra.category.CommRing.basic
import algebra.category.CommRing.adjunctions
import algebra.category.CommRing.limits
import algebra.category.CommRing.colimits
|
b8d94867082199a50488dfe7819f8dd3b2be6a56 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/dfinsupp.lean | f2113b76eae29122d79837073a19d53fa8478439 | [] | 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,071 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.dfinsupp
import Mathlib.linear_algebra.basic
import Mathlib.PostPort
universes u... |
b2ee49ac012d04f16fbc741c2935be5694c7c90b | 6e9cd8d58e550c481a3b45806bd34a3514c6b3e0 | /src/group_theory/subgroup.lean | 4310560c371ec4f42717f1ffaa8cc8f66daa8b6d | [
"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 | 31,663 | lean | /-
Copyright (c) 2020 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import group_theory.submonoid
/-!
# Subgroups
This file defines multiplicative and additive subgroups as an extension of submonoids, in a bundled
form (unbundled subgroup... |
1519b27fe2c220bdccce6b5e56da2c6b0594e37e | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/loop3.lean | 66fa873577545d73699a5bce56d34e06c8b3f217 | [
"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 | 1,202 | lean | variable vec : Nat → Type
variable concat {n m : Nat} (v : vec n) (w : vec m) : vec (n + m)
infixl 65 ; : concat
axiom concat_assoc {n1 n2 n3 : Nat} (v1 : vec n1) (v2 : vec n2) (v3 : vec n3) :
(v1 ; v2) ; v3 = cast (to_heq (congr2 vec (symm (Nat::add_assoc n1 n2 n3))))
... |
76a941cb361825da1ae4831b7994c98b4c106375 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/equiv/fin.lean | a5b14633c839716e9718708b56054b616850a179 | [
"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 | 17,688 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.fin.vec_notation
import logic.equiv.defs
/-!
# Equivalences for `fin n`
-/
universes u
variables {m n : ℕ}
/-- Equivalence between `fin 0` and `empty`. -/
def f... |
9d91c0b450777773cb45468d264d552dad398dce | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Elab/Command.lean | 14754ed5a90d1da6bc292e3c394e004ab4cca164 | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 20,777 | 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.Elab.Binders
import Lean.Elab.SyntheticMVars
namespace Lean.Elab.Command
structure Scope where
header : String
opts : Opti... |
7b3a90146b90bd17acdb82e776b37ac9d3e01a2e | 367134ba5a65885e863bdc4507601606690974c1 | /src/tactic/squeeze.lean | f684679e9cfec8a68c9d65abdde173929a7e23b7 | [
"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 | 14,732 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import control.traversable.basic
import tactic.simpa
open interactive interactive.types lean.parser
private meta def loc.to_string_aux : option name → string
| none := "⊢"... |
b1a57b1923607a827b77919fae1cc91995261280 | b9a81ebb9de684db509231c4469a7d2c88915808 | /src/super/simp.lean | 508ce93041d49712c9c32c5f1a4be40a8723e752 | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 1,505 | lean | /-
Copyright (c) 2017 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 ... |
f98c5d775dbcb35f725d1437cef97a09ffcc5365 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Xml.lean | 8c6ad55a2fc687ca9dda37b5913c2b2dc68ae99a | [
"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 | 55 | lean | import Lean.Data.Xml.Basic
import Lean.Data.Xml.Parser
|
6aa320abd4fbe5a5f6bd43f04a639a21a617252c | 4727251e0cd73359b15b664c3170e5d754078599 | /src/geometry/manifold/smooth_manifold_with_corners.lean | 3d2d6e9dd857a75af0b9f1d22348a028c406b21a | [
"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 | 41,232 | 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 analysis.calculus.cont_diff
import geometry.manifold.charted_space
/-!
# Smooth manifolds (possibly with boundary or corners)
A smooth manifold is a ma... |
27f5aa038115582a8b1843acfdcf39b34c8a5fba | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/sheaves/local_predicate.lean | a56463cec91acb6168bb7979052b35d54cfbb264 | [
"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,649 | 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, Adam Topaz
-/
import topology.sheaves.sheaf_of_functions
import topology.sheaves.stalks
import topology.local_homeomorph
import topology.sheaves.sheaf_c... |
52536da17efe46536ab23092f26c726a8c5f1a8d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/calculus/fderiv.lean | 762bbff7d4bd99e05dd5078c79d02e19abdecbb7 | [
"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 | 122,202 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
import analysis.normed_space.units
import analysis.asymptotics.asymptotic_equivalent
import an... |
4918a15841112fb882579cf95821d304e7077f13 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/LCNF/Testing.lean | c866486ee6d61659d5239328542e0f4933639af1 | [
"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 | 9,830 | lean | /-
Copyright (c) 2022 Henrik Böving. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henrik Böving
-/
import Lean.Compiler.LCNF.PassManager
import Lean.Compiler.LCNF.PrettyPrinter
namespace Lean.Compiler.LCNF
partial def Code.containsConst (constName : Name) (code : C... |
dff9dab3fca0ba180bab187676fb2b84c5bd8128 | 3aad12fe82645d2d3173fbedc2e5c2ba945a4d75 | /src/data/pointer.lean | 5a49267aa6cc114df31363898f220d575cf6ca47 | [] | no_license | seanpm2001/LeanProver-Community_MathLIB-Nursery | 4f88d539cb18d73a94af983092896b851e6640b5 | 0479b31fa5b4d39f41e89b8584c9f5bf5271e8ec | refs/heads/master | 1,688,730,786,645 | 1,572,070,026,000 | 1,572,070,026,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,370 | lean |
import tactic
import tactic.linarith
import tactic.norm_num
import data.sigma.fst
import category.basic
universes u
structure ref (α : Type u) : Type u :=
(addr : ℕ)
def value := Σ α : Type u, α
namespace intl
inductive st (α : Type u) : Type.{u+1}
| pure (x : α) : st
| new_ref {β : Type u} : β → (ref β → st) → s... |
b0fa80dfd9d3171baba374d390a670a513ee85b6 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/ftree.lean | e1631ea0ce958f2b0b314c32d634306a14ecc8a8 | [
"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 | 717 | lean | inductive List (T : Sort*) : Sort* | nil {} : List | cons : T → List → List
namespace explicit
inductive {u₁ u₂} ftree (A : Type u₁) (B : Type u₂) : Type (max 1 u₁ u₂)
| leafa : A → ftree
| leafb : B → ftree
| node : (A → ftree) → (B → ftree) → ftree
end explicit
namespace implicit
inductive ftree (A : Type) (B... |
be8db23c06a4a94e0f4adf553506c6e01fc8fe28 | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/limits/shapes/zero.lean | 54c2a6f22020c8ef64a34c54b0682705827c53a8 | [
"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 | 15,937 | 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 category_theory.limits.shapes.terminal
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.products
import category_theor... |
64aeff95da76b310c04cf9a1b65eef772196cab7 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/topology/sheaves/local_predicate.lean | 889b0255bf344b2999bc03dd522adb8cd0d0f363 | [
"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 | 16,278 | 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, Adam Topaz
-/
import topology.sheaves.sheaf_of_functions
import topology.sheaves.stalks
/-!
# Functions satisfying a local predicate form a sheaf.
At ... |
7181de674547eaef6b231544350d76eb87a6b50e | 41ebf3cb010344adfa84907b3304db00e02db0a6 | /uexp/tactic_paper_supplemental_material/robust_simp/robust_simp_caching_size.lean | beb8dbdf780f37983f24503d30fa03aac0c302de | [
"BSD-2-Clause"
] | permissive | ReinierKoops/Cosette | e061b2ba58b26f4eddf4cd052dcf7abd16dfe8fb | eb8dadd06ee05fe7b6b99de431dd7c4faef5cb29 | refs/heads/master | 1,686,483,953,198 | 1,624,293,498,000 | 1,624,293,498,000 | 378,997,885 | 0 | 0 | BSD-2-Clause | 1,624,293,485,000 | 1,624,293,484,000 | null | UTF-8 | Lean | false | false | 3,158 | lean | open tactic smt_tactic list expr
/-
The replace tactic above is very naive since it recomputes the size of
every subterm without using any cache. This produces a quadratic behavior.
The profiler will report the bottleneck at size.
We can address this performance bottleneck by using a cache.
-/
structure rsimp'_cfg :=... |
6bd49b4102fe07d44cad87b0ff73d43261836b28 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/pp_bug.lean | 20356864773299d49587b0feb6708a2e1bda97fa | [
"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 | 201 | lean | variables p q : Prop
check ¬(p → q)
check ¬p → q
check (¬p) → q
check ¬(p → q)
check p ↔ q
check ¬(p ↔ q)
check ¬p ↔ q
check (¬p) ↔ q
check (p → q) ↔ q
check p → (q ↔ q)
|
8c4cbd4a7c17c87d4a212c18ca28de1938cfcef8 | 958488bc7f3c2044206e0358e56d7690b6ae696c | /lean/hhg/constant.lean | 5b366c60238c2256e99c7853685865dcec8d5068 | [] | no_license | possientis/Prog | a08eec1c1b121c2fd6c70a8ae89e2fbef952adb4 | d4b3debc37610a88e0dac3ac5914903604fd1d1f | refs/heads/master | 1,692,263,717,723 | 1,691,757,179,000 | 1,691,757,179,000 | 40,361,602 | 3 | 0 | null | 1,679,896,438,000 | 1,438,953,859,000 | Coq | UTF-8 | Lean | false | false | 239 | lean | constants a b : ℤ
constant f : ℤ → ℤ
constant g : ℤ → ℤ → ℤ
--#check λ x : ℤ, g (f (g a x)) (g x b)
--#check λ x, g (f (g a x)) (g x b)
constant Trool : Type
constants Trool.true Trool.false Trool.maybe : Trool
|
5f36afa94f449342f415bc0d610380ebb0802284 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Init/Data/Nat/Basic.lean | eeda5f150d4ab84fd62a76988aa1bd7d98f36658 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,540 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import Init.SimpLemmas
universe u
namespace Nat
@[specialize] def foldAux {α : Type u} (f : Nat → α → α) (s : Nat) : Nat → α → α... |
136ec41d46ab8d4bae4b90efbec15208bf3ef11e | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/format.lean | d6f61cdbfd8c05da73d401f89df02ec0f4f446ce | [
"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 | 291 | lean | import system.io
open list
vm_eval pp ([["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"], ["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"],
["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"], ["aaa", "bbb", "ccc", "dddd", "eeeeee", "ffffff"]],
[(10:nat), 20, 30])
|
2c358569fbefea0b8e51f63435ab2d24f9ef25e5 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/tactic/norm_num.lean | 39b3a730fb2d06082d6b1c6a1ba2337d9d788cc4 | [
"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 | 60,988 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import data.rat.cast data.rat.meta_defs tactic.doc_commands
/-!
# `norm_num`
Evaluating arithmetic expressions including *, +, -, ^, ≤
-/
universes u v w
... |
e55de74b3f57c55984948a561d11d655e9d655f0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/ParseImportsFast.lean | bcb5d83427a078e9896593d89cdf541b55257bbb | [
"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 | 7,562 | 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.Parser.Module
namespace Lean
namespace ParseImports
structure State where
imports : Array Import := #[]
pos : String.Pos := 0
error?... |
1a9562af48aeba93fdff5fd23e7b3d29aed47c15 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/dedekind_domain/factorization.lean | ad23edb9a51f3a477007a938daa1f4a2a923591e | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,375 | lean | /-
Copyright (c) 2022 María Inés de Frutos-Fernández. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: María Inés de Frutos-Fernández
-/
import ring_theory.dedekind_domain.ideal
/-!
# Factorization of ideals of Dedekind domains
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.... |
6c030cbe56823c41424f94e120cc43cb32392e99 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/convex/basic.lean | 3dad458141c3a2775f2eeda5a97b424b450eb230 | [
"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 | 59,463 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, Yaël Dillies
-/
import data.complex.module
import data.set.intervals.image_preimage
import linear_algebra.affine_space.affine_map
import order.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.