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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
b3476b0b6fe5be1296f86234d3553a8cf54e2dab | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/nat/interval.lean | 67abcfce8f9576ad8a434d15b63db5a2e3cc050b | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 10,289 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.finset.locally_finite
/-!
# Finite intervals of naturals
This file proves that `ℕ` is a `locally_finite_order` and calculates the cardinality of its
interva... |
b1844ba5cb80ba2a21a1120b2b8b7088f083610b | b9a81ebb9de684db509231c4469a7d2c88915808 | /src/super/inhabited.lean | 588d4c9cd7c77fcb6a83f266b054813989c6b557 | [] | no_license | leanprover/super | 3dd81ce8d9ac3cba20bce55e84833fadb2f5716e | 47b107b4cec8f3b41d72daba9cbda2f9d54025de | refs/heads/master | 1,678,482,996,979 | 1,676,526,367,000 | 1,676,526,367,000 | 92,215,900 | 12 | 6 | null | 1,513,327,539,000 | 1,495,570,640,000 | Lean | UTF-8 | Lean | false | false | 2,487 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause_ops .prover_state
open expr tactic monad
namespace super
meta def try_assumption_lookup_left (c : clause) : tactic (list clause) :=
on_first_left c $ λ... |
044e3efeab7909cfcd53cdd7364da11b67e84c17 | 1136b4d61007050cc632ede270de45a662f8dba4 | /library/init/core.lean | e7749e287bedc5bb38e0c639b00b500e15c85385 | [
"Apache-2.0"
] | permissive | zk744750315/lean | 7fe895f16cc0ef1869238a01cae903bbd623b4a9 | c17e5b913b2db687ab38f53285326b9dbb2b1b6e | refs/heads/master | 1,618,208,425,413 | 1,521,520,544,000 | 1,521,520,936,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,592 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
prelude
notation `Prop` := Sort 0
notation f ` $ `:1 a:0 := f a
/- Logical operations and relations -/
reserv... |
d2289c06ef848e6524188bc80c7a765a4d9248ae | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/tools/fake_simplifier.lean | 4f3bf070228d9a2ffc5631a4524e949be7602bfa | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 143 | lean | open tactic
namespace fake_simplifier
-- until we have the simplifier...
opaque definition simp : tactic := apply sorry
end fake_simplifier
|
1a2936b987bdba3759f314cdfc834965a67ed3f5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/subgroup/pointwise.lean | 67d21096238a2929a50917a13556fe077e841a95 | [
"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 | 19,491 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import group_theory.subgroup.basic
import group_theory.submonoid.pointwise
import group_theory.group_action.conj_act
/-! # Pointwise instances on `subgroup` and `add_subgr... |
7f43a70cd77805bf35ec8683b52c40a59aea8355 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Meta/UnificationHint.lean | 888b6cb6e952fc7d485e957754852afa4162b3b9 | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,405 | 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.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Meta.DiscrTree
import Lean.Meta.LevelDefEq
import Lean.Meta.SynthInstance
namespace... |
ce9f80dbe9323c554d0be3fe64fbb977e1bfd19c | f7315930643edc12e76c229a742d5446dad77097 | /hott/init/default.hlean | 9da50a76152c04e6ac6bda9b24b870ee00c56658 | [
"Apache-2.0"
] | permissive | bmalehorn/lean | 8f77b762a76c59afff7b7403f9eb5fc2c3ce70c1 | 53653c352643751c4b62ff63ec5e555f11dae8eb | refs/heads/master | 1,610,945,684,489 | 1,429,681,220,000 | 1,429,681,449,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 525 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.default
Authors: Leonardo de Moura, Jakob von Raumer
-/
prelude
import init.datatypes init.reserved_notation init.tactic init.logic
import init.bool init.num init.priority... |
a1fd6aefede88b959f42f17afbfea4a7bc686cb9 | 40ad357bbd0d327dd1e3e7f7beb868bd4e5b0a9d | /src/temporal_logic/spec.lean | f2652a98d4ac767706d918196d7c3f9005228281 | [] | no_license | unitb/temporal-logic | 9966424f015976d5997a9ffa30cbd77cc3a9cb1c | accec04d1b09ca841be065511c9e206b725b16e9 | refs/heads/master | 1,633,868,382,769 | 1,541,072,223,000 | 1,541,072,223,000 | 114,790,987 | 5 | 3 | null | null | null | null | UTF-8 | Lean | false | false | 4,753 | lean |
import .fairness
universe variables u u₀ u₁ u₂
namespace temporal
open predicate fairness
variables {α : Type u}
structure mch' (evt : Type u₀) (α : Type u) :=
(init : pred' α)
(cs fs : evt → pred' α)
(A : option evt → act α)
namespace mch'
variable {evt : Type u₀}
variables (m : mch' evt α)
local notatio... |
72339230f7f4155143b5088046894d9753a270fe | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/struct_bug1.lean | a78e263d5647bde7d6d3ede5dfb8f3acee9910ff | [
"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 | 194 | lean | variable (A : Type*)
structure foo (a : A) :=
(eqpr : a = a)
section
parameter (B : Type*)
structure foo2 (b : B) :=
(eqpr : b = b)
#check foo2
definition tst : B → Type := foo2
end
|
a412c7ad6a6da29ab8de9b6117588cc3f77560b9 | 40c8b73f5a82a3c09e3d1956df44aad9ffd510b7 | /src/section_9.lean | e19270b6a6f46f8873f41130b468468796006c70 | [] | no_license | lean-forward/cap_set_problem | 343c02d42775eb25b32b6c567d13769fd42dd4ca | 095a2f18f81c551a0053f2e65806de751e438fc4 | refs/heads/master | 1,626,463,115,144 | 1,561,829,195,000 | 1,561,829,195,000 | 178,678,372 | 7 | 1 | null | 1,625,412,745,000 | 1,554,031,306,000 | Lean | UTF-8 | Lean | false | false | 3,843 | lean | /-
Copyright (c) 2018 Sander Dahmen, Johannes Hölzl, Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sander Dahmen, Johannes Hölzl, Robert Y. Lewis
"On large subsets of 𝔽ⁿ_q with no three-term arithmetic progression"
by J. S. Ellenberg and D. Gijswijt... |
1b151905ce4baaa9a0ebc40644dbe69e300236ed | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/e18.lean | 011dc49db27fbad19ede265b991a0475706068b2 | [
"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 | 503 | lean | prelude
inductive nat : Type :=
| zero : nat
| succ : nat → nat
inductive list (A : Type) : Type :=
| nil {} : list A
| cons : A → list A → list A
inductive int : Type :=
| of_nat : nat → int
| neg : nat → int
attribute int.of_nat [coercion]
constants n m : nat
constants i j : int
constant l : list nat
namespace ... |
4c4715e9e6112bce0c9b0cf5d94a39dc3e4a5fcb | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/MultCommutativeMonoid.lean | b36eb45c0b23355e08d87c4c4706cdd64e09aff6 | [] | 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,287 | 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 MultCommutativeMonoid
structure MultCommutativeMonoid (A : Type) : Type :=
(times : (A → (A → A)))
(one : A)
(lunit_one : (∀ {x : A} , (times one x) = x)... |
d818f0bcb1a6f2aaf52cd38d7119ff8db9cfae44 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/order/boolean_algebra.lean | 9b10ee45fbc1590d8248b149316d22aadb81bd0b | [
"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 | 3,312 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Type class hierarchy for Boolean algebras.
-/
import order.bounded_lattice
import logic.function.basic
set_option old_structure_cmd true
universes u
variables {α : Typ... |
82f40e3e2e0df3af2a7936c62dcbe23751b94675 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/compiler/strictOrSimp.lean | 77975961100af06e710df4f70ccbbdd1cb273351 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 223 | lean | #lang lean4
partial def spin : Nat → Bool
| n => spin (n)
@[inline] def C : Nat := 0
def f (b : Nat) :=
if strictOr (C == 0) (spin b) then "hello"
else "world"
def main (xs : List String) : IO Unit :=
IO.println (f 0)
|
2112b579ffc87286a4c79c519519ae0ab6dae757 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/ring_theory/discrete_valuation_ring.lean | 487e821d3ff193ef99cc3d85169cc6ced257c620 | [
"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 | 13,211 | 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 ring_theory.principal_ideal_domain
import order.conditionally_complete_lattice
import ring_theory.multiplicity
import ring_theory.valuation.basic
/-!
# Discret... |
b316975cd4fd2a1aad8d0444229d3d989f7ad235 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/quotient/basic.lean | 537720a00251b1d5b8be34df9c6c692c54a5e2e1 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,000 | lean | -- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Floris van Doorn
-- Theory data.quotient
-- ====================
import logic data.subtype logic.cast algebra.relation data.prod
import logic.instances
import .util
open rela... |
e5fafb63e63306690be7c76c6b6fedf997463f4e | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/measure_theory/ae_eq_fun.lean | c547df92456bfa7410a2b88192a2a167cd523ae5 | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,000 | lean | /-
Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Zhouhang Zhou
-/
import measure_theory.integration
import order.filter.germ
/-!
# Almost everywhere equal functions
Two measurable functions are treat... |
85a6e83a34ea8dea6e1bc0c068c05333358913cc | 367134ba5a65885e863bdc4507601606690974c1 | /src/group_theory/order_of_element.lean | fc19bf68450db6b79bee864a99a3ecf4706df0ec | [
"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 | 25,944 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.order
import group_theory.coset
import data.nat.totient
import data.int.gcd
import data.set.finite
/-!
# Order of an element
This file ... |
6231eb27a429e6813d1c5bb649d6c3d7bda3929e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Init/Dynamic.lean | a784b7dc2cd7f4c993d0ffc4d1e720d5a8dfb9d9 | [
"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 | 2,846 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
prelude
import Init.Core
open Lean
-- Implementation detail of TypeName, since classes cannot be opaque
private opaque TypeNameData (α : Type u) : NonemptyTy... |
ff18ae32ffc3cb12216dbadb64f6863c33d75612 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/data/quot.lean | dada8a96f2f2bda5fa49256bd99d8ed4ea2bf4f2 | [
"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 | 21,623 | 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 logic.relator
/-!
# Quotient types
This module extends the core library's treatment of quotient types (`init.data.quot`).
## Tags
quotient
-/
variables {α... |
4d5e9c8fb97ef44fc25e6e64a343f5e88a73f310 | 5a8eb1c11f93715e070b588e85f2961065c3714d | /books/theorem-proving-in-lean/ch02-03.lean | aa2fd0f80be5ff5675cf683f38fabdaf4f3cf671 | [
"MIT"
] | permissive | luksamuk/study | 0e19bf99d33e0793127c3d3f8ad3936fbeb36505 | 6a9417e071a8624c4cd9db696c16a3abcc430219 | refs/heads/master | 1,677,960,533,266 | 1,676,234,529,000 | 1,676,234,529,000 | 151,009,060 | 4 | 1 | MIT | 1,676,234,531,000 | 1,538,343,224,000 | C++ | UTF-8 | Lean | false | false | 1,520 | lean | #check fun x : nat, x + 5
#check λ x : ℕ, x + 5
-- More abstract examples
constants α β : Type
constants a1 a2 : α
constants b1 b2 : β
constant f : α → α
constant g : α → β
constant h : α → β → α
constant p : α → α → bool
#check fun x : α, f x
#check λ x : α, f x
#check λ x : α, f (f x)
#check λ x : α, h x b1
#chec... |
38af5dbb2a1074a9d6fb093863758ef8c705915f | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/continuous_on.lean | d281e6e19665d7119603047407a48c77e2d152d5 | [
"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 | 42,827 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
* `nhds_within` of `nhds`
* `co... |
a3a8988058dbb1c419ac0c0f45f505c52739e65a | 6e36ebd5594a0d512dea8bc6ffe78c71b5b5032d | /src/mywork/Lectures/lecture_13.lean | 410ab511f579e3e5529f305f9d715083584dd078 | [] | no_license | wrw2ztk/cs2120f21 | cdc4b1b4043c8ae8f3c8c3c0e91cdacb2cfddb16 | f55df4c723d3ce989908679f5653e4be669334ae | refs/heads/main | 1,691,764,473,342 | 1,633,707,809,000 | 1,633,707,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,190 | lean | /-
UPDATE: Test distributed after class on
Monday. Monday will be a review day. The
test is due back Wednesday before class.
In class Wednesday we will have at least
a short quiz to sanity check what you will
have submitted for the test. We reserve the
right to do follow-on in-person testing if
the results indicate a ... |
70f8b7f0f850bfcbc36314bd301213241b179b51 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fin/tuple/reflection.lean | 9c338280ad8c595013b91dca86aae5df0b011402 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,777 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import data.fin.vec_notation
import algebra.big_operators.fin
/-!
# Lemmas for tuples `fin m → α`
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file re... |
0f06c8b80e174bab5e4896d57b16b0f56ce69b63 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Data/Int/Basic.lean | 83acbd9a0cc58e51e8ecdd9b6b8ea330fb9a7007 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 18,370 | lean | /-
Ported by Deniz Aydin from the lean3 prelude's data/int/basic.lean. Should be in a "prelude"
https://github.com/leanprover-community/lean/blob/master/library/init/data/int/basic.lean
Original file license:
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in t... |
836cd540567971bf24e9df9f9c13a576c9647947 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/monoid_algebra.lean | ee5fae320e9cfca30b0cb71b540f4c8368a12131 | [
"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 | 53,395 | 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 G. Kudryashov, Scott Morrison
-/
import algebra.algebra.basic
import algebra.big_operators.finsupp
import linear_algebra.finsupp
import algebra.non_unital_alg_hom
... |
d8f8337e91edff7cd57ee8c9a1e394e4ed04bbfb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/lipschitz.lean | 08d7ec3473268bc8f6f3c05c441bc70ec618606a | [
"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 | 29,300 | lean | /-
Copyright (c) 2018 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 logic.function.iterate
import data.set.intervals.proj_Icc
import topology.algebra.order.field
import... |
7c568c5165cea687856e0c441dd7539d36529fc1 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/group/ulift.lean | 8fd9591d2b4de5b42d7fd6ededc373248248ecf8 | [
"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,316 | 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 data.equiv.mul_add
/-!
# `ulift` instances for groups and monoids
This file defines instances for group, monoid, semigroup and related structures on `ulift` ... |
72ac77a98b77ac6fc3a8fd29a8a519d640019d72 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/skeleton.lean | ab6b9cdf4fd4b50d4bbcc0a980583e04846710cd | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,860 | 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.monoidal.braided
import category_theory.monoidal.transport
import category_theory.skeletal
/-!
# The monoid on the skeleton of a monoidal category... |
4a0fea45a89b94f1329ef3f101a8d47cddc77616 | ad0c7d243dc1bd563419e2767ed42fb323d7beea | /tactic/replacer.lean | cf3c014ec3379a52dfae337781428c684dcd55ee | [
"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 | 4,080 | 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 mechanism for defining tactics for use in auto params, whose
meaning is defined incrementally through attributes.
-/
import tactic.basic
namespace tactic
meta def re... |
3385fa819b5f9d9d92a807d68dde8d9306f731bf | d5ecf6c46a2f605470a4a7724909dc4b9e7350e0 | /algebra/group_power.lean | 86b15357dc3e90938ff92f9c040da795de7cccf7 | [
"Apache-2.0"
] | permissive | MonoidMusician/mathlib | 41f79df478987a636b735c338396813d2e8e44c4 | 72234ef1a050eea3a2197c23aeb345fc13c08ff3 | refs/heads/master | 1,583,672,205,771 | 1,522,892,143,000 | 1,522,892,143,000 | 128,144,032 | 0 | 0 | Apache-2.0 | 1,522,892,144,000 | 1,522,890,892,000 | Lean | UTF-8 | Lean | false | false | 16,790 | 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
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We h... |
acd2de9e0ab9b25a265fe26bffefaa864325569e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/list/alist.lean | b570d8ef10ee09cdb76debdd6bcdeae9cf33b505 | [
"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 | 12,070 | lean | /-
Copyright (c) 2018 Sean Leather. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sean Leather, Mario Carneiro
-/
import data.list.sigma
/-!
# Association Lists
This file defines association lists. An association list is a list where every element consists of
a key ... |
06c3c65f329a4f6e6663b9d81480a68db5f883ad | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/homology/image_to_kernel_map.lean | 763dae2b44b53fbc69cc138f476e5b5e0b6d0ae6 | [] | 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 | 8,149 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.images
import Mathlib.category_theory.limits.shapes.kernels
i... |
901848547ccb9ee57cb7ae12ab18448a73b0b41b | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/PrettyPrinter/Formatter.lean | 95938bdbce9cdd2297cf7b211c9fb5f875c3b310 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 21,782 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.CoreM
import Lean.Parser.Extension
import Lean.Parser.StrInterpolation
import Lean.KeyedDeclsAttribute
import Lean.ParserCompiler.Attribute
import L... |
6f172fbe227b617f5313e1ee5851a998bf200877 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/calc_auto_trans_eq.lean | abc462d941225c88f4076cb8ae8730ccee8d0971 | [
"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 | 518 | lean | constant R : Π {A : Type}, A → A → Prop
infix ` ~ `:50 := R
example {A : Type} {a b c d : list nat} (H₁ : a ~ b) (H₂ : b = c) (H₃ : c = d) : a ~ d :=
calc a ~ b : H₁
... = c : H₂
... = d : H₃
example {A : Type} {a b c d : list nat} (H₁ : a = b) (H₂ : b = c) (H₃ : c ~ d) : a ~ d :=
calc a = b : H₁
... = c : H... |
680093730cd6409a1c130205868a68604b7e2bfc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/polynomial/big_operators.lean | ba981b6abeb3f11b4bf294cb4a4df12bbd807c3b | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 9,479 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark
-/
import data.polynomial.monic
import data.polynomial.ring_division
import tactic.linarith
/-!
# Lemmas for the interaction between polynomials and `∑` and... |
5b8a271e5fe7eeedf6029ef9fa9da766c1f43014 | 618003631150032a5676f229d13a079ac875ff77 | /src/data/equiv/local_equiv.lean | 315779640d5c1d253e4736cf8e5ebfd47fcf43f0 | [
"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 | 21,976 | 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 data.equiv.basic
/-!
# Local equivalences
This files defines equivalences between subsets of given types.
An element `e` of `local_equiv α β` is made o... |
686ace02296cf85e82e8860a89e6d46ffdfd1c21 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/sites/sieves_auto.lean | ad314e3f81cea7700ee5348f6581e931e0b67e85 | [] | 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 | 15,894 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, E. W. Ayers
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.over
import Mathlib.category_theory.limits.shapes.finite_limits
im... |
e65619784cb21050e4cf704419cef4fa70bb710d | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/906.lean | b45aa96840b92a13cac16a5508adf5ee620e5496 | [
"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 | 587 | lean | -- Print a nat using well-founded recursion
def natPrintAux (n : Nat) (sink : List Char) : List Char :=
if h0 : n < 10
then (n.digitChar :: sink)
else natPrintAux (n / 10) (Nat.digitChar (n % 10) :: sink)
termination_by' measure (fun ⟨n, _⟩ => n)
decreasing_by sorry
-- I meant to write `simp only [natPrintAux]`,... |
3b8d0e9594453164291be0e4dc82200c2218b204 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/array/lemmas.lean | e8a5d7bda0d705483e6934f4f6c13757f4530a5f | [] | 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 | 8,285 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.control.traversable.equiv
import Mathlib.data.vector2
import Math... |
25affe0d022d6709fa9e34385ef2b726743047a3 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/category_theory/simple.lean | 66e66443f98f9866394ac061f9250c0bc5971a75 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,368 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import category_theory.limits.shapes.zero
import category_theory.limits.shapes.kernels
import category_theory.abelian.basic
/-!
# Simple objects
We d... |
2505bff9cb7b326e3c585d7a25bc1ea1e8766b84 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/instances/real.lean | 673ba3898a761c6741182eb173c5670f09693681 | [
"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 | 16,512 | 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.metric_space.basic
import topology.algebra.uniform_group
import topology.algebra.ring
import topology.algebra.continuous_functions
imp... |
57b6777a010fe49c60655a70a92fa1fb87a1bd24 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/invalid_ematch_attr.lean | bfcd33ceed75a767adce6d19dc3b9cc47648fe16 | [
"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 | 122 | lean | constant f : ℕ → ℕ
axiom foo {m n : ℕ} : f m = m
attribute [ematch] foo
example : true := begin[smt] eblast end
|
5e4adf385f655e366cc38e905de43aaddec48e62 | aa5a655c05e5359a70646b7154e7cac59f0b4132 | /stage0/src/Lean/Elab/Tactic/Basic.lean | a41ce823ad80b10481c890fbdd9a61e21af1936e | [
"Apache-2.0"
] | permissive | lambdaxymox/lean4 | ae943c960a42247e06eff25c35338268d07454cb | 278d47c77270664ef29715faab467feac8a0f446 | refs/heads/master | 1,677,891,867,340 | 1,612,500,005,000 | 1,612,500,005,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,473 | 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.CollectMVars
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Intro
import Lean.Meta.Tactic.Clear
import Lean.... |
41cbbc5ccd2b844e7f585473448c74f852628040 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/ring_theory/polynomial/content.lean | fa492c323f3abefd7f59522377839ac08b368886 | [
"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 | 17,108 | 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.finset.gcd
import data.polynomial
import data.polynomial.erase_lead
import data.polynomial.cancel_leads
/-!
# GCD structures on polynomials
Definitions ... |
59acf3ae40262d68792fe1aa54c8a30182560478 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/analysis/normed_space/real_inner_product.lean | a31e7d76711254cdcfb602ffc7dbba4fbb4f2536 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 21,969 | 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.quadratic_discriminant
import analysis.special_functions.pow
import tactic.monotonicity
/-!
# Inner Product Space
This file defines real inner product... |
3284758be8bba2a60885e024a0d35499431e3267 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/affine_space/basic.lean | 091f47b8114c5ab517690c42fca38b02ea0545fc | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,721 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.add_torsor
/-!
# Affine space
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
In this file... |
c4897667e91bbb2db44d9775f5e0d82337127fa3 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world6/level1.lean | a886f2c711d92023a5faa350b6523fc50601c0d6 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 3,064 | lean | -- World name : Proposition world
/-
# Proposition world.
A Proposition is a true/false statement, like `2 + 2 = 4` or `2 + 2 = 5`.
Just like we can have concrete sets in Lean like `mynat`, and abstract
sets called things like `X`, we can also have concrete propositions like
`2 + 2 = 5` and abstract propositions ca... |
ed841a76493c001dc6da8d422ffd85e8116eb311 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/algebra/ring.lean | 279a70a55874396a7b2c6659ec5c1864f342e1fd | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 3,812 | 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
Theory of topological rings.
-/
import topology.algebra.group ring_theory.ideals
open classical set lattice filter topological_space
local attribute [... |
dd5f4972cbe5184b75526b268af595dfaac5e922 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /order/liminf_limsup.lean | aebd1c2b9a2f0d10b8ee81c102c226e39f68c568 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 14,978 | 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, Johannes Hölzl
Defines the Liminf/Limsup of a function taking values in a conditionally complete lattice, with
respect to an arbitrary filter.
We define `f.Lims... |
08442c7c40a35dbf3d8fd0c57d9beb127494c67b | 5a5e1bb8063d7934afac91f30aa17c715821040b | /lean3SOS/src/lib/psd.lean | f64a2c851440efacccc9853d92c4c60d1fe36efe | [] | no_license | ramonfmir/leanSOS | 1883392d73710db5c6e291a2abd03a6c5b44a42b | 14b50713dc887f6d408b7b2bce1f8af5bb619958 | refs/heads/main | 1,683,348,826,105 | 1,622,056,982,000 | 1,622,056,982,000 | 341,232,766 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,142 | lean | /-
Results about matrices, PSD, etc.
-/
import data.real.basic
import data.matrix.basic
import linear_algebra.matrix
import linear_algebra.eigenspace
import to_mathlib.matrix
variables {γ : Type*} [fintype γ] [decidable_eq γ]
variables {μ : Type*} [fintype μ] [decidable_eq μ]
variables {R : Type*}
open_locale big_... |
df4c31dfe16242a53ae2865693bf836e2624c38e | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eq4.lean | 221adb043facdeec54a9cab7439c3f1e4d282243 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 297 | lean | open nat
definition half : nat → nat,
half 0 := 0,
half 1 := 0,
half (x+2) := half x + 1
theorem half0 : half 0 = 0 :=
rfl
theorem half1 : half 1 = 0 :=
rfl
theorem half_succ_succ (a : nat) : half (a + 2) = half a + 1 :=
rfl
example : half 5 = 2 :=
rfl
example : half 8 = 4 :=
rfl
|
bf2c0560de5ea80de012660b5519b12524723ef9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/homology/image_to_kernel_map_auto.lean | ca856f81fc015cc73ea10d2ae2886301427cd4de | [] | 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 | 8,944 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.limits.shapes.images
import Mathlib.category_theory.limits.shapes.kernels
i... |
f7b644dfc41390a87cc6ba6f2c194fd0aed9bc5a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/analytic/composition_auto.lean | 821f5dfe5afc8a9724f7025998aa0ac9465ece4b | [] | 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 | 41,127 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.analytic.basic
import Mathlib.combinatorics.composition
impo... |
89895f755c6ad01b53518c315223e126730a2959 | c56b090bd37dca8992124f0b09c22340ef7e27bc | /src/lecture5.lean | d7d47dfebb2deb0dd6ac035c94d2f68f7e8e3e45 | [] | no_license | stjordanis/math135 | df113ed7ae9f81b27316cc5b000f88b385391a81 | e270f3a9cae435c066c0d2574f03a8adbe40b7b5 | refs/heads/master | 1,677,069,951,721 | 1,611,905,122,000 | 1,611,905,122,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 318 | lean | import data.nat.basic
import data.nat.parity
import tactic
namespace lecture5
set_option class.instance_max_depth 100
open nat
example {m : ℕ} (m_divd_14 : 14 ∣ m) : 7 ∣ (135 * m + 693) :=
begin
cases m_divd_14 with i ih,
refine dvd.intro _ _,
use 270 * i + 99,
rw ih,
linarith,
end
end lecture5
|
8d3c5ac97e77da4f1984f84cd802162d576d99e4 | 03577f7aaac416af2e8f734149669af300dc499c | /lean_exercises/classical.lean | 4f91f1316b30ed599ccb4d654772404bda8f342e | [] | no_license | nymarya/algorithms | b4dc73389de588e6934da15b0e0b67ae354907aa | 1df987f82273a8ffe2b2042552bbb1428bf165bf | refs/heads/master | 1,609,629,118,479 | 1,600,087,537,000 | 1,600,087,537,000 | 99,489,969 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,145 | lean | open classical
variables p q r s : Prop
-- commutativity of ∧ and ∨
example : p ∧ q ↔ q ∧ p :=
iff.intro(
assume h1: p ∧ q,
show q ∧ p, from and.intro( and.right h1 ) ( and.left h1)
)
(
assume h: q ∧ p,
show p ∧ q, from and.intro( and.right h)(and.left h)
) --end proof
example : p ∨ q ↔ q ∨ p :=
if... |
52d6a8c3fdf75c41f59ab243e71b3b2fa2fd0e93 | dd24e6c3b8dc14dc504f8a906fc04c51e4312e6b | /src/mywork/homework/practice_1.lean | aa55972c8e91ae75b19ae91e53dd6ce8c7e1a6a6 | [] | no_license | njeyasingh/CS-2120 | dd781a90dd0645b74e61cee1813483fb7cb4a111 | b3356f665a246f295b3f1e6d61901bfca331810d | refs/heads/main | 1,693,294,711,274 | 1,635,188,659,000 | 1,635,188,659,000 | 399,945,420 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,564 | lean | /-
EQUALITY
-/
/- #1
Suppose that x, y, z, and w are arbitrary objects of some type,
T; and suppose further that we know (have proofs of the facts)
that x = y, y = z, and w = z. Give a very, very short English
proof of the conjecture that z = w. You can use not only the
axioms of equality, but either of the theo... |
42d367ec8b04aa68f4be9cf1f321bd829ef82d00 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/measure_theory/set_integral.lean | 2eaa918ee2c617a479ac8c0754cc7a92f3f43578 | [
"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 | 37,720 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.bochner_integration
import analysis.normed_space.indicator_function
/-!
# Set integral
In this file we prove some properties of... |
b02398af1017941462944f0e05ac143feeec1fcc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/adjoin/basic.lean | 63a64bcbc86e75a82083b5faa313d9da93fddb43 | [
"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 | 15,398 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.tower
import linear_algebra.prod
import linear_algebra.finsupp
import algebra.algebra.operations
/-!
# Adjoining elements to form subalgebras
This file... |
1bf664962f0530f5fb208a38bc72dbfe876e8354 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/data/padics/hensel.lean | 4eed90d681a39477b7c306174d9131e95b9751ce | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 20,905 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
A proof of Hensel's lemma on ℤ_p, roughly following Keith Conrad's writeup:
http://www.math.uconn.edu/~kconrad/blurbs/gradnumthy/hensel.pdf
-/
import data.padics.pad... |
647407532c9ca43b3920bdb5460c3a1f94209018 | 246309748072bf9f8da313401699689ebbecd94d | /src/data/polynomial/eval.lean | 89b475d26e3743229298d0f2200d0c911fc34585 | [
"Apache-2.0"
] | permissive | YJMD/mathlib | b703a641e5f32a996f7842f7c0043bab2b462ee2 | 7310eab9fa8c1b1229dca42682f1fa6bfb7dbbf9 | refs/heads/master | 1,670,714,479,314 | 1,599,035,445,000 | 1,599,035,445,000 | 292,279,930 | 0 | 0 | null | 1,599,050,561,000 | 1,599,050,560,000 | null | UTF-8 | Lean | false | false | 18,759 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.induction
import data.polynomial.degree.basic
import deprecated.ring
/-!
# Theory of univariate po... |
cec189acbf00a918c004afe7e66667e4c3ab4960 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/support_auto.lean | 725bf4073a6bca59184fa34170bd7d17e50cca90 | [] | 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 | 6,653 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.conditionally_complete_lattice
import Mathlib.algebra.big_operators.basic
import Ma... |
fd6a439de1bcfcdba4cd36382dadcf8e08d6381e | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/discrete_valuation_ring.lean | 087f5a36177d8b4d1a8f748906034112b98e58a1 | [
"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,366 | 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 ring_theory.principal_ideal_domain order.conditionally_complete_lattice
import ring_theory.multiplicity
import ring_theory.valuation.basic
import tactic
/-!
# ... |
88f47fd473c0ecc5f70c9c8c66afca897add3fe3 | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/sheaves/sheaf_of_functions.lean | b2e18c37a9defb46a3d9c2c70681fe468981cae8 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,218 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison
-/
import topology.sheaves.presheaf_of_functions
import topology.sheaves.sheaf_condition.unique_gluing
import category_theory.limits.shapes.types
import ... |
d14e3335af2a4bc013d8ebc8e1230fd4e70dc71a | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/group_theory/group_action/basic.lean | 6173658f89e1e41c94ae73c031972a884ab21fd1 | [
"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 | 8,003 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.group_action.defs
import group_theory.group_action.group
import group_theory.coset
/-!
# Basic properties of group actions
-/
universes u v w
variab... |
451326ad3cbd7c6f433051746cd5bd0dc12a378d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/set_theory/game/domineering_auto.lean | df03c8f1dcc2d03ffde770034a5f04e3f855ff75 | [] | 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 | 4,237 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.set_theory.game.state
import Mathlib.PostPort
namespace Mathlib
/-!
# Domineering as a co... |
537aea875f2493a3f3d609085cf8951f8583d0b8 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Elab/DeclarationRange.lean | cebb5b11338055c64441422f06eca08b819dff78 | [
"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 | 2,293 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.DeclarationRange
import Lean.Elab.Log
import Lean.Data.Lsp.Utf16
namespace Lean.Elab
def getDeclarationRange [Monad m] [MonadFileMap m] (stx :... |
7df85afb53ac7d4d9e165577c2e536ce6f9db594 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/asymptotics/asymptotic_equivalent.lean | d3574393f76be85840295d145554cd996de7bf49 | [
"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 | 11,445 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import analysis.asymptotics.asymptotics
import analysis.normed_space.ordered
/-!
# Asymptotic equivalence
In this file, we define the relation `is_equivalent l ... |
458b5e628e6a33bd0f258ac6210b71839302d62a | 0b34fcbb56406e6ace0afd1986262e6f1d37047f | /Lean/Unification.lean | 93b55ebf1ecbaf715a40c60a52be4d325ece5257 | [] | no_license | DragonLi/exercise | 4315eeb557a8e8d6105f9eeb795a09c03453d0eb | a5de48643c8df04f6f79ca746efb9f969c10eb8c | refs/heads/master | 1,626,276,318,220 | 1,615,186,706,000 | 1,615,186,706,000 | 18,544,224 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,188 | lean | namespace Unification
inductive Fin : nat -> Type
| f0 {n:nat}: Fin (nat.succ n)
| fs {n: nat} : Fin n -> Fin (nat.succ n)
/-
#check @Fin.rec
--#print Fin.rec
#check @Fin.rec_on
--#print fin.rec_on
#check @Fin.below
#check @Fin.ibelow
#check @Fin.brec_on
#check @Fin.binduction_on
#check @Fin.cases_on
#check @Fin.sizeo... |
6b8c295f5eadf5fa1ea47c4767d3cbf62cd207a4 | 6df8d5ae3acf20ad0d7f0247d2cee1957ef96df1 | /HW/hw1_up_and_running.lean | a28a66b769a69942b56aec481aa58e8a34d34519 | [] | no_license | derekjohnsonva/CS2102 | 8ed45daa6658e6121bac0f6691eac6147d08246d | b3f507d4be824a2511838a1054d04fc9aef3304c | refs/heads/master | 1,648,529,162,527 | 1,578,851,859,000 | 1,578,851,859,000 | 233,433,207 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,569 | lean | /-
This text isn't formal logic or code. It's natural
language text embedded into a formal logic or code
file, otherwise known as a "comment". This comment
explains what to for this assignment.
Do not make any changes to this file. Rather, make
a copy of it in the "mywork" directory. The close
this panel so that yo... |
6a4d6b7c79cc7d63787715ee17271b828f4c97f2 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/category_theory/subobject/lattice.lean | 5f0e2970fdf795be84edea829b82a824640d02d1 | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,992 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.subobject.factor_thru
import category_theory.subobject.well_powered
/-!
# The lattice of subobjects
We provide the `semilattice... |
124c7dea3fb291aac91c3ed76b1c44bed5d0d105 | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/universal/products.lean | 75b2b55292b4f69683a89460c4f99000c85da63d | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,387 | lean | -- -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- -- Released under Apache 2.0 license as described in the file LICENSE.
-- -- Authors: Scott Morrison, Reid Barton, Mario Carneiro
-- import category_theory.limits.binary_products
-- open category_theory
-- universes u v
-- namespace category_theory.li... |
96c1b7a6a6a75a3b050bf328e43e69319722d67f | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/ODE/gronwall.lean | afd35b79489be36bf7a59c3dddbaae0d4fa3308c | [
"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 | 13,219 | 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.calculus.mean_value
import analysis.special_functions.exp_log
/-!
# Grönwall's inequality
The main technical result of this file is the Grönwall-l... |
6a222b277d93a8b71ddc09ae62baa4fbf37fafa3 | b794ca1df49bc5a3bd3fd5552eed3bc4f63b8b93 | /src/mywork/lecture_5.lean | 797f1915398e6f66d08bb26d984073f85b87161c | [] | no_license | akraisinger/cs2120f21 | 8235ac98375e04ffcec504cff5cab7833ee69e54 | 4ef83d7151bb6a284028092aa4f1d509c0eb8237 | refs/heads/main | 1,691,714,771,612 | 1,632,889,465,000 | 1,632,889,465,000 | 399,946,508 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,374 | lean | /-
INTRODUCTION and ELIMINATION RULES
-/
/-
For ∀ x, P x (every x has property P)
- introduction rule: assume arbitrary x, then show P x
- elimination rule: *apply* a proof of ∀ x, P x, as a
kind of function to a specific value of x, say k, to
produce a proof of P k.
-/
theorem silly : ∀ (n : ℕ), true :=
be... |
3f790888a48459be1cb19ff5fad21d717f146c19 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/248.lean | ee795496645811288da9a8bc8536666215689ea1 | [
"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 | 48 | lean | @[implementedBy foo] opaque foo (x : Nat) : Nat
|
9d62abd8239d035ced069b84dacb9cb8032aa982 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/category_theory/monad/algebra.lean | a676ded0446b9ceb45ebf1c776f1ed287fbd2bb7 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 6,375 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.monad.basic
import category_theory.adjunction.basic
/-!
# Eilenberg-Moore (co)algebras for a (co)monad
This file defines Eilenb... |
f3712796bc312dce582c969092ca39dc892ec12b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/affine_space/affine_subspace.lean | 4734343bc9d4a34e648935d14637c0878d83a71d | [
"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 | 55,468 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import data.set.intervals.unordered_interval
import linear_algebra.affine_space.affine_equiv
/-!
# Affine spaces
This file defines affine subspaces (over modules) and t... |
d4504863465e7f7fdf1f9e8097821e9e5cdcd4e9 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/data/finset/powerset.lean | 6d0ce7c62e53df61014a6b1d1ed16bf3636ba394 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,665 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.finset.basic
/-!
# The powerset of a finset
-/
namespace finset
open multiset
variables {α : Type*}
/-! ### powerset -/
section powerset
/-- When `s` ... |
bec82da2a98659347869765d5e1e60cba3b3122d | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /order/conditionally_complete_lattice.lean | 0e1ac5bfb02d800081e869d5a9d24be9f2141b96 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 22,459 | 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
Adapted from the corresponding theory for complete lattices.
Theory of conditionally complete lattices.
A conditionally complete lattice is a lattice in which e... |
044880dae6187dc2867271ec4aaa936cd7c1e5ac | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/tactic_notation_num_arg_bug.lean | 7cb1600ef3d5e42985aed6927743bd7e597c49b0 | [
"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 | 107 | lean | tactic_notation `foo` A := tactic.id
example (a : nat) : a = a :=
begin
foo (10:nat),
reflexivity
end
|
fad2af64861bf17ff13b79594b047d574504e203 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Lsp/Ipc.lean | 3a9d18af350ed5d65d5aeea747828cf53710a364 | [
"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 | 3,354 | 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 Lean.Data.Json
import Lean.Data.Lsp.Communication
import Lean.Data.Lsp.Diagnostics
import Lean.Data.Lsp.Extra
/-! Prov... |
3569d2601b2067ea9168ed7fc6e38d1375647454 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/meta/rewrite_tactic.lean | 6d6b1cdfbac82fe19bc88485ea0f30620cefbe69 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 898 | 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.relation_tactics init.meta.occurrences
namespace tactic
/- (rewrite_core m approx use_instances occs symm H) -/
meta constant rewr... |
12a67920aa9d32911a76c3a46e7556b4986bb4dd | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/indicator_function.lean | e9f4a84aa304e7ee36d081ad42d8dfb26e9a60ac | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 7,689 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import group_theory.group_action algebra.pi_instances data.set.disjointed
/-!
# Indicator function
`indicator (s : set α) (f : α → β) (a : α)` is `f a` if `a ∈ s` an... |
cfd6abedc32b370dd40a2e48b29620960e5917d0 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/topology/local_homeomorph.lean | 7ebbc2f3600a9471ab8ef021d5e1fa0922af8c40 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 22,602 | 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 data.equiv.local_equiv topology.continuous_on
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of topological spaces. ... |
90d5b641219dc6bfb95bb2ea01278e60c8d6042c | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/matchStxCompletion.lean | 24f92d7a6930a005c88ebfa6df39beeca0593d89 | [
"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 | 180 | lean | structure C where
f1 : Nat
f2 : Bool
b1 : String
def f (x : Lean.Syntax) (y : C) : IO Nat := do
match x with
| `($a + 1) =>
if y.
--^ textDocument/completion
|
e36a56f2f62c2b5932c0236e3c0fdd44661606d2 | 3b15c7b0b62d8ada1399c112ad88a529e6bfa115 | /src/Lean/Server/FileWorker/WidgetRequests.lean | 0c3afd28e4f5785ddc3192c287ad6f06c7dfe776 | [
"Apache-2.0"
] | permissive | stephenbrady/lean4 | 74bf5cae8a433e9c815708ce96c9e54a5caf2115 | b1bd3fc304d0f7bc6810ec78bfa4c51476d263f9 | refs/heads/master | 1,692,621,473,161 | 1,634,308,743,000 | 1,634,310,749,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,036 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Widget.InteractiveCode
import Lean.Widget.InteractiveGoal
import Lean.Widget.InteractiveDiagnostic
import Lean.Server.Rpc.RequestHandling
impo... |
aaa0c6408134ac4b8b8219d5d049dabb31bd6bd9 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/set/disjointed.lean | 7a41de9b64ae53b74576b5506ec2439158dbeb15 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 3,756 | 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
Disjointed sets
-/
import data.set.lattice data.nat.basic tactic.wlog
open set classical
open_locale classical
universes u v w x
variables {α : Type u} {β : Type v} {γ... |
542e19292f38bcec8fda48db134afd233b914cad | c062f1c97fdef9ac746f08754e7d766fd6789aa9 | /tools/parser/parser.lean | 6c5952498eb459950dd90cdd5d89a2f913bf34f0 | [] | no_license | emberian/library_dev | 00c7a985b21bdebe912f4127a363f2874e1e7555 | f3abd7db0238edc18a397540e361a1da2f51503c | refs/heads/master | 1,624,153,474,804 | 1,490,147,180,000 | 1,490,147,180,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,637 | lean | /-
Copyright (c) 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Monadic parsing, following Graham Hutton and Erik Meijer, "Monadic Parsing in Haskell," 1998.
-/
-- TODO(Jeremy): move this
namespace char
def is_whitespace : char → Pr... |
5be01adad7c10cd4a394236887313c4959527963 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/logic/axioms/classical.lean | 64df2602b249f537cf481615da88037e2ad2e019 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,856 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: logic.axioms.classical
Author: Leonardo de Moura
-/
import logic.connectives logic.quantifiers logic.cast algebra.relation
open eq.ops
axiom prop_complete (a : Prop) : a = tr... |
410534715551e6a3ffc65e8981fad1cb92ec7102 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/special_functions/non_integrable.lean | 07377437342e9aa889603e418059332a49f56c59 | [
"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 | 9,629 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.special_functions.integrals
import analysis.calculus.fderiv_measurable
/-!
# Non integrable functions
In this file we prove that the derivative of... |
d4c8129c4b98cb5e9a4409a7b69bb00d71478474 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/theories/group_theory/pgroup.lean | ef02fdf5294f164e14498765278dba4799858fa1 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,491 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import theories.number_theory.primes data algebra.group algebra.group_power algebra.group_bigops
import .cyclic .finsubg .hom .perm .action
open nat fin list algebra fun... |
52c473ae9f13a71abe8ebc1cee7b34512b523641 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/measure_theory/group.lean | aa93e4abdcdbd5397552964fb16209c36972d8c9 | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 9,261 | 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.integration
import measure_theory.regular
/-!
# Measures on Groups
We develop some properties of measures on (topological) groups
* We de... |
3c1834bff60bca3a9cf1fbfba9bb29066b56ff82 | fd3506535396cef3d1bdcf4ae5b87c8ed9ff2c2e | /migrated/finset.lean | e547bf806ff475011311eddb4aeb0437b4d6c78a | [] | no_license | williamdemeo/leanproved | 77933dbcb8bfbae61a753ae31fa669b3ed8cda9d | d8c2e2ca0002b252fce049c4ff9be0e9e83a6374 | refs/heads/master | 1,598,674,802,432 | 1,437,528,488,000 | 1,437,528,488,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,445 | lean | /-
Copyright (c) 2015 Haitao Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author : Haitao Zhang
-/
import data
open finset function eq.ops
namespace migration
section basic
variable {A : Type}
lemma eq_of_singleton_eq {a b : A} : singleton a = singleton b → a = b... |
9ab36b672cce4f4a56e706e56ea47e16dd781c11 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/norm_cast.lean | 0680de45e30d6785eef989eb43f13df1c17171f6 | [
"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 | 26,166 | lean | /-
Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul-Nicolas Madelaine, Robert Y. Lewis
Normalizing casts inside expressions.
-/
import tactic.converter.interactive
import tactic.hint
/-!
# A tactic for normalizing casts i... |
bde9a622c6d96a8c4231ed7e86ba8fb99c8f8d6e | b29f946a2f0afd23ef86b9219116968babbb9f4f | /src/problem_sheets/sheet_1/sht01Q03.lean | eb3b4739a61ea75c48bf5dfc177253a0d8f5f0e3 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/M1P1-lean | 58be7394fded719d95e45e6b10e1ecf2ed3c7c4c | 3723468cc50f8bebd00a9811caf25224a578de17 | refs/heads/master | 1,587,063,867,779 | 1,572,727,164,000 | 1,572,727,164,000 | 165,845,802 | 14 | 4 | Apache-2.0 | 1,549,730,698,000 | 1,547,554,675,000 | Lean | UTF-8 | Lean | false | false | 732 | lean | import data.real.basic tactic.linarith
theorem Q3 (S : set ℝ) (HS : ∃ a : ℝ, a ∈ S) (u : ℝ) (Hu : u ∈ upper_bounds S) :
is_lub S u ↔ ∀ ε > 0, ∃ s ∈ S, s > u - ε :=
begin
split,
{ intro Hu,
intros ε Hε,
let v := u - ε,
have Hv : ¬ (u ≤ v),
change ¬ (u ≤ u - ε),
linarith,
have Hv' : v ∉ u... |
64c442efb9422dc2a034f2d3b7269936003f8425 | 90dc46f8fc146448b862ba6de3e708b9d4194c48 | /src/2018-day-2.lean | b050e203edb596dd0a7670e9f793bf2a0a327a14 | [] | no_license | dwrensha/advent-of-code-2019 | 9dcdcd61a743229726354f5ef791449bdbbe2ed8 | f1e126afda47b588e28f1389559f2a4d6a3322bf | refs/heads/master | 1,600,746,467,066 | 1,575,508,148,000 | 1,575,508,148,000 | 225,037,851 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,199 | lean | import system.io data.buffer.parser
open parser
def go {α} (file : string) (p : parser α) (m: α → option string) : io unit :=
do s ← io.fs.read_file file,
sum.inr a ← return $ run p s,
some str ← return $ m a,
trace str (return ())
def parse_words := sep_by (do _ ← sat char.is_whitespace, return ()) (many (sat ... |
62bcf20ab7f792e077d3443c84b800cccbd59656 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/combinatorics/simple_graph/strongly_regular.lean | 680ee6ff427def860d11a6ace3c9fadef01bff4e | [
"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,575 | lean | /-
Copyright (c) 2021 Alena Gusakov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alena Gusakov
-/
import combinatorics.simple_graph.basic
import data.set.finite
/-!
# Strongly regular graphs
## Main definitions
* `G.is_SRG_of n k l m` (see `is_simple_graph.is_SRG_... |
31bfac4ad543f64f4838218cba04efb03cbd339c | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/function.lean | 4d04c805cf616c5ee21c76d721f6cbd20359304f | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 5,334 | 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, Jeremy Avigad, Haitao Zhang
General operations on functions.
-/
prelude
import init.data.prod init.funext init.logic
notation f ` $ `:1 a:0 := f a
universe va... |
1049ed3bb682e68749b84f0e114cc5f22e3d0202 | bb31430994044506fa42fd667e2d556327e18dfe | /src/geometry/manifold/mfderiv.lean | 526119e511de01e2234ed54b65a182c10d1c7277 | [
"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 | 79,279 | 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
-/
import geometry.manifold.local_invariant_properties
import geometry.manifold.tangent_bundle
/-!
# The derivative of functions between smooth manifolds
Let `M`... |
b1b31e428d09f77639ec91a817562d9b7519a582 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/playground/parser/parser.lean | 60fbb0be034dfd3cab821678f37ff8b5eb9e003a | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,497 | lean | import init.lean.name init.lean.parser.trie init.lean.parser.identifier
import syntax filemap
open Lean
export Lean.Parser (Trie)
-- namespace Lean
namespace Parser
/-- A multimap indexed by tokens. Used for indexing parsers by their leading token. -/
def TokenMap (α : Type) := RBMap Name (List α) Name.quickLt
names... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.