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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8b43de381b67b58a735c219efcaa2b02ceaea0d2 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Init/Prelude.lean | add4a7083c28e8d87907a1cbfa58a3838afdede4 | [
"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 | 75,058 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
universe u v w
@[inline] def id {α : Sort u} (a : α) : α := a
/- `idRhs` is an auxiliary declaration used to implement "smart unfolding". It is u... |
4b890a95956afe0f8684036e29ccf0d43a954e48 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/simpperf/pre2500.lean | 11a61f9c254cbdc55240db80a80a685c51309336 | [
"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 | 218,030 | lean | axiom f (x : Prop) : Prop
axiom g0 (x : Prop) : Prop
axiom g1 (x : Prop) : Prop
axiom g2 (x : Prop) : Prop
axiom g3 (x : Prop) : Prop
axiom g4 (x : Prop) : Prop
axiom g5 (x : Prop) : Prop
axiom g6 (x : Prop) : Prop
axiom g7 (x : Prop) : Prop
axiom g8 (x : Prop) : Prop
axiom g9 (x : Prop) : Prop
axiom g10 (x : Prop) : P... |
50914e1579a4a1c0281d472ae476afcf43b43817 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/computability/DFA.lean | 165c409dd3a1c8de78044d357903c526a52c5e5b | [
"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,589 | lean | /-
Copyright (c) 2020 Fox Thomson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Fox Thomson
-/
import data.fintype.basic
import computability.language
import tactic.norm_num
/-!
# Deterministic Finite Automata
This file contains the definition of a Deterministic Fi... |
d977914349a8ccf5aa05a2f53c1ffc2313959fee | 12dabd587ce2621d9a4eff9f16e354d02e206c8e | /world06/level09.lean | d900fe579585cbc2e70410717edcb3f3ab60ed1e | [] | no_license | abdelq/natural-number-game | a1b5b8f1d52625a7addcefc97c966d3f06a48263 | bbddadc6d2e78ece2e9acd40fa7702ecc2db75c2 | refs/heads/master | 1,668,606,478,691 | 1,594,175,058,000 | 1,594,175,058,000 | 278,673,209 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 300 | lean | example (A B C D E F G H I J K L : Prop)
(f1 : A → B) (f2 : B → E) (f3 : E → D) (f4 : D → A) (f5 : E → F)
(f6 : F → C) (f7 : B → C) (f8 : F → G) (f9 : G → J) (f10 : I → J)
(f11 : J → I) (f12 : I → H) (f13 : E → H) (f14 : H → K) (f15 : I → L)
: A → L :=
begin
cc,
end
|
98b05be53a6a8ae2059513f752e3a0e2b199fa96 | 798dd332c1ad790518589a09bc82459fb12e5156 | /analysis/topology/topological_structures.lean | f5ba3f27ce833124f28c922d40012b6a62ab1a15 | [
"Apache-2.0"
] | permissive | tobiasgrosser/mathlib | b040b7eb42d5942206149371cf92c61404de3c31 | 120635628368ec261e031cefc6d30e0304088b03 | refs/heads/master | 1,644,803,442,937 | 1,536,663,752,000 | 1,536,663,907,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47,182 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Theory of topological monoids, groups and rings.
TODO: generalize `topological_monoid` and `topological_add_monoid` to semigroups, or add a type class
... |
2699d51d09b89f0ea7f8e4fea7ee76b4eab4c270 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/normed/group/SemiNormedGroup/kernels.lean | 29102a8b0c423718134caa91ba5ab547a318f349 | [
"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,139 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca, Johan Commelin, Scott Morrison
-/
import analysis.normed.group.SemiNormedGroup
import analysis.normed.group.quotient
import category_theory.limits.shapes.kernels
/-!
... |
16583ce666f2847e28d37b4519a54caa56179c09 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/regular/smul.lean | be04083079e37baeee8ebb77085aa0fdc7d797a3 | [
"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 | 7,822 | lean | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.smul_with_zero
import algebra.regular.basic
/-!
# Action of regular elements on a module
We introduce `M`-regular elements, in the context of an `R`-mo... |
b27b1a15d5d9fd91761af1bb8f2d1886d5a5c877 | efce24474b28579aba3272fdb77177dc2b11d7aa | /src/category_theory/congruence.lean | 67b40d18695ca9b41584bdd95f3724a50920b46b | [
"Apache-2.0"
] | permissive | rwbarton/lean-homotopy-theory | cff499f24268d60e1c546e7c86c33f58c62888ed | 39e1b4ea1ed1b0eca2f68bc64162dde6a6396dee | refs/heads/lean-3.4.2 | 1,622,711,883,224 | 1,598,550,958,000 | 1,598,550,958,000 | 136,023,667 | 12 | 6 | Apache-2.0 | 1,573,187,573,000 | 1,528,116,262,000 | Lean | UTF-8 | Lean | false | false | 1,836 | lean | import category_theory.base
import category_theory.functor
universes v u
namespace category_theory
local notation f ` ∘ `:80 g:80 := g ≫ f
variables {C : Type u} [category.{v} C]
class congruence (r : Π ⦃a b : C⦄, (a ⟶ b) → (a ⟶ b) → Prop) :=
(is_equiv : ∀ {a b}, equivalence (@r a b))
(congr : ∀ {a b c} {f f' : a ⟶... |
0bd2fe44b220dd98adafbb947c702f0138ddf75d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/reassoc_axiom.lean | ade0b6a1bd5facf39e5ae46d61e6a67a2d1e96c8 | [
"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,009 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import category_theory.category
/-!
# Tools to reformulate category-theoretic axioms in a more associativity-friendly way
## The `reassoc` attribute
The `reassoc` attrib... |
fa8ca5818e2dfe409fa33e0a17b110973efcead2 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/covering/differentiation.lean | 997b9240f317f534023a01aeedf687f1b7cc6a27 | [
"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 | 42,155 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import measure_theory.covering.vitali_family
import measure_theory.measure.regular
import measure_theory.function.ae_measurable_order
import measure_theory.inte... |
f0c03449c9380cb3f0e9d5ffde03006e7eb32981 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/group_theory/solvable.lean | 602ba5dea7e19479163e1dcb58b7b9120aa09f44 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,147 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning, Patrick Lutz
-/
import data.matrix.notation
import group_theory.abelianization
import set_theory.cardinal
import group_theo... |
58ded144bdf657182e6c94f7dcb707c16c4346c5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Message.lean | 0c9ae5a452cbe8886a38405da7b7aa888b2d2131 | [
"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 | 16,664 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
Message type used by the Lean frontend
-/
import Lean.Data.Position
import Lean.Data.OpenDecl
import Lean.MetavarContext
import Lean.Environ... |
ebbed72e5319e37e22ebc7810057511ddf3f08a9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/conj_act.lean | 6c216817766fe84483d59fe0e4b2b64695443a8f | [
"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 | 9,251 | lean | /-
Copyright (c) 2021 . All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import group_theory.group_action.basic
import group_theory.subgroup.basic
import algebra.group_ring_action.basic
/-!
# Conjugation action of a group on itself
This file defines the ... |
bc02c7f4cb335e9c3a7788f174acc1e2aa4e7c7d | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/analysis/normed_space/operator_norm.lean | 799e1057c40d2e7fba884906931475c30c1fb87b | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,284 | lean | /-
Copyright (c) 2019 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow, Sébastien Gouëzel, Jean Lo
-/
import linear_algebra.finite_dimensional
import analysis.normed_space.riesz_lemma
import analysis.asymptotics
/-!
# Operator norm o... |
839cb31b5f334e94e689f0266f020d8850eb093c | 35960c5b117752aca7e3e7767c0b393e4dbd72a7 | /src/typ/subst.lean | 3a51af85db5c7568737f1ef069c215aab16e2f87 | [
"Apache-2.0"
] | permissive | spl/tts | 461dc76b83df8db47e4660d0941dc97e6d4fd7d1 | b65298fea68ce47c8ed3ba3dbce71c1a20dd3481 | refs/heads/master | 1,541,049,198,347 | 1,537,967,023,000 | 1,537,967,029,000 | 119,653,145 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,874 | lean | import .fv .lc
local attribute [simp] not_or_distrib and_assoc
namespace tts ------------------------------------------------------------------
namespace typ ------------------------------------------------------------------
variables {V : Type} [_root_.decidable_eq V] -- Type of variable names
variables {x y : tagge... |
22962881689393b958cf80a8b706a358d2800e4a | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170714-lean-user.lean | 5c67c96c3ef68bc044e4513228f2917f129cf760 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,447 | lean | def ℤ₀ := ℕ × ℕ
def eqv : ℤ₀ → ℤ₀ → Prop
| (a, b) (c, d) := a + d = c + b
infix ` ∽ `:50 := eqv
-- Definition 4.1.2.
def add_ℤ₀ : ℤ₀ → ℤ₀ → ℤ₀
| (a, b) (c, d) := (a + c, b + d)
-- Lemma 4.1.3 (Addition and multiplication are well-defined).
private theorem add_ℤ₀.respects_eqv : ∀ {a b a' b'}, a ∽ a' → b ∽ b' → add... |
602440742ae99b66f02f22a0df1b59ff020cb422 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/types/trunc.hlean | 25d62e78135c6375688aa24ba3d702fd68b776ef | [
"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 | 18,771 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Properties of is_trunc and trunctype
-/
-- NOTE: the fact that (is_trunc n A) is a mere proposition is proved in .prop_trunc
import .pointed2 ..function algebra.o... |
a479cdababc7606c70cc91a61830356038cc990d | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/set/intervals/infinite.lean | 70b92219d666ee8c2d36c03d294cd6e575077016 | [
"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,893 | lean | /-
Copyright (c) 2020 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton
-/
import data.set.finite
/-!
# Infinitude of intervals
Bounded intervals in dense orders are infinite, as are unbounded intervals
in orders that are unbounded on the approp... |
8cf25e5f9d17b3e1c1d98cc7b7ab6cfae0a78a0c | 680b0d1592ce164979dab866b232f6fa743f2cc8 | /library/data/finset/partition.lean | 34326a7b5b6f3aa25c35b9924ebb23aff5c7af01 | [
"Apache-2.0"
] | permissive | syohex/lean | 657428ab520f8277fc18cf04bea2ad200dbae782 | 081ad1212b686780f3ff8a6d0e5f8a1d29a7d8bc | refs/heads/master | 1,611,274,838,635 | 1,452,668,188,000 | 1,452,668,188,000 | 49,562,028 | 0 | 0 | null | 1,452,675,604,000 | 1,452,675,602,000 | null | UTF-8 | Lean | false | false | 5,822 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Haitao Zhang
Partitions of a type A into finite subsets of A. Such a partition is represented by
a function f : A → finset A which maps every element a : A to its equivalence cl... |
44f2d672fe803a6d7d6cc8117d604118998eff33 | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /data/set/default.lean | 5e037486c92d535b67f907e53961562adc355eb4 | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 22 | lean | import .basic .finite
|
915da2e57532b12110db026c8bae7da1d8e5fd47 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/topology/algebra/infinite_sum.lean | a4d346170b9f7327f50f51663bec7b0d396a192c | [
"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 | 36,409 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.intervals
import topology.instances.real
import data.indicator_function
import data.equiv.encodable.lattice
import order.filter.at_top_bo... |
e4e718b498aac399a0b6ada0e20811ad4c6121f7 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/imp2.lean | 49a8c8362d386a890c2ccdc8142828f4f0b7c458 | [
"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 | 130 | lean | check (λ {A : Type} (a : A), a) (10:num)
set_option trace.app_builder true
check (λ {A} (a : A), a) 10
check (λ a, a) (10:num)
|
7513f04fb4ddafd472729dd3083bc7d597ea5926 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/lean/parser/default.lean | b996bd2566b2fc5e2dada8d14fdf8feda192f6fb | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 281 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import init.lean.parser.parser
import init.lean.parser.level
import init.lean.parser.term
|
7656ecedf4143441f11e81ca73309f1a171aefc0 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Elab/Level.lean | 611da2e1c87928b72dd75fdbe5e20f006b3eaa16 | [
"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,673 | 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
-/
prelude
import Init.Lean.Meta.LevelDefEq
import Init.Lean.Elab.Exception
import Init.Lean.Elab.Log
namespace Lean
namespace Elab
namespace Level
structure... |
993dfdc727e3607c2192458a172310a5d9b6f433 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/polynomial/content.lean | b024b59c3382a99c632331d6ef5f4cc452659c51 | [
"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 | 17,116 | 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 ... |
e226c8acd7bf9631cb94a2ccf890a5fae550b0e4 | 25adb3ce35902d6e9c57e494fe055c47c9881db4 | /src/classical_time.lean | 4824241c3c772457934c6f3362d2fcb469d43e2c | [] | no_license | rohanrajnair/phys | fefb5e430f8e4b61c2acbaecb9d1c6702495ef87 | 0172c81b24bc94e2df5e32904c9f6904d8f24da7 | refs/heads/master | 1,673,021,045,568 | 1,603,474,638,000 | 1,603,474,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 465 | lean | import .....math.new_affine.real_affine_space
import ..metrology.dimension
structure classicalTime : Type :=
mk :: (name : ℕ) -- name serves as unique ID for a given geometric space
-- provide standard world time object
def worldTime := classicalTime.mk 0
noncomputable def classicalTimeAlgebra : classicalTime → re... |
c7ccc310c5149d98383a966ff6582fb6d08ab511 | 4767244035cdd124e1ce3d0c81128f8929df6163 | /logic/basic.lean | ac6c8cbbedce9f5413292413d6024e1cf7a8e6d1 | [
"Apache-2.0"
] | permissive | 5HT/mathlib | b941fecacd31a9c5dd0abad58770084b8a1e56b1 | 40fa9ade2f5649569639608db5e621e5fad0cc02 | refs/heads/master | 1,586,978,681,358 | 1,546,681,764,000 | 1,546,681,764,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,383 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Theorems that require decidability hypotheses are in the namespace "decidable".
Classical versions are in the namespace "classical".
Note: in the pres... |
ddd9d5666efcc95b2ca593ccfc02729d01633989 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/tactic/lint/type_classes.lean | 92dac00ff84959ab2fc5381d2d04347d0b0d626f | [
"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 | 17,277 | 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, Robert Y. Lewis, Gabriel Ebner
-/
import tactic.lint.basic
/-!
# Linters about type classes
This file defines several linters checking the correct usage of type c... |
783bfe4cf541dc014c39e14541f8562cc228cf9a | bb31430994044506fa42fd667e2d556327e18dfe | /src/linear_algebra/affine_space/independent.lean | 1bd97d41439488c7062a576dfa1e6d7aeae53fc5 | [
"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 | 43,925 | 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.finset.sort
import data.fin.vec_notation
import data.sign
import linear_algebra.affine_space.combination
import linear_algebra.affine_space.affine_equiv
impor... |
f5ca8240403dc00faae40973bd9ea7b169a7b651 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/data/nat/basic.lean | a3a1278d34f148abd10242d897499e2ec4dc5bfc | [
"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 | 56,510 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import logic.basic algebra.ordered_ring data.option.basic algebra.order_functions
/-!
# Basic operations on the... |
5d7c376b8fc75abd5dc7bb4d865eb244a89441fb | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/number_theory/modular.lean | 0f32ee0bba55b987c301783769d1b6a5f8b4677c | [
"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 | 24,550 | lean | /-
Copyright (c) 2021 Alex Kontorovich and Heather Macbeth and Marc Masdeu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex Kontorovich, Heather Macbeth, Marc Masdeu
-/
import analysis.complex.upper_half_plane.basic
import linear_algebra.general_linear_group
impor... |
c4fd4ec0e93b85abaad7b32f77a12d32c450eced | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/valuation/canonical.lean | 68a8907cbc97f412e35f6a720a6925e518e51e43 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 32,925 | lean | import for_mathlib.quotient_group
import valuation.localization
/-!
# The canonical valuation
The purpose of this file is to define a “canonical” valuation equivalent to
a given valuation. The whole raison d'etre for this is that there are set-theoretic
issues with the equivalence “relation” on valuations, ... |
02e7271c2af3b0b56226d5c6a475494cf07016ef | 61ccc57f9d72048e493dd6969b56ebd7f0a8f9e8 | /src/algebra/group/hom.lean | 77e12f15cbdd11d829a2624fa988388473330324 | [
"Apache-2.0"
] | permissive | jtristan/mathlib | 375b3c8682975df28f79f53efcb7c88840118467 | 8fa8f175271320d675277a672f59ec53abd62f10 | refs/heads/master | 1,651,072,765,551 | 1,588,255,641,000 | 1,588,255,641,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,548 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group.basic
/-!
# monoid and group homomorphisms
This... |
dfa6af1c7ea773ab9d9c0d3ce3f1e30ca69f4941 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/logic/equiv/defs.lean | 490c633c499db2f26bdd74032c2386cfc1b389da | [
"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 | 35,488 | 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, Mario Carneiro
-/
import data.fun_like.equiv
import logic.unique
/-!
# Equivalence between types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to... |
a0481de1a258424512125aa50d6c93fe3f51056e | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Parser/Do.lean | d665ab1716788f1eba238abc657527a2d7cd5e0d | [
"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 | 7,287 | 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.Parser.Term
namespace Lean
namespace Parser
builtin_initialize registerBuiltinParserAttribute `builtinDoElemParser `doElem
builtin_initialize ... |
aa40a987bba046b480ea1636a037dc36c68ef859 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/set/function.lean | 98d57403328fa992ddc9ce13188443a4e1b9fc87 | [
"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 | 37,665 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Andrew Zipperer, Haitao Zhang, Minchao Wu, Yury Kudryashov
-/
import data.set.basic
import logic.function.conjugate
/-!
# Functions over sets
## Main definitions
### P... |
367ec53d122d268d02622dd67a708be8cd8ccf05 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed_space/quaternion_exponential.lean | a92e0d96e7dd70d55a33b3fdde477b34e6f22e78 | [
"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,520 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import analysis.quaternion
import analysis.normed_space.exponential
import analysis.special_functions.trigonometric.series
/-!
# Lemmas about `exp` on `quaternion`s
> THI... |
1e24e47ee0f7347e181d7c36ea683f3912b27d76 | 6f1049e897f569e5c47237de40321e62f0181948 | /src/exercises/07bis_abstract_negations.lean | afb2e2742a27843446c7c89219e82bd603f91a6d | [
"Apache-2.0"
] | permissive | anrddh/tutorials | f654a0807b9523608544836d9a81939f8e1dceb8 | 3ba43804e7b632201c494cdaa8da5406f1a255f9 | refs/heads/master | 1,655,542,921,827 | 1,588,846,595,000 | 1,588,846,595,000 | 262,330,134 | 0 | 0 | null | 1,588,944,346,000 | 1,588,944,345,000 | null | UTF-8 | Lean | false | false | 1,212 | lean | import data.real.basic
open_locale classical
/-
Theoretical negations.
This file is for people interested in logic who want to fully understand
negations.
Here we don't use contrapose or push_neg. The goal is to prove lemmas
that are used by those tactics. Of course we can use
exfalso, by_contradiction et by_cases.... |
c226c6707e80dc32a1588def1e32867a19c78018 | ff5230333a701471f46c57e8c115a073ebaaa448 | /tests/lean/inaccessible2.lean | 1dcb8c4decd266bd104b30188bf65d2555dae1ba | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 898 | lean | inductive imf {A B : Sort*} (f : A → B) : B → Sort*
| mk : ∀ (a : A), imf (f a)
definition inv_1 {A B : Sort*} (f : A → B) : ∀ (b : B), imf f b → A
| .(f .(a)) (imf.mk .(f) a) := a -- Error inaccessible annotation inside inaccessible annotation
definition inv_2 {A B : Sort*} (f : A → B) : ∀ (b : B), imf f b → A
| .... |
f3a06be277cc3079de7052afa2d7ffbafada09eb | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/constructions/equalizers.lean | 7cc0d326d6694a3bcf347f3626be0127888aec4c | [
"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,706 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.pullbacks
/-!
# Constructing eq... |
a45bde0d07502a6a9b66ac5db144b8d925f68edc | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /tests/lean/run/tactic21.lean | c4f94cd49e657c3333afd01e012296d55d919e95 | [
"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 | 468 | lean | import logic
open tactic
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; eassumption; eassumption
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 : p b c) : ∃ x, p a x ∧... |
6a911102a0bdb7f6dce44e4045d39f5b11a12f9f | bf532e3e865883a676110e756f800e0ddeb465be | /algebra/group.lean | 42b8dff7518445ad23d154375ae10063e0ce6001 | [
"Apache-2.0"
] | permissive | aqjune/mathlib | da42a97d9e6670d2efaa7d2aa53ed3585dafc289 | f7977ff5a6bcf7e5c54eec908364ceb40dafc795 | refs/heads/master | 1,631,213,225,595 | 1,521,089,840,000 | 1,521,089,840,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,484 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Various multiplicative and additive structures.
-/
import tactic.interactive
section pending_1857
/- Transport multiplicative to additive -/
section ... |
16c63d3d859f8a870ba259e24433fb993a577846 | 4fa161becb8ce7378a709f5992a594764699e268 | /archive/sensitivity.lean | 3e5a93e36d9555e8abbae05ca42610fd64b0d778 | [
"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 | 15,516 | lean | /-
Copyright (c) 2019 Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, and
Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, and Patrick Massot
-/
import tactic.f... |
bd4fc1808613c2a5eae2f208a6344c5f70d41927 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Init/Data/Array/Basic.lean | ce205184f0d9f6fc1f9a75298b5357d7ac126aa6 | [
"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 | 30,442 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
import Init.Data.Fin.Basic
import Init.Data.UInt
import Init.Data.Repr
import Init.Data.ToString
import Init.Control.Id
i... |
b22df718ee8b03ec165443787e8bee332db2b6f1 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/compiler/array_test2.lean | e5f767615eafcd505cb0c60c293b84c9313dbd4c | [
"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 | 444 | lean | def check (b : Bool) : IO Unit :=
unless b $ IO.println "failed"
def main : IO Unit :=
let a1 := [2, 3, 5].toArray;
let a2 := [4, 7, 9].toArray;
let a3 := [4, 7, 8].toArray;
do
check (Array.isEqv a1 a2 (fun v w => v % 2 == w % 2));
check (!Array.isEqv a1 a3 (fun v w => v % 2 == w % 2));
check (a1 ++ a2 == [2, 3, 5... |
67f7f45d2837a2467cdf820ab82b5a1f380c2f06 | 690889011852559ee5ac4dfea77092de8c832e7e | /src/data/rat/cast.lean | 1a85c6296667259d654cfa19379a13c168dbe75b | [
"Apache-2.0"
] | permissive | williamdemeo/mathlib | f6df180148f8acc91de9ba5e558976ab40a872c7 | 1fa03c29f9f273203bbffb79d10d31f696b3d317 | refs/heads/master | 1,584,785,260,929 | 1,572,195,914,000 | 1,572,195,913,000 | 138,435,193 | 0 | 0 | Apache-2.0 | 1,529,789,739,000 | 1,529,789,739,000 | null | UTF-8 | Lean | false | false | 11,729 | 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
/-!
# Casts for Rational Numbers
## Summary
We define the canonical injection from ℚ into an arbitrary division ring and prove... |
b44f84926d1f04a6ab17100de2d86426a8f5c720 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/lambda_simp.lean | 280639ecf2421c38f0f31b72d687e431796f9c1b | [
"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 | 162 | lean | #print [simp] default
constant addz (a : nat) : 0 + a = a
attribute [simp] addz
open tactic
def ex : (λ a b : nat, 0 + a) = (λ a b, a) :=
by simp
#print ex
|
384dca18efcea38d5262312998f10c8c3b7be6b0 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Monoid.lean | 9b44b32f26a06e06cbb82247607a43b12d7f06df | [] | 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 | 6,685 | 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 Monoid
structure Monoid (A : Type) : Type :=
(op : (A → (A → A)))
(e : A)
(lunit_e : (∀ {x : A} , (op e x) = x))
(runit_e : (∀ {x : A} , (op x e) ... |
88bb33c04951a9ed1ba6aa460ece052b0613fa20 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_1924.lean | e388584a231fc694da6284eb1fe723df321a3c28 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 320 | lean | variables {p q r : Prop}
namespace hidden
-- BEGIN
theorem or_assoc : (p ∨ q) ∨ r ↔ p ∨ (q ∨ r) :=
begin
split,
{ intro h,
cases h with h₁ h₂,
{ cases h₁ with m₁ m₂,
{ left, exact m₁, },
{ right, left, exact m₂, }, },
{ sorry, }, },
{ sorry, },
end
-- END
end hidden |
61acf29f7adcfffd7c845e898600e9dd931a77c7 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/utf8.lean | 89c5f39565e555b73b5f51758fe6c005d4a4c5c9 | [
"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 | 259 | lean | open list
vm_eval length "α₁"
vm_eval length "α₁ → β₁"
vm_eval length "∀ α : nat → nat, α 0 ≥ 0"
print "------------"
vm_eval utf8_length "α₁"
vm_eval utf8_length "α₁ → β₁"
vm_eval utf8_length "∀ α : nat → nat, α 0 ≥ 0"
|
bcaa60dd4067c40ee8f2b51d7a97aa166f67a8cf | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/uniform_space/uniform_convergence_topology.lean | 92fdd99b70693c1f7ca6366d2a378854a1ed4312 | [
"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 | 39,683 | lean | /-
Copyright (c) 2022 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import topology.uniform_space.uniform_convergence
import topology.uniform_space.pi
import topology.uniform_space.equiv
/-!
# Topology and uniform structure of un... |
76cc783e6e60b3d43aa617c2e35ae28b5d87a760 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/fun.lean | 45546a2bf9166c7cec53bac1a2b6e3bb4d4dbc2d | [
"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 | 320 | lean | open function bool
constant f : nat → bool
constant g : nat → nat
#check f ∘ g ∘ g
#check (id : nat → nat)
constant h : nat → bool → nat
#check swap h
#check swap h ff nat.zero
#check (swap h ff nat.zero : nat)
constant f1 : nat → nat → bool
constant f2 : bool → nat
#check (f1 on f2) ff tt
|
eacb8ad5a8b12258d6159783c00a24c4e9c3f114 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/measure/regular.lean | 26bb77f77822e40a098cc3c7ca00120f6af07ac8 | [
"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 | 33,773 | lean | /-
Copyright (c) 2021 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris Van Doorn, Yury Kudryashov
-/
import measure_theory.constructions.borel_space.basic
/-!
# Regular measures
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this... |
5c1c27eceee91f92cdb2b967e6c72d627aa2344a | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/mv_polynomial.lean | 77638e18dfe4093c12da6a9d393d8fd8690b5e8e | [
"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 | 43,702 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
Multivariate Polynomial
-/
import algebra.ring
import data.finsupp data.polynomial data.equiv.algebra
noncomputable theory
local attrib... |
2cfac3cd08cdacb5b326244458f4e074c593619c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/group/measurable_equiv.lean | baa7f9a11cbb4cf27d635c892f90d137365a33d4 | [
"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 | 8,017 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import measure_theory.group.arithmetic
/-!
# (Scalar) multiplication and (vector) addition as measurable equivalences
> THIS FILE IS SYNCHRONIZED WITH MATHL... |
b99e448abfdff7f1a10efc55dbb984fc069cb693 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/mv_polynomial/basic.lean | 3f251b061a786b6808ffecd756f2a9877960c19a | [
"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 | 37,702 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Johan Commelin, Mario Carneiro
-/
import data.polynomial.eval
/-!
# Multivariate polynomials
This file defines polynomial rings over a base ring (or even semiring),
... |
f9a9b1198c2fd8353309075ed0272d545e5cad0a | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/IR/InstructionRef.lean | 1e376c20806ed7e33cebe0196274b8adfad86c13 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 947 | lean | import Papyrus.Context
import Papyrus.IR.ValueRef
import Papyrus.IR.ValueKind
import Papyrus.IR.InstructionKind
namespace Papyrus
/--
A reference to an external LLVM
[Instruction](https://llvm.org/doxygen/classllvm_1_1Instruction.html).
-/
structure InstructionRef extends UserRef where
is_instruction : toValueR... |
ff3d0daafa9ccb5214f7cf4eee8931b191684007 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/binrel.lean | c2dda73c164f07499cc2c9f8fea660a4eff8f930 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 816 | lean | def ex1 (x y : Nat) (i j : Int) :=
binrel! Less x i
def ex2 (x y : Nat) (i j : Int) :=
binrel! Less i x
def ex3 (x y : Nat) (i j : Int) :=
binrel! Less (i + 1) x
def ex4 (x y : Nat) (i j : Int) :=
binrel! Less i (x + 1)
def ex5 (x y : Nat) (i j : Int) :=
binrel! Less i (x + y)
def ex6 (x y : Nat) (i j : ... |
c297fb8235338f9f640a0f0ce43c892fd8e0129b | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/combinatorics/simple_graph/basic.lean | 19c0c47af4853a82821079b9aaaf0ceedbfcc0c2 | [
"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 | 19,512 | lean | /-
Copyright (c) 2020 Aaron Anderson, Jalex Stark, Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson, Jalex Stark, Kyle Miller, Alena Gusakov
-/
import data.fintype.basic
import data.sym2
import data.set.finite
/-!
# Simple graphs
This module ... |
0eee2fb1153e51616867854bb7d448448c4cbc2d | 510e96af568b060ed5858226ad954c258549f143 | /data/rat.lean | 943daee89c7b3870b322d0dbce4d68aacac270bc | [] | no_license | Shamrock-Frost/library_dev | cb6d1739237d81e17720118f72ba0a6db8a5906b | 0245c71e4931d3aceeacf0aea776454f6ee03c9c | refs/heads/master | 1,609,481,034,595 | 1,500,165,215,000 | 1,500,165,347,000 | 97,350,162 | 0 | 0 | null | 1,500,164,969,000 | 1,500,164,969,000 | null | UTF-8 | Lean | false | false | 15,853 | 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
Introduces the rational numbers as discrete, linear ordered field.
-/
import standard
/- linorder -/
section linear_order_cases_on
universes u v
variables {α : Type ... |
2e3e930edc155223973dfa3c5e0cc7a5627e873f | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /src/Lean/Parser/Term.lean | 2bfddb34ba12121a90b7d096e409b73e2d25e389 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,987 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Parser.Attr
import Lean.Parser.Level
namespace Lean
namespace Parser
builtin_initialize
registerBuiltinParserAttribute `b... |
f7d4ba18ca93d52a58bfbe3365abe0caed9882f3 | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Parser/Basic.lean | 7e6bba75b2059dfc98107eb49f01879a6e568ad9 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 76,475 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Data.Trie
import Lean.Data.Position
import Lean.Syntax
import Lean.ToExpr
import Lean.Environment
import Lean.Attributes
impo... |
8e881b9f782828c893bcfa492e1055e758cdbf95 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/number_theory/pell.lean | efe6f1d0fa7265bd66a5911a17b31180105dd063 | [
"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 | 37,103 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.modeq
import data.zsqrtd.basic
import tactic.omega
namespace pell
open nat
section
parameters {a : ℕ} (a1 : 1 < a)
include a1
private def d :... |
4b6a93d8b774ad5f213d054e56e44d9494a6c26c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/strict_convex_space.lean | 189e75c6b3c988dd9ffe054d351d4f3d87729172 | [
"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 | 14,294 | 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, Yury Kudryashov
-/
import analysis.convex.normed
import analysis.convex.strict
import analysis.normed.order.basic
import analysis.normed_space.add_torsor
import analysis.no... |
8e02533229d62729e916bf5d2dadf87eff97a17c | 4fa161becb8ce7378a709f5992a594764699e268 | /src/linear_algebra/finite_dimensional.lean | 813563bbf55757a4dfebca17c4edd903b2bce167 | [
"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 | 25,690 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import linear_algebra.dimension
import ring_theory.principal_ideal_domain
/-!
# Finite dimensional vector spaces
Definition and basic properties of finite dimensional v... |
abe15ef5e88b306edc3af13e132f0530999b2145 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/group_theory/coset.lean | ec164bb12d610b1db5c6183e6e53f5947b0858c9 | [
"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 | 14,991 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup
/-!
# Cosets
This file develops the basic theory of left and right cosets.
## Main definitions
* `left_coset a s`:... |
5dd9f92dc01edbe1456295c7255a0a15c97b70fd | 88892181780ff536a81e794003fe058062f06758 | /src/100_theorems/t071.lean | 05ef325f77027d4f87a658c68d839357efe562bc | [] | no_license | AtnNn/lean-sandbox | fe2c44280444e8bb8146ab8ac391c82b480c0a2e | 8c68afbdc09213173aef1be195da7a9a86060a97 | refs/heads/master | 1,623,004,395,876 | 1,579,969,507,000 | 1,579,969,507,000 | 146,666,368 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 238 | lean | import group_theory.order_of_element
-- Order of a Subgroup
theorem t071 {α : Type*} [group α] [fintype α] [decidable_eq α] (s : set α) [is_subgroup s] [fintype s] :
fintype.card s ∣ fintype.card α
:= card_subgroup_dvd_card s
|
3e9de6ab0842612bd332e2e4a5eb0efa81ee7187 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/atomic2.lean | dd0a96c4b0a67e7d30a58068c1547fa64f949b96 | [
"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 | 85 | lean | notation `foo` := Type.{1}
constant f : Type* → Type*
#check foo → f foo → foo
|
fe405c4c2f88bb3dd8a42da17263f7d56673538b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/linear_algebra/special_linear_group.lean | b7680634376169645772f911dc281f6dd076f1fa | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,732 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
The Special Linear group $SL(n, R)$
-/
import linear_algebra.matrix.nonsingular_inverse
import linear_algebra.matrix.to_lin
/-!
# The Special Linear group $SL(n, R)$
This f... |
15c45333c967b80e44cd3777f99c78ca240b3001 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/W/basic.lean | 0497c344008020ee71a4a964e3c66e3b70b38fb5 | [
"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 | 6,808 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
-/
import data.equiv.list
/-!
# W types
Given `α : Type` and `β : α → Type`, the W type determined by this data, `W_type β`, is the
inductively defined type of trees whe... |
b9d21d4d02d4e1fbea88a1aa2fc9e7051fc4a3d5 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /tests/lean/run/catchThe.lean | 0c90f08c61f6ed81bc68e02d432d6d2c55081eb5 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 818 | lean | import Lean.Meta
open Lean
open Lean.Meta
universes u v w
abbrev M := ExceptT String $ MetaM
def testM {α} [BEq α] [ToString α] (x : M α) (expected : α) : MetaM Unit := do
let r ← x;
match r with
| Except.ok a => unless a == expected do throwError m!"unexpected result {a}"
| Except.error e => throwError m!"FAIL... |
d677a0f8b3909c7d601207b7f7b551d9409ccde3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/control/traversable/instances.lean | 18bd514d9a37c0fa9f7ab1c1b6adbb315d4c4e0c | [
"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,580 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.applicative
import data.list.forall2
import data.set.functor
/-!
# Traversable instances
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this f... |
6dec562a00b2ab9bf34ec8da454894deafebb524 | 37583bc2df4ea4f4e29b43ee1302f004c24cfa59 | /tut2.lean | 67c277d946cf7b226cae7de420d5d8ddd924910d | [
"MIT"
] | permissive | Vtec234/tpil-solutions | 9cd8576953eb7ea34e5959878bf00f73b035ba4e | 70c1b5c5e33a9c26296edb17cf828327d7f69842 | refs/heads/master | 1,585,389,330,863 | 1,540,413,754,000 | 1,540,413,754,000 | 148,069,811 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,621 | lean | section ex1
-- merged do_twice and Do_Twice into one function using dependent type
def do_twice: Π {α: Type}, ((α → α) → α → α) := λ α f x, f (f x)
-- this is the same, just different notation
def do_twice' {α: Type} (f: α → α): α → α := λ x, f (f x)
def double: ℕ → ℕ := λ x, x+x
#reduce do_twice do_twice... |
fb7e51c18f54c6ba734611875cdd921c0b2b60c5 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/order/lattice.lean | 58b8376125ac6a71d1a1bca029a7cb64e5c82927 | [
"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 | 18,061 | 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
Defines the inf/sup (semi)-lattice with optionally top/bot type class hierarchy.
-/
import order.rel_classes
set_option old_structure_cmd true
universes u v w
variab... |
f1459d6576515e475f256bfcd9882386f9b7e223 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/algebra/binary.lean | 078e25cb0a234327c1d14628dfb413a6f4c80537 | [
"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 | 3,139 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.binary
Authors: Leonardo de Moura, Jeremy Avigad
General properties of binary operations.
-/
import algebra.function
open eq.ops function
namespace binary
section
... |
a110994b3daac1408fb619bdc532749b968c001f | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/basics/unnamed_1327.lean | 76f322f327bb21d3e0e62a5085fbf8b3d94d9133 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 182 | lean | import import analysis.special_functions.exp_log
import tactic
open real
variables a b c : ℝ
-- BEGIN
example (h : a ≤ b) : c - exp b ≤ c - exp a :=
begin
sorry
end
-- END |
2e1a25812b9dd0f834a18b0f24491d789a26a979 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/set_theory/fincard.lean | 0af54dd8ea871596429b06323241005932d866ac | [
"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,321 | lean | /-
Copyright (c) 2021 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import set_theory.cardinal
/-!
# Finite Cardinality Functions
## Main Definitions
* `nat.card α` is the cardinality of `α` as a natural number.
If `α` is infinit... |
eb90325970a51922f2ed49b4ec6c9d00dc741385 | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/src/group_objet/testt.lean | 5a6f84cc3910308e9069022e4c3a720adcec3317 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 240 | lean | variable (X : Type)
def f : ℕ → ℕ := λ x, x + 1
include X
def g : ℕ → ℕ := λ x, x + 1
omit X
def h : ℕ → ℕ := λ x, x + 1
#check f -- f : ℕ → ℕ
#check g -- g : Type → ℕ → ℕ
#check h -- h : ℕ → ℕ |
5630f5c555fe241460c05e220e2f142c73df46ee | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/topology/bases.lean | 5235b37b64e2f9e29bf02819749e91bf481d66f0 | [
"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 | 18,416 | 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
Bases of topologies. Countability axioms.
-/
import topology.constructions data.set.countable
open set filter classical
open_locale topological_space
... |
ed90e6a2f9a847a399e21d7d3bc0cd42e9910583 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/lie/classical.lean | b6b6e38cfb15d363d29a223d5dfdd1d0fcb4e81a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 13,415 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import algebra.invertible
import data.matrix.basis
import data.matrix.dmatrix
import algebra.lie.abelian
import linear_algebra.matrix.trace
import algebra.lie.skew_adjoint
... |
d9b0eb972d7391cb699fd2f9aa24838fb1f8c1f2 | 30b012bb72d640ec30c8fdd4c45fdfa67beb012c | /tactic/default.lean | 33eb816f2d47ca7340ce1516ebd4a25dae03167a | [
"Apache-2.0"
] | permissive | kckennylau/mathlib | 21fb810b701b10d6606d9002a4004f7672262e83 | 47b3477e20ffb5a06588dd3abb01fe0fe3205646 | refs/heads/master | 1,634,976,409,281 | 1,542,042,832,000 | 1,542,319,733,000 | 109,560,458 | 0 | 0 | Apache-2.0 | 1,542,369,208,000 | 1,509,867,494,000 | Lean | UTF-8 | Lean | false | false | 108 | lean | import
tactic.interactive
tactic.alias
tactic.finish
tactic.mk_iff_of_inductive_prop
tactic.wlog
|
c1f89801e447ef0247d9457d2ea237ddad08d221 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/calculus/formal_multilinear_series.lean | b0ec2beab6805c24d200bc2d826f320d2b701428 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 4,978 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.normed_space.multilinear
/-!
# Formal multilinear series
In this file we define `formal_multilinear_series 𝕜 E F` to be a family of `n`-multi... |
4a46a4403ad3f7a9e35ef34557728b5fd26c7689 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/revert_frozen_dep.lean | 28fe85e04c3f22df6914bb1f87380859ecccf56a | [
"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 | 145 | lean | lemma ex {α : id Type} [has_add α] : true :=
begin
dsimp at α -- should fail because the frozen instance `[has_add α]` depends on `α`
end
|
fc10d4390c6c78fddaf3fbcb220d88d6576fdf6e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/sites/grothendieck_auto.lean | 903b3a1addaca88a930acaf0fa46fd48368e0985 | [] | 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 | 13,260 | lean | /-
Copyright (c) 2020 Bhavik Mehta, E. W. Ayers. 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.sites.sieves
import Mathlib.category_theory.limits.sh... |
bc670f9be478cbf0de69497c85e27aa7925cde2c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/abelian/diagram_lemmas/four_auto.lean | a3bbe6eafa56e786f20ead35581ec2510482cb8a | [] | 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,790 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.abelian.pseudoelements
import Mathlib.PostPort
universes v u
namespace Mat... |
8fefc09566cf4fa445ecd8d2b270b5116d4ba2af | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/linear_algebra/basic.lean | 3916681bb45c5543db8d7e6ec4ec4e1aa957f311 | [
"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 | 96,682 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov
-/
import algebra.big_operators.pi
import algebra.module.pi
import algebra.module.prod
import algebra.module.submodule
im... |
cf92efe8ea1624ae45b7d8c08eec2c9f0422bb3b | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/sheaves/sheaf_condition/pairwise_intersections.lean | a4c461c710a2fc8c9eb52a2ed1a64584ce86d2cd | [
"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 | 11,915 | lean | import topology.sheaves.sheaf
import category_theory.limits.preserves.basic
import category_theory.category.pairwise
/-!
# Equivalent formulations of the sheaf condition
We give an equivalent formulation of the sheaf condition.
Given any indexed type `ι`, we define `overlap ι`,
a category with objects corresponding ... |
d0ff8501f89faf7d58e2ef0db0ecc59bd722eee7 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /test/omega.lean | d320448c0dc48d508fc68b46430e6a9cbf3dc80b | [
"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 | 2,819 | lean | /-
Test cases for omega. Most of the examples are from John Harrison's
Handbook of Practical Logic and Automated Reasoning.
-/
import tactic.omega
example (n : ℤ) : n - 1 ≠ n := by omega
example (x : int) : (x = 5 ∨ x = 7) → 2 < x := by omega
example (x : int) : x ≤ -x → x ≤ 0 := by omega
example : ∀ x y : int, (x ≤ ... |
cb6e9f70bad25bf1a6ad6bc03f9497e33bdefbce | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/run/tactic_op_overload_bug.lean | 2a2e1530721460283aade9566cc16107cc76506f | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 526 | lean | import data.num data.bool
open bool well_founded
namespace pos_num
definition lt_pred (a b : pos_num) : Prop := lt a b = tt
definition not_lt_one1 (a : pos_num) : ¬ lt_pred a one :=
begin
esimp {lt_pred},
intro H,
apply (absurd_of_eq_ff_of_eq_tt (lt_one_right_eq_ff a) H)
end
open tactic well_founded
print r... |
9a6e13ac5e5cfcfc990833b516f5ed7b2f17eb81 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/algebra/commute.lean | 569d98ff90c375c8bcab06e3f8f2f2aee36d92fd | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 13,175 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland, Yury Kudryashov
-/
import algebra.semiconj group_theory.submonoid group_theory.subgroup ring_theory.subring
/-!
# Commuting pairs of elements in monoids
## Main de... |
5e85b56db360ebd94e8895196c6980369348f5da | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/linear_algebra/tensor_algebra.lean | e23e5b44b6897c9585c57ae2bb0702b6ef79c395 | [
"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 | 6,040 | lean | /-
Copyright (c) 2020 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Adam Topaz.
-/
import algebra.free_algebra
import algebra.ring_quot
import algebra.triv_sq_zero_ext
/-!
# Tensor Algebras
Given a commutative semiring `R`, and an `R`-module `M`, we const... |
a8d68b69047fed025587fb0b17330423b9c1e89b | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/run/macroParams.lean | a93296807bfd605d3d5c31d4cfdb98af80dadcca | [
"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 | 147 | lean | macro x:ident noWs "(" ys:term,* ")" : term => `($x $ys*)
#check id(1)
macro "foo" &"only" : tactic => `(trivial)
example : True := by foo only
|
84f18b43b8ee765bd1912d12ccefd3ff851425b2 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/ideal_auto.lean | 9540c2688cc6cc73af4bd3653f51f90b4429a28d | [] | 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 | 7,827 | lean | /-
Copyright (c) 2020 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.basic
import Mathlib.data.equiv.encodable.basic
import Mathlib.PostPort
universes u_2 l u_1 ... |
6acab4e9919da8a72f97ce99af40124e0a8e7071 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/sites/sheafification.lean | 3fa8f802d41f3f3c2dd73203d5afca1c2f043dc2 | [
"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 | 24,082 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.sites.plus
import category_theory.limits.concrete_category
/-!
# Sheafification
We construct the sheafification of a presheaf over a site `C` with v... |
7a9405c7040d4c9553fbbabdbdeb57de542864cb | d31b9f832ff922a603f76cf32e0f3aa822640508 | /src/hott/init/function.lean | 74b0184c33fe477a207f92a1535baa13cb13bcd3 | [
"Apache-2.0"
] | permissive | javra/hott3 | 6e7a9e72a991a2fae32e5764982e521dca617b16 | cd51f2ab2aa48c1246a188f9b525b30f76c3d651 | refs/heads/master | 1,585,819,679,148 | 1,531,232,382,000 | 1,536,682,965,000 | 154,294,022 | 0 | 0 | Apache-2.0 | 1,540,284,376,000 | 1,540,284,375,000 | null | UTF-8 | Lean | false | false | 751 | 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
General operations on functions.
-/
import .meta.support
universes u v w
hott_theory
namespace function
@[hott] def compose_right {A B} (f : B → B → B) (g :... |
a904366e37eb378edfff47413e25f1ac8405bc79 | aa44b2a5876642f9460205af61a5449b74465655 | /src/factor_matrix.lean | 93016a8c74093552973c31f0bd80bd6bde30343a | [] | no_license | robertylewis/mathematica_examples | d129d67de147dc2792dcf0b6b70fac9b2eaf8274 | e317381c49db032accef2a92e7650d029952ad76 | refs/heads/master | 1,632,630,516,240 | 1,631,905,726,000 | 1,631,905,726,000 | 80,952,455 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,414 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import mathematica
import data.list.basic
open expr tactic
/-!
In this demo we use a brief computable representation of matrices
to verify instances of LU decompos... |
a88cc7f4bf46729d6082f15461a4c33e346cf0e7 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/linterMissingDocs.lean | 42b1f2720c64847f4ed4fe7cf12bc5ba0ec328a9 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 2,221 | lean | import Lean
set_option linter.all true
/-- A doc string -/
def hasDoc (x : Nat) := x
def noDoc (x : Nat) := x
private def auxDef (x : Nat) := x
namespace Foo
protected def noDoc2 (x : Nat) := x
end Foo
open Foo in
def openIn (x : Nat) := x
open Foo in
/-- A doc string -/
def openIn2 (x : Nat) := x
set_option pp... |
44c2a1d33f5de9d7edb9403613840eccbb09ca16 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/analysis/mean_inequalities.lean | 0bd41725f00d44207a5f469077ad1efc105d4f38 | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 35,312 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Sébastien Gouëzel, Rémy Degenne
-/
import analysis.convex.specific_functions
import analysis.special_functions.pow
import data.real.conjugate_exponents
import tactic.... |
4f5184b0f76ac9d0cc7962ebb8df530ff19be40d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/record6.lean | 902cbab9853d2c1f7705b66cdf717ccca9ebe375 | [
"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 | 308 | lean | import logic data.unit
structure point (A : Type) (B : Type) :=
mk :: (x : A) (y : B)
structure point2 (A : Type) (B : Type) extends point A B :=
make
structure point3 extends point num num, private point2 num num renaming x→y y→z
check point3.mk
theorem tst : point3.mk 1 2 3 = point.mk 1 2 :=
rfl
|
aa00278891921ea0438b4c3b6b9bd80eccba1823 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/parity.lean | d51bf886d687d5b6dc219c45577f11e113a0eedd | [
"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,439 | lean | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import algebra.group_power.lemmas
/-! # Squares, even and odd elements
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.