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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
adc0188e747741209f3b2598994fa294c33eacc0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/category/Pointed.lean | 6d90709014f79c0c6ead3e9e503c099f43c9520c | [
"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,252 | 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 category_theory.concrete_category.basic
/-!
# The category of pointed types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corre... |
5119c8d47666ac3d0375223c8657c26a059cde5f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /docs/tutorial/category_theory/calculating_colimits_in_Top.lean | d7d33ac9f139146a1fda5ed9ce2f77bb96b34850 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,581 | lean | import topology.category.Top.limits
import category_theory.limits.shapes
import topology.instances.real
import topology.tactic
/-! This file contains some demos of using the (co)limits API to do topology. -/
noncomputable theory
open category_theory
open category_theory.limits
def R : Top := Top.of ℝ
def I : Top :=... |
80b44a86abb36843bbbaa1ba857fe704535556d6 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Lean/Meta/Basic.lean | dae40c73804157c02acd95b14e92847927603203 | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 48,967 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Data.LOption
import Lean.Environment
import Lean.Class
import Lean.ReducibilityAttrs
import Lean.Util.Trace
import Lean.Util.RecDepth
import Lea... |
7b5a7106c6a35534e68d43266e3ab990117a941d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/conj.lean | 0b16aede4368d034a42fdae39391239350a3e43e | [
"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,586 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.hom.equiv.units.basic
import category_theory.endomorphism
/-!
# Conjugate morphisms by isomorphisms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> An... |
ec0a0ea1514c9db9aeba3f9b20ba21ef613901a4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/metric_space/lipschitz_auto.lean | 0b52325b42be15c71a4bc28fc4f6d6e4dbc6cd5e | [] | 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 | 14,459 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.logic.function.iterate
import Ma... |
3c71fe3a4f88b7c7dbb9c507f88234443e6ab715 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /tests/lean/run/cdcl_examples.lean | 3005dc99ea18c5274cbf8c296092fd5cfa3ff79e | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 704 | lean | import tools.super.cdcl
example {a} : a → ¬a → false := by cdcl
example {a} : a ∨ ¬a := by cdcl
example {a b} : a → (a → b) → b := by cdcl
example {a b c} : (a → b) → (¬a → b) → (b → c) → b ∧ c := by cdcl
open tactic
private meta def lit_unification : tactic unit :=
do ls ← local_context, first $ do l ← ls, [do appl... |
14203c0485e03f98a44ec3c7e6a5f4d0e87ab505 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/function.lean | d1dd7245c0c46b6d5dbe380541bf6b9b43926ea3 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,403 | 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
universes u₁ u₂ u₃ u₄
namespace function... |
ada4d7789f9ae7992b55fd99952376a308d93431 | 1dd482be3f611941db7801003235dc84147ec60a | /src/algebra/group_power.lean | d89ca6f27b240d2b70f39e1bd00dcb40b7427b5b | [
"Apache-2.0"
] | permissive | sanderdahmen/mathlib | 479039302bd66434bb5672c2a4cecf8d69981458 | 8f0eae75cd2d8b7a083cf935666fcce4565df076 | refs/heads/master | 1,587,491,322,775 | 1,549,672,060,000 | 1,549,672,060,000 | 169,748,224 | 0 | 0 | Apache-2.0 | 1,549,636,694,000 | 1,549,636,694,000 | null | UTF-8 | Lean | false | false | 25,428 | 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... |
a6accebbb12668f3a49d9fc4ff915b49ced3d02f | fe84e287c662151bb313504482b218a503b972f3 | /src/group_theory/subgroup_classifier.lean | 337f2ca4549d80e4efb1fe6ddeff077048473a32 | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,604 | lean | /-
Copyright (c) 2020 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
It is known that epimorphisms in the category of groups
are always surjective, and monomorphisms are always regular.
These facts are also useful for giving Lean-fri... |
e8b3543e817247e53953816bdec869e5f50fceed | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2005/IMO_2005_P5.lean | aaaf3e70029a749b4e86565e794c8230f7e13645 | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 602 | lean | import Geo.Geo.Core
namespace Geo
open Quadrilateral Seg
def IMO_2005_P5 : Prop :=
∀ (A B C D : Point),
convex ⟨A, B, C, D⟩ →
cong ⟨B, C⟩ ⟨D, A⟩ →
¬para ⟨B, C⟩ ⟨D, A⟩ →
Exists (λ (X : Point) =>
∀ (E F P Q R : Point),
on E (Seg.mk B C) →
on F (Seg.mk D A) →
cong ⟨B, E⟩ ⟨D, F⟩ →
intersectAt (Line.mk A C) (Line.mk B D... |
0ca744ecd41ce58c2ff1f27edf88e56921e9f599 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Linter/UnusedVariables.lean | 89e468c94aa7bdc9cbcfe0efcafd01376fa2c3db | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 10,420 | lean | import Lean.Linter.Util
import Lean.Server.References
namespace Lean.Linter
open Lean.Elab.Command Lean.Server Std
register_builtin_option linter.unusedVariables : Bool := {
defValue := true,
descr := "enable the 'unused variables' linter"
}
register_builtin_option linter.unusedVariables.funArgs : Bool := {
def... |
9957ba3f0148ae3ae7206d314d3831a80518ad28 | 93b17e1ec33b7fd9fb0d8f958cdc9f2214b131a2 | /src/sep/joinSpec.lean | 733c11fe02d16edcd3a6556c67c72e408c4737d9 | [] | no_license | intoverflow/timesink | 93f8535cd504bc128ba1b57ce1eda4efc74e5136 | c25be4a2edb866ad0a9a87ee79e209afad6ab303 | refs/heads/master | 1,620,033,920,087 | 1,524,995,105,000 | 1,524,995,105,000 | 120,576,102 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,098 | lean | /- The join-spectrum of a separation algebra.
-
-/
import .basic
import .rel
import ..top.basic
import ..extralib
namespace Sep
universes ℓ ℓ₁ ℓ₂
open Top
structure Alg.JoinSpec (A : Alg.{ℓ}) : Type.{ℓ}
:= (set : Set A)
(join : set.JoinClosed)
def JoinSpec.eq {A : Alg.{ℓ}} (J₁ J₂ : A.JoinSpec)
: J₁.set = J₂... |
296bc03d7486f501f103b5c392a7624fcf8e57fa | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/tactic21.lean | ece085fa956a4c35a269ca4dbe7803490cfb582b | [
"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 | 470 | lean | import logic
open tactic
definition assump := eassumption
theorem tst1 {A : Type} {a b c : A} {p : A → A → Prop} (H1 : p a b) (H2 : p b c) : ∃ x, p a x ∧ p x c
:= by apply exists_intro; apply and.intro; assump; assump
theorem tst2 {A : Type} {a b c d : A} {p : A → A → Prop} (Ha : p a c) (H1 : p a b) (Hb : p b d) (H2... |
1af2f1590e3c8fa12cbf1f6cc4d57c9abe9943c4 | f1a12d4db0f46eee317d703e3336d33950a2fe7e | /common/crec.lean | 348b54cd4400a9be78bf6d5d0fbda08fe9006696 | [
"Apache-2.0"
] | permissive | avigad/qelim | bce89b79c717b7649860d41a41a37e37c982624f | b7d22864f1f0a2d21adad0f4fb3fc7ba665f8e60 | refs/heads/master | 1,584,548,938,232 | 1,526,773,708,000 | 1,526,773,708,000 | 134,967,693 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,702 | lean | import .logic
variable {α : Type}
def size : fm α → nat
| (fm.true α) := 1
| (fm.false α) := 1
| (fm.atom a) := 1
| (fm.and p q) := size p + size q + 1
| (fm.or p q) := size p + size q + 1
| (fm.not p) := size p + 1
| (fm.ex p) := size p + 1
notation p `≃` q := size p = size q
notation p `≺` q := size p < size ... |
5b099d7db4046d23a8ae40bd74376de2844f2bca | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/set/intervals/disjoint.lean | bc4857ed8671b4c22459dd946539a794a9cc2d02 | [
"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,131 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Yury Kudryashov
-/
import data.set.lattice
/-!
# Extra lemmas about intervals
This file contains lemmas about intervals that cannot be included into `data.set.int... |
4e51d904314bab17966fb3e5917864c074afb8ae | 7cef822f3b952965621309e88eadf618da0c8ae9 | /test/ring.lean | 7c826f8e879ed6c5d3b7342f3fefa70c97ead7f9 | [
"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 | 1,024 | lean | import tactic.ring data.real.basic
example (x y : ℕ) : x + y = y + x := by ring
example (x y : ℕ) : x + y + y = 2 * y + x := by ring
example (x y : ℕ) : x + id y = y + id x := by ring!
example {α} [comm_ring α] (x y : α) : x + y + y - x = 2 * y := by ring
example (x y : ℚ) : x / 2 + x / 2 = x := by ring
example (x y :... |
0d5cd694c34a423b9f244fa0e570962a949df1b4 | cf2492e96fb6ef6e1e8fc6994e374816fb65efec | /test.lean | 4d594637681444853263a8bfb657a1988371d450 | [] | no_license | khoek/leandemo-for-sebastian | d9401e12b9f616310b7c107df972266f95a54d54 | 4842276a5a2565f5362137d9f8d855d710fc1261 | refs/heads/master | 1,586,332,827,814 | 1,543,241,789,000 | 1,543,241,789,000 | 159,160,967 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 340 | lean | import system.io
meta def demo : tactic unit := do
tactic.trace "running",
tactic.unsafe_run_io $ do {
h ← io.mk_file_handle "test2.dat" io.mode.read ff,
c ← io.fs.read h (24000 * 1024),
c ← io.fs.read h (24000 * 1024),
io.print_ln c.size
},
tactic.trace "done"
example : true := begin
demo,
... |
c4410be922e54485eef4c0175eeaf337d9c32dd7 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/whnf_tac.lean | e099311e8a8c717454ec8cc18e70b488b69eba86 | [
"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 | 145 | lean | import logic
-- definition id {A : Type} (a : A) := a
theorem tst (a : Prop) : a → id a :=
begin
intro Ha,
whnf,
state,
apply Ha
end
|
6498a66ea008c7736f4f51eae7ef1954fcf8bfe4 | 4a092885406df4e441e9bb9065d9405dacb94cd8 | /src/for_mathlib/subtype.lean | 2a66d53583c309154364e70f038fd9c2512b478b | [
"Apache-2.0"
] | permissive | semorrison/lean-perfectoid-spaces | 78c1572cedbfae9c3e460d8aaf91de38616904d8 | bb4311dff45791170bcb1b6a983e2591bee88a19 | refs/heads/master | 1,588,841,765,494 | 1,554,805,620,000 | 1,554,805,620,000 | 180,353,546 | 0 | 1 | null | 1,554,809,880,000 | 1,554,809,880,000 | null | UTF-8 | Lean | false | false | 130 | lean | import data.subtype
universe u
@[simp] lemma val_prop {X : Type u} {S : set X} (x : {x // x ∈ S}) : x.val ∈ S := x.property
|
7ab63ea9e216269fe4d3f934d020cee002d446ec | 2d34dfb0a1cc250584282618dc10ea03d3fa858e | /src/Mbar/complex.lean | eb26b5f08c10b35887f1980475ad981e90fa95d1 | [] | no_license | zeta1999/lean-liquid | 61e294ec5adae959d8ee1b65d015775484ff58c2 | 96bb0fa3afc3b451bcd1fb7d974348de2f290541 | refs/heads/master | 1,676,579,150,248 | 1,610,771,445,000 | 1,610,771,445,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,650 | lean | import system_of_complexes
import locally_constant.Vhat
import Mbar.breen_deligne
import for_mathlib.CompHaus
import for_mathlib.continuous_map
import for_mathlib.free_abelian_group
import for_mathlib.add_monoid_hom
noncomputable theory
open opposite category_theory category_theory.category category_theory.limits
op... |
4fd09767bcfda54cbf42260f599e68ed75b707aa | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/univ_problem.lean | 93359ae18009622c0f249eddf25ba64443e3fb33 | [
"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 | 3,238 | lean | import logic data.nat.basic data.prod
open nat prod
inductive vector (A : Type) : nat → Type :=
| vnil {} : vector A zero
| vcons : Π {n : nat}, A → vector A n → vector A (succ n)
namespace vector
print definition vector.no_confusion
infixr `::` := vcons
namespace play
section
universe variables l₁ l₂
... |
b065b190980a2b9e355156470c89e3dc25e3cafe | 46125763b4dbf50619e8846a1371029346f4c3db | /src/topology/instances/nnreal.lean | 1cbcd387e1962e88c94fdbb758ce19db6cd9e157 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 4,707 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import data.real.nnreal topology.instances.real topology.algebra.infinite_sum
noncomputable theory
open set topological_space metric
open_l... |
fde39bf984369ba4bede803a7cf6900cb5e85bb0 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/congr_print.lean | 1ce78d87f6bea072cf878b59eff5ea80d6ccb863 | [
"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 | 89 | lean | import data.list
open list perm
set_option pp.max_depth 10
print perm_erase_dup_of_perm
|
842e4a5a9ac6f7aa3db2c221ee0dfdbb5a6d7611 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/algebra/ring.lean | c6079bcee2e8ae82742fff4ce87a602711dccc1c | [
"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,994 | 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 filter topological_space
open_locale classical
se... |
99269d3143c83511c17876b1faa7cd3548bed86e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/subobject/mono_over.lean | 4e60fe012c2dba6ebeac5197475c9b77c441d919 | [
"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 | 13,507 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.functor.currying
import category_theory.limits.over
import category_theory.limits.shapes.images
import category_theory.adjunction.r... |
e4207b77df5e2e98ce3930a7e5f576ffa05f8c72 | 3687dc8685c74a77e27d2ad9bd1237521b1962d7 | /dijkstra2.lean | 6807ee96da5ff841cb1d0be366eb5194871396f4 | [
"MIT"
] | permissive | jroesch/effects | 7e6020d550e50b43eed2dda71b9d6e5fd03c2e87 | fca06ecdf0f123bf4277029e3430765d6af39b66 | refs/heads/master | 1,610,904,974,722 | 1,476,251,597,000 | 1,476,251,597,000 | 70,456,715 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,488 | lean | namespace pure
def {w u v} context (A : Type w) (E : Type u) := (A → Type v) -> E
def pure {A T : Type} (x : T) : context A T :=
fun y, x
def apply {A T U : Type}
(l : context A (T -> U))
(r : context A T) : context A U :=
fun p, l p (r p)
def push {A T U : Type} (f : (T → context A U)) : c... |
6fc6fc2187bf58c9b748a246351eb5d3469a91d5 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/order/liminf_limsup.lean | f121ffba441abbc04ca6476a1ba0b8c59a9b45ac | [
"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 | 15,002 | 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... |
a7f8e80706f1242fb385fc1e8a2c5a5a98187bc9 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world10/level5.lean | 7f72ec97625258a2c3b11d2a802535cd15b2a8db | [
"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 | 513 | lean | import game.world10.level4 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 5: `le_trans`
Another straightforward one.
-/
/- Lemma
≤ is transitive. In other words, if $a\leq b$ and $b\leq c$ then $a\leq c$.
-/
theorem le_trans (a b c : mynat) (hab : a ≤ b) (hbc : b ≤ c) : a ≤ c :=
begin [nat_num... |
ba91951847276027f343465ecfc967e96aa21262 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/normed_space/multilinear.lean | cc713ff94c7d3c1fd205adbd285f78e01b793f3f | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 72,538 | 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 analysis.normed_space.operator_norm
import topology.algebra.module.multilinear
/-!
# Operator norm on the space of continuous multilinear maps
When `f`... |
10d08224869d20316d224d45fba84d2561541ba2 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/algebra/filter_basis.lean | 0f68d87bbddbef982f89c0c95b880ee24e8e635b | [
"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 | 17,187 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import order.filter.bases
import topology.algebra.module.basic
/-!
# Group and ring filter bases
A `group_filter_basis` is a `filter_basis` on a group with some pro... |
344f0460fe63b191cc6f62cd2b6cb1731682e3b9 | 827124860511172deb7ee955917c49b2bccd1b3c | /data/containers/rbtree/insert.lean | 92ca713b60f69bb01bd5e2b2426b92b41dc2e338 | [] | no_license | joehendrix/lean-containers | afec24c7de19c935774738ff3a0415362894956c | ef6ff0533eada75f18922039f8312badf12e6124 | refs/heads/master | 1,624,853,911,199 | 1,505,890,599,000 | 1,505,890,599,000 | 103,489,962 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 18,761 | lean | import .basic
namespace data.containers
namespace rbtree
open color
/-- An insert_result is a generalization of the tree to allow
a node with 2-keys and 3-children each of which should have the
same height.
This is used
Specifically, it is either a tree that respects the red-black rules,
or a the concatenation of t... |
fbec369964e9bbf320cb4328357787989028ad33 | a7dd8b83f933e72c40845fd168dde330f050b1c9 | /src/category_theory/instances/CommRing/basic.lean | df6a4cdac95a6a95f28601d2f69761fb3aa04b1d | [
"Apache-2.0"
] | permissive | NeilStrickland/mathlib | 10420e92ee5cb7aba1163c9a01dea2f04652ed67 | 3efbd6f6dff0fb9b0946849b43b39948560a1ffe | refs/heads/master | 1,589,043,046,346 | 1,558,938,706,000 | 1,558,938,706,000 | 181,285,984 | 0 | 0 | Apache-2.0 | 1,568,941,848,000 | 1,555,233,833,000 | Lean | UTF-8 | Lean | false | false | 3,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, Johannes Hölzl
Introduce CommRing -- the category of commutative rings.
-/
import category_theory.instances.Mon.basic
import category_theory.fully_faithful
import alg... |
f3c821addde745584faac2087bd9ac78337d25cc | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/topology/instances/ennreal.lean | f767c30ae8fca77cc9bcac303be80c02e3a1a29d | [
"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 | 28,715 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Extended non-negative reals
-/
import topology.instances.nnreal data.real.ennreal
noncomputable theory
open classical set lattice filter metric
local attribute [instance... |
f0a17c92d6b8cbf24d6d8d8462f8b935fa0cf811 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/metric_space/emetric_space.lean | 4aa7c5356e0c5f9d905f0fb1cc7d3e5a85383a14 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 33,027 | lean | /-
Copyright (c) 2015, 2017 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Extended metric spaces.
Authors: Jeremy Avigad, Robert Y. Lewis, Johannes Hölzl, Mario Carneiro, Sébastien Gouëzel
This file is devoted to the definition and study of `emetric_spaces`, i... |
f73b33d7766fabc6ac8964fa91651a12b4b032ee | a692b04bb3c0b87bd6a288cef6b9aa743f282a4e | /src/example_maze/level.lean | 421c021da31fba0ccaec91ca44c0cd39ed036e0c | [] | no_license | jcommelin/maze-game | 7ae36abca3e06a1d5b4b66f487535f2af48ee239 | ac6457f205709b07cdac493b27da7d24895fd471 | refs/heads/master | 1,670,423,475,741 | 1,598,534,044,000 | 1,598,534,044,000 | 290,783,075 | 0 | 0 | null | 1,598,534,978,000 | 1,598,534,977,000 | null | UTF-8 | Lean | false | false | 675 | lean | -- import the definition of the example maze
import example_maze.definition
/-!
# Example maze.
You are in a maze of twisty passages, all alike!
You can go north, south east or west.
-/
namespace maze
/- Solver remark : there are 5 rooms. -/
/-- Use n,s,e,w to move around. When you're at the exit, type `out`. ... |
71f2e2cb3db0836bd41f39eb943b9143fef6d9ea | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/noConfusionDecEqExp.lean | 2e6c04646ed50e63e44df1323d6a679540ba2361 | [
"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 | 4,601 | lean | inductive Foo (α : Type u) where
| mk1 (val : α)
| mk2 (left : Foo α) (right : Foo α)
| mk3 (val : Nat)
| mk4 (val : String)
| mk5 (head : α) (tail : Foo α)
def Foo.ctorIdx : Foo α → Nat
| .mk1 .. => 0
| .mk2 .. => 1
| .mk3 .. => 2
| .mk4 .. => 3
| .mk5 .. => 4
@[elab_as_elim]
def Foo.elimCtor1 {m... |
fbb05ae9b63198731e8f49ea8b8bea9e7014e3f8 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/measure_theory/group/prod.lean | 9d44fd9e6c870026185df56c950a7b517fde0278 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,112 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.constructions.prod
import measure_theory.group.basic
/-!
# Measure theory in the product of groups
In this file we show properties about m... |
94b7e20f12606b95c62f70213acd9e197f789880 | 92b50235facfbc08dfe7f334827d47281471333b | /library/data/list/perm.lean | 190b442744de1fe1fa3c62fd7f4b5c27e947f92c | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 38,866 | 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
List permutations.
-/
import data.list.basic data.list.set
open list setoid nat binary
variables {A B : Type}
inductive perm : list A → list A → Prop :=
| ni... |
3fa46c60b87f214c144744cbfef270cec5d87d63 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/dedekind_domain/ideal.lean | 38f0779b3bb91ea7e51f50316b6e0f560f2eafde | [
"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 | 44,489 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import algebra.algebra.subalgebra.pointwise
import algebraic_geometry.prime_spectrum.noetherian
import ring_theory.dedekind_domain.... |
76ee09b9db9472af380418ed718cb59d993d8f89 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/linear_algebra/free_module.lean | 982cdfd270a69b82960c2ef5d6aaf0e101a620f2 | [
"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 | 13,828 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import linear_algebra.basis
import linear_algebra.finsupp_vector_space
import ring_theory.principal_ideal_domain
/-! # Free modules
A free `R`-module `M` is a module with... |
9c1e11a5c667853dee5a596c5364f5beaeca35c9 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/clifford_algebra.lean | bb280fec15cb54c691fe6ee4d2b5584b0767f9cb | [
"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,316 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Utensil Song.
-/
import algebra.ring_quot
import linear_algebra.tensor_algebra
import linear_algebra.exterior_algebra
import linear_algebra.quadratic_form
/-!
# Clifford Al... |
b90ed0e5bca7464439e84b77f5d8a53d29510b30 | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/metric_space/premetric_space.lean | 4dc279034520d7ab8d99fe4c0eee81fcb7e254b5 | [
"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 | 3,521 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Premetric spaces.
Author: Sébastien Gouëzel
-/
import topology.metric_space.basic
/-!
# Premetric spaces
Metric spaces are often defined as quotients of spaces endowed with a "distance"
f... |
d918a61c2d63ac0ace8d233b49f7019e7a18c085 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /stage0/src/Lean/Server/Rpc/RequestHandling.lean | bf78c0aa7f1cb72ab0bc78eed9a37f776a474880 | [
"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 | 2,775 | 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.Data.Lsp.Extra
import Lean.Server.Requests
import Lean.Server.Rpc.Basic
namespace Lean.Server
private structure RpcProcedure where
wrapper... |
d378b81eacc1f1bb6dd5d73b987f73e507ac8632 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/1321.lean | e2434ee03ad44eb6709f32c7b465a40ddaabf7c8 | [
"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 | 133 | lean |
@[reducible]
syntax (name := fooParser) "foo" term : term
#print fooParser
macro_rules
| `(foo $x) => `($x + 1)
#check foo 5
|
1753a078756964d08eb5237bb9dcb507afb3c86d | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/support.lean | 5e6b8757e933509780aa4aac35d22246a42da279 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,773 | 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 order.conditionally_complete_lattice
import algebra.big_operators.basic
import algebra.group.prod
import algebra.group.pi
/-!
# Support of a function
In th... |
38d6ed2000d13e4fc59ee23bb00dbf395d8d69f3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/isomorphism_classes_auto.lean | 07f95b0e30d2f43271ca44ea4e46bdc2758d89a2 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,457 | lean | /-
Copyright (c) 2019 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.category_theory.category.Cat
import Mathlib.category_theory.groupoid
import Mathlib.PostP... |
e3a8b3863ae4b49d068494e754d6c977044f70fc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/simp_command.lean | f8296885106e6715f7ac91de435bad32b7b8906d | [
"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 | 4,931 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Scott Morrison
-/
import tactic.core
/-!
## #simp
A user command to run the simplifier.
-/
namespace tactic
/-- Strip all annotations of non local constants in the pass... |
d8ca70227915f738dc6873bfda2d06e62cf73531 | 01ae0d022f2e2fefdaaa898938c1ac1fbce3b3ab | /categories/universal/complete/functor_category.lean | 5d8702721e57396a8a8f4fd9088fbfa2021ab28a | [] | no_license | PatrickMassot/lean-category-theory | 0f56a83464396a253c28a42dece16c93baf8ad74 | ef239978e91f2e1c3b8e88b6e9c64c155dc56c99 | refs/heads/master | 1,629,739,187,316 | 1,512,422,659,000 | 1,512,422,659,000 | 113,098,786 | 0 | 0 | null | 1,512,424,022,000 | 1,512,424,022,000 | null | UTF-8 | Lean | false | false | 6,779 | 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 ..complete
open categories
open categories.functor
open categories.natural_transformation
open categories.functor_categories
open categories.isomorphism
o... |
0686f633acbdd2f2a8de6b0a9beb63cc984d2504 | 2bafba05c98c1107866b39609d15e849a4ca2bb8 | /src/week_8/ideas/Z1.lean | 68b30aae23ea7355e7d1443e55c891bbfa2e9d9c | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/formalising-mathematics | b54c83c94b5c315024ff09997fcd6b303892a749 | 7cf1d51c27e2038d2804561d63c74711924044a1 | refs/heads/master | 1,651,267,046,302 | 1,638,888,459,000 | 1,638,888,459,000 | 331,592,375 | 284 | 24 | Apache-2.0 | 1,669,593,705,000 | 1,611,224,849,000 | Lean | UTF-8 | Lean | false | false | 8,257 | lean | import week_8.ideas.Part_B_H0
import group_theory.quotient_group
/-
# 1-cocycles
We develop the theory of 1-cocycles. We'll call them cocycles
for short.
# Notation
Throughout we stick to the conventions that `G` is a group (or even
a monoid, we never use inversion) and that `M` is a `G`-module,
that is, an addit... |
3299ee0479040fb35663e11c2ba57ecb4a7bd910 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/sites/sheaf.lean | e9ad13949f38ab7e649f03b8ef98d2c12c3c3c00 | [
"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 | 25,616 | lean | /-
Copyright (c) 2020 Kevin Buzzard, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Bhavik Mehta
-/
import category_theory.limits.preserves.shapes.equalizers
import category_theory.limits.preserves.shapes.products
import category_theory.li... |
fdfdbc5694cb66683d12ba8a4681c9f062106f40 | 40aa464a609b783cb74f88a743b2fbbab0365877 | /Mathlib/Tactic/Cache.lean | 7e99429101d6c99cc853324612139205c92ee43b | [
"Apache-2.0"
] | permissive | insightmind/mathlib4 | cd27d91c7e58f09531ad594d0033d933f4153f68 | 64f9c43eb9a75fb4c5989ac711623d06e9696e60 | refs/heads/master | 1,693,133,427,303 | 1,636,471,424,000 | 1,636,471,424,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,902 | lean | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import Lean
/-!
# Once-per-file cache for tactics
This file defines cache data structures for tactics
that are initialized the first time they are accessed.
Since Lean... |
39338bdec218d12dbb061896618e39a6205e7c54 | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/meta/coinductive_predicates.lean | 0fd712226e971d21e65888f84e04c8de03c8058e | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 22,257 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl (CMU)
-/
import tactic.core
namespace name
def last_string : name → string
| anonymous := "[anonymous]"
| (mk_string s _) := s
| (mk_numeral _ n) := last_string... |
d317ded33c38e16d69f68e41e72421e4f750c89b | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/geometry/manifold/charted_space.lean | a38e32c1cc687ae9ef34d320e0511dbb29df5bac | [
"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 | 43,193 | 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.local_homeomorph
/-!
# Charted spaces
A smooth manifold is a topological space `M` locally modelled on a euclidean space (or a euclidean
half-... |
edd5133bd11c658863b48da60682832d86728eb8 | 1e561612e7479c100cd9302e3fe08cbd2914aa25 | /mathlib4_experiments/Data/Multiset/Basic.lean | bdebc372304f659c3481fbaaa26f7ddd0c48f874 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib4_experiments | 8de8ed7193f70748a7529e05d831203a7c64eedb | 87cb879b4d602c8ecfd9283b7c0b06015abdbab1 | refs/heads/master | 1,687,971,389,316 | 1,620,336,942,000 | 1,620,336,942,000 | 353,994,588 | 7 | 4 | Apache-2.0 | 1,622,410,748,000 | 1,617,361,732,000 | Lean | UTF-8 | Lean | false | false | 96,256 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import mathlib4_experiments.Data.List.Perm
--import algebra.group_power
/-!
# Multisets
These are implemented as the quotient of a list by permutations.
## No... |
e90771bbc9e8e8e934888d7bc3dff3a9c6b8305a | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/rat/sqrt.lean | af6c6befa0d085a1bf884cb78090a4e5843d1527 | [
"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 | 1,180 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.rat.order
import data.int.sqrt
/-!
# Square root on rational numbers
This file defines the square root function on rational numbers, `ra... |
7c0d30e1e6e84424ba9c9acf70f45a00c27b7f00 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/topology/algebra/uniform_ring.lean | b60670b79e1ab49f14c58d2c11964b17ace3b66f | [
"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 | 7,532 | 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 with uniform structure.
-/
import topology.algebra.group_completion topology.algebra.ring
open classical set filter topolo... |
8cc45d597038ba28d07bd4c1d1d545d76f98e8c2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/full_subcategory.lean | 8bbbfda80519aebd373dd731e850bf1716e2527d | [
"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 | 6,384 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton
-/
import category_theory.functor.fully_faithful
/-!
# Induced categories and full subcategories
Given a category `D` and a function `F : C → D `from a ty... |
173d37ff700e1cbe1b2313f1a36d33adf1333ff7 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/tactic/induction.lean | f6bf17cd5fefa1f305acbe091107eaad5236c788 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55,059 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.clear
import tactic.dependencies
import tactic.fresh_names
import tactic.generalizes
import tactic.has_variable_names
import tactic.unify_equations
/-... |
82bdda907f8b6b267f537727aee616e53ae64a6f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/hom/freiman.lean | 3f880ffd34a70059fc2931591ba6c91eb254401c | [
"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 | 17,478 | 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 algebra.big_operators.multiset.basic
import data.fun_like.basic
/-!
# Freiman homomorphisms
In this file, we define Freiman homomorphisms. A `n`-Freiman homomorp... |
1b5aef9cef605ab69ebf7bbf565e5934159e9b4e | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/order/galois_connection.lean | 29975441317b11069817f1bae83b1ed025a1e15f | [
"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 | 24,907 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import order.complete_lattice
import order.order_dual
/-!
# Galois connections, insertions and coinsertions
Galois connections are order theoretic adjoints, i.e. a p... |
75fb79f3ebba5d97cb6457ad1539b5b508a7aa18 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/number_theory/padics/hensel.lean | e541fd41c24d7055cf00d09cfd8f73771ee6d501 | [
"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,733 | 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
-/
import analysis.specific_limits.basic
import data.polynomial.identities
import number_theory.padics.padic_integers
import topology.algebra.polynomial
import topolog... |
8f7755d003b665a93a5a7b2ca19426436cd81ced | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/group_theory/submonoid/basic.lean | 19c472fb05518c46997f94835f2fabcfacacbea1 | [
"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 | 15,799 | 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, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import data.set.lattice
import data.set_like.basic
/-!
# Submonoids: de... |
15ade92a743b38d03de9246abbb696524fcb6ae8 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/ring_theory/free_comm_ring.lean | e5a6f219700eaef6dc705ee7479884bec6431852 | [
"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 | 15,516 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin
-/
import group_theory.free_abelian_group data.equiv.algebra data.equiv.functor data.polynomial
import ring_theory.ideal_operations ring_theory.free_ring
noncomp... |
3a7055394fdc1253afd16cc7ee2579c9b1ea0a32 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Std/Data/BinomialHeap.lean | fede1e6ae948a9a6b54a6e710a08f420715f47ad | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 5,312 | 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
-/
namespace Std
universes u
namespace BinomialHeapImp
structure HeapNodeAux (α : Type u) (h : Type u) where
val : α
rank : Nat
children : List h
induc... |
6c1b6237a7f21119d34b3b33c46608fae6a1fe99 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/equiv/module.lean | f9b01017a2ca1fabcba8289a3644a20344344cb8 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,179 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro, Anne Baanen,
Frédéric Dupuis, Heather Macbeth
-/
import algebra.module.linear_map
/-!
# (Semi)linear equivalences
In t... |
9393c0e5c57318a74cc300d789f3e4e5fdc8dfbb | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/convergence_in_measure.lean | e921708ec31e500f74dadafe5839cd706e75a567 | [
"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 | 16,972 | lean | /-
Copyright (c) 2022 Rémy Degenne, Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Kexing Ying
-/
import analysis.special_functions.pow
import measure_theory.function.egorov
import measure_theory.function.lp_space
/-!
# Convergence in measur... |
970f13f405ae0eeed9f0ebc5b222b9b0e972128c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/polynomial/chebyshev/default.lean | bfd508bb3f12ef1f4b8bfbceb710c34c8d00a149 | [] | 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 | 158 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.ring_theory.polynomial.chebyshev.basic
import Mathlib.PostPort
namespace Mathlib
|
ee20705c6a12f0917bddc4565955c29ba8fc1898 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/def13.lean | 4901ecdee4820e4d1f6160bb6d0d67963a1d87be | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 489 | lean |
inductive vec (A : Type) : nat → Type
| nil {} : vec 0
| cons : Π {n}, A → vec n → vec (n+1)
open vec
variables {A : Type}
variables f : A → A → A
definition map_head_1 : ∀ {n}, vec A n → vec A n → vec A n
| .0 nil nil := nil
| .(n+1) (@cons .A n a va) (cons b vb) := cons (f a b) va
exa... |
ec757f7f18c981237ee29e27b80047809393be02 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/solve_by_elim.lean | 133395bba2ba1ba0ae841b6d075f13006ef93dc1 | [
"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 | 5,618 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.core
namespace tactic
/--
Builds a collection of lemmas for use in the backtracking search in `solve_by_elim`.
* By default, it includes al... |
00cf89302964b83478d9b1789ade12b0db017cf2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/ind_cmd_bug.lean | 5115b004151e7ff1f199b97cc2a69aa28c18f9ba | [
"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 | 85 | lean |
structure D (α : Type) :=
(a : α)
inductive S
| mk₁ (v : S)
| mk₂ (v : D S)
|
6ae3ebe5efbf2b57c88238465dda9ec6951fdf53 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/measurable_space.lean | 3af8cac7365ef016ea0910e781fbe4872a446423 | [
"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 | 61,047 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import algebra.indicator_function
import data.equiv.fin
import data.tprod
import group_theory.coset
import measure_theory.measurable_space_def
import... |
b7a95fba2e6ec3b8c79f65e3d4de0f9dc18cf40d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/pldi/array_map.lean | 11e15d4931a8d663ccd097bb51f0033f91c6ad08 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,067 | lean | @[specialize] unsafe partial def umapAux {α β : Type} (f : α → β) : Nat → Array NonScalar → Array NonScalar
| i, a =>
if h : i < a.size then
let a := dbgTraceIfShared "array" a;
let idx : Fin a.size := ⟨i, h⟩;
let v : NonScalar := a.get idx;
let a := a.set idx (arb... |
fada4c369c67c5456565f62cdff82e821908cef8 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/incmd.lean | 508d430fe99ab7b5ce711045189da638cc133ce0 | [
"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 | 235 | lean | new_frontend
variable {α : Type} in
def f : α → α :=
fun x => x
#check @f
variables {α : Type} {β : Type} in
variable (h : α → α) in
set_option syntaxMaxDepth 1000 in
def g : α → β → α :=
fun x _ => h x
#check @g
|
c33b30aedc633e9db6e730ddf76127e3dc532482 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/category_theory/limits/shapes/terminal.lean | c3d6e37faa3430981f5e9717c13030b0ac5f97ab | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 5,053 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.pempty
import category_theory.limits.limits
/-!
# Initial and terminal objects in a category.
-/
universes v u
open category_theory
namespa... |
4a9c23cb4769464fa610e4391aaf6ecf55beb40c | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/logic/function/basic.lean | 206c3e62a014cf3ad1ceea911b2cc008859114dd | [
"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 | 30,543 | lean | /-
Copyright (c) 2016 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 data.option.defs
import logic.nonempty
import tactic.cache
/-!
# Miscellaneous function constructions and lemmas
-/
universes u v w
namespac... |
ef3b9bd62641011c333f39802651762ced2f88aa | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/measure_theory/integral/periodic.lean | 2c2e082911bcb09980e78485889074e10b581b1b | [
"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 | 2,633 | 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.group.fundamental_domain
import measure_theory.integral.interval_integral
/-!
# Integrals of periodic functions
In this file we prove that `... |
418ca4776e44b7ffe234b53fbaf78a32ec16800c | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/functor/yoneda.hlean | 8d50af1704d9e2ada00c34abb783c80b88ae57f5 | [
"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 | 5,937 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Yoneda embedding and Yoneda lemma
-/
import .examples .attributes
open category eq functor prod.ops is_trunc iso is_equiv equiv category.set nat_trans lift
names... |
cb6d192b9f3545a5255ca7dcc430f1a8d71a54c4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/inner_product_space/adjoint.lean | 8660c23653d902a3ddd5fe67cf8d43b3a7bf068f | [
"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 | 14,822 | lean | /-
Copyright (c) 2021 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis, Heather Macbeth
-/
import analysis.inner_product_space.dual
import analysis.inner_product_space.pi_L2
/-!
# Adjoint of operators on Hilbert spaces
Given an operato... |
e39cf90371d56db277e98412af09f6727c73831c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/has_scalar_comp_loop.lean | a8539318959907e438ce28a716cc439d3d9f810b | [
"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,468 | lean | import group_theory.group_action.basic
variables (R M S : Type*)
/-- Some arbitrary type depending on `has_smul R M` -/
@[irreducible, nolint has_nonempty_instance unused_arguments]
def foo [has_smul R M] : Type* := ℕ
variables [has_smul R M] [has_smul S R] [has_smul S M]
/-- This instance is incompatible with `has... |
6fc193292e0db572178f0f5acc5dcf5e4e447df4 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/bench/deriv.lean | b00c0d674fb628a211bd9ec6317c293f7dcdc957 | [
"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 | 2,900 | lean | /- Benchmark for new code generator -/
inductive Expr
| Val : Int → Expr
| Var : String → Expr
| Add : Expr → Expr → Expr
| Mul : Expr → Expr → Expr
| Pow : Expr → Expr → Expr
| Ln : Expr → Expr
open Expr
partial def pown : Int → Int → Int
| a, 0 => 1
| a, 1 => a
| a, n =>
let b := pown a (n / 2);
b * b * (if n ... |
4dceec04c6362cb3235bd6b8e36793cfbb68f1fb | 67190c9aacc0cac64fb4463d93e84c696a5be896 | /Lists of exercises/List 7/cap14-LucasDomingues.lean | 3cfe367e3ee6411ae98b04642ea2c6b4502c61be | [] | no_license | lucasresck/Discrete-Mathematics | ffbaf55943e7ce2c7bc50cef7e3ef66a0212f738 | 0a08081c5f393e5765259d3f1253c3a6dd043dac | refs/heads/master | 1,596,627,857,734 | 1,573,411,500,000 | 1,573,411,500,000 | 212,489,764 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,081 | lean | -- Estudante: Lucas Emanuel Resck Domingues
-- Exercise 1
section
parameters {A : Type} {R : A → A → Prop}
parameter (irreflR : irreflexive R)
parameter (transR : transitive R)
local infix < := R
def R' (a b : A) : Prop := R a b ∨ a = b
local infix ≤ := R'
theorem reflR' (a : A) : a ≤ a... |
fe63bfc3261c923c012360954b6d2526b23b590c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/project_dir.lean | f19b3470b73d6bd0f9c57c6e534fd6a734732f03 | [
"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 | 502 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
/-!
# Project directory locator
We use the dummy declaration in this file to locate the project directory of mathlib.
-/
/-- This is a dummy declaration that... |
40e535c3b54531d93654f433497840d3c7aeba1a | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/group_theory/eckmann_hilton.lean | ec7580b2a06dee78f21ef337606c2988fbf39e75 | [
"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 | 1,910 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau, Robert Y. Lewis
-/
import tactic.simpa
universe u
namespace eckmann_hilton
variables {X : Type u}
local notation a `<`m`>` b := m a b
class is_unital (m : X ... |
f8d053e9a539c8e89e0040ee93d7655fee1ec551 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/generator.lean | 0a2365872680f71e1e8de073b6fdf782d2bc3448 | [
"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 | 16,577 | lean | /-
Copyright (c) 2022 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.balanced
import category_theory.limits.opposites
import data.set.opposite
/-!
# Separating and detecting sets
There are several non-equivalent ... |
cb39b9832dcf143a7a7ef5bc7615571d4baf4e54 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/nat/choose/sum.lean | aeea8200905ce97dd08e4c40d7d43ce21217b246 | [
"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 | 5,962 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Patrick Stevens
-/
import data.nat.choose.basic
import tactic.linarith
import algebra.big_operators.ring
import algebra.big_operators.intervals
import algebra.big_operators... |
c2fc3f9269a5e9e7b70756deff2228a41f3afe90 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /old_library/init/classical.lean | 426712d73d357febc78bf30758cb7bcaf86851cc | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,543 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.subtype init.funext
namespace classical
open subtype
universe variables u v
/- the axiom -/
-- In the presence of classi... |
c0f19cfd21e55b7c0f0b01f067004bfd558bedb0 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/set_theory/ordinal/cantor_normal_form.lean | 78008de0abc34aeeacc5f864b6d5f6339ad788b0 | [
"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,091 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import set_theory.ordinal.arithmetic
/-!
# Cantor Normal Form
The Cantor normal form of an ordinal is generally defined as its base `ω` expansion, with its
non-zer... |
7ca8c7ef8ee20404e0f6a6808a7d8f571ec90a06 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/order/monotone.lean | 465ef99e64777e06c793ee8c9c48fb91add8fd58 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,064 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro, Yaël Dillies
-/
import order.compare
import order.order_dual
/-!
# Monotonicity
This file defines (strictly) monotone/antitone functions. Contrary to st... |
3563a4bf6429735bfd4c323335823c7c1790ae6d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/qpf/multivariate/constructions/fix.lean | f7456c2ef8bb5c9c86b49065733841641523014f | [
"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 | 12,881 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Simon Hudon
-/
import data.pfunctor.multivariate.W
import data.qpf.multivariate.basic
/-!
# The initial algebra of a multivariate qpf is again a qpf.
For a `(n+1)`-ary ... |
a13630bcbb9321213e43433659c245b0528a6eb4 | 60bf3fa4185ec5075eaea4384181bfbc7e1dc319 | /src/kb_defs.lean | e6d9afe52484685e729e33a93b7b3f3a0d47eb45 | [
"Apache-2.0"
] | permissive | anrddh/real-number-game | 660f1127d03a78fd35986c771d65c3132c5f4025 | c708c4e02ec306c657e1ea67862177490db041b0 | refs/heads/master | 1,668,214,277,092 | 1,593,105,075,000 | 1,593,105,075,000 | 264,269,218 | 0 | 0 | null | 1,589,567,264,000 | 1,589,567,264,000 | null | UTF-8 | Lean | false | false | 1,177 | lean | import tactic
open_locale classical
open set
namespace xena
variables {X : Type} (a : X) {x : X} {A B : set X}
/-- Humans want these in levels 1-6 -/
lemma mem_union_iff : x ∈ A ∪ B ↔ x ∈ A ∨ x ∈ B := iff.rfl
lemma mem_inter_iff : x ∈ A ∩ B ↔ x ∈ A ∧ x ∈ B := iff.rfl
lemma mem_sdiff_iff : x ∈ A \ B ↔ x ∈ A ∧ x ∉ ... |
fdddef8ae1f12a8439503b34f8062cbf38b9e9b9 | 38ee9024fb5974f555fb578fcf5a5a7b71e669b5 | /Mathlib/Tactic/Rcases.lean | 13a726e81ecf690560f9147d0a010ba650962d83 | [
"Apache-2.0"
] | permissive | denayd/mathlib4 | 750e0dcd106554640a1ac701e51517501a574715 | 7f40a5c514066801ab3c6d431e9f405baa9b9c58 | refs/heads/master | 1,693,743,991,894 | 1,636,618,048,000 | 1,636,618,048,000 | 373,926,241 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 818 | lean | /-!
# Stub for the `rcases` tactic.
The `rcases` tactic has not been implemented yet.
This file contains the syntax definition for `rcases` patterns,
as they are used in several places.
-/
namespace Lean.Parser.Tactic
declare_syntax_cat rcasesPat
syntax rcasesPatMed := sepBy1(rcasesPat, " | ")
syntax rcasesPatLo :=... |
4da18590479a325dd7f130a6d7f0666bee1e82c4 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/real/pi.lean | b8836edd7b242a833f6d6a4c0659336b779ecec1 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,969 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Benjamin Davidson
-/
import analysis.special_functions.pow
/-!
# Pi
This file contains lemmas which establish bounds on or approximations of `real.pi`. Notably, th... |
3d7a153cb0ae1f6d19d280c02c46a52314524039 | 4fa161becb8ce7378a709f5992a594764699e268 | /src/data/nat/prime.lean | 3406ce582c9721b4df960098b8aaee22f972844a | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 22,502 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import algebra.group_power
/-!
# Prime numbers
This file deals with prime numbers... |
7eed9ad6240809aec1f8f25632ece67003b815e2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/normed_space/ordered.lean | 78e692a34e6ef8f8bbeb6cb809586b7f32a63f00 | [
"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 | 1,984 | 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.normed_space.basic
/-!
# Ordered normed spaces
In this file, we define classes for fields and groups that are both normed and ordered.
These are... |
f92c48ace1bf555f18c36dd255cc1340a2971583 | 9b9a16fa2cb737daee6b2785474678b6fa91d6d4 | /src/category_theory/equivalence.lean | dfe83a4da7fb49816a802053b138bdf633ec4d00 | [
"Apache-2.0"
] | permissive | johoelzl/mathlib | 253f46daa30b644d011e8e119025b01ad69735c4 | 592e3c7a2dfbd5826919b4605559d35d4d75938f | refs/heads/master | 1,625,657,216,488 | 1,551,374,946,000 | 1,551,374,946,000 | 98,915,829 | 0 | 0 | Apache-2.0 | 1,522,917,267,000 | 1,501,524,499,000 | Lean | UTF-8 | Lean | false | false | 8,520 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Tim Baumann, Stephen Morgan, Scott Morrison
import category_theory.fully_faithful
import category_theory.functor_category
import category_theory.natural_isomorphism
import tacti... |
d4b86243300f5171ef8c420c9e2d72d8a3efab87 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/concrete_category.lean | 4349caebfe5ba5241c1fa2a6e2240c46601595af | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 12,438 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Adam Topaz
-/
import category_theory.limits.preserves.basic
import category_theory.limits.types
import category_theory.limits.shapes.wide_pullbacks
import category_theo... |
3781c62ee3f099c3d9653e58cf3fecc988e415d5 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/category/PartialOrder_auto.lean | db6a9ff197315fe2b6c9bed182df3967f32831a0 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,350 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.category.Preorder
import Mathlib.PostPort
universes u_1
namespace Mathlib
/-! # C... |
bd24ac95c1950db0a871d06c96ecc2a12b5cabb9 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/measure_theory/borel_space.lean | e6df604e3a48089537d31eb1452e380eebcaf6ba | [
"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 | 18,630 | 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
Borel (measurable) space -- the smallest σ-algebra generated by open sets
It would be nice to encode this in the topological space type class, i.e. each topological sp... |
345729150e08ac41f70e56797bb87012f715791b | acc85b4be2c618b11fc7cb3005521ae6858a8d07 | /order/galois_connection.lean | 29faa9813842a16d4c17138118b063260e83bb77 | [
"Apache-2.0"
] | permissive | linpingchuan/mathlib | d49990b236574df2a45d9919ba43c923f693d341 | 5ad8020f67eb13896a41cc7691d072c9331b1f76 | refs/heads/master | 1,626,019,377,808 | 1,508,048,784,000 | 1,508,048,784,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,693 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Galois connections - order theoretic adjoints.
-/
import order data.set
open function set lattice
universes u v w x
variables {α : Type u} {β : Type v} {γ : Type w} {ι ... |
50fd52a172795872347060ee3658eccf01748f46 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/refine_error.lean | 98bc3dfd2c2a8e5c5f6660b697faef68b234d1e5 | [
"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 | constant p {α : Type} [has_zero α] : α → Prop
constant pax {α : Type} [has_zero α] : p (0:α)
lemma ex : p (0:nat) :=
@pax int _
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.