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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
af766cf0f7a50bd2eb53f196688be243e4da9e89 | dc253be9829b840f15d96d986e0c13520b085033 | /algebra/exact_couple_old.hlean | 2d8a1ff0547fc525d03ffaa260fab2c72fdd85ce | [
"Apache-2.0"
] | permissive | cmu-phil/Spectral | 4ce68e5c1ef2a812ffda5260e9f09f41b85ae0ea | 3b078f5f1de251637decf04bd3fc8aa01930a6b3 | refs/heads/master | 1,685,119,195,535 | 1,684,169,772,000 | 1,684,169,772,000 | 46,450,197 | 42 | 13 | null | 1,505,516,767,000 | 1,447,883,921,000 | Lean | UTF-8 | Lean | false | false | 9,687 | hlean | /-
Copyright (c) 2016 Egbert Rijke. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Egbert Rijke, Steve Awodey
Exact couple, derived couples, and so on
-/
/-
import algebra.group_theory hit.set_quotient types.sigma types.list types.sum .quotient_group .subgroup .ses
... |
ac76895307845b28089e501ecd881b5e41625800 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/affine_space/basic.lean | 507249166ccb020e7894be7220fcc07bf2200e3e | [
"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 | 1,588 | 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 algebra.add_torsor
/-!
# Affine space
In this file we introduce the following notation:
* `affine_space V P` is an alternative notation for `add_torsor V P` int... |
ce64bddd7dba6fbc00e4e87f464e0ffcf6a846d5 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/indimp.lean | f921fc01376f13c587ece9e48d08d62f9501cedd | [
"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 | 509 | lean | prelude
definition Prop := Type.{0}
inductive nat :=
| zero : nat
| succ : nat → nat
inductive list (A : Type) :=
| nil {} : list A
| cons : A → list A → list A
inductive list2 (A : Type) : Type :=
| nil2 {} : list2 A
| cons2 : A → list2 A → list2 A
inductive and (A B : Prop) : Prop :=
and_intro : A → B → and A... |
69ae0c3c5739f90c764a53a0ef19521dcc103c63 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/adjoin/fg.lean | 12e288469c2f49c2593c0523c9b4e2852a2fe0ef | [
"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 | 7,004 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import ring_theory.polynomial.basic
import ring_theory.principal_ideal_domain
import data.mv_polynomial.basic
/-!
# Adjoining elements to form subalgebras
This file develops ... |
ce5e2377aa719d0572839df6ffe6f896f241a1b3 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/normed_space/hahn_banach/separation.lean | 934aa3335a8373ee966a7253233b1ce199778920 | [
"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 | 10,583 | lean | /-
Copyright (c) 2022 Bhavik Mehta All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Yaël Dillies
-/
import analysis.convex.cone
import analysis.convex.gauge
/-!
# Separation Hahn-Banach theorem
In this file we prove the geometric Hahn-Banach theorem. For ... |
b0ccdca560ab4aa51fc659542a99a90a30e0a33c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/measure_theory/measurable_space_auto.lean | 0f6d28aeef33fba654f965ec7aa94d6c1a7331ef | [] | 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 | 64,048 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.disjointed
import Mathlib.data.set.countable
import Mathlib.data.i... |
f6553153c98037075b5da23d0b370dc241a5163a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/smt/rsimp.lean | 5e6936c5dd7f2f170d98e30ad9566f4eb08be9ed | [] | 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,140 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.smt.smt_tactic
import Mathlib.Lean3Lib.init.meta.fun_info
import Mathlib.Lean3Lib.init.meta.rb_map
... |
3760b6d48d856670522cab2880bc20e2ef2bdac9 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/category/Semigroup/basic.lean | c15720d5749db7150e822a88e76cc6d3c46914d8 | [
"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 | 7,040 | lean | /-
Copyright (c) 2021 Julian Kuelshammer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Julian Kuelshammer
-/
import category_theory.concrete_category.bundled_hom
import category_theory.concrete_category.reflects_isomorphisms
import algebra.pempty_instances
/-!
# Cat... |
e1fda6380a2412c6cbff3fa8abfcae7a28d4a3e1 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/linear_algebra/matrix.lean | 06a849d7980554a1823de1e1d0da817744dbbbb6 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,657 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Patrick Massot, Casper Putz
-/
import linear_algebra.finite_dimensional
import linear_algebra.nonsingular_inverse
import linear_algebra.multilinear
import linear_algebra... |
fdc4e936796e8e500bf68903da103cbbfbf2827b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/integral/lebesgue_normed_space.lean | 04fc83750aa4b0e92e1205b4f8e02b9bc8c079f4 | [
"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,075 | lean | /-
Copyright (c) 2022 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 measure_theory.integral.lebesgue
import analysis.normed_space.basic
/-! # A lemma about measurability with density under scalar multiplication in normed... |
28c28d309aa4519bbc2321f1435dd6265d3777fa | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/univ_vars.lean | ceb61b9c7ffc36fdc0b3e3728a25b86c72a1696d | [
"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 | 426 | lean | --
set_option pp.universes true
universe variable u
variable A : Type.{u}
definition id1 (a : A) : A := a
check @id1
variable B : Type
definition id2 (a : B) : B := a
check @id2
universe variable k
variable C : Type.{k}
definition id3 (a : C) := a
check @id3
universe variables l m
variable A₁ : Type.{l}
variabl... |
1891f941953101686cd915a4194fceeb073ac3c2 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/rateval.lean | bc458ed64912934c47ae28443acdac27ddfc9d7a | [
"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 | 95 | lean | import data.rat
open nat int rat
attribute rat.of_int [coercion]
eval (8 * 6⁻¹) + (1:rat)
|
decb5a4d2aef6bc90d1611cb74d4dc84e217cb4e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/int/nat_prime.lean | 858bbf02db2ee325662bd6a9e571556418ec3bc8 | [
"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 | 479 | lean | /-
Copyright (c) 2020 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker, Bryan Gin-ge Chen
-/
import data.nat.prime
import data.int.basic
/-!
# Lemmas about nat.prime using `int`s
-/
open nat
namespace int
lemma not_prime_of_int_mul {a b... |
e402a2c79a2137e01c9e5c71f30a92bf09594ab6 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/mv_polynomial/rename.lean | 39c932d27906bbd44de07f88a92d49a989295946 | [
"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 | 8,929 | 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 data.mv_polynomial.basic
/-!
# Renaming variables of polynomials
This file establishes the `rename` operation on multivariat... |
0734b2d39c12ef377679113f514e08e259e685fc | 7b9ff28673cd3dd7dd3dcfe2ab8449f9244fe05a | /src/floris/solutions-library-building.lean | 6eb67ddf0aa0378483fa444e4ad3b7a80ff9f683 | [] | no_license | jesse-michael-han/hanoi-lean-2019 | ea2f0e04f81093373c48447065765a964ee82262 | a5a9f368e394d563bfcc13e3773863924505b1ce | refs/heads/master | 1,591,320,223,247 | 1,561,022,886,000 | 1,561,022,886,000 | 192,264,820 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,870 | lean |
import algebra.pi_instances
set_option old_structure_cmd true
universe variables u
#print ring
class rng (α : Type u) extends add_comm_group α, semigroup α, distrib α
instance ring.to_rng {α} [h : ring α] : rng α :=
{..h}
variables {α : Type u} [rng α] {a b c x y z w : α} {n m : ℤ}
example : (x + y) * (z + w) = x... |
7b98a7070162f68e980df7aa77571564e559a510 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Server/Rpc/Deriving.lean | ff44f57f4c90f3cd3d1139dc6d7ab11a96f8b8c8 | [
"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 | 5,516 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Elab.Command
import Lean.Elab.Term
import Lean.Elab.Deriving.Basic
import Lean.PrettyPrinter
import Lean.Server.Rpc.Basic
namespace Lean.Serv... |
6cfaa87fa25602b0f1b972c1032594013a0987f9 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/algebra/module/character_space.lean | d937e17b09bc933744117985aee392380337ab3b | [
"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 | 5,590 | lean | /-
Copyright (c) 2022 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import topology.algebra.module.weak_dual
import algebra.algebra.spectrum
/-!
# Character space of a topological algebra
The character space of a topological alge... |
7392a9e726e25e48893f58f4703c799c8c5594a9 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/integral/interval_average.lean | 450d4fe78d1a077bbcec7b661244a8c46a4cb752 | [
"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 | 1,978 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.convex.integral
import measure_theory.integral.interval_integral
/-!
# Integral average over an interval
In this file we introduce notation `⨍ x i... |
e36fba12e1745dc5e7014aacc6825c0c5d2e3305 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/special_functions/trigonometric/complex.lean | ddcc993a29a5f0ea466e30d6a36338d54c13cecd | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 9,439 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import algebra.quadratic_discriminant
import analysis.convex.specific_functions.deriv
/-!
# Complex tr... |
59f5f9e9bfe58931fea9bcbc1bc622dcd55b936d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/computability/tm_to_partrec.lean | aaf1d55083009100a7080aa78acfcaf9758adcfe | [
"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 | 80,652 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import computability.halting
import computability.turing_machine
import data.num.lemmas
import tactic.derive_fintype
/-!
# Modelling partial recursive functions usin... |
d736cb654f016ca38f638bcead9cb48c4e73258c | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/decl_olean.lean | 1b57faed064d06b32d4a9847248e9284b16c49d0 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 525 | lean | open tactic
def g : nat → nat :=
λ n, 0
meta def show_pos (n : name) : command :=
do env ← get_env,
pos ← returnopt (env^.decl_pos_info n),
olean ← returnopt (env^.decl_olean n) <|> return "current file",
trace $ to_string n ++ " was defined at " ++ olean ++ " : " ++ to_string pos
run_command show_pos `... |
c0bba714bd359c83ef01a4e61917f227f445d8d5 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/finite_dimension.lean | b24cf93f7ea0bfaa768b70c7550eabcbb941141e | [
"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 | 34,761 | 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.asymptotics.asymptotic_equivalent
import analysis.normed_space.add_torsor
import analysis.normed_space.affine_isometry
import analysis.normed_sp... |
ea3fd7fd69206da0635563610b3747e397ffa339 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/integral/lebesgue.lean | 10c2a1f86d3e7973f8bca742638faae1fd1f87ab | [
"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 | 142,008 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
-/
import measure_theory.measure.mutually_singular
import measure_theory.constructions.borel_space
import algebra.indicator_function
import algebra.suppo... |
b38fa66ae82e09fa88e82eee2f9057cdfbe0d989 | 6094e25ea0b7699e642463b48e51b2ead6ddc23f | /library/theories/analysis/real_limit.lean | 43ddbfba9c2154165ddea0ab374c684222200e94 | [
"Apache-2.0"
] | permissive | gbaz/lean | a7835c4e3006fbbb079e8f8ffe18aacc45adebfb | a501c308be3acaa50a2c0610ce2e0d71becf8032 | refs/heads/master | 1,611,198,791,433 | 1,451,339,111,000 | 1,451,339,111,000 | 48,713,797 | 0 | 0 | null | 1,451,338,939,000 | 1,451,338,939,000 | null | UTF-8 | Lean | false | false | 34,458 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
Instantiates the reals as a metric space, and expresses completeness, sup, and inf in
a manner that is less constructive, but more convenient, than the w... |
e6c68addfa433767c830389796bdc47540784ac7 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Util/FindMVar.lean | 620e1cb735fd8a8ca4c7df9b5cc03390d3f042c3 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 1,023 | 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.Expr
namespace Lean
namespace FindMVar
abbrev Visitor := Option MVarId → Option MVarId
mutual
partial def visit (p : MVarId → Bool) (e : Exp... |
f6d86cf52f3b2623d7fd1914f787ac7ae4e681be | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/set_theory/ordinal/fixed_point.lean | a8c1e5039b5b966d4564ee76f993c797f0beee0f | [
"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 | 23,270 | 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... |
f1a9781d636af122681c40a0fcea50dbbeeabd8a | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/probability_theory/density.lean | 023e94fc7f545e7a6e99e8193840874e9e2a7f31 | [
"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 | 18,207 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.decomposition.radon_nikodym
import measure_theory.measure.lebesgue
/-!
# Probability density function
This file defines the probability density func... |
17dea9d3d16cf71efd9ceacabd3abd7d6f15f258 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/sheaves/sheaf_condition/pairwise_intersections.lean | ac149316c32ed639724211930a831dea411ed96b | [
"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 | 14,328 | 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 topology.sheaves.sheaf
import category_theory.limits.preserves.basic
import category_theory.category.pairwise
/-!
# Equivalent formulations of the sheaf cond... |
ae18a7bc38155a6920bb0f203b58e7c6105dab8d | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/control/monad/writer.lean | efb120692325f41d7757ebe031626e8bbe1fc99a | [
"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 | 7,371 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
The writer monad transformer for passing immutable state.
-/
import control.monad.basic
import algebra.group.basic
universes u v w
structure writer_t (ω : Type u)... |
b4867e02151f30efd672f9d3d247b74a8b12e29e | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/topology/instances/real.lean | 821e528268e4ee5615ff3e61b8ead7b77e898870 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 18,829 | 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
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
65c1d481fc6ebc893c27eb3e879e2f3e7eec88de | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/simplifier15.lean | 6f619b176c85c591cc6f9ea031607509e56ca774 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 556 | lean | -- normalizing reducible non-subsingleton instances
import algebra.simplifier
open algebra
universe l
constants (T : Type.{l}) (s : algebra.comm_ring T)
constants (x1 x2 x3 x4 : T) (f g : T → T)
attribute s [instance]
set_option pp.all true
#simplify eq null 0 x1
#simplify eq null 0 x1 + x1
#simplify eq null 0 x1 + ... |
e37d06f3974c6e9daf3fa0b7e859d0926eebbb1c | b522075d31b564daeb3347a10eb9bb777ee93943 | /manifold/field.lean | 2521fc1c51da0a43a290b83b409d2a8cca21f869 | [] | no_license | truonghoangle/manifolds | e6c2534dd46579f56ba99a48e2eb7ce51640e7c0 | 9c0d731a480e88758180b31ce7c3b371771d426b | refs/heads/master | 1,638,501,090,139 | 1,557,991,948,000 | 1,557,991,948,000 | 185,779,631 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,837 | lean | /-
Copyright (c) 2019 Joe Cool. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Hoang Le Truong.
-/
import analysis.normed_space.basic
import pmap
open set vector real
local attribute [instance] classical.prop_decidable
noncomputable theory
universes u... |
62faf81f94e3b3e0ce5e6d04d8e03efcac0284e1 | 7b89826c26634aa18c0110f1634f73027851edfe | /natural-number-game/src/world02/level03.lean | ae3a93226052b99e1c17c6fbd58b51183bf10498 | [
"MIT"
] | permissive | marcofavorito/leanings | b7642344d8c9012a1cec74a804c5884297880c4d | 581b83be66ff4f8dd946fb6a1bb045d2ddf91076 | refs/heads/master | 1,672,310,991,244 | 1,603,031,766,000 | 1,603,031,766,000 | 279,163,004 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 336 | lean | import mynat.definition -- Imports the natural numbers.
import mynat.add -- imports addition.
namespace mynat -- hide
lemma succ_add (a b : mynat) : succ a + b = succ (a + b) :=
begin [nat_num_game]
induction b with d hd,
rw add_zero,
rw add_zero,
refl,
rw add_succ,
rw add_succ,
rw hd,
refl,
end
en... |
8aeb8fda06e727dd3edb809701531cfebef71711 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/sets_functions_and_relations/unnamed_522.lean | 95f4add0a54aa86b78d8542ab2f9452a0f81df5b | [] | 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 | 427 | lean | import data.nat.prime data.nat.parity
open nat
-- BEGIN
variable (s : set ℕ)
example (h₀ : ∀ x ∈ s, ¬ even x) (h₁ : ∀ x ∈ s, prime x) :
∀ x ∈ s, ¬ even x ∧ prime x :=
begin
intros x xs,
split,
{ apply h₀ x xs },
apply h₁ x xs
end
example (h : ∃ x ∈ s, ¬ even x ∧ prime x) :
∃ x ∈ s, prime x :=
begin
rc... |
e3642854e6df15c2ee6e59740551884e1caab2a2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/library_search/ordered_ring.lean | 9170a25d5a9a207c438394cb4f767dff97e26322 | [
"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 | 471 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.basic
import data.nat.order.basic
import algebra.order.ring.defs
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.s... |
ff0117989cd6a6b5d8117374dbea6fc4d6f778eb | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/is_true.lean | de6efedb69e0f37689bcc888d8b8ca5104b60b7e | [
"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 | 141 | lean | open nat
example : as_true (2 = (2:nat)) := trivial
example : as_false (3 = (2:nat)) := trivial
example : as_true (2 < (3:nat)) := trivial
|
9398d58a1d70d0ca3dff40087339cf809c094e77 | 8e31b9e0d8cec76b5aa1e60a240bbd557d01047c | /scratch/LP_operations_dual.lean | 9543b5e568a228436480212eb1798df8a65d06f2 | [] | no_license | ChrisHughes24/LP | 7bdd62cb648461c67246457f3ddcb9518226dd49 | e3ed64c2d1f642696104584e74ae7226d8e916de | refs/heads/master | 1,685,642,642,858 | 1,578,070,602,000 | 1,578,070,602,000 | 195,268,102 | 4 | 3 | null | 1,569,229,518,000 | 1,562,255,287,000 | Lean | UTF-8 | Lean | false | false | 36,305 | lean | import data.matrix.pequiv data.rat.basic tactic.fin_cases .argmin .partition2
open matrix fintype finset function pequiv
local notation `rvec`:2000 n := matrix (fin 1) (fin n) ℚ
local notation `cvec`:2000 m := matrix (fin m) (fin 1) ℚ
local infix ` ⬝ `:70 := matrix.mul
local postfix `ᵀ` : 1500 := transpose
section
u... |
dfdb28a29a1d35799e9539821e1b10906d4475a3 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/nat/basic.lean | d0f0710832970ecc4ca35240bbee5431c2e1f855 | [
"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 | 10,782 | lean | --- Copyright (c) 2014 Floris van Doorn. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Floris van Doorn, Leonardo de Moura
-- Basic operations on the natural numbers.
import .decl data.num algebra.binary
open eq.ops binary
namespace nat
definition of_num [... |
8d3d66e06dd6d1edb966b4b227f4ef665d1498cf | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/ring_theory/noetherian.lean | 503e539e3d4e45aa681dac4f0c6228b58a1a02fd | [
"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 | 23,124 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import ring_theory.ideal_operations
import linear_algebra.basis
/-!
# Noetherian rings and modules
The following are equivalent for... |
474d743104134af302a7ee8420a63e9bf10cbfd9 | 6fb1523f14e3297f9ad9b10eb132e6170b011888 | /src/2021/sets/sheet5.lean | 5ef57bb2518987e113f2f7d792e8be2935b7246a | [] | 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 | 3,146 | 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
/-!
# Sets in Lean, sheet 5 : subset (`⊆`), union (`∪`) and intersection (`∩`)
In this sheet we learn how to manipulat... |
c0430420b00a1f2be4d0ae2a2dff620269111347 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/PrettyPrinter/Parenthesizer.lean | dd881587875dff508aa09ec49f06df2045346096 | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,393 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-!
The parenthesizer inserts parentheses into a `Syntax` object where syntactically necessary, usually as an intermediary
step between the delaborator and the... |
deade849737b5105754f787587f2bf82323a2ec4 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Compiler/JoinPoints.lean | 7437ee96043b5fbae5d88f1699df3c82e73a666e | [
"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 | 2,754 | 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.CompilerM
namespace Lean.Compiler
namespace JoinPointChecker
def jpArity (jp : LocalDecl) : Nat :=
go jp.value
where
go : Expr → Nat
| .la... |
70f0b7e599ecfd8c818e7d2d683a9c72e56bf1d3 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/localization.lean | 9e1801cb5fae66b3f42f937d127be6cef0473866 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 83,801 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston
-/
import data.equiv.ring
import group_theory.monoid_localization
import ring_theory.algebraic
import ring_theory.ideal.local_ri... |
6bb3fcfc47fccdba1f9ba528655a5a5c7fcdad50 | f2fbd9ce3f46053c664b74a5294d7d2f584e72d3 | /src/power_bounded.lean | fe7deab8eb76b99d5e9597ccc4d6f0839e9d2193 | [
"Apache-2.0"
] | permissive | jcommelin/lean-perfectoid-spaces | c656ae26a2338ee7a0072dab63baf577f079ca12 | d5ed816bcc116fd4cde5ce9aaf03905d00ee391c | refs/heads/master | 1,584,610,432,107 | 1,538,491,594,000 | 1,538,491,594,000 | 136,299,168 | 0 | 0 | null | 1,528,274,452,000 | 1,528,274,452,000 | null | UTF-8 | Lean | false | false | 2,781 | lean | import analysis.topology.topological_space
import analysis.topology.topological_structures
import for_mathlib.topological_structures
import algebra.group_power
import ring_theory.subring
universe u
variables {R : Type u} [comm_ring R] [topological_space R] [topological_ring R]
/-- Wedhorn Definition 5.27 page 36 -/
... |
857de4a52208c8e386818603a8e134c64245c3c9 | ec62863c729b7eedee77b86d974f2c529fa79d25 | /19/b.lean | 139d6df105322ecbe922e707b0cc9096ce5f1e96 | [] | no_license | rwbarton/advent-of-lean-4 | 2ac9b17ba708f66051e3d8cd694b0249bc433b65 | 417c7e2718253ba7148c0279fcb251b6fc291477 | refs/heads/main | 1,675,917,092,057 | 1,609,864,581,000 | 1,609,864,581,000 | 317,700,289 | 24 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,031 | lean | import Std.Data.HashMap
open Std
inductive Production
| terminal : Char → Production
| nonterminal : List (List Nat) → Production
open Production
instance : Inhabited Production := ⟨terminal '@'⟩
instance : ToString Production where
toString
| (terminal c) => s!"\"{c}\""
| (nonterminal opts) => s!"{opts}"
d... |
3bc2d56af5e21bba3d40ff19de05799b0d47d175 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/category/alternative.lean | 03a65a73568328384871adbbde1a0c95d607e130 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 1,261 | 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
-/
prelude
import init.logic init.category.applicative
universes u v
class has_orelse (f : Type u → Type v) : Type (max u+1 v) :=
(orelse : Π {α : Type u}, f ... |
8d7d043eb0e0523748d1c9f7da866996f8795cc0 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/topology/metric_space/baire.lean | 348298fedc1b227190b7dacb8c7dbe636f8fe52e | [
"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 | 17,752 | 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.specific_limits.basic
import order.filter.countable_Inter
import topology.G_delta
import topology.sets.compacts
/-!
# Baire theorem
> THIS FIL... |
91ed924b9185e03a3128859259bcfc5d6eb32a6e | 618003631150032a5676f229d13a079ac875ff77 | /src/data/multiset.lean | 7b9f5142112bde71e995c6b5ae0939eaec4b1615 | [
"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 | 134,910 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Multisets.
-/
import data.list.sort
import data.list.intervals
import data.list.antidiagonal
import data.string.basic
import algebra.group_power
import algebra.or... |
ac7adbf0b5ad11af71f83366fa7cb833bbd0a14a | c777c32c8e484e195053731103c5e52af26a25d1 | /src/set_theory/ordinal/arithmetic.lean | a860ab829134ac8c172838bf2f83a656cfe9472d | [
"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 | 84,142 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn, Violeta Hernández Palacios
-/
import set_theory.ordinal.basic
import tactic.by_contra
/-!
# Ordinal arithmetic
> THIS FILE IS SYNCHRONIZED WITH MATH... |
8e0e886f96cbbe6664415bd8a50b921414c1eb97 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/tactic/subtype_instance.lean | c8010dfc1c9d8ebb8f9aa3fda4a53d80ffc7974f | [
"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 | 2,341 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Provides a `subtype_instance` tactic which builds instances for algebraic substructures
(sub-groups, sub-rings...).
-/
import data.string
import tactic.interactive tactic.al... |
f161affc9f6980d99b6443e938e7a86855a37417 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/group_theory/free_abelian_group.lean | b486b919a2efc96c75f6896d28917a95da5d920a | [
"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 | 12,776 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Free abelian groups as abelianization of free groups.
-- TODO: rewrite in terms of finsupp
-/
import algebra.group.pi
import group_theory.free_group
import group_theory.abeliani... |
2ecd67fedf6bc251dcded0ebffe12c5578a8e15a | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/algebra/big_operators/ring.lean | f255b955aacbc76b7fb958489c0d92f7ff9d7666 | [
"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 | 6,887 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.basic
import data.finset.pi
import data.finset.powerset
/-!
# Results about big operators with values in a (semi)ring
We prove results... |
ebb266c50bb2c8f1c4d48547f9a9cdff287f60f7 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /field.lean | f933be725698210813852f2a94cb5646a4c419ce | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,314 | lean | import data.fintype tactic.find data.set.finite ring_theory.subring data.nat.choose tactic.find
open tactic expr lean interactive interactive.types
open set finset
meta def fold_test : expr → tactic (list (nat × string)) :=
λ e, do let l := e.fold [] (λ e n l, (n, e.to_string) :: l),
trace l, return l
meta def fold... |
df1846906abc708c98931eabe411f0786992bb27 | 4309b17a35495daf93ecb4abf8a4e7bfd8d4c7d6 | /q3.lean | 312e5b77837a24dd6c1fbe5eb8e2eac1677d5cd7 | [] | no_license | lbarrios/lean_rio2016 | 7533184d3f186ba66351d5ca9eb4b0c7fcbb02a2 | eb34c5d9cc1396d08d6641e57308a357ea030d1a | refs/heads/master | 1,610,270,235,983 | 1,456,692,208,000 | 1,456,692,208,000 | 52,373,073 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 741 | lean | -------------------------------------------------------
-- Question 3: Prove the equality type defined below
-- is symmetric, transitive ad congruent.
-- Replace the 'sorry' placeholders by actual proofs.
-------------------------------------------------------
inductive Eq {A : Type} (a : A) : A → Prop :=
Refl : Eq a ... |
1fd04eeaaaeb9c9fc105127f0ac5882a9b35aa09 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/data/mv_polynomial/equiv.lean | 1e8ad659066d4ae4c27230c58f778874a5d0f4a8 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,753 | 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 data.mv_polynomial.rename
import data.equiv.fin
import data.polynomial.algebra_map
/-!
# Equivalences between polynomial ring... |
77344cd87ce8e1dfdb5c87cc10915d1f7558eac4 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/char_poly/coeff.lean | cd3b3103d7c0599e322220b8dbabb89d45dd58e5 | [
"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 | 9,627 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import data.matrix.char_p
import linear_algebra.char_poly.basic
import linear_algebra.matrix
import ring_theory.polynomial.basic
import alg... |
1c85d457823f6f5c991f2508c0ed7f3fb7e6cff2 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/group_theory/subgroup.lean | a2aeaaef06fac8a7caf211e858494cd1bbbe8c64 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 35,679 | 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, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro,
Michael Howes
-/
import group_theory.submonoid
open set function
variables {α : Type*} {β : Type*} {... |
fa9bcdae12aa11c96eeeb02f41315010aa9e5308 | 76ce87faa6bc3c2aa9af5962009e01e04f2a074a | /01_Equality/05_automation.lean | 73cba33fe874d58da459d3239275dbe21c50a98c | [] | no_license | Mnormansell/Discrete-Notes | db423dd9206bbe7080aecb84b4c2d275b758af97 | 61f13b98be590269fc4822be7b47924a6ddc1261 | refs/heads/master | 1,585,412,435,424 | 1,540,919,483,000 | 1,540,919,483,000 | 148,684,638 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,689 | lean | /-
In Lean and related proof assistants, such
as Coq, you can obtain proofs not only by
applying inference rules, such as eq.refl,
directly, but also by using programs, called
tactics, that automate some of the details
of finding and applying inference rules or
sequences of such rules.
As an example, we look at the "r... |
2c2d9aa14ee039f27ba92fe59f78345ea2048bcf | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/algebra/infinite_sum.lean | e18db0aa856363bd5444b2088148b4f3733b3d90 | [
"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 | 28,909 | 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
Infinite sum over a topological monoid
This sum is known as unconditionally convergent, as it sums to the same value under all possible
permutations. For Euclidean spa... |
c23ee2a2163edc23f6cb20dcf1a3dbfd38a1404f | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/convex/cone.lean | 0f016eef646be60d2354bc03c3ae6e74a071de52 | [
"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 | 22,752 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis
-/
import linear_algebra.linear_pmap
import analysis.convex.basic
import order.zorn
/-!
# Convex cones
In a vector space `E` over `ℝ`, we define a co... |
119858f4b13b879b8b5602095ce83683dc149693 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/typevec.lean | 3cff22b11ba1726b335c1a17c24c496a209ccf5a | [
"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 | 23,580 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Mario Carneiro, Simon Hudon
-/
import data.fin2
import logic.function.basic
import tactic.basic
/-!
Tuples of types, and their categorical structure.
Features:
`typeve... |
c5acb699769ffe2d98c77c1f86a664195867b09f | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /bluejam/chap5_exercise5.2.lean | 15f8cdd7a02f92b66fd548b3983d194fcbfe0d7b | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 376 | lean | example (p q r : Prop) (hp : p) :
(p ∨ q ∨ r) ∧ (q ∨ p ∨ r) ∧ (q ∨ r ∨ p) :=
begin
split,
left,
assumption,
split,
right,
left,
assumption,
right,
right,
assumption
end
example (p q r : Prop) (hp : p) :
(p ∨ q ∨ r) ∧ (q ∨ p ∨ r) ∧ (q ∨ r ∨ p) :=
by repeat { split <|> { try {left}, a... |
0f368bfde6e7054bd60d299b5e53f62e35c7df84 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/ring_theory/subring.lean | 1842004437d8d1098d7925608bc269b43740cc79 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,638 | lean | /-
Copyright (c) 2020 Ashvni Narayanan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ashvni Narayanan
-/
import group_theory.subgroup.basic
import ring_theory.subsemiring
/-!
# Subrings
Let `R` be a ring. This file defines the "bundled" subring type `subring R`, a... |
71c51e8d21c8bc8c224f1e45c9761080439189ec | fee8816941b0866a7c80c74ae9980f8d8df621b7 | /src/def.lean | 458255f7e6780d708e7e4c6157ba0c7206b7c65a | [] | no_license | wudcscheme/eudoxus | 2b69a84b17c5bc0cbdcd24768daef6919aa9275d | 8425b3ec28306fc55189899932bcb634038f22ba | refs/heads/master | 1,679,220,058,239 | 1,613,303,482,000 | 1,613,303,482,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 83,516 | lean | import tactic
import group_theory.quotient_group
import algebra.archimedean
import order.conditionally_complete_lattice
open_locale classical
def df (f : ℤ → ℤ) : ℤ → ℤ → ℤ := λ p q, f (p + q) - f (p) - f (q)
def almost_homo (f : ℤ → ℤ) : Prop := ∃ C, ∀ p q, abs (df f p q) < C
@[simp] lemma df_eq (f : ℤ → ℤ) (p q ... |
602fdee18b42005ff51cb6bec068fd33089c9d4a | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/ring_exp.lean | 73afe1218a955d45816b810ac1d818c9ea36652b | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 54,911 | lean | /-
Copyright (c) 2019 Tim Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Tim Baanen.
Solve equations in commutative (semi)rings with exponents.
-/
import tactic.norm_num
/-!
# ring_exp tactic
A tactic for solving equations in commutative (semi)rings,
wh... |
3d942528601910ca1c8458d1d7e768e2df4d63eb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/closed/types.lean | 13cb03e263bf34347c4e6507f7634600c8ac0a9e | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,863 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.presheaf
import category_theory.limits.preserves.functor_category
import category_theory.limits.shapes.types
import category_theory.closed.c... |
8dc89c9138af183757b5e1fd05763a94916adde9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/forOutParamIssue.lean | 03c4a784f5c2bc16b915a37b0f9be5c4cbf3b166 | [
"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 | 512 | lean | namespace Ex
class GetElem (Cont : Type u) (Idx : Type v) (Elem : outParam (Type w)) where
getElem (xs : Cont) (i : Idx) : Elem
export GetElem (getElem)
instance : GetElem (Array α) Nat α where
getElem xs i := xs.get ⟨i, sorry⟩
opaque f : Option Bool → Id Unit
def bad2 (bs : Array Bool) (n : Nat) : Id Unit := d... |
001825bbcf51889087e53b17ec54680168259395 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/order/boolean_algebra.lean | f927a320dc17ab81d161c70dbcdd5c5befaf25db | [
"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 | 3,867 | 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
Type class hierarchy for Boolean algebras.
-/
import order.bounded_lattice logic.function
set_option old_structure_cmd true
universes u
variables {α : Type u} {w x y z... |
30ad4f70fb4eaa221ec1a2af9a21e7f7d36a4534 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/dist.lean | 318fa77a2ba140a221a5b6cabae466ba855c2ffc | [
"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 | 4,251 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
-/
import data.nat.order.basic
/-!
# Distance function on ℕ
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresp... |
d4a50e25371fd8443e41442271bd046f03b62289 | e5169dbb8b1bea3ec2a32737442bc91a4a94b46a | /hott/homotopy/join.hlean | b17b07dcbc40835541cc7c930e70b637a3e4e467 | [
"Apache-2.0"
] | permissive | pazthor/lean | 733b775e3123f6bbd2c4f7ccb5b560b467b76800 | c923120db54276a22a75b12c69765765608a8e76 | refs/heads/master | 1,610,703,744,289 | 1,448,419,395,000 | 1,448,419,703,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,801 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer
Declaration of a join as a special case of a pushout
-/
import hit.pushout .susp
open eq prod equiv pushout is_trunc bool
namespace join
definition join (A B ... |
185cba122ff9674196ef4d31e5ba6a6846f90a78 | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/environment/environment.lean | a16a54c3eb805e3c7267cbe49bc47c636ec60cee | [] | no_license | kevinsullivan/lang | d3e526ba363dc1ddf5ff1c2f36607d7f891806a7 | e9d869bff94fb13ad9262222a6f3c4aafba82d5e | refs/heads/master | 1,687,840,064,795 | 1,628,047,969,000 | 1,628,047,969,000 | 282,210,749 | 0 | 1 | null | 1,608,153,830,000 | 1,595,592,637,000 | Lean | UTF-8 | Lean | false | false | 900 | lean | import ..expressions.math_expr
import ..expressions.time_expr
namespace env
variables (K : Type*) [field K] [inhabited K]{f : fm K TIME} {sp : spc K f}
/-
SINGLE ENVIRONMENT FOR FRAME AND SPACE
-/
structure env :=
(t : lang.time.env sp)
(m : @lang.math.env K _ _ f)
--env K is the type we want, not env K w x y... |
ab9c32507d52b666a025f750dd3987d462376221 | 728ca5ef71486662e7040582143d75c8b4e0ee07 | /src/main.lean | 361f529a69a59e5d4de5f0571a8578202db96644 | [] | no_license | Lix0120/Type_Theory_of_Lean | be07923e46e2c232c1f384deeb92a18edfe9f1b7 | 16808af9b3a74dd5e05bc49d0146f79379c40e7f | refs/heads/master | 1,671,044,644,000 | 1,598,367,981,000 | 1,598,367,981,000 | 290,243,740 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,059 | lean | inductive lev : Type
| univ_var : ℕ → lev
| zero : lev
| S : lev → lev
| max : lev → lev → lev
| imax : lev → lev → lev
namespace lev
instance : has_zero lev := ⟨lev.zero⟩
def subst : lev → ℕ → lev → lev
| (univ_var u) v l := if u = v then l else univ_var u
| 0 v l := 0
| (S l1) v l := S (subst l1 v l)
| (max l1 ... |
75877bdeeb49544ca34040ff8fe6af36536d7711 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/trace_tst.lean | 8dc56d59e3919fe6e1b32413d4f7bcb5afe1b1e6 | [
"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 | 57 | lean | open nat
vm_eval trace "step1" (trace "hello" (succ 3))
|
f5de96a957de98a07a94f24957db4af44ff6117d | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Elab/ElabRules.lean | b696620a7dbc27af0e63240aff8b1b86c58eef38 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 5,084 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.MacroArgUtil
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
def withExpectedType (expectedType? : Opt... |
0502d063ae289baf8fc2ce92e2382d433a77fad3 | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/Mbar/Mbar_le.lean | 2d83acbbc0e02cd1353f834522965ec5760764f9 | [] | no_license | mr-infty/lean-liquid | 3ff89d1f66244b434654c59bdbd6b77cb7de0109 | a8db559073d2101173775ccbd85729d3a4f1ed4d | refs/heads/master | 1,678,465,145,334 | 1,614,565,310,000 | 1,614,565,310,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,574 | lean | import data.fintype.card
import facts
import hacks_and_tricks.type_pow
import Mbar.basic
import pseudo_normed_group.profinitely_filtered
/-!
# $\overline{\mathcal{M}}_{r'}(S)_{≤ c}$
In this file we put a profinite topology on the subspace
`Mbar_le r' S c` of `Mbar_le r' S` consisting of power series
`F_s = ∑ a_{n,s... |
9da8d0e0e99ab9d4c2be0460ae1e9a3b546e84cc | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/data/polynomial/derivative.lean | 3491abd7651ca308ca725f81456969264d4bf63a | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 13,345 | 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.eval
import algebra.iterate_hom
/-!
# The derivative map on polynomials
## Main definitions
* `p... |
914b74a10b1086bcf9e9e66d1b334ebb5d318899 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /09_Type_Classes.org.15.lean | 1724896e2b14b704a67b0bc1e0afdf8a19f5fd43 | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 182 | lean | import standard
check @decidable_and
-- Π {p q : Prop} [Hp : decidable p] [Hq : decidable q], decidable (p ∧ q)
check @decidable_or
check @decidable_not
check @decidable_implies
|
691915bcd0b1c8a6b43758b788a2639392041afa | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/well_founded.lean | 2323747cf163d0c68c1def2b15468dc3e5da654b | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,091 | lean | /-
Copyright (c) 2020 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import tactic.by_contra
import data.set.basic
/-!
# Well-founded relations
A relation is well-founded if it can be used for induction: for each `x`, `... |
83931ddfca438d1db918e52a1ad6fb3d2e1c206d | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/algebra/group/defs.lean | 3b780b6dda77898cc74338c6c2d7ba99df78b37b | [
"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 | 14,399 | 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, Simon Hudon, Mario Carneiro
-/
import algebra.group.to_additive
import tactic.basic
/-!
# Typeclasses for (semi)groups and monoid
In this file we def... |
661e91fa320c408d88f853e84b68409ee9e9d352 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/hit/colimit.hlean | f877f4a966854987f326207847c2a1e10a3d70b3 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 7,567 | 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
Definition of general colimits and sequential colimits.
-/
/- definition of a general colimit -/
open eq nat quotient sigma equiv is_trunc
namespace colimit
secti... |
1522a8041133520c626874bb4610f08032062c88 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/normed_space/finite_dimension.lean | 194fe2f7936d1c12651ce31f44ce7da793897a6c | [
"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 | 18,014 | 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.normed_space.operator_norm
import topology.bases
import linear_algebra.finite_dimensional
import tactic.omega
/-!
# Finite dimensional normed s... |
e2ce5613b709628f40dc45a20f2cf976f8ea6a64 | d0f9af2b0ace5ce352570d61b09019c8ef4a3b96 | /notes/2020.01.21-intro.lean | 0003071255f32e76367f08f5d71721eafc52290f | [] | no_license | jngo13/Discrete-Mathematics | 8671540ef2da7c75915d32332dd20c02f001474e | bf674a866e61f60e6e6d128df85fa73819091787 | refs/heads/master | 1,675,615,657,924 | 1,609,142,011,000 | 1,609,142,011,000 | 267,190,341 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 421 | lean | -- Boolean Values
/-
Boolean Values
-/
#eval tt
#eval ff
#eval bool.tt
#eval bool.ff
/-
Natural numbers
-/
#eval nat.zero
#eval 0 -- nat.zero and 0 mean the same thing
#eval (nat.succ nat.zero)
#eval 1
#eval nat.succ(nat.succ nat.zero) --successor function
#eval 2
/-
Strings
-/
#eval "Hello, "
#eval "Logic!"
... |
87f6190868654c1f708e21d06662c6fa32ba02d3 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/repr.lean | ad2977c7166a801df73a0c8d623a999bf758fabc | [
"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 | 4,119 | 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
-/
prelude
import init.data.string.basic init.data.uint init.data.nat.div
open Sum Subtype Nat
universes u v
class HasRepr (α : Type u) :=
(repr : α → String)... |
e5248de89fa580cd44be45036986f994582b1a6f | 7c2dd01406c42053207061adb11703dc7ce0b5e5 | /src/solutions/09_limits_final.lean | 873ec8ea0f7b2d359768c204d7beb73f3962427e | [
"Apache-2.0"
] | permissive | leanprover-community/tutorials | 50ec79564cbf2ad1afd1ac43d8ee3c592c2883a8 | 79a6872a755c4ae0c2aca57e1adfdac38b1d8bb1 | refs/heads/master | 1,687,466,144,386 | 1,672,061,276,000 | 1,672,061,276,000 | 189,169,918 | 186 | 81 | Apache-2.0 | 1,686,350,300,000 | 1,559,113,678,000 | Lean | UTF-8 | Lean | false | false | 12,836 | lean | import tuto_lib
set_option pp.beta true
set_option pp.coercions false
/-
This is the final file in the series. Here we use everything covered
in previous files to prove a couple of famous theorems from
elementary real analysis. Of course they all have more general versions
in mathlib.
As usual, keep in mind the fol... |
2ef197f52f28e682cbcdbe1cb3980d38ab9eaede | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/default.lean | 0be0f172bc50b0af2e3fa1a378820693d662c86e | [
"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 | 500 | 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.data.basic init.data.nat init.data.char init.data.string
import init.data.list init.data.int init.data.array init.data.bytearray
import ... |
c259a8094801f884ed057da2b8d97b91e2353e59 | fe25de614feb5587799621c41487aaee0d083b08 | /stage0/src/Lean/Meta/ExprDefEq.lean | 4a81ca94585aa2821ce420a7f7438070f98d4d01 | [
"Apache-2.0"
] | permissive | pollend/lean4 | e8469c2f5fb8779b773618c3267883cf21fb9fac | c913886938c4b3b83238a3f99673c6c5a9cec270 | refs/heads/master | 1,687,973,251,481 | 1,628,039,739,000 | 1,628,039,739,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 61,535 | 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.ProjFns
import Lean.Structure
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.... |
e4556c84519c386d3cf0f340ae4bcae727cad6d2 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Meta/Tactic/Util.lean | a2d880e5f0138cf6547f6deec06ef5a99155936f | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,149 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.ForEachExpr
import Lean.Meta.Basic
import Lean.Meta.AppBuilder
import Lean.Meta.LevelDefEq
import Lean.Meta.PPGoal
namespace Lean.Meta
/-... |
43ab7e9826898ef6a3bb3619455d3347f1a6d708 | 3f48345ac9bbaa421714efc9872a0409379bb4ae | /src/examples/kripke_structure/Kripke_Coalgebra.lean | 35505d9cbfa14a46716087cd39682b27832f6e3d | [] | no_license | QaisHamarneh/Coalgebra-in-Lean | b4318ee6d83780e5c734eb78fed98b1fe8016f7e | bd0452df98bc64b608e5dfd7babc42c301bb6a46 | refs/heads/master | 1,663,371,200,241 | 1,661,004,695,000 | 1,661,004,695,000 | 209,798,828 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,698 | lean | import coalgebra.Coalgebra
import examples.kripke_structure.Kripke_Structure
import set_category.category_set
import category_theory.types
import help_functions
namespace Kripe_Coalgebra
open Kripke_Structure set help_functions coalgebra
universes u v
variable {φ : Type v}
def F : Type u ⥤ Type (max v u) :=
... |
3677a60505463a3559bc01b8acc40b6f81b923b3 | 4f065978c49388d188224610d9984673079f7d91 | /semidirect_product.lean | ae6262c625fd15fd808a6434e185460bc776ee34 | [] | no_license | kckennylau/Lean | b323103f52706304907adcfaee6f5cb8095d4a33 | 907d0a4d2bd8f23785abd6142ad53d308c54fdcb | refs/heads/master | 1,624,623,720,653 | 1,563,901,820,000 | 1,563,901,820,000 | 109,506,702 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 4,037 | lean | import algebra.group data.zmod.basic
universes u v
variables (N : Type u) (K : Type v) [group N] [group K]
structure linear_group_action : Type (max u v) :=
(smul : K → N → N)
(one_smul' : ∀ n, smul 1 n = n)
(mul_smul' : ∀ k₁ k₂ n, smul (k₁ * k₂) n = smul k₁ (smul k₂ n))
(smul_mul' : ∀ k n₁ n₂, smul k (n₁ * n₂) = sm... |
85b459d61aaf8d195115b6cbae1bf6a06d83804e | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/order/filter/basic.lean | 6f01e3457bed3743751edd61fd34127eca7e4714 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 101,457 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad
-/
import order.zorn
import order.copy
import data.set.finite
import tactic.monotonicity
/-!
# Theory of filters on sets
## Main definitions
* `filter`... |
2aeda05b52c9cbe5925199e0bcd97342bc047069 | e0b0b1648286e442507eb62344760d5cd8d13f2d | /src/Lean/Meta/Tactic/Util.lean | ceb5b21513151aa2ccd6eff7a24279129ec03d8d | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,305 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.ForEachExpr
import Lean.Meta.Basic
import Lean.Meta.AppBuilder
import Lean.Meta.LevelDefEq
import Lean.Meta.PPGoal
namespace Lean.Meta
/-... |
b17f2382cabd149615ea6e053fcb070716d120ce | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/ordered_monoid_lemmas.lean | db276d0313ab4fda5817e48ac0fc592cc1576d8b | [
"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,269 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes Hölzl, Damiano Testa
-/
import algebra.covariant_and_contravariant
import order.basic
/-!
# Ordered monoids
This file devel... |
9d7ff42591fce1e1c9b813fb7241bdde1bee3a90 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/topology/uniform_space/completion.lean | 421a2bfe834642c46b8d373408842dee95915c1e | [
"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 | 55,301 | 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
Hausdorff completions of uniform spaces; lifting the group and ring structure.
The goal is to construct a left-adjoint to the inclusion of complete Hau... |
2350935166aa25846388641f7f2ba7ab55a2d692 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/Tactic/AC/Main.lean | 5c8cfc7b786d2299a6b796e71beebabb510c6ff7 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 6,147 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dany Fabian
-/
import Init.Data.AC
import Lean.Meta.AppBuilder
import Lean.Meta.Tactic.Refl
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.Rewrite
namespace Lean.Meta.AC... |
1dcf44d3e1c52e1986181a1592e2092a2ce5d967 | b29f946a2f0afd23ef86b9219116968babbb9f4f | /src/examples/limit_examples.lean | 5d4e2c09b1ae629f0e8207d4e287596c33507624 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M1P1-lean | 58be7394fded719d95e45e6b10e1ecf2ed3c7c4c | 3723468cc50f8bebd00a9811caf25224a578de17 | refs/heads/master | 1,587,063,867,779 | 1,572,727,164,000 | 1,572,727,164,000 | 165,845,802 | 14 | 4 | Apache-2.0 | 1,549,730,698,000 | 1,547,554,675,000 | Lean | UTF-8 | Lean | false | false | 1,371 | lean | import limits tactic.linarith
open M1P1
-- The sequence 1/n tends to zero as n -> infinity.
theorem easy : is_limit (λ n, 1 / n) 0 :=
begin
-- say ε is a positive real
intros ε Hε,
-- we need to find N such that n ≥ N → |1 / n| < ε.
-- It's a standard fact there exists some integer M ≥ 0
-- such that 1 / (M... |
1c74383163272daa7415d152c5b7289dff1f8bab | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/algebra/precategory/morphism.hlean | ed8d5ec03df2770ced198b61a08019697cba6e72 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,353 | hlean | -- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Floris van Doorn, Jakob von Raumer
import .basic
open eq precategory sigma sigma.ops equiv is_equiv function truncation
namespace morphism
variables {ob : Type} [C : preca... |
46c33aa6834dcfc54c1b68c69cbaa0a5e90f8cec | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/star/chsh.lean | 275c52daacd11d0705bfdd791c90b63f111ea370 | [
"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 | 11,332 | 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 algebra.star.algebra
import algebra.algebra.ordered
import analysis.special_functions.pow
/-!
# The Clauser-Horne-Shimony-Holt inequality and Tsirelson's ineq... |
586bf96d1942b0584f33ea06a4cc784e2d2a4d83 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/init/bool.hlean | 462f10f998efeb5877c28b8bdeeb180a6fdb1b1c | [
"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 | 653 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.reserved_notation
-- this is not in init.types, because that file depends on init.num,
-- which depends on these definitions
namespace... |
e9216d3292ae0f027808793d22f093dcaf7aa0d8 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/matrix/pos_def.lean | 6e224830d85712c3867abbd306ab7266250d319d | [
"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 | 6,216 | lean | /-
Copyright (c) 2022 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import linear_algebra.matrix.spectrum
import linear_algebra.quadratic_form.basic
/-! # Positive Definite Matrices
This file defines positive (semi)definite m... |
e87b40aa248b43505042088d09faefa1a9fc8913 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Meta/DiscrTree.lean | 67c0d2748829689e9a44c40cc8f33dd761e21293 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,324 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.FunInfo
import Lean.Meta.InferType
import Lean.Meta.WHNF
namespace Lean.Meta.DiscrTree
/-
(Imperfect) discriminat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.