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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fd01bf063b8f9aa5e6205a706b82792c3b180803 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/analysis/topology.lean | f00b71fec6836d5c7ecc7ad721a6d57cd709a2b8 | [
"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,459 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Computational realization of topological spaces (experimental).
-/
import topology.bases
import data.analysis.filter
open set
open filter (hiding realizer)
open_locale ... |
480a15bad1001449e3cc7031905f50ccc0949004 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/gcd.lean | b1060595a0cb3cf335d13674e847a205c83ecad1 | [
"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 | 1,671 | lean | import data.nat data.prod
open nat well_founded decidable prod eq.ops
namespace playground
-- Setup
definition pair_nat.lt := lex nat.lt nat.lt
definition pair_nat.lt.wf [instance] : well_founded pair_nat.lt :=
intro_k (prod.lex.wf lt.wf lt.wf) 20 -- the '20' is for being able to execute the examples... it means 2... |
79b85dd1d2dbbaa19f675c24ccf606dfe85e9c1f | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/order/lattice.lean | 80a333604c470514c88668035148407ca8a601ee | [
"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 | 27,038 | 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 order.rel_classes
import tactic.simps
/-!
# (Semi-)lattices
Semilattices are partially ordered sets with join (greatest lower bound, or `sup`) or
meet (least... |
7832ed515598c5089bdbb4e8f9039233c731b5cf | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/analytic/linear_auto.lean | 73bdc0c6af533d1922c5359bd0c3d1d4ddc1987b | [] | 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,773 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.analytic.basic
import Mathlib.PostPort
universes u_1 u_2 u_3
namespace M... |
4cc533cf064e654da982db25ca5c2f22d466a36d | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/init/ua.hlean | f7deacc506a6c9475fd696c9558ed84fb2023fa4 | [
"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 | 3,139 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .equiv
open eq equiv is_equiv
axiom univalence (A B : Type) : is_equiv (@equiv_of_eq A B)
attribute univ... |
bef160337a86a9140f19cd63c2b19dbc694c80ed | de91c42b87530c3bdcc2b138ef1a3c3d9bee0d41 | /old/not_in_use/src/physlang.lean | 00a31bb5aa4d526053db6d0105f216394e251c97 | [] | 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 | 41,504 | lean | import .....phys.src.physlib
noncomputable theory
/-
VARIABLES
-/
mutual inductive
PhysSpaceVar,
EuclideanGeometry3SpaceVar,
ClassicalTimeSpaceVar,
ClassicalVelocity3SpaceVar,
PhysFrameVar,
EuclideanGeometry3FrameVar,
ClassicalTimeFrameVar,
ClassicalVelocity3FrameVar,
PhysDimensionalVar,
RealScalarVar,
Eu... |
1b9338ec307d3e0119b345a60ecb58f1749ebf74 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/real/conjugate_exponents.lean | 387d6b03fde8d72ee32baa916d52405c2ba2fb68 | [
"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 | 3,696 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import data.real.ennreal
/-!
# Real conjugate exponents
`p.is_conjugate_exponent q` registers the fact that the real numbers `p` and `q` are ... |
45538b07b98bc5e393da64e0c43828733e793888 | 01f6b345a06ece970e589d4bbc68ee8b9b2cf58a | /src/filter.lean | e0ea37fa23645f0a12d29e6878357b42070a7bf5 | [] | no_license | mariainesdff/norm_extensions_journal_submission | 6077acb98a7200de4553e653d81d54fb5d2314c8 | d396130660935464fbc683f9aaf37fff8a890baa | refs/heads/master | 1,686,685,693,347 | 1,684,065,115,000 | 1,684,065,115,000 | 603,823,641 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,789 | lean | /-
Copyright (c) 2023 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 topology.instances.nnreal
/-!
# Limits of monotone and antitone sequences
We prove some auxiliary results about limits of `ℝ`... |
f574b141c5f81ae467c6f8abde503468b73af5b9 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/model_theory/definability.lean | 5ebe106658247ae7f5f237d9bec3472eb2af8230 | [
"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 | 11,926 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.set_like.basic
import logic.equiv.fintype
import model_theory.semantics
/-!
# Definable Sets
This file defines what it means for a set over a first-order... |
ede8254b697a0097120f0da33ce81feb986ac5ab | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/special_functions/arsinh.lean | 4f2b8114ac6011c77c2b3e5514a16a68d6cbbd90 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 2,947 | lean | /-
Copyright (c) 2020 James Arthur. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: James Arthur, Chris Hughes, Shing Tak Lam
-/
import analysis.special_functions.trigonometric
/-!
# Inverse of the sinh function
In this file we prove that sinh is bijective and hence h... |
32473a02705cd65f9bee144524db6f62c6cee9a1 | 6bbefddc5d215af92ee0f41cafc343d0802aa6c8 | /03-mccarthy-meta.lean | cca2f5e413a67e6e609feabb43a29c1bd8c8e1d6 | [
"Unlicense"
] | permissive | bradheintz/lean-ex | 0dcfab24e31abd9394247353f4e7dfd06655b2e1 | 37419b8d014ba3ba416e2252809a89a1604a1330 | refs/heads/master | 1,645,696,373,325 | 1,503,243,879,000 | 1,503,243,879,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 629 | lean |
import system.io
variable [io.interface]
open nat io
/-
McCarthy 91 formal verification test case
see https://en.wikipedia.org/wiki/McCarthy_91_function
-/
meta def mninetyone : ℕ → ℕ
| n := if n > 100 then n - 10 else mninetyone (mninetyone (n + 11))
meta def print_mninetyones : ℕ → io unit
| 0 := return ()
| (suc... |
a5a1aa8223276ea59af7f937f57b9f9c6378a526 | 7453f4f6074a6d5ce92b7bee2b29c409c061fbef | /src/NewtonMethod/uwyo_sqrt2.lean | af7f153fc46c697af500dba549de1f0b9e731a1a | [
"Apache-2.0"
] | permissive | stanescuUW/numerical-analysis-with-Lean | b7b26755b8e925279f3afc1caa16b0666fc77ef8 | 98e6974f8b68cc5232ceff40535d776a33444c73 | refs/heads/master | 1,670,371,433,242 | 1,598,204,960,000 | 1,598,204,960,000 | 282,081,575 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,760 | lean | import data.nat.prime
import data.rat.basic
import data.real.basic
import tactic
-- could use:
-- (univ : set X)
-- to have X be recognized as a subset of X
-- X has Type u for some universe u; it doesn't have type set X
theorem sqrt_two_irrational {a b : ℕ} (co : nat.gcd a b = 1) : a^2 ≠ 2 * b^2 :=
begin
intro h... |
741693843a9acb3d7253616609081e49b12a5214 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/finsupp/lattice.lean | 8e27169b72cf5d92f1df7e0ad963a9d53fdb27ef | [
"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 | 4,403 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import data.finsupp
import algebra.ordered_group
/-!
# Lattice structure on finsupps
This file provides instances of ordered structures on finsupps.
-/
open_local... |
0594d9b222d15f15c5c3f6012f0a9e958d9ea32e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/bad_notation.lean | eff773aff3e801c7d8690f5c50bee6a28e23ff7e | [
"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 | 105 | lean | import logic
open nat
section
variable a : nat
notation `a1`:max := a + 1
end
definition foo := a1
|
07ae53c9622ea75e6466b61d490f45845b974a1b | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/data/fin_enum.lean | d0734b2b617de46ee9da05e182d4e56bd38efe40 | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,854 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.monad.basic
import data.fintype.basic
/-!
Type class for finitely enumerable types. The property is stronger
than `fintype` in that it assigns each element ... |
81cf5d0cd42dbd901191049a29305d52a3c878d9 | e9078bde91465351e1b354b353c9f9d8b8a9c8c2 | /two_quotients.hlean | 630d36e72205f0ddd269ad8811b7ca30642b9486 | [
"Apache-2.0"
] | permissive | EgbertRijke/leansnippets | 09fb7a9813477471532fbdd50c99be8d8fe3e6c4 | 1d9a7059784c92c0281fcc7ce66ac7b3619c8661 | refs/heads/master | 1,610,743,957,626 | 1,442,532,603,000 | 1,442,532,603,000 | 41,563,379 | 0 | 0 | null | 1,440,787,514,000 | 1,440,787,514,000 | null | UTF-8 | Lean | false | false | 18,314 | 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
-/
import hit.circle eq2 algebra.e_closure cubical.squareover cubical.cube
open quotient eq circle sum sigma equiv function relation
namespace simple_two_quotien... |
4fbdbc51a87af3a7f0e98e3c7140d8b3c18106f5 | d1bbf1801b3dcb214451d48214589f511061da63 | /src/analysis/analytic/composition.lean | 3173c0e77858c23992ff0994c78e5a3ef62cb7ab | [
"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 | 54,248 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johan Commelin
-/
import analysis.analytic.basic
import combinatorics.composition
/-!
# Composition of analytic functions
in this file we prove that the composi... |
b6e47b09eebc4b52641893cc70f5ebc6beffd8b9 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Server/Snapshots.lean | e03e00d9a72defe601952efc5b7b7e1f42c59968 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 7,576 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Init.System.IO
import Lean.Elab.Import
import Lean.Elab.Command
import Lean.Widget.InteractiveDiagnostic
/-! One can think of this module as being a ... |
319f4f45b9624a6da92d70d216e2c9934390a443 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/playground/flat_parser.lean | de34ff60d90aa37e4ed84d233b49c4d8bc83af87 | [
"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 | 14,557 | lean | import init.lean.message init.lean.parser.syntax init.lean.parser.trie init.lean.parser.basic init.lean.parser.stringliteral
import init.lean.parser.token
namespace Lean
namespace flatParser
open String
open Parser (Syntax Syntax.missing)
open Parser (Trie TokenMap)
abbreviation pos := String.Pos
/-- A precomputed c... |
847ea4ace2f9e1a93bcfdf803427d3e175a4a85b | d1a52c3f208fa42c41df8278c3d280f075eb020c | /stage0/src/Lean/Elab/Match.lean | 2d1f9289711711b15c610fc263ce82782c2041f9 | [
"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 | 46,018 | 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.Util.CollectFVars
import Lean.Meta.Match.MatchPatternAttr
import Lean.Meta.Match.Match
import Lean.Meta.SortLocalDecls
import Lean.Meta.Generali... |
ba13dd8904a21d2c0799f6b06f459571ef744028 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/measure/open_pos.lean | 2bea33870b654517d801a7518319fd5510418b69 | [
"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,309 | 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 measure_theory.measure.measure_space
/-!
# Measures positive on nonempty opens
In this file we define a typeclass for measures that are positive on nonempt... |
e6d788819054c26efb1f0c177862a41b6afd0575 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /docs/tutorial/category_theory/calculating_colimits_in_Top.lean | bfead902b2230ed5e71405d51da026e54e96091f | [
"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 | 3,593 | lean | import topology.category.Top.limits
import category_theory.limits.shapes
import topology.instances.real
/-! This file contains some demos of using the (co)limits API to do topology. -/
noncomputable theory
open category_theory
open category_theory.limits
def R : Top := Top.of ℝ
def I : Top := Top.of (set.Icc 0 1 : ... |
80e2da12402fec702dc96386f3e799cdf21eaddb | fddcf4b659baa121761c71be606b3f74b86fa695 | /objects.lean | 790c024653428467525a62d89c8fcf4ae3f82e6a | [] | no_license | swarnpriya/Lean | 4218df9392f396cd7e5e745de35a917536ebd2bb | a0a9978fd058041eb1a09aec0e2dd7d19a7436a7 | refs/heads/master | 1,595,831,634,399 | 1,568,673,127,000 | 1,568,673,127,000 | 208,903,604 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,689 | lean | constant m : nat
#check m
#check nat
constants α β : Type
#check α
constant f : Type -> Type
#check f
#check fun x, f x
#check fun x, x
constant a : Type
#check (fun x : Type, f x) a
#reduce (fun x : Type, f x) a
#reduce (fun x, f x) a
#reduce tt && ff
#reduce tt && tt
constant m1 : nat
constant n1 : nat
con... |
bd8710a0cba536f9baba3846f5b384e8d85f005c | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/measure_theory/l1_space.lean | 9a1236d53c32a04af6626fc88ea22894fe880f8c | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 28,745 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.ae_eq_fun
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic properties ... |
5054bfd14de447e8d4c63d87ebbb5ca79ea83c4d | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/io_bug1.lean | 8c2340dce9cf58feed557907596b8e1e48887776 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 415 | lean | import system.io
open io
def bar : io unit :=
do put_str "one", put_str "two", put_str "three"
#eval bar
#print "---------"
def foo : ℕ → io unit
| 0 := put_str "at zero\n"
| (n+1) := do put_str "in\n", foo n, put_str "out\n"
#eval foo 3
#print "---------"
def foo2 : ℕ → io unit
| 0 := put_str "at zero\n"... |
d4ff797fb112193403e26d93ef9bd7c7a7ff6784 | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/algebra/order.hlean | d9c2c2f13341a953e61aa9976a807faab729364d | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 12,380 | hlean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Various types of orders. We develop weak orders "≤" and strict orders "<" separately. We also
consider structures with both, where the two are related by
x < y ↔ (x ≤ y... |
49fd0eb10ca7d5ef5787d79371024dcb69ea57b8 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/bench/rbmap_checkpoint.lean | 4f057c23cccfb3ddec5a66bb2cf2b8bf6dee6be6 | [
"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 | 3,428 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Option.Basic
import Init.Data.List.BasicAux
import Init.Data.String
import Init.System.IO
universe u v w w'
inductive color
| Red... |
30c63307ae5d8169a241a47e8fe069232c5a90bc | 94096349332b0a0e223a22a3917c8f253cd39235 | /src/game/world4/level1.lean | dca647009c6fbaae45bf6638398efcb1fcf1ae80 | [] | no_license | robertylewis/natural_number_game | 26156e10ef7b45248549915cc4d1ab3d8c3afc85 | b210c05cd627242f791db1ee3f365ee7829674c9 | refs/heads/master | 1,598,964,725,038 | 1,572,602,236,000 | 1,572,602,236,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,501 | lean | import game.world3.level8 -- hide
import mynat.pow -- new import
namespace mynat -- hide
-- World name : Power world
/- Axiom : pow_zero (a : mynat) :
a ^ 0 = 1
-/
/- Axiom : pow_succ (a b : mynat) :
a ^ succ(b) = a ^ b * b
-/
/-
# World 4 : Power World
A new world with seven levels. And a new import!
This impor... |
34c6f8706d7dc9a9386ff5fcddaa2314047d82d3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/compactly_generated.lean | c1b4d65bb2914a099ef8f94ce900a22b8d8455c0 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,656 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.well_founded
import Mathlib.order.order_iso_nat
import Mathlib.data.set.finite
import Mathl... |
35aac9db598552a15935547e58f48f75e8b2e685 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/run/soundness.lean | 99f5e176897d0734b55c3c5199d38f53ce84dc68 | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 6,732 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Define propositional calculus, valuation, provability, validity, prove soundness.
This file is based on Floris van Doorn Coq files.
Similar to soundness.lea... |
c3260839a4f49cc94d42fb3036dd82b2ba466953 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/hierarchy_design.lean | 05f0f28e9574f1a825e14ef024200f1ff67da472 | [
"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,116 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Eric Weiser
-/
import tactic.doc_commands
/-!
# Documentation of the algebraic hierarchy
A library note giving advice on modifying the algebraic hierarchy.
(It is not... |
3bf2854e08e5db19d55a1ad9f74bf04acab2b944 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/order/filter/pointwise.lean | 1820c46b060e332b7af25735a7897f5efedca242 | [
"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 | 6,639 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import algebra.pointwise
import order.filter.basic
/-!
# Pointwise operations on filters.
The pointwise operations on filters have nice properties, such as
• `map m ... |
9c89f9a0a62b60f8876c80eda22f35a3b97fb490 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/types/int/hott.hlean | 90bcde1815ae90a234fe820e956422cee20f6e54 | [
"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 | 6,233 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Theorems about the integers specific to HoTT
-/
import .basic types.eq arity algebra.bundled
open core eq is_equiv equiv algebra is_trunc
open nat (hiding pred)
na... |
0e0cf6f0e011387717e5c0a629afc5a6c8f56ccf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/special_functions/bernstein.lean | 22e78e0f6d775f45a75c59a2b84ae7e2abcf497b | [
"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 | 12,944 | 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 analysis.specific_limits.basic
import ring_theory.polynomial.bernstein
import topology.continuous_function.polynomial
import topology.continuous_function.compa... |
f3bc414396a620d444f0f73ae6469296e1d27b91 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/field_theory/finite/galois_field.lean | 7c15fdae57145b197c23476e8228ea16579d946c | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 8,578 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Alex J. Best, Johan Commelin, Eric Rodriguez, Ruben Van de Velde
-/
import algebra.char_p.algebra
import data.zmod.algebra
import field_theory.finite.basic
import fiel... |
683f5a003fe368eb3b15a357ec226c5a9aafb809 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/contracting.lean | daaac22d041495946618afb5e7a56e05ee450f33 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 15,927 | lean | /-
Copyright (c) 2019 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import analysis.specific_limits.basic
import data.setoid.basic
import dynamics.fixed_points.topology
/-!
#... |
a14494371727829f85427fda7f98511504f3bb85 | 3adda22358e3c0fbae44c6c35fdddbebf9358ef4 | /src/Q1.lean | 86c406ec4e338ed897ad215c5b552b21e79b2137 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M1F-exam-may-2018 | 1539951b055cea5bac915bdb6fa1969e2f323402 | 8b5eca2037d4a14d6cfac3da1858b6c4119216d3 | refs/heads/master | 1,586,895,978,182 | 1,557,175,794,000 | 1,557,175,794,000 | 164,093,611 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,306 | lean | import tactic.linarith
import data.real.basic
import data.complex.exponential
import data.polynomial
import data.nat.choose
/-
M1F May exam 2018, question 1.
-/
universe u
local attribute [instance, priority 0] classical.prop_decidable
open nat
-- Q1(a)(i)
theorem count (n : ℕ) (hn : n ≥ 1) : finset.sum (finset.... |
a7225ba859f8c1946085ad15507a0e506236f18c | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/measure_theory/category/Meas.lean | 4523ff17b8a3adf0c7dc7d2a25b7a013c15b3566 | [
"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,197 | 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 topology.category.Top.basic
import measure_theory.giry_monad
import category_theory.monad.algebra
/-
* Meas, the category of measurable spaces
Measurable spa... |
afc80c395fedc107a06ea7b2b1cad9262738c1e1 | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/limits/shapes/constructions/preserve_binary_products.lean | 4ef04ed88d34097455aef12eb738954d27937f1a | [
"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 | 3,452 | 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.limits
import category_theory.limits.preserves
import category_theory.limits.shapes.binary_products
/-!
Show that a functor `F : C ⥤ D` pre... |
786d9e6604e6675b3795ff3217cdfb785ebe147d | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/uniform_space/absolute_value.lean | 7dd66467e9b152c125a023c0ff0bc15f482936f4 | [
"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 | 2,885 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import data.real.cau_seq
import topology.uniform_space.basic
/-!
# Uniform structure induced by an absolute value
We build a uniform space structure on a commutativ... |
80816e647400539db56365f426203fcb24b28025 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/algebra/group_power/lemmas.lean | ed4280d74137fcbd238bb43438a9b2ced199d6dd | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,333 | 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
-/
import algebra.group_power.basic
import algebra.opposites
import data.list.basic
import data.int.cast
import data.equiv.basic
import data.equiv.mul_add... |
b533eea726d1b1fc7026cdfa4077ecac0bf838a6 | 7565ffb53cc64430691ce89265da0f944ee43051 | /hott/homotopy/cofiber.hlean | 36e20800c78a972145208c6193251c066f8a6185 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean2 | cacddba3d150f8b38688e044960a208bf851f90e | 519dcee739fbca5a4ab77d66db7652097b4604cd | refs/heads/master | 1,606,936,954,854 | 1,498,836,083,000 | 1,498,910,882,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,124 | hlean | /-
Copyright (c) 2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer
The Cofiber Type
-/
import hit.pushout function .susp types.unit
open eq pushout unit pointed is_trunc is_equiv susp unit equiv
definition cofiber {A B : Type} (f... |
c411ef67ce33fdd13a6fc814ba3c3ca09b20a0b4 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Squag.lean | 3219097789ce6ef5b2e18e984ca121409444b236 | [] | 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 | 5,684 | 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 Squag
structure Squag (A : Type) : Type :=
(op : (A → (A → A)))
(commutative_op : (∀ {x y : A} , (op x y) = (op y x)))
(antiAbsorbent : (∀ {x y : A} , (o... |
901e6e5c3ea6dc4e220f2c6af76adf2a16a972a3 | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /library/data/set/finite.lean | b4984ac76dad5d3e93c0398a59b6ec9d7f10df17 | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 8,248 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The notion of "finiteness" for sets. This approach is not computational: for example, just because
an element s : set A satsifies finite s doesn't mean that we can com... |
b9364d76a10adbc1f07ea4bbd3e37bbd4213f2b4 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/category_theory/limits/shapes/finite_products.lean | 924636e4896752b66419aafcdb81a4b0a54930c8 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 1,530 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.products
import category_theory.limits.shapes.finite_limits
import category_theory.discrete_category
import data.fintype
univers... |
1ea14644d9b91d658a9ad37f738f5954e400171a | 618003631150032a5676f229d13a079ac875ff77 | /src/data/seq/seq.lean | 595d328634fa4fbe5a88f1c95a73558c819749eb | [
"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 | 28,526 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.list.basic
import data.stream
import data.lazy_list
import data.seq.computation
universes u v w
/-
coinductive seq (α : Type u) : Type u
| nil : seq α
| ... |
e6d681b6deddcc4bd101f9ddf2558e35533a9ff8 | 367134ba5a65885e863bdc4507601606690974c1 | /src/control/equiv_functor/instances.lean | 44379684e96cb5475f253e5561058805f9b5341c | [
"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 | 925 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Scott Morrison
-/
import data.fintype.basic
import control.equiv_functor
/-!
# `equiv_functor` instances
We derive some `equiv_functor` instances, to enable `equiv_rw` to rewrite unde... |
4de0780ad415c99623322e7dd18d8cda9ce0a0b2 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2000-USAMO-Problem_1.lean | 802b5b07a5b3364638a83280dac42c212347bd46 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 179 | lean | import data.real.basic
import set_theory.cardinal
theorem USAMO_Problem_3_2000 :
{f : ℝ → ℝ | ∀ x y : ℝ, (f(x) + f(y)) / 2 ≥ f((x+y) / 2) + abs(x-y)} = ∅ := sorry |
a28827c033fb60ec2ae55ee85f47ea39c9917918 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Server/FileWorker.lean | db25378ad66492e45a5c767994dc1f2d7a5cd0a0 | [
"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 | 20,917 | 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 Init.System.IO
import Std.Data.RBMap
import Lean.Environment
import Lean.Data.Lsp
import Lean.Data.Json.FromToJson
import Lean.Server.Util... |
352ca26724676bb6b646510e7991ce83075d8bf5 | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /zeptometer/topprover/27.lean | 9f5ec78b7c4c803056e2180ebed68860e7a16273 | [] | 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 | 433 | lean | inductive Two : Type
| C21 : Two
| C22 : Two
inductive Three : Type
| C31 : Three
| C32 : Three
| C33 : Three
theorem two_is_not_three : Two ≠ Three := begin
intro two_is_three,
have hatonosu : ∀a b c: Two, a = b ∨ b = c ∨ c = a :=
by intros a b c; cases a; cases b; cases c; simp,
rw two_is_three ... |
04359793e286bb2d68b29235a7eda26d54521d10 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed/group/seminorm.lean | 2386f19137eb20f87f3627c221f6c47460045224 | [
"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 | 27,883 | lean | /-
Copyright (c) 2022 María Inés de Frutos-Fernández, Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: María Inés de Frutos-Fernández, Yaël Dillies
-/
import tactic.positivity
import data.real.nnreal
/-!
# Group seminorms
> THIS FILE IS SYNCHRONIZED WITH ... |
bce93e10bac1629f3c31dc291d8e493349135482 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/real/ereal.lean | c2a83064dc986eed55e5aea584087e907d53deab | [
"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 | 3,263 | lean | /-
Copyright (c) 2019 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import data.real.basic
/-!
# The extended reals [-∞, ∞].
This file defines `ereal`, the real numbers together with a top and bottom element,
referred to as ⊤ and ⊥. I... |
a47683342b83a2e23a7d67608efc79ff1feb9da8 | 35960c5b117752aca7e3e7767c0b393e4dbd72a7 | /src/exp/lc.lean | 3243b827b4e16214dc3db5b4c4f68af009028630 | [
"Apache-2.0"
] | permissive | spl/tts | 461dc76b83df8db47e4660d0941dc97e6d4fd7d1 | b65298fea68ce47c8ed3ba3dbce71c1a20dd3481 | refs/heads/master | 1,541,049,198,347 | 1,537,967,023,000 | 1,537,967,029,000 | 119,653,145 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,278 | lean | import exp.open
namespace tts ------------------------------------------------------------------
namespace exp ------------------------------------------------------------------
variables {V : Type} [decidable_eq V] -- Type of variable names
variables {k k₂ k₃ : ℕ} -- Natural numbers
variables {v : V} -- Variable name... |
1c083c944d84e168b2963194365dde3f3df37c45 | 1546f9083f4babf70df0329497d1ee05adc8c665 | /src/monoidal_categories_reboot/rigid_monoidal_category.lean | 8dcbc34f77d6488723022233263434e8f36733c8 | [
"Apache-2.0"
] | permissive | khoek/monoidal-categories-reboot | 0899b0d4552ff039388042059c91f7207c6c34e5 | ed3df8ecce5d4e3d95cb858911bad12bb632cf8a | refs/heads/master | 1,588,877,903,131 | 1,554,987,273,000 | 1,554,987,273,000 | 180,791,863 | 0 | 0 | null | 1,554,987,295,000 | 1,554,987,295,000 | null | UTF-8 | Lean | false | false | 2,488 | lean | -- Copyright (c) 2018 Michael Jendrusch. All rights reserved.
import .monoidal_category
import .braided_monoidal_category
universes u v
namespace category_theory.monoidal
open monoidal_category
class right_duality {C : Sort u} (A A' : C) [monoidal_category.{u v} C] :=
(right_unit : tensor_unit C ⟶ A ⊗ A')
(ri... |
d694ceedf5db7be626c3b1ccf62690d9fd417e28 | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/data/sigma/lex.lean | 43510fa99c694e6eab6758f9dcfb12460fb0b570 | [
"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 | 5,713 | 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.sigma.basic init.meta
universes u v
namespace psigma
section
variables {α : Sort u} {β : α → Sort v}
variable (r : α → α → Pro... |
4035dc8879d8ef3530f35bce7ee2d3388cf7b76e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/linear_algebra/finsupp.lean | c50bef6df093156892c3e4497671db3dc0f89e2c | [
"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 | 39,479 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.finsupp.basic
import linear_algebra.pi
/-!
# Properties of the module `α →₀ M`
Given an `R`-module `M`, the `R`-module structure on `α →₀ M` is defined ... |
87c3e39115d971570b82d09b5f3656f41162cc3d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/generalizes.lean | a67bbca1422410c61b27850652420c915c64b400 | [
"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 | 3,532 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.generalizes
universes u
lemma example_from_docs₁ (P : ∀ n, fin n → Prop) (n : ℕ) (f : fin n)
(p : ∀ n xs, P n xs) : P (nat.succ n) (fin.succ f) :=
... |
c6c37fc7ea0e1adc42ba6fc1015d4c6cc68f9541 | a2ee6a66690e8da666951cac0c243d42db11f9f3 | /src/algebra/group_power/basic.lean | 2a977e618695844f7474337a1bb27f50b5c2a44c | [
"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 | 21,297 | 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
-/
import algebra.order_functions
import deprecated.group
/-!
# Power operations on monoids and groups
The power operation on monoids and groups.
We sep... |
2f5ac068805a5467c9f7e61bb70603d63dd364f6 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/topology/algebra/ordered.lean | 2cf2e5830b479252b2cac946d5f85ed12b830ca7 | [
"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 | 151,984 | 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, Yury Kudryashov
-/
import tactic.linarith
import tactic.tfae
import algebra.archimedean
import algebra.group.pi
import algebra.ordered_ring
import order... |
8d3e2c41d0cc53214593b772b55980dbcd872057 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/Top/open_nhds.lean | 94bd180f37f6abdc8eb9e9dc46d06ea4b717e4e9 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 1,783 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.Top.opens
import category_theory.full_subcategory
open category_theory
open topological_space
open opposite
universe u
namespace topological_space.... |
54f6d3ff168a2752021f2261c745584130b4a72c | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/complex/exponential.lean | 9025309e8de7975eb82466e895a8c0b689e3ccda | [
"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 | 61,920 | 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
-/
import algebra.geom_sum
import data.nat.choose.sum
import data.complex.basic
/-!
# Exponential, trigonometric and hyperbolic trigonometric funct... |
1640a2ab8982dc9abd1d0221823bd24251c015bf | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/order/complete_lattice.lean | 91da277c96c53d23ead359978dc6d0e533fce982 | [
"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 | 35,137 | 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
Theory of complete lattices.
-/
import order.bounded_lattice order.bounds data.set.basic tactic.pi_instances
set_option old_structure_cmd true
open set
namespace latt... |
a6ea619dcacb33d60157e063f3a4e2ad6994e7bc | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/measure_theory/integration.lean | 93a5747c4f955b0a6ad608eeb0123524abbaef76 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 56,705 | 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_space
import measure_theory.borel_space
/-!
# Lebesgue integral for `ennreal`-valued functions
We define simple functi... |
1c36bec1ddc9a37a7b1c8938f1564ec3c112d162 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/group_with_zero/power.lean | 3e4cc72cab51b1268875b644873f29d6494e0d2c | [] | 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 | 9,809 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group_power.default
import Mathlib.PostPort
universes u_1 u_2
namespace Mathlib
... |
9df933001f1e5b46a15cc8805e81e76ef22ca7c0 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/init/meta/default.lean | d31e74d7d407692feef430400f64f1670f3e4e98 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 886 | 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.name init.meta.options init.meta.format init.meta.rb_map
import init.meta.level init.meta.expr init.meta.environment init.meta.attr... |
5a9a904c10b1bd704ceb5b4e66cc36ab42b49efd | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/vector_bundle/pullback.lean | 68abd4579383474abcbd7f36d3f2cc5c2daf36e7 | [
"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 | 6,676 | lean | /-
Copyright © 2022 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri, Sebastien Gouezel, Heather Macbeth, Floris van Doorn
-/
import topology.vector_bundle.basic
/-!
# Pullbacks of topological vector bundles
We construct the pullback... |
8e032593095fd6cb3034695a05384854f91e68d5 | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/linear_algebra/linear_independent.lean | d9c860025051dcaa4d267119a054283cd40ca05f | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 52,933 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp, Anne Baanen
-/
import algebra.big_operators.finsupp
import linear_algebra.finsupp
import linear_algebra.prod
import linear_algebra.pi
i... |
74aab0cb9655f588794afafff922e2465c4b8925 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/group_with_zero/units/basic.lean | a306052d3e7c8e57da58ac29a379d99346da3ef2 | [
"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 | 10,411 | 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 algebra.group_with_zero.basic
import algebra.group.units
import tactic.nontriviality
import tactic.assert_exists
/-!
# Lemmas about units in a `monoid_with_ze... |
47a0ea2e7b19d971fa0c59eb0220e7b49becd804 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/backward_rule1.lean | e4841e5ea7c75321e8ea37a68353cc741d14f4cc | [
"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 | 194 | lean | constants (A B C : Prop) (H : A → B) (G : A → B → C)
constants (T : Type) (f : T → A)
attribute H [intro]
attribute G [intro]
attribute f [intro]
print H
print G
print f
print [intro]
|
7dc31ff1cd8111aa7882274d90612378a295b780 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/algebra/ordered_field.lean | 1af895815bdb19dbe7fc66058259396d93ddf702 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 9,839 | 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 algebra.ordered_ring algebra.field
section linear_ordered_field
variables {α : Type*} [linear_ordered_field α] {a b c d : α}
lemma div_pos : 0 < a → 0 < b → ... |
193b1683086787645c6be4f4d2f23d74b80958b2 | df561f413cfe0a88b1056655515399c546ff32a5 | /6-advanced-addition-world/l5.lean | 53214460f2a6d25c634cc74145824b93da663ac0 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 229 | lean | theorem add_right_cancel (a t b : mynat) : a + t = b + t → a = b :=
begin
induction t with k Pk,
intro h,
repeat { rw add_zero at h },
exact h,
intro h_2,
repeat { rw add_succ at h_2 },
have q := succ_inj h_2,
exact Pk(q),
end |
5a58cfb0a4510bdec5124216d11ed41eb7233aa8 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/number_theory/lucas_lehmer.lean | 6177532211e70bf5da721e53b605b487070f0706 | [
"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 | 17,270 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Scott Morrison, Ainsley Pahljina
-/
import tactic.ring_exp
import tactic.interval_cases
import data.nat.parity
import data.zmod.basic
import group_theory.order_of_elemen... |
c3a31876bb0b58745f902492f52bc6e60e35eb7d | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/list/pairwise.lean | a8ce084676ef661096bebe25e34463ae5a71294d | [
"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 | 14,281 | 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.list.basic
open nat function
universes u v
variables {α : Type u} {β : Type v}
namespace list
/- pairwise relation (generalized no duplicate) -/
run... |
7df5a365224a7bba0bbb39ba09d97cc4190efcd3 | 13133fade54057ee588bc056e4eaa14a24773d23 | /Proofs/fib_minus_one.lean | 7b91f0e4892775a83eab661f837691945041fb28 | [] | no_license | lkloh/lean-project-15815 | 444cbdca1d1a2dfa258c76c41a6ff846392e13d1 | 2cb657c0e41baa318193f7dce85974ff37d80883 | refs/heads/master | 1,611,402,038,933 | 1,432,020,760,000 | 1,432,020,760,000 | 33,372,120 | 0 | 0 | null | 1,431,932,928,000 | 1,428,078,840,000 | Lean | UTF-8 | Lean | false | false | 1,695 | lean | import data.nat
open nat
-- source: the official tutorial for lean
definition fib : nat → nat
| fib 0 := 1
| fib 1 := 1
| fib (n+2) := fib (n+1) + fib n
definition sumF : nat → nat
| sumF 0 := 1
| sumF(n+1) := sumF(n) + fib(n+1)
eval sumF(2)
-- ************************************************************... |
342d36c0a6fddf73530789236a7a6a3ea87709ff | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Data/SMap.lean | 38d9e1a4d3008a97a821339bf04fa1d1a13ed3bf | [
"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 | 4,060 | 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 Std.Data.HashMap
import Std.Data.PersistentHashMap
universe u v w w'
namespace Lean
open Std (HashMap PHashMap)
/-- Staged map for implementing th... |
55309a2a57d28823c50b5b95098a405fa47a433f | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Data/Options.lean | bfc164804f8181dcabf4fab3ede9cf551f610bc5 | [
"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 | 4,822 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich and Leonardo de Moura
-/
import Lean.Data.KVMap
namespace Lean
def Options := KVMap
def Options.empty : Options := {}
instance : Inhabited Options where
... |
d1e53396d6c7c14450c99c28fe7c56485499242e | c777c32c8e484e195053731103c5e52af26a25d1 | /archive/imo/imo1964_q1.lean | fd987ba4f5f1054e8b1c7c96b7eaf5fe1deeec6a | [
"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 | 2,820 | lean | /-
Copyright (c) 2020 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import tactic.interval_cases
import data.nat.modeq
/-!
# IMO 1964 Q1
(a) Find all positive integers $n$ for which $2^n-1$ is divisible by $7$.
(b) Prove that there ... |
604c332864b74086eff4290323e9d9008467bea9 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/tactic/hint.lean | 11225b84689319c690925db07c104d0a5db2a8fd | [
"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 | 2,354 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.solve_by_elim
import tactic.interactive
namespace tactic
namespace hint
/-- An attribute marking a `tactic unit` or `tactic string` which should be u... |
cdccf41587d30bcd677cffd62113772251d5b94c | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/data/bundle.lean | 946d03f62ac00213f9527f43f6d282846d373b4a | [
"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 | 5,132 | lean | /-
Copyright © 2021 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import tactic.basic
import algebra.module.basic
/-!
# Bundle
Basic data structure to implement fiber bundles, vector bundles (maybe fibrations?), etc. This file
s... |
9606e1c3d498b7a985d5fe9d2b76bedc2c0afebe | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/487.hlean | 8f97f049634b3f403304225abcfd7e9186860b01 | [
"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 | 450 | hlean | open eq is_trunc
structure is_retraction [class] {A B : Type} (f : A → B) :=
(sect : B → A)
(right_inverse : Π(b : B), f (sect b) = b)
definition foo
{A : Type}
{B : Type}
(f : A → B)
(g : B → A)
(ε : Πb, f (g b) = b)
(b b' : B)
: is_retraction (λ (q : g b = g b'), (ε b) ⁻¹ ⬝ ap f q ⬝ ε b') :=
begin
fapply is... |
9cbc2ee28434991719a52e743136f7526bdd4070 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/geometry/euclidean/angle/oriented/right_angle.lean | a245fc84aa0d47320292be4692f7b7e14113bd61 | [
"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 | 45,590 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import geometry.euclidean.angle.oriented.affine
import geometry.euclidean.angle.unoriented.right_angle
/-!
# Oriented angles in right-angled triangles.
This file proves... |
a970fd6da6d470313923591682c4baec0cd35467 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/normed_space/finite_dimension.lean | 8f3fef426701b14979fd90070b71b085fc424f36 | [
"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 | 12,334 | 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 linear_algebra.finite_dimensional
import tactic.omega
/-!
# Finite dimensional normed spaces over complete fi... |
e2d035e844ea1fb7fb18e055c590e30d358ef254 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world10/level1.lean | 9ef23a10ac42fe71622f1b00de9459a4c9762205 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 3,515 | lean | import mynat.le -- import definition of ≤
import game.world9.level4 -- hide
import game.world4.level8 -- hide
namespace mynat -- hide
/- Axiom : le_iff_exists_add (a b : mynat)
a ≤ b ↔ ∃ (c : mynat), b = a + c
-/
/- Tactic : use
## Summary
`use` works on the goal. If your goal is `⊢ ∃ c : mynat, 1 + x = x + c`
then... |
c46d2fa3488195ca584ff19d9e47169739df92dd | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/constructions/pi.lean | 4fb749a467fee9d673dbedc18df8c60907c633af | [
"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 | 33,095 | 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
import topology.constructions
/-!
# Product measures
In this file we define and pro... |
fabd630a57cccbd05046880a7edc76ff6c480351 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cases_bug.lean | a848ae9899cc4440893bff32d5187a6b0aea80bb | [
"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 | 127 | lean | theorem cast_heq₂ : ∀ {A B : Type} (H : A = B) (a : A), cast H a == a
| A .(A) (eq.refl .(A)) a := heq_of_eq $ cast_eq _ _
|
57baf7388deb6a8cef0cde3d68c1e7809ca4fc86 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/sites/spaces.lean | 00c92d99542334f761eca39c61cb04b9e97a2a12 | [
"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 | 3,060 | 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 topology.opens
import category_theory.sites.grothendieck
import category_theory.sites.pretopology
import category_theory.limits.lattice
/-!
# Grothendieck topolo... |
de7e5b33311cb375bd622ad55c4244c9ab974fe4 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/type_library/option.lean | 9cc341725c41ca88df92f700317f81f096037ac1 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 141 | lean | #print option
namespace hidden
universe u
inductive option (α : Type u) : Type u
| none {} : option
| some (a : α) : option
end hidden |
386c21824ebbe5aba6e915bbfa6e4831c8fc58a8 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/tactic/ring.lean | a9b009b0736ab6b9fe78a101d0bfbcda77620063 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 20,824 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Evaluate expressions in the language of (semi-)rings.
Based on http://www.cs.ru.nl/~freek/courses/tt-2014/read/10.1.1.61.3041.pdf .
-/
import algebra.group_power tactic... |
250036bfb09ded2daf357bbbb76f6e53f8e906de | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/ordered_group.lean | 9cce55361a4d3393954e38cb5851217aeb1684d4 | [
"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 | 55,625 | 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
-/
import algebra.group.units
import algebra.group.with_one
import algebra.group.type_tags
import order.bounded_lattice
... |
ef83227959a297e40741d236aff1a816df03423c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/examples/hello/Main.lean | 224ef6bc4dc8a7f2fbcb59b49c8a0ea9270b1bc4 | [
"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 | 173 | lean | import Hello
def main (args : List String) : IO Unit :=
if args.isEmpty then
IO.println s!"Hello, {hello}!"
else
IO.println s!"Hello, {", ".intercalate args}!"
|
fde97ba297171b9ae0a5ce947a9b2771714630b5 | b82c5bb4c3b618c23ba67764bc3e93f4999a1a39 | /src/formal_ml/sum.lean | df5d204f0366575d6da560935911720ad7577ec4 | [
"Apache-2.0"
] | permissive | nouretienne/formal-ml | 83c4261016955bf9bcb55bd32b4f2621b44163e0 | 40b6da3b6e875f47412d50c7cd97936cb5091a2b | refs/heads/master | 1,671,216,448,724 | 1,600,472,285,000 | 1,600,472,285,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47,739 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
506911686565e1b553e177e12d2b517097470ef3 | 17d3c61bf162bf88be633867ed4cb201378a8769 | /library/init/meta/constructor_tactic.lean | d965e9f4afa71fc823bd8b1ae7f49683f346ff09 | [
"Apache-2.0"
] | permissive | u20024804/lean | 11def01468fb4796fb0da76015855adceac7e311 | d315e424ff17faf6fe096a0a1407b70193009726 | refs/heads/master | 1,611,388,567,561 | 1,485,836,506,000 | 1,485,836,625,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,535 | 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
private meta def get_constructors_for (e : expr) : tactic (list name) :=
do env ← get_env,
... |
0e43c81dbb547fbc0a0e9159e34c7e2c1d20becb | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/undergraduate/MAS114/Semester 1/Q12.lean | f1ea3039ea49312d7a31f0e913c6ec7e2c08bb3c | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 578 | lean | import algebra.big_operators tactic.ring
namespace MAS114
namespace exercises_1
namespace Q12
def f : ℚ → ℚ := λ x, x * (x + 1) * (2 * x + 1) / 6
lemma f_step (x : ℚ) : f (x + 1) = (x + 1) ^ 2 + f x :=
begin
dsimp[f],
apply sub_eq_zero.mp,
rw[pow_two],
ring,
end
lemma sum_of_squares : ∀ (n : ℕ),
(((finset.ra... |
f0e347ee1ff584728aac5819fa20e91645462be2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/basic.lean | 55d77335da1e2f2fa4bc53728c898e880b94e0b8 | [
"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 | 83,041 | 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, Kevin Buzzard, Yury Kudryashov, Frédéric Dupuis,
Heather Macbeth
-/
import algebra.big_operators.pi
import algebra.module.hom
import algebra.module.pr... |
dc0c47834f299d1a4bf43e9e1a3ad569b03dbf67 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/algebra/monoid.lean | 33bea77518794f47498b54b5f7b8b02b4d154896 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,949 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.continuous_on
import group_theory.submonoid.operations
import algebra.group.prod
import algebra.pointwise
import algebra.big_operators... |
a4d0c1c249cf1b32f960bf9a33d2f1fa1fa953f0 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/analysis/filter.lean | 97892b40094008ac9e487c8487b018e96b885ce3 | [
"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 | 11,837 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Computational realization of filters (experimental).
-/
import order.filter.basic
open set filter
/-- A `cfilter α σ` is a realization of a filter (base) on `α`,
rep... |
6f63b6847117f332519240912dd2608c31676755 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/linear_algebra/finsupp.lean | 37c50bbc7a78577c7dcc15d84198d0ae4f87e330 | [
"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 | 19,639 | 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
Linear structures on function with finite support `α →₀ M`.
-/
import data.monoid_algebra
noncomputable theory
open set linear_map submodule
open_locale classical
na... |
2f4ee973ab5eb314b0833fd173825b7a9a32d32c | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /hott/hit/pushout.hlean | a743486a0c2407692b72b3dfbb108f19706c082f | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 7,743 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the pushout
-/
import .quotient cubical.square types.sigma
open quotient eq sum equiv equiv.ops is_trunc
namespace pushout
section
parameters {TL... |
2d1e3d35619693e93ecbea84fa300e17789f1d0a | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /test/out/script/jit.lean | 332919b70ae56a34fdacd1a2f047acca850c0c85 | [
"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 | 284 | lean | import Papyrus
open Papyrus Script
llvm module exit do
define i32 @main() do
ret i32 101
#jit exit
llvm module echo do
define i32 @main(i32 %argc) do
ret %argc
#jit echo #["a", "b", "c"]
llvm module empty do
pure ()
#jit empty -- Error: Module has no main function
|
2b0ef70dee965a064920d49eb411190cfc1c4d6e | 0b8bcc39ea384da78d7a2528731fd15e35d89be3 | /src/datalog.lean | b144f28780da5b8453b55aa40cc67957e8034b76 | [] | no_license | cipher1024/lean-datalog | 40298fd5a9feb5abc4b05ebca6aa67a7e82c8903 | 9f2de341b0a7ed022144e230950ed65d1e49bcec | refs/heads/lean-3.4.2 | 1,596,448,625,238 | 1,569,818,367,000 | 1,569,818,367,000 | 211,711,322 | 1 | 1 | null | 1,569,818,368,000 | 1,569,783,568,000 | Lean | UTF-8 | Lean | false | false | 1,809 | lean | /-
Copyright (c) 2019 Simon Hudon and James King. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Simon Hudon and James King
-/
namespace datalog
def ident := string -- start with upper case
def sym := string -- start with lower case
inductive term
| var : ident ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.