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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fcb4cbe2507051d1a481d3751a6a7a1de66f9859 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /analysis/topology/topological_space.lean | 33e07504d1189224e19cf401565a8a075169c346 | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 50,965 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Theory of topological spaces.
Parts of the formalization is based on the books:
N. Bourbaki: General Topology
I. M. James: Topologies and Uniformit... |
45c7c4047895cd6222327eaa8ba9e2db7e80fe2a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/ind0.lean | 149d4ad9a3553e6a6673d657b86bef424d92a6e2 | [
"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 | prelude
inductive nat : Type :=
| zero : nat
| succ : nat → nat
check nat
check nat.rec.{1}
|
1e55bdbf72ecf922dac5fc557668ea1e9d1b8a6f | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/BuiltinNotation.lean | cf5642501bf3488c8524f057f8972aa2aef30861 | [
"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 | 15,909 | 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 Init.Data.ToString
import Lean.Compiler.BorrowedAnnotation
import Lean.Meta.KAbstract
import Lean.Meta.Transform
import Lean.Elab.App
import Lean.Ela... |
9092b7d607739a99abc4c24f6de5a3f7179bf73e | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /library/theories/analysis/metric_space.lean | 75c526b93e55eea0523146a41ba9c27891e61e71 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 18,187 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Metric spaces.
-/
import data.real.complete data.pnat data.list.sort
open nat real eq.ops classical
structure metric_space [class] (M : Type) : Type :=
(dist : M → M → ... |
f0d63eb47c962195e4aecb20c7654cc6c4eb250c | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/algebra/uniform_group.lean | 5b2057ccf5658205de1c8575200b62b1e1d7431d | [
"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 | 19,589 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import topology.uniform_space.uniform_embedding
import topology.uniform_space.complete_separated
import topology.algebra.group
import tactic.abel
/-!... |
e1deff129e09d16d81335d76474f87b24eb33b97 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/key_eqv1.lean | 8c60664b69e9c9e179650c8819ae0230e6d702cf | [
"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 | add_key_equivalence has_add.add nat.add
add_key_equivalence nat.add nat.succ
add_key_equivalence has_mul.mul nat.mul
#print key_equivalences
|
9513e99447b8b80d9ba9e802f73e82d142ea43d5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/int/nat_prime.lean | 240398f5de7c58476e4bd72858e73d6d3e934d76 | [] | 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 | 596 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.prime
import Mathlib.data.int.basic
import Mathlib.PostPort
n... |
3122de2fac1cb14b74c420f2bd189e0e64a95a61 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/library_search/exp_le_exp.lean | 6d6b4c4f9664641c862613348edc611aa01dc424 | [
"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 | 258 | lean | import tactic.suggest
import analysis.special_functions.exp
open real
/- Turn off trace messages so they don't pollute the test build: -/
set_option trace.silence_library_search true
example {a b : ℝ} (h: a ≤ b) : exp a ≤ exp b := by library_search
|
0afc1bdf586288432203acf39083e26d7fbcf651 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/functor/inv_isos.lean | 107ea4d853b5a34c3c3230c1b1fe81a0f04cdea8 | [
"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 | 1,787 | lean | /-
Copyright (c) 2022 Antoine Labelle. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Antoine Labelle
-/
import category_theory.eq_to_hom
/-!
# Natural isomorphisms with composition with inverses
Definition of useful natural isomorphisms involving inverses of functo... |
08f98f9c9bb5e500d75505531e02e6da5496c93c | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Elab/SyntheticMVars.lean | 95a5f24e5488ebeea6c49efbc212ede0cca1ac8f | [
"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 | 17,930 | 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, Sebastian Ullrich
-/
import Lean.Util.ForEachExpr
import Lean.Elab.Term
import Lean.Elab.Tactic.Basic
namespace Lean.Elab.Term
open Tactic (TacticM evalTacti... |
d53b7baaf5727ef1d7049a90c0835feba043605b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/positivity.lean | 007d449a37bf35df14141dbe6d686e9ec493aaa1 | [
"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 | 13,923 | lean | import algebra.order.interval
import algebra.order.smul
import analysis.normed.group.basic
import analysis.special_functions.pow.nnreal
import combinatorics.simple_graph.density
import data.complex.exponential
import data.rat.nnrat
import data.real.ereal
import data.real.hyperreal
import data.real.sqrt
import tactic.po... |
47a55ea4d9bd8660e7bbde68ba2d91e574808ff1 | df561f413cfe0a88b1056655515399c546ff32a5 | /6-advanced-addition-world/l11.lean | 15d7f3e79e11598a269dd7615a74b932b1a22864 | [] | 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 | 120 | lean | lemma add_right_eq_zero {a b : mynat} : a + b = 0 → a = 0 :=
begin
rw add_comm,
intro x,
exact add_left_eq_zero x,
end |
1b9d4ab787bc8df50b0eeac8d0cf69869b7d656e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/int/least_greatest.lean | f9d07dcc6c83d6da9389b9ca9c08012b80bb7613 | [
"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 | 5,121 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.int.order.basic
/-! # Least upper bound and greatest lower bound properties for integers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any ... |
6fd9d4f4e9a77f8cb0ed0a46cf2b8e974348bcbc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measure/probability_measure.lean | f7222221eacd971a8572121c187eb63dab76582a | [
"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 | 20,900 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import measure_theory.measure.finite_measure
import measure_theory.integral.average
/-!
# Probability measures
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes ... |
37ea806e29a2efe03c7f454789414248c970b14c | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/special_functions/trigonometric/deriv.lean | 72f2967a2c419df99b05acefd70451d23cd744cb | [
"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 | 37,964 | 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 analysis.special_functions.exp_deriv
import analysis.special_functions.trigonometric.basic
impor... |
513718281b0abc8f5fd70e5ab85f3019bf933054 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/Maintainable.lean | 1085b456d0c35487a0e12e0f46abf31f30db6cc0 | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 682 | lean | -- Maintainable
/-
[Maintainable] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [Dependable].
An instance of type [SystemType] is deemed [Maintainable] if and only if all the requirements are satisfied.
-/
import SystemModel.System
inductive Maintainable (sys_type: SystemT... |
7e62fc1b0aef71a8aa82db151218e82cfed22629 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/system/io.lean | 41bc5abdec85b6adb8705fb8f861fb473c196d99 | [
"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 | 8,998 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch and Leonardo de Moura
-/
import system.io_interface
/-! The following constants have a builtin implementation -/
constant io_core : Type → Type → Type... |
59e916f2080649f9e6400448cae60cbfa98beddf | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/perm/list.lean | 67284c5460c1ffa93fcedd87fd791e886f0edfc0 | [
"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 | 16,133 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.list.rotate
import group_theory.perm.support
/-!
# Permutations from a list
A list `l : list α` can be interpreted as a `equiv.perm α` where each ele... |
3567169649cfa57292d51a17338bf0a8550d5130 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/function.hlean | 2def10b9a5bd5af5f80c82e87cc378cad3e7e9a4 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,916 | 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
Ported from Coq HoTT
Theorems about embeddings and surjections
-/
import hit.trunc types.equiv cubical.square
open equiv sigma sigma.ops eq trunc is_trunc pi is_eq... |
0da6508a71dceb42a2d317d4b3715cdbfffa91ba | ee6a293504fa347375279607fc4cf3e6320cb092 | /src/seul/exercise.lean | 8402f8d5e6aef4c49df96c7df81668c74e523db2 | [] | no_license | tanhtm/hanoi-lean-2019 | 027e4aa23b434b139587fc426f64b677778516fb | 9e3437e79b10087fadadcfd4893c5db78cee80a9 | refs/heads/master | 1,591,374,005,862 | 1,560,838,820,000 | 1,560,839,409,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,668 | lean | open expr tactic classical
variables {p q r s : Prop}
variables {a b c d e : Prop}
section
local attribute [instance] classical.prop_decidable
theorem not_or_of_imp (h : a → b) : ¬ a ∨ b := sorry
theorem imp_iff_not_or : (a → b) ↔ (¬ a ∨ b) := sorry
theorem iff_def : (a ↔ b) ↔ (a → b) ∧ (b → a) := so... |
0c6a84e94a6eb7098c6befe21d9f5ac4695772de | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/nat/gcd.lean | 23a33f1120da4cbdb49d0ce7832f06c407a208b6 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 16,249 | 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
-/
import data.nat.basic
/-!
# Definitions and properties of `gcd`, `lcm`, and `coprime`
-/
namespace nat
/-! ### `gcd` -/
theorem gcd_dvd (m n : ℕ... |
ce1eadd03b2a2731ab7124cc34e6eb20f4076473 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Init/Data/Nat/Basic.lean | a95f30ee474d8c34803e8e0974b02a87bafa04dd | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,402 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura
-/
prelude
import Init.SimpLemmas
universes u
namespace Nat
@[specialize] def foldAux {α : Type u} (f : Nat → α → α) (s : Nat) : Nat → α → ... |
50488c0aadc93d144faf6b2cd656a862c01babb3 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/data/rbtree/find.lean | 3d342473bbbbccca4f95753037bffda82f3a7b50 | [
"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,065 | 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 data.rbtree.basic
universe u
namespace rbnode
variables {α : Type u}
@[elab_simple]
lemma find.induction {p : rbnode α → Prop} (lt) [decidable_rel ... |
7e6a87024e984b0b3e11899903c529c764085082 | 9cb9db9d79fad57d80ca53543dc07efb7c4f3838 | /src/locally_constant/NormedGroup.lean | f239d83a7ffa444f84731e9e6ede8d5f6e20e9fa | [] | 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 | 1,326 | lean | import topology.category.Profinite
import locally_constant.analysis
import normed_group.NormedGroup
noncomputable theory
set_option pp.proofs true
namespace NormedGroup
open opposite locally_constant
local attribute [instance] locally_constant.normed_group locally_constant.metric_space
/-- The bifunctor of locall... |
4b383e729236d06bca59f7e9882f663e2a7b3df1 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/analysis/normed_space/banach.lean | 83d979420c9ad44c60d211fcac58a9cebf7b7852 | [
"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 | 21,557 | 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 topology.metric_space.baire
import analysis.normed_space.operator_norm
import analysis.normed_space.affine_isometry
/-!
# Banach open mapping theorem
T... |
f648cff29a168afd0ce2024c909200fe0b5dc116 | d744d97b07fc1e61b0ebea192b2d624125898128 | /src/nat.lean | 4c83ed29003484dce325e145177cde52be49bebe | [
"MIT"
] | permissive | parkersullivan/leanstuff | 019c757848dd8f5db185e6973969141aee6fef7c | 3da132c44d365ecd933de64fa04ba66b9e620683 | refs/heads/master | 1,599,036,040,845 | 1,573,316,625,000 | 1,573,316,625,000 | 219,181,711 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 435 | lean | namespace my_nat
inductive nat : Type
| zero : nat
--| succ (n' : nat) : nat
| succ : nat → nat
def dec : nat → nat
| nat.zero := nat.zero
| (nat.succ n') := n'
def add : nat → nat → nat
| nat.zero x := x
| (nat.succ x') x := nat.succ(add x' x)
def ltb : nat → nat → bool
| nat.zero nat.zero := ff
| nat.zero (nat.... |
5a6acdfaa8c8b858dd848422eb8309fcf745f535 | 26b8b0964ca8e1c2e203585ba5940f83fe05e48a | /src/tidy/make_lemma.lean | bcc52b8e79b3731f2b15b5c0529d6e507277f83a | [] | no_license | jcommelin/lean-tidy | ef3cd32a3804221d93f0dff9e180bb2c52f4b143 | 9cecf497e90db64b5ea140ad6ae1603976dcd402 | refs/heads/master | 1,585,129,919,276 | 1,533,512,680,000 | 1,533,512,680,000 | 143,677,361 | 0 | 0 | null | 1,616,803,481,000 | 1,533,530,576,000 | Lean | UTF-8 | Lean | false | false | 1,671 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import data.buffer.parser
open lean.parser tactic interactive parser
@[user_attribute] meta def field_lemma_attr : user_attribute :=
{ name := `field_lemma, des... |
906cd2f2fb62817df9bc424ea2b13fe9d87790a5 | d72901cc240bd78b8b0384565e4f4dee8abd3a86 | /src/group_theory/perm/cycles.lean | 574f6ce58998292494389b0dfa2f7c5547ad036b | [
"Apache-2.0"
] | permissive | leon-volq/mathlib | 513b24765349bb5187df9d898b92beadf96124d9 | 0cc93a137e9b2e243f8ae1f808fa7225ce0fe143 | refs/heads/master | 1,676,294,376,990 | 1,610,838,688,000 | 1,610,838,688,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,432 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.perm.sign
namespace equiv.perm
open equiv function finset
variables {α : Type*} {β : Type*} [decidable_eq α]
section sign_cycle
variables [fintype... |
e274698ed8907c62ffda25b670313211601c34c6 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Elab/Deriving/TypeName.lean | dc1d792fd83b281137bbf55c98a01539b612f04c | [
"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 | 887 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Lean.Elab.Deriving.Basic
import Std.Dynamic
namespace Lean.Elab
open Command Std Parser Term
private def deriveTypeNameInstance (declNames : Array Nam... |
c1f99cca2492ed710ad667cdeb58fb9df402afdc | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/zfc_auto.lean | f136745f98c5a9c5f593e535212dab1a064efd9a | [] | 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 | 22,669 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
A model of ZFC in Lean.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.set.basic
import Mathlib.PostPort
universes u u_1 l u_2 u_3 v... |
279c6ccda5d8bf750548621646b9e997bec9000a | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/data/pfun.lean | 1fb8fc55fd73f477239615329ff49c61a1e0c4a1 | [
"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 | 22,577 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Jeremy Avigad
-/
import data.rel
/-- `roption α` is the type of "partial values" of type `α`. It
is similar to `option α` except the domain condition can be an
arbi... |
f3d20f00e6e27ecc3c426c978fa0f458915d9a7a | 649957717d58c43b5d8d200da34bf374293fe739 | /src/data/finset.lean | 62c8818cba2670a53970c2c27ecb95018a9438e9 | [
"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 | 84,112 | 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, Jeremy Avigad, Minchao Wu, Mario Carneiro
Finite sets.
-/
import logic.embedding algebra.order_functions
data.multiset data.sigma.basic data.set.lattice
op... |
d87d0c53c795bc919a69b5035c0423a5765b4bdd | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /09_Type_Classes.org.29.lean | 04946496bdfcc0be8fbcbf2a7e5e837c2ac25f9d | [] | 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 | 1,217 | lean | import standard
import data.nat
open nat decidable
definition ball (n : nat) (P : nat → Prop) : Prop :=
∀ x, x < n → P x
definition ball_zero (P : nat → Prop) : ball zero P :=
λ x Hlt, absurd Hlt !not_lt_zero
variables {n : nat} {P : nat → Prop}
definition ball_of_ball_succ (H : ball (succ n) P) : ball n P :=
λ x H... |
8bd73f9b86b348fc1bccebce49abb6da4aecb050 | 6e8de6b43162bef473b4a0bd93b71db886df98ce | /src/pregeom/pushforward.lean | 97c80f8a541d7ae365caee3e8fbf1661671c1327 | [
"Unlicense"
] | permissive | adamtopaz/comb_geom | 38ec6fde8d2543f56227ec50cdfb86cac6ac33c1 | e16b629d6de3fbdea54a528755e7305dfb51e902 | refs/heads/master | 1,668,613,552,530 | 1,593,199,940,000 | 1,593,199,940,000 | 269,824,442 | 6 | 0 | Unlicense | 1,593,119,545,000 | 1,591,404,975,000 | Lean | UTF-8 | Lean | false | false | 4,180 | lean | import .basic
import data.set
import ..helpers
open_locale classical
/-!
# The pushforward of a geometry.
First, start with two sets, S and T. Then, with a surjective map f : S → T, a closure operator on S,
and the requirement that ∀ t ∈ T, f ⁻¹({t}) is closed, we can define a closure operator on T, by
letting cl U ... |
b3e84cefd1f9cc23784df2cebcabeb518aff159b | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/autoparam.lean | 4e35e1296f84b86e9594a08db2882d5d535edc5c | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 124 | lean | new_frontend
def f (x y : Nat) (h : x = y := by assumption) : Nat :=
x + x
def g (x y z : Nat) (h : x = y) : Nat :=
f x y
|
c0cae55b3f415f9d0b6a14c9d29b485cf47eae86 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /tests/lean/run/inductive1.lean | 64615db759eb5169e1e45d19f619bd03112c26e2 | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,295 | lean |
inductive L1.{u} (α : Type u)
| nil
| cons : α → L1 α → L1 α
#check L1
#check @L1.cons
inductive L2.{u} (α : Type u)
| nil
| cons (head : α) (tail : L2 α)
#check @L2.cons
universes u v
variable (α : Type u)
inductive A (β : Type v)
| nil {}
| protected cons : α → β → A β → A β
#check @A.cons
#check A.nil Nat Bo... |
aaec3cc8892b092ae390bda7b6f41b6202054bec | d4df7c538bbc0b06771d7b7a6f46fbadebb8c5eb | /src/monad_transformers/writer_t.lean | 0ed42ab8ebd6e98e68aeb056bae86ecb07ed2bf0 | [] | no_license | breakerzirconia/LeanTransformers | 11bb924b59ac589d0c6b39586d27cccc8f9e939c | 3c52441b8990bab7d8cf1817df6e04f657a14e1c | refs/heads/main | 1,682,610,526,027 | 1,620,477,129,000 | 1,620,477,129,000 | 365,507,838 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,652 | lean | import algebra.group
import monad_transformers.monad_trans
----------------------------
-- Definition + instances --
----------------------------
structure WriterT (w : Type) (m : Type → Type) (a : Type) := (run : m (a × w))
open WriterT
instance {w : Type} {m : Type → Type} [functor m] : functor (WriterT w m) := {... |
987b8b3d5210082bae4eea766fd314db35252814 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/multilinear/finite_dimensional.lean | fc22a203d60b8e9a51a58c5e58ba4beb139cc490 | [
"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 | 2,669 | lean | /-
Copyright (c) 2022 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import linear_algebra.multilinear.basic
import linear_algebra.free_module.finite.matrix
/-! # Multilinear maps over finite dimensional spaces
The main results are that mu... |
ce1be7fa66c1f83757a3e29ef4a2759db8c6d1a7 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/analysis/special_functions/exp_log.lean | 2bafdb29fb39cb6af112b8e37671121ef55fa17e | [
"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 | 35,299 | 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
-/
import data.complex.exponential
import analysis.calculus.inverse
import measure_theory.borel_space
import analysis.complex... |
84ca461061ea18d1dfa92a43f41912ebb0eda50e | 766b82465c89f7c306a9c07004605f5d564fd7f7 | /src/game/products/level01.lean | b1133d4766b1ce5363b5713eed70ce2d2fe3cacb | [
"Apache-2.0"
] | permissive | stanescuUW/integer-number-game | ca4293a46c51db178f3bdb248118075caf87f582 | fced68b04a59ef0f4ea41b5beb2df87e0428c761 | refs/heads/master | 1,669,860,820,240 | 1,597,966,427,000 | 1,597,966,427,000 | 289,131,361 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 532 | lean | import tactic
import data.rat
import data.real.basic
import data.real.irrational
import game.basic.level02
namespace uwyo -- hide
open real -- hide
/-
# Chapter 3 : Products
## Level 1
-/
/- Lemma
The product of a rational and an irrational number may be a rational.
-/
theorem irrat_prod : ¬ (∀ (a : ℝ), ∀ (b : ℚ),... |
4fe6416344039e95f583f689306bdf9babffc6a1 | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/hints/category_theory/exercise3/hint7.lean | 1bde77263c2b886b592d2fac9cdd4a920801cc02 | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 693 | lean | import category_theory.equivalence
open category_theory
variables {C : Type*} [category C]
variables {D : Type*} [category D]
lemma equiv_preserves_mono {X Y : C} (f : X ⟶ Y) [mono f] (e : C ≌ D) :
mono (e.functor.map f) :=
begin
tidy,
replace w := congr_arg (λ k, e.inverse.map k) w,
simp at w,
-- We can ... |
25e6b860fdec0a30f5e698aa442aa3c7a2412427 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/overloadsAndDelayedCoercions.lean | f3c619518dd2a3efb6766bbaf24f50bf0d69cf27 | [
"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 | 500 | lean | universe u
inductive Vector (α : Type u) : Nat → Type u
| nil : Vector α 0
| cons : {n : Nat} → α → Vector α n → Vector α (n+1)
infix:67 " :: " => Vector.cons
inductive Ty where
| int
| bool
| fn (a r : Ty)
inductive HasType' : {n : Nat} → Vector Ty n → Type where
| stop {ty : Ty} : HasType' (ty :: ctx)... |
192d4ebc82230a90c80c7c34e33c9b9696140c44 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/homology/homology.lean | 786a74f5d3a9ca1e54cb69f0f029386a49fdbab7 | [
"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,474 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.homology.image_to_kernel
import algebra.homology.homological_complex
import category_theory.graded_object
/-!
# The homology of a complex
Given `C : ... |
ab09223c0fb0ae1abd29cfd1d42ebffe6acc88ac | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/arrow.lean | 549656b9e243c50bc36bb4c8de2810f624bbae58 | [
"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 | 5,220 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.comma
/-!
# The category of arrows
The category of arrows, with morphisms commutative squares.
We set this up as a specialization of the comma ... |
45d31ab0a2f13770af365839a3a99d7e27271942 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/real/basic.lean | efe5d9bb44f8e2d9de3670002739f6a83b1cd91b | [
"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 | 26,047 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
The (classical) real numbers ℝ. This is a direct construction
from Cauchy sequences.
-/
import order.conditionally_complete_lattice data.real.cau_seq_... |
83e374ec6c1c3b1a250ae75cec4e95ca4a4d019c | a4673261e60b025e2c8c825dfa4ab9108246c32e | /src/Init/Prelude.lean | 04e0cf878121758f9b1bb438269546835b2afb40 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 66,153 | 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
-/
prelude
universes u v w
@[inline] def id {α : Sort u} (a : α) : α := a
/-
The kernel definitional equality test (t =?= s) has special support for idDelta... |
2633bdba6c6e6c3671e09e2e8a17e4efcefe1414 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/mv_polynomial/funext.lean | 11651d547f27e93d4b57cc052dc9b88c57b0ad9e | [
"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 | 3,322 | 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 data.polynomial.ring_division
import data.mv_polynomial.rename
import ring_theory.polynomial.basic
/-!
## Function extensionality for multivariate polynomials... |
194aaa005fad83438781259679e1396432661722 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/choose.lean | 47600d5064e968fb2daa84adf3f704c447ba7c86 | [
"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 | 7,281 | 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, Floris van Doorn, Mario Carneiro
-/
import tactic.core
/-!
# `choose` tactic
Performs Skolemization, that is, given `h : ∀ a:α, ∃ b:β, p a b |- G` produces
`f : α → ... |
93d011c32c70d1348a5ecd4a41d28cbb15a73060 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/notation2.lean | f645a9923cb2ea2e414da2fb0116eae2ce41a032 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 276 | lean | --
inductive List (T : Type) : Type | nil {} : List | cons : T → List → List open List notation h :: t := cons h t notation `[` l:(foldr `,` (h t, cons h t) nil) `]` := l
infixr `::` := cons
#check (1:nat) :: 2 :: nil
#check (1:nat) :: 2 :: 3 :: 4 :: 5 :: nil
#print ]
|
4c91098867ec25a4d4ff695d91d7cdbf4f0d8002 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/eval_except.lean | 47daeb7013b25f729e6e7427ed27c22d2851c02b | [
"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 | 170 | lean | prelude
import Init.System.IO
#eval (throw $ IO.userError "this is my error" : IO Unit)
#eval (throw $ IO.Error.noFileOrDirectory "file.ext" 31 "and details" : IO Unit)
|
e0bb00864de4906a8bc1086e76a2a8c310e7fd93 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard/logic/axioms/funext.lean | 9b744ce9a333466320a60eede273b227e3cf9226 | [
"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 | 1,074 | lean | ----------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
-----------------------------------------------------... |
c9d0ea03fb57a278cf965b73e6d4d500baf6c080 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/normed_space/complemented.lean | 3c092f406066f0e5e463a87a59f3a9e53e0daadf | [
"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 | 5,821 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.normed_space.banach
import analysis.normed_space.finite_dimension
/-!
# Complemented subspaces of normed vector spaces
A submodule `p` of a topolo... |
008e40e90c3cb1e4f61443bf7d72a27b514e5f79 | ac49064e8a9a038e07cf5574b4fccd8a70d115c8 | /hott/algebra/ordered_group.hlean | 1feba7a98f83b39fcaea8e5afbcded7876af9eec | [
"Apache-2.0"
] | permissive | Bolt64/lean2 | 7c75016729569e04a3f403c7a4fc7c1de4377c9d | 75fd8162488214a959dbe3303a185cbbb83f60f9 | refs/heads/master | 1,611,290,445,156 | 1,493,763,922,000 | 1,493,763,922,000 | 81,566,307 | 0 | 0 | null | 1,486,732,167,000 | 1,486,732,167,000 | null | UTF-8 | Lean | false | false | 34,426 | hlean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Partially ordered additive groups, modeled on Isabelle's library. These classes can be refined
if necessary.
-/
import algebra.binary algebra.group algebra.order
open eq ... |
baa3eaaf4c0b65e288952094479636051d928cce | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/probability/kernel/condexp.lean | d63c7bb03b2657ee4cb313399da5e338d5a6f0ad | [
"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 | 7,099 | lean | /-
Copyright (c) 2023 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import probability.kernel.cond_distrib
/-!
# Kernel associated with a conditional expectation
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file requ... |
4fa40ac248671aee253ccc0912cfbb9ad982cfba | bb31430994044506fa42fd667e2d556327e18dfe | /src/category_theory/idempotents/karoubi.lean | ec19521b7a1b364e3dcf82c291796232d6f5dbed | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 8,792 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import category_theory.idempotents.basic
import category_theory.preadditive.additive_functor
import category_theory.equivalence
/-!
# The Karoubi envelope of a category
In t... |
4935912495972c604801b7039da5e854addf3880 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/triv_sq_zero_ext.lean | 43815df87801db0a8590aa1f3e5fb193edb6e385 | [] | 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 | 10,646 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.algebra.basic
import Mathlib.PostPort
universes u v
namespace Mathlib
/-!
# Trivial Squar... |
d570c65d554c1562be2de228ad45a243374a4ce2 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/measure_theory/borel_space.lean | d0664f290b97438fa8332415174a72f5b0a82a09 | [
"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 | 29,437 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury Kudryashov
-/
import measure_theory.measurable_space
import topology.instances.ennreal
import analysis.normed_space.basic
/-!
# Borel (measurable) space
## Main ... |
eddb4e9d0503be1bc9fa3961a4dcf9303b0fb50c | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /algebra/archimedean.lean | b2b1c40a88dcc4dfd686f4388459cd74d4b08353 | [
"Apache-2.0"
] | permissive | sebzim4500/mathlib | e0b5a63b1655f910dee30badf09bd7e191d3cf30 | 6997cafbd3a7325af5cb318561768c316ceb7757 | refs/heads/master | 1,585,549,958,618 | 1,538,221,723,000 | 1,538,221,723,000 | 150,869,076 | 0 | 0 | Apache-2.0 | 1,538,229,323,000 | 1,538,229,323,000 | null | UTF-8 | Lean | false | false | 9,187 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Archimedean groups and fields.
-/
import algebra.group_power data.rat
local infix ` • ` := add_monoid.smul
variables {α : Type*}
class floor_ring (α) extends linear_... |
5649862558ecd8ac1050f026e896adb64433adbc | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/linear_algebra/tensor_product.lean | 6738e710ad0f44d8e329908139516ba56f3a3edb | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 15,549 | 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
Tensor product of modules over commutative rings.
-/
import group_theory.free_abelian_group
import linear_algebra.direct_sum_module
variables {R : Type*} [comm... |
9f6aa452ee448313dad3b2a4479f76f08128d423 | 7e15b782f874bcc4192c668a12db901081a9248e | /theorem-proving-in-lean/src/ch_3.lean | 8585b895160afac2b669c05e2554c8d2fad2bd04 | [] | no_license | Javran/Thinking-dumps | 5e392fe4a5c0580dc9b0c40ab9e5a09dad381863 | bfb0639c81078602e4b57d9dd89abd17fce0491f | refs/heads/master | 1,621,682,942,579 | 1,618,941,860,000 | 1,618,941,860,000 | 7,418,999 | 19 | 4 | null | null | null | null | UTF-8 | Lean | false | false | 6,102 | lean | namespace ch_3
/-
Proof irrelevance: if Prop is inhabited,
any p: Prop is definitionally equal.
In other words, it's just that whether Prop is inhabited
matters, and the exactly proof doesn't.
Two views in propositions are types:
- a proof of p is simply an object t : p of the right type
- mostly about... |
c746fbb01386e85ca13c58ade8e03f733abc6aa1 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/bad_id.lean | 7dec22b98689d87827e6481b5e9935bd2921b069 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 60 | lean | import data.num
definition x.y := 10
definition x.1 := 10
|
302c39e4db20369552626d880d8574e1d389e068 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/category_theory/reflect_isomorphisms.lean | 87b88d6ac3f9cc2ecd7d0cdab0f18bd32a6f8fc1 | [
"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 | 2,755 | 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
open category_theory category_theory.limits
namespace category_theory
universes v₁ v₂ u₁ u... |
334d46ba10ac4bf3b23b9fe4d65bbaaa96f6417b | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/convex/extreme.lean | 9170fc0379219a6c3f4494e56e7b5d84362ba077 | [
"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 | 8,781 | lean | /-
Copyright (c) 2021 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import analysis.convex.basic
/-!
# Extreme sets
This file defines extreme sets and extreme points for sets in a real vector space.
An extre... |
55ca429803a0ba94631c25ce427ec5c4dd370d60 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finset/sum.lean | a940205835735020e70bcb3cf7b572259a03847b | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,368 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.multiset.sum
import data.finset.card
/-!
# Disjoint sum of finsets
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspon... |
17494014b340f65fc0ae9dfb2bff14d554b761f4 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Elab/Tactic/Generalize.lean | 2f915b92020d8169663185072f4273b4e4e9bcd4 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 1,007 | 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, Sebastian Ullrich
-/
import Lean.Meta.Tactic.Generalize
import Lean.Meta.Check
import Lean.Meta.Tactic.Intro
import Lean.Elab.Tactic.ElabTerm
import Lean.Elab... |
3b246af8778c7ab51ea73df3363ec0c5fd63845c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/file_not_found.lean | 4f0666e9bbdb2691c4834d1205bc4edde6688fd7 | [
"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 | 581 | lean | prelude
import Init.System.IO
open IO.FS
def usingIO {α} (x : IO α) : IO α := x
#eval (discard $ IO.FS.Handle.mk "non-existent-file.txt" Mode.read : IO Unit)
#eval usingIO do
if (← System.FilePath.pathExists "readonly.txt") then pure ()
else
IO.FS.withFile "readonly.txt" Mode.write $ fun _ => pure ()
IO.setA... |
3ed56a4498462a48c912c8c3562109aaaf5effb0 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/category/Group/Z_Module_equivalence.lean | 8900e175e30ccba942c6ea8ca9b543c56fc88620 | [
"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 | 1,468 | 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.category.Module.basic
/-!
The forgetful functor from ℤ-modules to additive commutative groups is
an equivalence of categories.
TODO:
either use this ... |
61593476339d03b98a0e1947f0435fe50872dade | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/coeIssue1.lean | d57274c25645fb38749ce6fd8e0305899d8673ae | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,281 | lean | -- From @joehendrix
-- The imul doesn't type check as Lean won't try to coerce from a reg (bv 64) to a expr (bv ?u)
new_frontend
inductive MCType
| bv : Nat → MCType
open MCType
inductive Reg : MCType → Type
| rax (n : Nat) : Reg (bv n)
inductive Expr : MCType → Type
| r : ∀{tp:MCType}, Reg tp → Expr tp
| sextC {s:... |
ce7ce0464457cd83aecafe116cd66275f2139083 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/combinatorics/derangements/finite.lean | 4bae0101ad9fda94ef20791f0a5c541605d056fc | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,718 | lean | /-
Copyright (c) 2021 Henry Swanson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Henry Swanson
-/
import combinatorics.derangements.basic
import data.fintype.card
import tactic.delta_instance
import tactic.ring
/-!
# Derangements on fintypes
This file contains lem... |
d69cedb384a98de1733f3499ee1c24e0182ae03d | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /EXAMS/exam3-practice-key.lean | 0cd80655c388e9f9e680db97f30e67cec3554cac | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 12,269 | lean | import data.set
open set
/-
NOTE: The final exam is comprehensive, but this practice
exam is not. In addition to working through this practice
exam, you should revisit the exam1 and exam2 practice
exams.
-/
/- SETS -/
namespace sets
/-
1.
Prove that 1 is in the set {1, 2, 3, 4, 5}.
-/
example: 1 ∈ ({1, 2, 3, 4, 5}:... |
7316b10db0b246d9bd8eecefce15b52115ece73b | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/LeftBiMagma.lean | 3a33373ffbb0ef254f0688bf198501009a67103f | [] | 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 | 8,284 | 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 LeftBiMagma
structure LeftBiMagma (A : Type) : Type :=
(op : (A → (A → A)))
(linv : (A → (A → A)))
open LeftBiMagma
structure Sig (AS : Type) : Type :=... |
3014fd256d8c3563743b7834401cbce67e140cae | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /omin/presheaf.lean | cddffc780ca9365cfa08de9a941ad5a7d47e4d39 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,114 | lean | import o_minimal.definable
open o_minimal
variables {R : Type*} (S : struc R)
/-- A *definable presheaf* structure on a type X
consists of the data of, for every definable set S ⊆ Rⁿ,
a predicate `definable` on functions S → X, satisfying the axiom:
for every definable map φ : T → S, precomposition by φ
preserves de... |
4436ac399591fa0721816868ec28a2e2fe6da567 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/bounded_continuous_function.lean | b8ef146b9df0f3cf8da09313420c861944aa51ec | [
"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 | 29,683 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro, Yury Kudryashov, Heather Macbeth
-/
import analysis.normed_space.basic
/-!
# Bounded continuous functions
The type of bounded continuous functio... |
44d153a8ad93d1390c17e21a7d6ffc19835735b3 | ea4aee6b11f86433e69bb5e50d0259e056d0ae61 | /src/tidy/at_least_one.lean | eecdbf122765d252a22c256ae4a581c7fc14caff | [] | no_license | timjb/lean-tidy | e18feff0b7f0aad08c614fb4d34aaf527bf21e20 | e767e259bf76c69edfd4ab8af1b76e6f1ed67f48 | refs/heads/master | 1,624,861,693,182 | 1,504,411,006,000 | 1,504,411,006,000 | 103,740,824 | 0 | 0 | null | 1,505,553,968,000 | 1,505,553,968,000 | null | UTF-8 | Lean | false | false | 594 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
open tactic
-- Applies a list of tactics in turn, always succeeding.
meta def try_list : list (tactic unit) → tactic unit
| list.nil := skip
| (t :: ts) := try... |
76fbb7d4ab1f9c5600a06992eb1c7b3bc0058b0a | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/category_theory/limits/over.lean | de7db4182abf34e226bd6693c510b9e6b508ab3c | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 13,940 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Reid Barton, Bhavik Mehta
-/
import category_theory.comma
import category_theory.pempty
import category_theory.limits.connected
import category_theory.limits.creates
im... |
ca841b8a4aafd3559b5fcd50940fea1f8a68e686 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/banach_steinhaus.lean | e51b2f2e97a4284d8dbfe0125882d04cf0d3260d | [
"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 | 6,371 | lean | /-
Copyright (c) 2021 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import analysis.normed_space.operator_norm
import topology.metric_space.baire
import topology.algebra.module.basic
/-!
# The Banach-Steinhaus theorem: Uniform Boundedne... |
455f04477dc7a28517e5fe3876a5eac1365b5a09 | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/subquery.lean | 37e3965c4e03db3c606547bfcaf48f661620c60c | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,225 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
-- TODO: this should be easily solvable
lemma inlineCorrelatedSubquery :
forall (Γ s: Schema) (a : rel... |
99896a7b44ba7bfbf1e94ecb61eca8dc931c3804 | 740993c2939128e433a4feddfe605721331a0c75 | /symm_matrix.lean | e96e2d4f082a12e2cfbfb06947fdfc7b4a78fb94 | [] | no_license | gabrielmoise/Lean-work | 436bb7bf1e8144eb1aa90cc161b386a6ee6892bf | 52b2a2c840f8477e293cbb897335a19ebf482cf7 | refs/heads/master | 1,681,251,086,221 | 1,620,036,203,000 | 1,620,036,203,000 | 360,084,138 | 0 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 15,382 | lean | /-
Copyright (c) 2021 Gabriel Moise. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Moise.
-/
import data.complex.basic
import data.complex.module
import data.fintype.basic
import data.real.basic
import linear_algebra.matrix
/-!
# Symmetric Matrices
This modu... |
8c3ed41843d29d14d5589f42257394f7edfea071 | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /nat_num_game/src/Advanced_Proposition_World/adv_prop_wrld6.lean | 8048c13b60a9d979135667f4e38cb406f7137acf | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 88 | lean | example (P Q : Prop) : Q → (P ∨ Q) :=
begin
intro q,
right,
exact q,
end |
389d726fbe550fb87451e2c099c40ae92ec8c0d9 | 94e33a31faa76775069b071adea97e86e218a8ee | /counterexamples/homogeneous_prime_not_prime.lean | 493fc2b3edbddc3567345c501364129f3a61d889 | [
"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,481 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Eric Wieser, Jujian Zhang
-/
import ring_theory.graded_algebra.homogeneous_ideal
import data.zmod.basic
import tactic.derive_fintype
/-!
# A homogeneous prime that is ho... |
38e8fbfc5c6ed8ca9e4dce824186a715c3284931 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Parser.lean | fdc04a541475b0341a77c82fe444dda4bdbbe3bc | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,168 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Basic
import Lean.Parser.Level
import Lean.Parser.Term
import Lean.Parser.Tactic
import Lean.Parser.Command
import Lea... |
6191f5312aa0378f3e6125d412cc4a98f9bf693b | 7617a8700fc3eebd9200f1e620ee65b3565d2eff | /src/c0/dyn_ok.lean | 80b12dd6a45b2bf75abc10397a7f3a8987678cd8 | [] | no_license | digama0/vc0 | 9747eee791c5c2f58eb53264ca6263ee53de0f87 | b8b192c8c139e0b5a25a7284b93ed53cdf7fd7a5 | refs/heads/master | 1,626,186,940,436 | 1,592,385,972,000 | 1,592,385,972,000 | 158,556,766 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,037 | lean | import c0.dyn
namespace c0
inductive vtype
| int
| bool
| ref : vtype → vtype
| nil
| cons : vtype → vtype → vtype
| arr : vtype → ℕ → vtype
| refarr : vtype → vtype
| named : ident → vtype → vtype
| struct : ident → vtype
def vtype.arr' (τ : vtype) : ℕ → vtype
| 0 := vtype.nil
| (n+1) := vtype.cons τ (vtype.arr' n)... |
0051ad38371fb900711fb0553769d91dabc9a43e | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/separation.lean | f5e01ceb04dbabe2a5b0b8f7b3f7fc215eb66744 | [
"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 | 12,410 | 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
Separation properties of topological spaces.
-/
import topology.order
open set filter lattice
local attribute [instance] classical.prop_decidable
uni... |
ae8d4e1f5ae4ff4a7c8723022664ded17e696890 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/triv_sq_zero_ext.lean | 97ce1c4be6147132553d787e0462d7d15c066732 | [
"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 | 10,818 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.basic
/-!
# Trivial Square-Zero Extension
Given a module `M` over a ring `R`, the trivial square-zero extension of `M` over `R` is defined
to be the `... |
1ed146633ce4298a426d7d728afd6a71a851b8fe | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/conditionally_complete_lattice.lean | 17cce3c089eba4122f4d3f5e2b1b5e91dc27db4a | [] | 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 | 38,934 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.enat
import Mathlib.data.set.intervals.ord_connected
import Mathlib.PostPort... |
7407011cf4d61444124e9a183cee2e907ccfee73 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/group_theory/pow_mod.lean | 858417c2aac83cf34bf540a3efd90a44258b128d | [] | 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 | 4,201 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
Given a monoid `M` and an element `g ∈ M` satisfying `gⁿ = 1`, we
can interpret `gⁱ` for elements `i ∈ ℤ/n`. We give several
different Lean versions of this idea. ... |
32072f2b7023799a16f0afdfca9ea3f18d408df5 | 6b2a480f27775cba4f3ae191b1c1387a29de586e | /group_rep_2/Reynold_operator/reynold.lean | ec80efff81346847d4f12bebf146cd8b20f75b2a | [] | no_license | Or7ando/group_representation | a681de2e19d1930a1e1be573d6735a2f0b8356cb | 9b576984f17764ebf26c8caa2a542d248f1b50d2 | refs/heads/master | 1,662,413,107,324 | 1,590,302,389,000 | 1,590,302,389,000 | 258,130,829 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 6,905 | lean | import basic_definitions.group_representation
import basic_definitions.morphism
import tactic.apply_fun
import basic_definitions.sub_module
import Tools.tools
set_option pp.generalized_field_notation false
open_locale big_operators ---- his there a standart notation ?
/-!
* Let `ρ and π` two representations on ... |
47f1c5ff7f16c34fa22d01fdce7e892231cceca6 | 19cc34575500ee2e3d4586c15544632aa07a8e66 | /src/analysis/calculus/times_cont_diff.lean | d583d045b0a6ec97e3fdc529d91df8ab31a9f448 | [
"Apache-2.0"
] | permissive | LibertasSpZ/mathlib | b9fcd46625eb940611adb5e719a4b554138dade6 | 33f7870a49d7cc06d2f3036e22543e6ec5046e68 | refs/heads/master | 1,672,066,539,347 | 1,602,429,158,000 | 1,602,429,158,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 121,909 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.calculus.mean_value
/-!
# Higher differentiability
A function is `C^1` on a domain if it is differentiable there, and its derivative is contin... |
9e9ecb13181a574bd7a6fc32fb9ebf61a8ee1a9e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/set/intervals/basic.lean | 0d17debfe1bf499cb80bdd0902540b557c28156f | [] | 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 | 50,698 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Patrick Massot, Yury Kudryashov, Rémy Degenne
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.ordered_group
import... |
bde67c96be7323c5afbe1149fba2cb51c73a8bac | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/commutative_algebra/bool_field.lean | 3dc6466aa92f0ddf1557cffed3550d7ac671a1f3 | [] | 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 | 305 | lean | import algebra.ring
instance : discrete_field bool :=
begin
refine_struct {
zero := ff, one := tt,
neg := id, inv := id,
add := bxor, mul := band,
zero_ne_one := λ e, by {cases e},
has_decidable_eq := by { apply_instance }
};
try { repeat { intro a, cases a }; exact dec_trivial, },
end
|
08d26ddcdcaba8c80c55b41215d02c6c0673a862 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/constructions/epi_mono.lean | 0dd2408e5adfa584a6da0e3971dcae0519bc571a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,337 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.pullbacks
/-!
# Relati... |
49ec4c45512d5e60e9c2e31518c2b22a3b3e2f56 | 367134ba5a65885e863bdc4507601606690974c1 | /src/computability/tm_to_partrec.lean | 59605cdc29483a4906c41da3ca565ec3a20d2e8d | [
"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 | 64,651 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import computability.halting
import computability.turing_machine
import data.num.lemmas
/-!
# Modelling partial recursive functions using Turing machines
This file d... |
5cfe913e790312bb6c5a95ea6d7dc4540121969c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/alg_info1.lean | 9122885bd7d018554f1ec6969165f8ff1961dc23 | [
"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 | 137 | lean | open tactic
example : true :=
by do
let op : expr := `((+) : nat → nat → nat),
trace op,
trace_algebra_info op,
constructor
|
ad262045a1679f31b0d2d62f9c86ffcdefa29a33 | 70f8755415fa7a17f87402cde4651e9f4db1b5bb | /src/mvpfunctor/W.lean | 29dc1a8fdd401654f93eb87dcfa198d5f710927b | [
"Apache-2.0"
] | permissive | shingarov/qpf | ab935dc2298db12c87ac011a2e4d2c27e0bdef4b | debe2eacb8cf46b21aba2eaf3f2e20940da0263b | refs/heads/master | 1,653,705,576,607 | 1,570,136,035,000 | 1,570,136,035,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,275 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
The W construction as a multivariate polynomial functor.
-/
import mvpfunctor.basic
universes u v
namespace mvpfunctor
open typevec
variables {n : ℕ} (P : mvpfunctor.{u}... |
38daea033240be878a2d79213e4f23dc1c24e0a2 | a721fe7446524f18ba361625fc01033d9c8b7a78 | /src/tactic/tactic.lean | d727cf711679c4e13794bb10df2105fb287bfbc3 | [] | no_license | Sterrs/leaning | 8fd80d1f0a6117a220bb2e57ece639b9a63deadc | 3901cc953694b33adda86cb88ca30ba99594db31 | refs/heads/master | 1,627,023,822,744 | 1,616,515,221,000 | 1,616,515,221,000 | 245,512,190 | 2 | 0 | null | 1,616,429,050,000 | 1,583,527,118,000 | Lean | UTF-8 | Lean | false | false | 3,628 | lean | open tactic
open tactic.interactive
open interactive (parse)
open lean.parser
variables {p q : Prop}
-- This tactic is like `left`, but only works on ∨
meta def myorleft : tactic unit :=
do
-- Pattern match with the current goal to get exprs l and r for
-- the left and right side of the `or`
`(%%l ∨ %%r) ← targ... |
6e5c446ad549983aedacfbd50cbcc64eea4d762c | cb1829c15cd3d28210f93507f96dfb1f56ec0128 | /introduction/summer2017/defining_objects.lean | d5b49a96f41e8244ce3b28c6b9ef935851d15e3a | [] | no_license | williamdemeo/LEAN_wjd | 69f9f76e35092b89e4479a320be2fa3c18aed6fe | 13826c75c06ef435166a26a72e76fe984c15bad7 | refs/heads/master | 1,609,516,630,137 | 1,518,123,893,000 | 1,518,123,893,000 | 97,740,278 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 589 | lean | -- Chapter 2. Defining Objects in Lean
-- page 15
#check nat
#print nat
#check int
#print int
#check list
#print list
#check bool
#print bool
#check 3 + 6 * 9
#eval 3 + 6 * 9
-- page 17
#check (≤)
variables α β : Type
variables (a₁ a₂ : α) (b : β) (n : ℕ)
variables (p: α × β) (q : α × ℕ)
#check α × β
#check (a₁... |
83e095fcf17977fa7545df5d06bd782d4842c61a | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/integral/circle_integral.lean | b55bee6f504c1e2c114825bea9dfd30fcb13b64d | [
"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 | 30,297 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import measure_theory.integral.interval_integral
import analysis.normed_space.pointwise
import analysis.special_functions.non_integrable
import analysis.analytic.ba... |
20c4b48c3123638b36521ad0d3248700168ed3a7 | 74caf7451c921a8d5ab9c6e2b828c9d0a35aae95 | /library/init/data/char/lemmas.lean | 78cc8eddd881d83f67cc36697c800f2703aab614 | [
"Apache-2.0"
] | permissive | sakas--/lean | f37b6fad4fd4206f2891b89f0f8135f57921fc3f | 570d9052820be1d6442a5cc58ece37397f8a9e4c | refs/heads/master | 1,586,127,145,194 | 1,480,960,018,000 | 1,480,960,635,000 | 40,137,176 | 0 | 0 | null | 1,438,621,351,000 | 1,438,621,351,000 | null | UTF-8 | Lean | false | false | 935 | lean | prelude
import init.meta init.logic init.data.nat.lemmas
import init.data.char.basic
namespace char
lemma of_nat_eq_of_lt {n : nat} : ∀ h : n < char_sz, of_nat n = fin.mk n h :=
begin
intro h,
unfold of_nat,
cases (nat.decidable_lt n char_sz),
{contradiction},
{reflexivity}
end
lemma of_nat_eq_fin_of_ge {n ... |
9f856d844793dd0b3d1195a79ab856d97777c49b | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/combinatorics/simple_graph/hasse.lean | cf8847ccc39e910a0477b5c9f84bdda06b99acef | [
"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 | 2,753 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import combinatorics.simple_graph.prod
import data.fin.succ_pred
import order.succ_pred.relation
/-!
# The Hasse diagram as a graph
This file defines the Hasse diagram ... |
5765c7819bb5236d07f3a37d59ffe4636e0edae5 | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /library/logic/cast.lean | d32d13b781103f3313735cdabb1bfc732c6daede | [
"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 | 5,997 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Casts and heterogeneous equality. See also init.datatypes and init.logic.
-/
import logic.eq logic.quantifiers
open eq.ops
section
universe variable u
va... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.