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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b8f43a38b57b739301c2817c41d4ba3f42680b51 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/multiset/powerset.lean | a8a2131d9fcdc92e4e8ea8fb7511322043208eb2 | [
"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 | 9,244 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.multiset.basic
/-!
# The powerset of a multiset
-/
namespace multiset
open list
variables {α : Type*}
/-! ### powerset -/
/-- A helper function for t... |
8f4ea8bec97b3439d6afbe454fd456ee48b85440 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/nat/bitwise.lean | 569082b3ec093aa4bba070c0b3cde68ac9438465 | [
"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 | 9,283 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import tactic.linarith
/-!
# Bitwise operations on natural numbers
In the first half of this file, we provide theorems for reasoning about natural numbers from their
... |
78fb72e5ca162f1a5a439b86508717bc7aa871dc | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /tests/lean/run/check_constants.lean | e80d165dda1979215ba4b1cdcf837c1c6e8a553d | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,719 | lean | -- DO NOT EDIT, automatically generated file, generator scripts/gen_constants_cpp.py
import smt system.io
open tactic
meta def script_check_id (n : name) : tactic unit :=
do env ← get_env, (env^.get n >> return ()) <|> (guard $ env^.is_namespace n) <|> (attribute.get_instances n >> return ()) <|> fail ("identifier '" +... |
3ad0071fe8c0ce5327e931e672d9927ac60983c7 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/convex/specific_functions.lean | e61879d95d4e6a431f5ae7761ee6c28e9e15bec9 | [
"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 | 6,647 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Sébastien Gouëzel
-/
import analysis.calculus.mean_value
import data.nat.parity
import analysis.special_functions.pow
/-!
# Collection of convex functions
In this f... |
f960e1b8dc778b7b50628aee22977868d53e0f08 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/elements.lean | f2b481bc3ae3b2d9a6c3a5afa1377356fb8f0a20 | [
"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 | 4,424 | 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.comma
import category_theory.groupoid
import category_theory.punit
/-!
# The category of elements
This file defines the category of elements,... |
612e76ea4411847b9de28b26eb03c70e0bfbff9e | d1bbf1801b3dcb214451d48214589f511061da63 | /src/ring_theory/polynomial/basic.lean | 20d38c914768689fdb93ee91f8eb35266d84f539 | [
"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 | 33,690 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
# Ring-theoretic supplement of data.polynomial.
## Main results
* `mv_polynomial.integral_domain`:
If a ring is an integral domain, then so is its polynomial ring over finitel... |
dd20f6284d8745ba55dec46487dc560e6fbbde40 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/modAsClasses.lean | 564577f51e7484b2fe0c101aaf46ccdc4948232d | [
"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 | 146 | lean | class MyMod :=
(a : Nat)
namespace MyMod
variable [MyMod]
def b := a + 1
end MyMod
def myMod1 : MyMod := ⟨0⟩
#eval myMod1.a
#eval myMod1.b
|
4fb0bb7472b03285958e145fede36d14e5b4204b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/category/Rel.lean | 727ea2a9a114793f954a149c716c251710fdc3eb | [
"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 | 749 | 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.category.basic
/-!
The category of types with binary relations as morphisms.
-/
namespace category_theory
universe u
/-- A type synonym for... |
5f65a494b349ac3064673a57a54573c5173b93de | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/measure_theory/measurable_space.lean | 25f5bc86971fa50861623d78672441d15a34e078 | [
"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 | 45,356 | 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
Measurable spaces -- σ-algberas
-/
import data.set.disjointed
import data.set.countable
/-!
# Measurable spaces and measurable functions
This file def... |
504a62aa93068f22f459447ad53fb91337059e56 | 54d7e71c3616d331b2ec3845d31deb08f3ff1dea | /library/init/meta/match_tactic.lean | cf68ce78a69e00b48d03a17bd5040d2c1291a630 | [
"Apache-2.0"
] | permissive | pachugupta/lean | 6f3305c4292288311cc4ab4550060b17d49ffb1d | 0d02136a09ac4cf27b5c88361750e38e1f485a1a | refs/heads/master | 1,611,110,653,606 | 1,493,130,117,000 | 1,493,167,649,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,488 | 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.function
namespace tactic
meta structure pattern :=
/- Term to match. -/
(target : expr)
/- Set of universes that is i... |
9220667d5c5a4c6f8242a90a408f073055b8c87c | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/continuous_on.lean | 3aa825fdde92cde6c0b320c997000eb3d268ec31 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,962 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
* `nhds_within` of `nhds`
* `co... |
43b039d453deb5d1962017b6b7e3fdc1de6b346e | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/topology/instances/ennreal.lean | 2bba016e11933af78b329ae7e0171097fcc18bb2 | [
"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 | 39,504 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import topology.instances.nnreal
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter metric
open_locale classical
open_locale topologi... |
3947d0479cf156663da9d4c2d4f51072da164b4f | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/t2.lean | 9cc3da13a56f2e4184aefe032f1ca87946551653 | [
"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 | 201 | lean | universe variable l
universe variable u
print raw Type
print raw Type.{1}
print raw Type.{2}
print raw Type.{l+1}
print raw Type.{max l u 1}
print raw Type.{imax l+1 u 1}
print raw Type.{imax l+1 l u}
|
571f97fc5a12a1bdc787cb7022b374e73ea21e5a | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/tactic/algebra.lean | 6f915cd5370e9ef7f64966f675b4acac99d29d8b | [
"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 | 2,270 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.core
open lean.parser
namespace tactic
@[user_attribute]
meta def ancestor_attr : user_attribute unit (list name) :=
{ name := `ancestor,
descr := "ances... |
108e18a41bb52091b0343346dea117c4565db142 | f09e92753b1d3d2eb3ce2cfb5288a7f5d1d4bd89 | /src/for_mathlib/quotient.lean | 9d92e408563c2d169e8e6b0d0e3e660be711f609 | [
"Apache-2.0"
] | permissive | PatrickMassot/lean-perfectoid-spaces | 7f63c581db26461b5a92d968e7563247e96a5597 | 5f70b2020b3c6d508431192b18457fa988afa50d | refs/heads/master | 1,625,797,721,782 | 1,547,308,357,000 | 1,547,309,364,000 | 136,658,414 | 0 | 1 | Apache-2.0 | 1,528,486,100,000 | 1,528,486,100,000 | null | UTF-8 | Lean | false | false | 708 | lean | import data.set.basic
variables {α : Type*} {β : Type*} [s : setoid α]
namespace quotient
lemma prod_preimage_eq_image (g : quotient s → β) {h : α → β} (Hh : h = g ∘ quotient.mk) (r : set (β × β)) :
{x : quotient s × quotient s | (g x.1, g x.2) ∈ r} =
(λ a : α × α, (⟦a.1⟧, ⟦a.2⟧)) '' ((λ a : α × α, (h a.1, h a.2))... |
db322391464c0cf2d29ab9796a9dc3091c43dc67 | 0845ae2ca02071debcfd4ac24be871236c01784f | /tests/playground/arith_eval_nat.lean | e3ac8645add1f95bdab41fdfac7602ace3c3abab | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 378 | lean | inductive Expr
| Var : Nat → Expr
| Val : Nat → Expr
| Add : Expr → Expr → Expr
open Expr Nat
def mkExpr : Nat → Nat → Expr
| 0 v := Val v
| (succ n) v := Add (mkExpr n (v+1)) (mkExpr n (v-1))
def eval : Expr → Nat
| (Var x) := 0
| (Val v) := v
| (Add l r) := eval l + eval r
def main : IO UInt32 :=
IO.printl... |
399f2546f1dd43722f5c2f92e108097053ae88ef | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/analysis/complex/conformal.lean | ba7f3ab585a632803187bef05f85edece08cef91 | [
"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 | 4,859 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang
-/
import analysis.complex.isometry
import analysis.normed_space.conformal_linear_map
/-!
# Conformal maps between complex vector spaces
We prove the sufficient and necess... |
6ea6bba2be89fdb1846f578bb3eca510a1ebfb47 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/intro_at_least_one.lean | d384b3789a02b8f5a5942a5b85adbf887519052d | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 338 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import .repeat_at_least_once
open tactic
meta def intro_at_least_one : tactic (list string) :=
repeat_at_least_once intro1 >>= λ p, return ((p.1 :: p.2).map (λ ... |
0d2e3fa2bb07421f771680b3ffca873b543300bd | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftIdempotence.lean | 394afb1c54e8e4471991f3e172d663b79441f10d | [] | 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,198 | 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 LeftIdempotence
structure LeftIdempotence (A : Type) : Type :=
(linv : (A → (A → A)))
(idempotent_linv : (∀ {x : A} , (linv x x) = x))
open LeftIdempotenc... |
3bd4c24ea6e61dc953b14773e74db85dd2037d5e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/field_theory/tower.lean | 0f910682526e7ce1c0cf5c82cbc71ae6933c09ca | [
"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,069 | 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 ring_theory.algebra_tower
import linear_algebra.matrix.finite_dimensional
import linear_algebra.matrix.to_lin
/-!
# Tower of field extensions
In this file we prove th... |
a6994d8c76eb1954ecf143cb9343f3473662cd65 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/topology/basic.lean | 045b8a87ed9b5249fb4f8a04dae87936d0220872 | [
"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 | 51,784 | 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, Jeremy Avigad
-/
import order.filter.ultrafilter
import order.filter.partial
noncomputable theory
/-!
# Basic theory of topological spaces.
The main ... |
5e46293ab6bd1921be7b73c974fb3c02a9e0034b | 4ec0e92c725fad3fd2871a0ab050a7da1c719444 | /src/mywork/lecture_5 copy.lean | 1ef24870fba1204e1da20a86d64c4e5a72f6d12d | [] | no_license | mitchelltaylor06/cs2120f21 | cc2c2b61a7e45c07faa849fcb8a66eb948753a25 | efb71a748d7c76e24834d03b8f01c3ae084c1756 | refs/heads/main | 1,693,841,444,092 | 1,633,713,850,000 | 1,633,713,850,000 | 399,946,415 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,095 | lean | /-
INTRODUCTION and ELIMINATION RULES
-/
/-
For ∀ x, P x (every x has property P)
- introduction rule: assume arbitrary x, then show P x
- elimination rule: *apply* a proof of ∀ x, P x, as a
kind of function to a specific value of x, say k, to
produce a proof of P k.
-/
theorem silly : ∀ (n : ℕ), true :=
be... |
c54a8f65865778d198e736b613fb6bd4bc699016 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/group_theory/order_of_element.lean | 6826dc885b36c5c520454fd57843983b3b394083 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,057 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.order
import group_theory.coset
import data.nat.totient
import data.int.gcd
import data.set.finite
open function
open_locale big_operato... |
19c2f368cca79304292c7e138e862b567d3eab6d | ebbdcbd7ddc89a9ef7c3b397b301d5f5272a918f | /qp/p1_categories/c4_topoi/s2_nno.lean | 5b92adfa106d87471d4b5fc63163d92525bea262 | [] | no_license | intoverflow/qvr | 34b9ef23604738381ca20b7d622fd0399d88f2dd | 0cfcd33fe4bf8d93851a00cec5bfd21e77105d74 | refs/heads/master | 1,616,591,570,371 | 1,492,575,772,000 | 1,492,575,772,000 | 80,061,627 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,091 | lean | /- -----------------------------------------------------------------------
Natural numbers objects.
----------------------------------------------------------------------- -/
import ..c1_basic
namespace qp
open stdaux
universe variables ℓobj ℓhom
/-! #brief A category with NNO.
-/
class HasNNO (C : Cat.{ℓobj ℓhom}... |
3b937f6ee6bfadfbc5b3a87b4436cf3511cb7106 | 3b15c7b0b62d8ada1399c112ad88a529e6bfa115 | /tests/lean/run/mutwf1.lean | c57e1e63a927cc5a9f90a454ed3ac229b9c5c781 | [
"Apache-2.0"
] | permissive | stephenbrady/lean4 | 74bf5cae8a433e9c815708ce96c9e54a5caf2115 | b1bd3fc304d0f7bc6810ec78bfa4c51476d263f9 | refs/heads/master | 1,692,621,473,161 | 1,634,308,743,000 | 1,634,310,749,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 663 | lean | -- set_option trace.Elab.definition.wf true in
mutual
def f : Nat → α → α → α
| 0, a, b => a
| n, a, b => g a n b |>.1
def g : α → Nat → α → (α × α)
| a, 0, b => (a, b)
| a, n, b => (h a b n, a)
def h : α → α → Nat → α
| a, b, 0 => b
| a, b, n+1 => f n a b
end
termination_by
invImage
... |
0c44f41bb818e64ed11bad643e82df37af2fedfe | f02b05b665ad2d2cd970e93758a98d57f310a822 | /test/test.lean | 0520dd4f172a00e7db4c348e9a264eaead591962 | [] | no_license | khoek/leancache | b0ed5d2a9a2e87f58d4ad27343d957a9cd49ce5f | 5c8329f7b647b8d82966ab180c4473b20d1f249c | refs/heads/master | 1,585,344,140,717 | 1,549,094,327,000 | 1,549,094,327,000 | 147,138,187 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 761 | lean | import system.io
import tactic.where
import tactic.tcache
open tactic
theorem lol : 1 + 1 = 2 := begin
simp
end
theorem lol' (x : ℕ) : 1 = 1 := rfl
run_cmd (do
let n := `lol',
e ← get_env,
d ← e.get n,
let s := expr.deserialise d.type.serialise,
let t := expr.deserialise d.value.serialise,
-- tactic.t... |
5dc00b0acf89431af6c982fbb0bee1b26acf4b9b | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/extend_from_subset.lean | 6dfd5b7982ef99ff338091f7247bad6399056a35 | [
"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 | 4,104 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Anatole Dedecker
-/
import topology.separation
/-!
# Extending a function from a subset
The main definition of this file is `extend_from A f` where `f : X → Y`
and ... |
7f18e09b680a5d6df04eeb01b0ce8cf018594126 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/derivation.lean | e228ec8bb360b6a9bc0e72f64816245aae0f553d | [] | 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 | 12,052 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Nicolò Cavalleri.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.lie.basic
import Mathlib.ring_theory.algebra_tower
import Mathlib.PostPort
unive... |
946056ef4f3fe25730fbc0cb4c259a3714a1cd9a | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/calculus/tangent_cone.lean | ed6e5a6f44f5187b24ba26f79c5847abdccea055 | [
"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 | 16,686 | 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.convex.basic
import analysis.normed_space.bounded_linear_maps
import analysis.specific_limits
/-!
# Tangent cone
In this file, we define two p... |
09fcd4ba0639d622516f8c1b9d66be20064eaf72 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/mv_polynomial/variables.lean | b4f7d6e82a000562523a2357c77d09da69a63416 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 23,128 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import algebra.big_operators.order
import data.mv_polynomial.monad
import data.set.disjointed
/-!
# Degrees and variables of polynomi... |
66e670eefe797c9bd0635fad4650d90cd30fdadc | a2ee6a66690e8da666951cac0c243d42db11f9f3 | /src/algebra/lie/basic.lean | 261714f927036a7062683337609e459fc316a5d3 | [
"Apache-2.0"
] | permissive | shyamalschandra/mathlib | 6d414d7c334bf383e764336843f065bd14c44273 | ca679acad147870b2c5087d90fe3550f107dea49 | refs/heads/master | 1,671,730,354,335 | 1,601,883,576,000 | 1,601,883,576,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 42,228 | lean | /-
Copyright (c) 2019 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.algebra.basic
import linear_algebra.linear_action
import linear_algebra.bilinear_form
import linear_algebra.direct_sum.finsupp
import tactic.noncomm_ring
/-... |
1f22dd68f39aec32ee117543f59362a81cc7f1c7 | 9fbfc7e84d479e54de3c77b32724433407ea166b | /02_True_False/00_intro.lean | e7ecce29f66fd3ce62ea756bf9b980bc6a0dbca0 | [] | no_license | ryangreen1234/cs-dm | 86843939250350455a45e5b508e9d6906e6d4ac9 | 2fed37a845894188ce855b277b7fecda9b0e097d | refs/heads/master | 1,585,441,631,595 | 1,537,270,760,000 | 1,537,270,760,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,381 | lean | /-
So far, all of the propositions that we've
seen are in the form of assertions about
equalities: 0 = 0, 1 = 1, 2 + 3 = 4, and so
on. And we've seen how to prove propositions
of this kind (that are actually true) using
eq.refl and rfl as a shorthand.
We are now about to set out to explore the
different forms of propo... |
ff62970800aaa3f139b4beab0702b9198f8a89ae | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/filter/germ.lean | 5ea3b0b0975148a027ad60e9560a7a46e10fcc23 | [
"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 | 20,984 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov, Abhimanyu Pallavi Sudhir
-/
import order.filter.basic
import algebra.module.pi
/-!
# Germ of a function at a filter
The germ of a function `f : α → β` at a fi... |
82b4eca4165c9f0cd1034215bc9d9779837463b1 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/univInference.lean | 5944576fa225927eb61b7c7d1ce0d0113dcc0f0e | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,420 | lean | #lang lean4
universes w₁ w₂ w₃
namespace Struct
structure S1.{r, s} (α : Type s) : Type (max s r) :=
up :: (down : α)
def ex1.{u, v} (α : Type u) (σ : Type (max v u)) (h : σ = S1.{v, u} α) : True :=
trivial
structure S2.{u, v} (α : Sort u) (β : Sort v) :=
(a : α)
(b : β)
def ex2.{u, v} (α : Sort u) (β : So... |
d1798ca855599de32dd232060f8a0871dc7b5eef | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20161026_ICTAC_Tutorial/ex23.lean | a06acb7887302405f460ae256897985c47e5c8e5 | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 352 | lean | open list
check list -- Type u_1 → Type u_1
check @cons -- Π {A : Type u_1}, A → list A → list A
check @nil -- Π {A : Type u_1}, list A
check @head -- Π {A : Type u_1} [_inst_1 : inhabited A], list A → A
check @tail -- Π {A : Type u_1}, list A → list A
check @append -- Π {A : Type u_1}, list A → lis... |
518503d60f8ef10e45cd55bffe8e0d57bde59327 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/1631.lean | e9e7da2367d8dd29f02323a327914fd50bce654a | [
"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 | 43 | lean | constant c : ℕ
meta def t : expr := `(c)
|
56ddfc8cd5f7867c307784cbfed44bd6f68ca1ad | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/complex/roots_of_unity.lean | ac3d0e1e87b18004511d16864f39d0fcabda09f8 | [
"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,003 | 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 analysis.special_functions.complex.log
import ring_theory.roots_of_unity
/-!
# Complex roots of unity
In this file we show that the `n`-th complex roots of u... |
e6ae504be88d38675dcbe93601af0737fbbb0ca7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/free_module/strong_rank_condition.lean | 26fa94a29741c788853a7cb8009fc479706a893e | [
"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 | 2,888 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import linear_algebra.charpoly.basic
import linear_algebra.invariant_basis_number
/-!
# Strong rank condition for commutative rings
> THIS FILE IS SYNCHRONIZED ... |
6d36f4a7f46e0d7affbc0516e5cf712a46ed7ef4 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /test/run/ir/moduleRef.lean | 44c1ce7e45c42dab9ad8b6d14fa511fd73de1cb3 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 932 | lean | import Papyrus
open Papyrus
def assertBEq [Repr α] [BEq α] (expected actual : α) : IO PUnit := do
unless expected == actual do
throw <| IO.userError s!"expected '{repr expected}', got '{repr actual}'"
-- module renaming
#eval LlvmM.run do
let name1 := "foo"
let mod ← ModuleRef.new name1
assertBEq name1 (... |
5595f9a1f690fa0e0484f72dbc04ae1e305ae692 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /test/suggest.lean | c5b0854fec44aaea0a925516ec4229c0bb096d4e | [
"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 | 2,480 | lean | /-
Copyright (c) 2019 Lucas Allen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen
-/
import tactic.basic
open tactic
-- `suggest` fails if there are no goals.
example : true :=
begin
trivial,
success_if_fail { suggest },
end
example (a : Prop) : a ∨... |
01d64ef9b65aed604909c7108d7aa108d6551c9c | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /algebra/ring.lean | 1804c5724a38719f1d3f754b762d6c5add4a08f5 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,921 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn
-/
import algebra.group
universe u
variable {α : Type u}
section
variable [semiring α]
theorem mul_two (n : α) : n * 2 = n + n ... |
e8f02d998a38c95614796afd156b27ef9676962a | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/init/trunc.hlean | 4d07340912fae09be8f42de3ae89b0a9183d0afa | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,999 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Floris van Doorn
Definition of is_trunc (n-truncatedness)
Ported from Coq HoTT.
-/
--TODO: can we replace some definitions with a hprop as codomain by theorems... |
1513bb4d13e65b962e1d16c2eb0764666ca0e42e | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /data/seq/computation.lean | a43efa1b55711680e61242a00640dc5b1f71416b | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,580 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Coinductive formalization of unbounded computations.
-/
import data.stream data.nat.basic
universes u v w
/-
coinductive computation (α : Type u) : Type u
| retu... |
1c4c364419505f3b6ba9cc87375918d801635523 | 367134ba5a65885e863bdc4507601606690974c1 | /src/field_theory/intermediate_field.lean | 8647a74139a903d34a7033113daf158238754d40 | [
"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,647 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import field_theory.subfield
import field_theory.tower
import ring_theory.algebraic
/-!
# Intermediate fields
Let `L / K` be a field extension, given as an instance `alg... |
3c90ee24c4ac1db1e3a60da9b7ef1b7150ccfdca | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/ring_theory/multiplicity.lean | 7eab9638e2f13c4f428648e99ac55c02a1c9ddee | [
"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 | 17,427 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Chris Hughes
-/
import algebra.associated data.int.gcd algebra.big_operators
import tactic.converter.interactive
variables {α : Type*}
open nat roption
theorem nat... |
7dbd85170ccf047d339e8d82e10872f6759ee5ed | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/injection1.lean | 3a19ed4ac4b0440b9f3e1fc10d669c55bf02caa2 | [
"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 | 795 | lean | open nat tactic
inductive vec (A : Type) : nat → Type
| nil : vec nat.zero
| cons : ∀ {n}, A → vec n → vec (succ n)
example (n : nat) (v w : vec nat n) (a b : nat) : vec.cons a v = vec.cons b w → a = b :=
by do
intro `H,
H ← get_local `H,
injection H,
trace_state,
assumption
example (n : nat) (v w : vec n... |
10380729758e44130f799da89800eb545e13e6f8 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/topology/metric_space/basic.lean | 8d4bb372619910638e54b0378fde37fda83143f7 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 77,768 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
Many definitions and theorems expected on metric spaces are already introduced o... |
fb216d84ca097277c43b8b30bc05134be9b64bd5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/bad_class.lean | 171e5bf70914ae174c8fff56312f21fbe2562517 | [
"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 | 230 | lean | import logic
namespace foo
definition subsingleton (A : Type) := ∀⦃a b : A⦄, a = b
attribute subsingleton [class]
protected definition prop.subsingleton [instance] (P : Prop) : subsingleton P :=
λa b, !proof_irrel
end foo
|
fc1cbaeb78ea9c2f924a798fe0ce050d879a363d | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/constructions/pi.lean | 3a9e1723697b7f5e89f7bcd9c422f97f9e919c01 | [
"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 | 31,394 | 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.constructions.prod
import measure_theory.group.measure
/-!
# Product measures
In this file we define and prove properties about finite pro... |
79aad311a6fd1a74517c634a9f0cfe297748d0de | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/equiv/functor.lean | 82c58aee97e97fff202a31bed9a38aa9f098594e | [
"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 | 669 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Simon Hudon
-/
import data.equiv.basic
universes u v
variables {α β : Type u} {f : Type u → Type v} [functor f] [is_lawful_functor f]
open functor equiv function is_... |
2dcb24af4ec160cafa4a8c2f7054c61237dae0e1 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/sets_functions_and_relations/unnamed_550.lean | 7dacfb0812fddaa48f03fc91b58b3f7244ca182a | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 326 | lean | import data.nat.prime data.nat.parity
open nat
-- BEGIN
variables (s t : set ℕ) (ssubt : s ⊆ t)
include ssubt
example (h₀ : ∀ x ∈ t, ¬ even x) (h₁ : ∀ x ∈ t, prime x) :
∀ x ∈ s, ¬ even x ∧ prime x :=
sorry
example (h : ∃ x ∈ s, ¬ even x ∧ prime x) :
∃ x ∈ t, prime x :=
sorry
-- END |
05acc68f698d684253b141d29492355e415e987e | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/meta/attribute.lean | 7f99e108f393d4438119315fb6d293c11a1d0f5a | [
"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 | 818 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.tactic
meta_constant attribute.get_instances : name → tactic (list name)
meta_constant attribute.fingerprint : name → tactic nat
... |
96ad8ab74f92d1c8362a50ce1d887c5642ee64b5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/cast/with_top.lean | f80b27a9a94051f1855a252f90e4ab339ed58916 | [
"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 | 740 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.order.monoid.with_top
import data.nat.basic
/-!
# Lemma about the coercion `ℕ → with_bot ℕ`.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes... |
ac793936d9e2de890b01936f80030acb0d411db1 | 93b17e1ec33b7fd9fb0d8f958cdc9f2214b131a2 | /src/top/basic.lean | 404ae002c2d5f2aeb95cca0c84ef87afae8949ba | [] | no_license | intoverflow/timesink | 93f8535cd504bc128ba1b57ce1eda4efc74e5136 | c25be4a2edb866ad0a9a87ee79e209afad6ab303 | refs/heads/master | 1,620,033,920,087 | 1,524,995,105,000 | 1,524,995,105,000 | 120,576,102 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,380 | lean | /- Topological spaces
-
-/
namespace Top
universes ℓ ℓ₁ ℓ₂ ℓ₁₁ ℓ₂₂
structure Topology (A : Type.{ℓ})
: Type.{ℓ+1}
:= (OI : Type.{ℓ})
(empty : OI)
(whole : OI)
(inter : OI → OI → OI)
(union : set OI → OI)
(Open : OI → set A)
(Empty : Open empty = ∅)
(Whole : Open whole = set.univ)
(... |
ec49be77285198cf82e6a9390d10016b70f2e17c | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/MonadEnv.lean | 85c2706bfc635d14061ba6ea52892297be92e44f | [
"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 | 7,374 | 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.Environment
import Lean.Exception
import Lean.Declaration
import Lean.Util.FindExpr
import Lean.AuxRecursor
namespace Lean
def setEnv [MonadEn... |
5f2671df090bd8a2d37751afbbb82d4c1e819caf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/primes_congruent_one.lean | 68d6d0d28d4d576e1e1a602c19a2ed8f211ad36c | [
"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,093 | lean | /-
Copyright (c) 2020 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import ring_theory.polynomial.cyclotomic.eval
/-!
# Primes congruent to one
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corre... |
e626347ef9e496263314617e8591ea58371c62e8 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/ring_theory/valuation/basic.lean | a162efa7de26d98203c298e26b8bc13bad5affe9 | [
"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 | 14,509 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Johan Commelin, Patrick Massot
-/
import algebra.linear_ordered_comm_group_with_zero
import algebra.group_power
import ring_theory.ideal_operations
import ring_theory.s... |
d9dd4b16c7dc88d62d3ab5c14ffc0d7a31a0a7a9 | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Init/Data/Format/Basic.lean | add87c5e9301c604dfbc814c70dde2138dd5b41c | [
"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 | 11,309 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Control.State
import Init.Data.Int.Basic
import Init.Data.String.Basic
namespace Std
/-- Determines how groups should have linebreaks i... |
fc3ebaccee092f78de43128620b8388d96b56d86 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/defaultInstanceWithPrio.lean | 144a85c496803058327a6d4e14137947395cad43 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 271 | lean | structure Rational where
num : Int
den : Nat
inv : den ≠ 0
@[defaultInstance 200]
instance : OfNat Rational n where
ofNat := { num := n, den := 1, inv := by decide }
instance : ToString Rational where
toString r := s!"{r.num}/{r.den}"
#check 2 -- Rational
|
43eb18c3fbf326273b96a94aadc46f8c867bcc80 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/WF.lean | 472489ff1f4338d0ea99ff6638bd0f1ccaa6b7df | [
"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 | 11,945 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.SizeOf
import Init.Data.Nat.Basic
universe u v
inductive Acc {α : Sort u} (r : α → α → Prop) : α → Prop where
| intro (x : α) (h : (y... |
29b0f843de9173b445dcfc1ad054a101ec8a1838 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/rat_coe.lean | a911d2aea5631faf0dedea354cebfa92e67ca6b1 | [
"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 | 212 | lean | import data.rat
open rat int
attribute rat.of_int [coercion]
check (0 : ℚ)
check (rat.of_int 0 : ℚ)
constant f : ℚ → Prop
variable a : nat
check f 0
check f a
set_option pp.coercions true
check f a
|
6602dcf4e3ffdf2a80a0e2ed1fb8a39b70f0c395 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/linear_algebra/basis.lean | ae597f66d53995a523c08cc0021914e7c7b89be5 | [
"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 | 29,461 | 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
Linear independence and basis sets in a module or vector space.
This file is inspired by Isabelle/HOL's linear algebra, and hence indirectly by HOL Lig... |
549451c1d26b183f88a4803577a5c12d820bf83d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/matrix/absolute_value.lean | 3ebb90dbc68eba51c541c02e1439ff47ba2abfc3 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,981 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.int.absolute_value
import linear_algebra.matrix.determinant
/-!
# Absolute values and matrices
This file proves some bounds on matrices involving absolute val... |
062d7047170f66cced78e100e0afd85c23a99fbd | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/euclidean/angle/unoriented/right_angle.lean | b6f03ee3b34540e7afa1254485762b13c3b4f8f1 | [
"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 | 26,925 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import analysis.special_functions.trigonometric.arctan
import geometry.euclidean.angle.unoriented.affine
/-!
# Right-angled triangles
> THIS FILE IS SYNCHRONIZED WITH M... |
45db15beb1be904144f6fc9c6944602b4fac8ef1 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/hit/cylinder.hlean | 105732db2f72ef803eab7fb3f5b7ade6ebb0e4e8 | [
"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 | 2,864 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: hit.cylinder
Authors: Floris van Doorn
Declaration of mapping cylinders
-/
import .type_quotient
open type_quotient eq sum equiv
namespace cylinder
section
universe u
parameters... |
f28f71b3224798baac256327a442e0487cd1ce2a | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/algebra/homotopy_group.hlean | 0d0785427f1e9c3268259f9b244b7f8994b1dea5 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 12,794 | 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
homotopy groups of a pointed space
-/
import .trunc_group types.trunc .group_theory types.nat.hott
open nat eq pointed trunc is_trunc algebra group function equiv... |
782f85a555eb584a094ed16295c6d21742e319f1 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/order/filter/basic.lean | 2886d3e499b45c675a94f5917ba5b4b5fa71e6e5 | [
"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 | 110,854 | 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 control.traversable.instances
import data.set.finite
import order.copy
import tactic.monotonicity
/-!
# Theory of filters on sets
## Main defi... |
e8cba55a42632c6f2890d98e843106f8266c65be | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Lean/Parser/Level.lean | 98a0687fc103accf63f61cd32fb267d69a7868ed | [
"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 | 983 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Extra
namespace Lean
namespace Parser
builtin_initialize
registerBuiltinParserAttribute `builtinLevelParser `level... |
69c540368e24d386cd140574f760afa5bba192e9 | 97f752b44fd85ec3f635078a2dd125ddae7a82b6 | /library/data/list/basic.lean | 2d7bd1c37bd5371a8de5e407758d3ae531f4b613 | [
"Apache-2.0"
] | permissive | tectronics/lean | ab977ba6be0fcd46047ddbb3c8e16e7c26710701 | f38af35e0616f89c6e9d7e3eb1d48e47ee666efe | refs/heads/master | 1,532,358,526,384 | 1,456,276,623,000 | 1,456,276,623,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,373 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn
Basic properties of lists.
-/
import logic tools.helper_tactics data.nat.order data.nat.sub
open eq.ops nat prod... |
c649c48f9325229cf1a5ca1fecdc9e3f652266c7 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/measure_theory/function/ae_eq_of_integral.lean | dec0bd67e0568c6adfa5d999ee0e40364c84dd01 | [
"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,149 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.normed_space.dual
import measure_theory.function.strongly_measurable
import measure_theory.integral.set_integral
/-! # From equality of integrals to equ... |
983fafdbe7d0035aa1c2af561879072e2f597063 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/sets/opens.lean | c62938b5e73e3cc88366f49212133a5830f1244b | [
"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 | 10,684 | 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, Floris van Doorn
-/
import order.hom.complete_lattice
import topology.bases
import topology.homeomorph
import topology.continuous_function.basic
import ... |
491e3e1dde863a3922e7074da3b29acba6c4fb2b | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/algebra/big_operators/default.lean | 8a5bfa76c6e6ba70fcfdd4e6326e70a6c054ceeb | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 262 | lean | -- Import this file to pull in everything about "big operators".
-- When preparing a contribution to mathlib, it is best to minimize the imports you use.
import algebra.big_operators.order
import algebra.big_operators.intervals
import algebra.big_operators.ring
|
9febaedcb925e54afe2b07dea185fd5b4428030c | 618003631150032a5676f229d13a079ac875ff77 | /src/set_theory/game/short.lean | fe12a2cfb16f63b9494a1522a06dc78df56e46be | [
"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 | 8,689 | 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 set_theory.game
import data.fintype.basic
/-!
# Short games
A combinatorial game is `short` [Conway, ch.9][conway2001] if it has only finitely many positions... |
c0fa7cabda7c46e58fd13c6ee3f0562b750756b0 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/module/basic.lean | abe2872e1df6501438c407796acf201fefa4a765 | [
"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 | 25,916 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
-/
import algebra.big_operators.basic
import algebra.smul_with_zero
import data.rat.cast
import group_theory.group_act... |
7e87646807276ec3d0d0e765ced4419d0c7e43ee | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/ring2.lean | e035886136b18c086a492f05965f011cac821701 | [
"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 | 20,977 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.ring
import data.num.lemmas
import data.tree
/-!
# ring2
An experimental variant on the `ring` tactic that uses computational
reflection instead of pr... |
763642d601648b8a6916463539f3dadca8323e9d | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/control/reader.lean | 80c288c9f9eba10f891baf171ba741bb7423f3cf | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 4,974 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The reader monad transformer for passing immutable state.
-/
prelude
import init.control.lift init.control.id init.control.alternative init.control.except
un... |
698f62e1b7364a8a9992988700cf571e1397783e | 6329dd15b8fd567a4737f2dacd02bd0e8c4b3ae4 | /src/game/world1/level3.lean | 72e887b02e8e5a6883aa71f35adcd24e31912c8e | [
"Apache-2.0"
] | permissive | agusakov/mathematics_in_lean_game | 76e455a688a8826b05160c16c0490b9e3d39f071 | ad45fd42148f2203b973537adec7e8a48677ba2a | refs/heads/master | 1,666,147,402,274 | 1,592,119,137,000 | 1,592,119,137,000 | 272,111,226 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,090 | lean | import data.real.basic --imports the real numbers
import tactic.maths_in_lean_game -- hide
namespace calculating -- hide
/-
#Calculating
## Level 3: Another identity
-/
-- begin hide
/-
You can type the `ℝ` character as `\R` or `\real`
in the VS Code editor.
The symbol doesn't appear until you hit space or the tab k... |
65e0cf8c2cf6d3f9af99fffd71925f9cac80a628 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/computability/NFA.lean | ad1d62a6a20ef533c8f32d1ea6f493da9bb4f7aa | [
"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,117 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import computability.DFA
import data.set.functor
/-!
# Nondeterministic Finite Automata
This file contains the definition of a Nondeterministic Finite Automaton (NFA), a s... |
392ef811b36182ab567a283654df0100f93a48ed | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/data/fintype/basic.lean | 09842af7c29874ed5d8eeb3f008295ae2de1f95d | [
"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 | 52,301 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import tactic.wlog
import data.finset.powerset
import data.finset.lattice
import data.finset.pi
import data.array.lemmas
import order.well_founded
impor... |
1506b42313c082db1e5c62689a3ff25c0352c859 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/power_series.lean | 33039e1bd26392e6201e20f09cb3f9b65ce221d5 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 57,573 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau
-/
import data.mv_polynomial
import ring_theory.ideal_operations
import ring_theory.multiplicity
import tactic.linarith
/-!
# Formal power series
This file ... |
9be0a04117b5d6b2a8e761b8ddf3ca5c8fc00642 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/pfun.lean | b025eecb19ab2ef29e1236dfa3973927d0d8478c | [
"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 | 13,685 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Jeremy Avigad, Simon Hudon
-/
import data.part
import data.rel
/-!
# Partial functions
This file defines partial functions. Partial functions are like functions, exce... |
a7150eff10fff74fc267349aa01c3c942adb364e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/convex/combination.lean | 68fe35fa694d6fdfd6e22ef0d5b53dce8aa39114 | [
"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 | 19,792 | lean | /-
Copyright (c) 2019 Yury Kudriashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudriashov
-/
import algebra.big_operators.order
import analysis.convex.hull
import linear_algebra.affine_space.barycentric_coords
/-!
# Convex combinations
This file defines c... |
348de3bd9e13543e7c9dc19a05321d43da37c494 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/convex/intrinsic.lean | 5d36a26c91ffe206b8c4ec49bf286928f496bb48 | [
"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 | 14,086 | lean | /-
Copyright (c) 2023 Paul Reichert. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul Reichert, Yaël Dillies
-/
import analysis.normed_space.add_torsor_bases
/-!
# Intrinsic frontier and interior
This file defines the intrinsic frontier, interior and closure of a ... |
7f53db4233967585a78fbb1dd05de5a546228cd4 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/coe2.lean | 5e51984c1dcdd59418e9867afd65c610e3a02554 | [
"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 | 477 | lean | import logic
namespace setoid
inductive setoid : Type :=
mk_setoid: Π (A : Type), (A → A → Prop) → setoid
definition carrier (s : setoid)
:= setoid.rec (λ a eq, a) s
definition eqv {s : setoid} : carrier s → carrier s → Prop
:= setoid.rec (λ a eqv, eqv) s
infix `≈` := eqv
coercion carrier
induct... |
4070ef7ce9cdb30d93fa4b9232bc68a563856f00 | fbf512ee44de430e3d3c5869751ad95325c938d7 | /term.lean | 66aab41251d9109c8f90e16365f15fb86a27dd3e | [] | no_license | skbaek/clausify | 4858c9005fb86a5e410bfcaa77524f82d955f655 | d09b071bdcce7577c3fffacd0893b776285b1590 | refs/heads/master | 1,588,360,590,818 | 1,553,553,880,000 | 1,553,553,880,000 | 177,644,542 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,140 | lean | -- import .arity .list .logic
-- import .list
import .simp_fol
open tactic
variables {α β : Type}
structure model (α : Type) :=
(funcs : nat → list α → α)
(rels : nat → list α → Prop)
def func.default [inhabited α] (as : list α) : α :=
@inhabited.default _ _
def rel.default (as : list α) : Prop := false
def... |
4055d58392a2d5abfc890b8c3c8cda91e51e78ed | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Data/Lsp/InitShutdown.lean | dbcd29c90d88f4eadaae15eeb72894ae7091f8bc | [
"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 | 2,939 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Lsp.Capabilities
import Lean.Data.Lsp.Workspace
import Lean.Data.Json
/-! Functionality to do with initializing and shutting down
... |
e230bb31bbb5ebadeca520393d5a1fbb0254948d | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/model_theory/elementary_maps.lean | 16d9ded3ce40b6aaf76122f0178ef724be5adcb2 | [
"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 | 14,813 | lean | /-
Copyright (c) 2022 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.fintype.basic
import model_theory.substructures
/-!
# Elementary Maps Between First-Order Structures
## Main Definitions
* A `first_order.language.eleme... |
fdd6ba414596b72bf444e8abff0cc05bdefdcc25 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/types.lean | 95c68a53e2b69c0b38f809681e74dcfecc461c74 | [
"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 | 18,280 | 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.limits.types
import category_theory.limits.shapes.products
import category_theory.limits.shapes.binary_products
import category_theory.limits.s... |
4a1c1e8efa9cb10a727b87745326b97fa33b39fd | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-algebra-43.lean | 04444a601d348a21b3a8c8ca3edebcb339dc7199 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 323 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import data.real.basic
example (a b : ℝ) (f : ℝ → ℝ) (h₀ : ∀ x, f x = a * x + b) (h₁ : f 7 = 4) (h₂ : f 6 = 3) : f 3 = 0 :=
begin
rw h₀ at *,
linarith,
end
|
55b0f4b2580a843240993f27903895974f50c47c | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/metric_space/hausdorff_distance.lean | 3b0c53388f965868cc4286ffdfd3c41c2f9bd1fe | [
"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 | 32,151 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
The Hausdorff distance on subsets of a metric (or emetric) space.
Given two subsets `s` and `t` of a metric space, their Hausdorff distance is the smallest `d`
such... |
8e021f0feeb6e19e19743f4a0d69b1ef83de6fd5 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/homology/augment.lean | 0eed5748bf070bb696360da3ac58f3cce5f04b82 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 11,059 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.homology.single
/-!
# Augmentation and truncation of `ℕ`-indexed (co)chain complexes.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to thi... |
fbdbded66a2ede81e8bc9603efd64a3438b415e2 | 48f4f349e1bb919d14ab7e5921d0cfe825f4c423 | /fabstract/Bauer_A_InjBaireNat/fabstract.lean | e8aa8b7698ead968d53a87de8f4a9dba3b299142 | [] | no_license | thalesant/formalabstracts-2017 | fdf4ff90d30ab1dcb6d4cf16a068a997ea5ecc80 | c47181342c9e41954aa8d41f5049965b5f332bca | refs/heads/master | 1,584,610,453,925 | 1,528,277,508,000 | 1,528,277,508,000 | 136,299,625 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,530 | lean | import meta_data
.toposes
.realizability
namespace Bauer_A_InjBaireNat
noncomputable theory
def Bauer_A_InjBaireNat_paper : cite :=
cite.Document
{ title := "An injection from the Baire space to natural numbers",
authors := [{name := "Bauer, Andrej"}],
doi := "10.1017/S0960129513000... |
3ca8acede54c6d8acab2aa017b842f372354885c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/algebra/floor_ring.lean | d41574177c6cd35cfdf4ae5650cf3f6ab388dfcd | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,819 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import algebra.order.floor
import topology.algebra.ordered.basic
/-!
# Topological facts about `int.floor`, `int.ceil` and `int.fract`
This file proves statemen... |
e214e4d97a71e8a2a3d2b5833079ae7325b0a752 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/nat/dnf.lean | 45eb2f9c2f29762b12b35cd990f1973e508bd2b9 | [] | 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 | 2,693 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.clause
import Mathlib.tactic.omega.nat.form
import Mathlib.PostPort
namespace Mathlib
/... |
4f2e67ef8ff647d2db4d61c55bb0676ccbdb82cc | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/set/function.lean | 3cf851faa605ce95e7d308545654a8f99965c024 | [
"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 | 32,459 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov
-/
import data.set.basic
import logic.function.conjugate
/-!
# Functions over sets
## Main definitions
### Pr... |
07f6cbf50cedbe6ee8e7dc0d12c23ad6c5625aac | e1fb097d56131b99641125824bf370019b30ab6b | /Homework2.lean | d18a6546c2a29d50631f59ead7e02adc6e0361fa | [] | no_license | pcarey627/CS-2120-Base-Repository | fc18fc35b7d40928af7637625077abff6055271c | 434b2391b131e04cbc3be60dc0320639d0e20fb4 | refs/heads/main | 1,690,861,648,224 | 1,632,323,226,000 | 1,632,323,226,000 | 399,946,234 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,244 | lean | /-
Patrick Carey
jpc9rr
-/
/-
Prove the following simple logical conjectures.
Give a formal and an English proof of each one.
Your English language proofs should be complete
in the sense that they identify all the axioms
and/or theorems that you use.
-/
example : true := true.intro
--example : false := -- trick q... |
0c132fe12f28a682e820221de87c5b3c5111f3a0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Control/Reader.lean | b0e24e9aa4a16a5c5ad36165823f3b2e78b36e9d | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,100 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
The Reader monad transformer for passing immutable State.
-/
prelude
import Init.Control.Basic
import Init.Control.Id
import Init.Control.Except
namespace Re... |
43552dc5f4ee194a01ea96aa4213a5e1f1e31d84 | bb31430994044506fa42fd667e2d556327e18dfe | /src/topology/algebra/monoid.lean | 1d4acc363497c12d36d31bf9373f8d92b122240b | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 29,985 | 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.big_operators.finprod
import order.filter.pointwise
import topology.algebra.mul_action
import algebra.big_operators.pi
/-!
# Theory of... |
2d5cdd754f2e4abeaf6e7a9da10943942f8eb136 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/dedekind_domain/adic_valuation.lean | 62071a0d72b4ba3afd4aefbfcb40bdb3fb3204e1 | [
"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 | 15,736 | 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
import ring_theory.valuation.extend_to_localization
import ring_theory.valuation.valuation_su... |
d57169bfa89df68f9c14f7d35ad76115acee2d24 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/control/alternative.lean | f513479ec4339cf24d59eca0e4f7d4edd4fa2041 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,403 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.logic
import Mathlib.Lean3Lib.init.control.applicative
universes u v l
namespace Mathlib
class has_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.