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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ce4faf8015b4811c29f9ea263a76a8d4ad2cd1f2 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/coe.lean | 1a635eae26dc0c078327205cf5a4cd8e1ce59fe3 | [
"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 | 7,601 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.list.basic init.data.subtype.basic init.data.prod
/-! # Coercions and lifts
The elaborator tries to insert coercions automatica... |
11622e7c0ef9bba9d4aa4fd952a97d8a00375bfc | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/ring_theory/polynomial/bernstein.lean | bbf4b6078196ecde7854f7154e217d247a9ac2f9 | [
"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 | 16,950 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.polynomial.derivative
import data.nat.choose.sum
import ring_theory.polynomial.pochhammer
import data.polynomial.algebra_map
import linear_algebra.linear_... |
caa6172b56777fca4c262a5687a9ec7c64b52bf1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/2040.lean | 4fff37f95fefdd217105c58afd8b4d635c76cdc0 | [
"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,022 | lean | example (n : Nat) (a : Int) : a = 22 :=
calc
a = 2 ^ n := sorry -- error
_ = (22 : Int) := sorry
example (n : Nat) (a : Int) : a = 22 :=
calc
a = (37 : Int) := sorry
_ = 2 ^ n := sorry -- should be same error as above
_ = (22 : Int) := sorry
example (n : Nat) (a : Int) : a = (2 : Int) ^ n :=
... |
0b53082f0b54bec7ec686bd9ba1b6190840471f0 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/rewrite.lean | 7edc31e8218d7817381cee0520b1276420c6be6b | [
"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,642 | lean | /-!
# Tests exercising basic behaviour of `rw`.
See also `tests/lean/run/rewrite.lean`.
-/
axiom appendNil {α} (as : List α) : as ++ [] = as
axiom appendAssoc {α} (as bs cs : List α) : (as ++ bs) ++ cs = as ++ (bs ++ cs)
axiom reverseEq {α} (as : List α) : as.reverse.reverse = as
theorem ex1 {α} (as bs : List α) : a... |
a204dfb282932dc6bdd493a5660465cdcd297d2d | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/bounded_continuous_function.lean | 38d3608f42352846b5d01d7d4d6c7604108461a4 | [
"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 | 23,675 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro
Type of bounded continuous functions taking values in a metric space, with
the uniform distance.
-/
import analysis.normed_space.basic topology.... |
1220960714837c18fbac411f6a545fbb3ac7fd76 | e898bfefd5cb60a60220830c5eba68cab8d02c79 | /uexp/src/uexp/rules/addRedundantSemijoinRule.lean | 0b04e25238c5f41272e3e15b0550e54fe40bca39 | [
"BSD-2-Clause"
] | permissive | kkpapa/Cosette | 9ed09e2dc4c1ecdef815c30b5501f64a7383a2ce | fda8fdbbf0de6c1be9b4104b87bbb06cede46329 | refs/heads/master | 1,584,573,128,049 | 1,526,370,422,000 | 1,526,370,422,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,634 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..TDP ..canonize
import ..ucongr
import ..cosette_tactics
set_option profiler true
variable i : const datatypes.int
open SQL
open Pred
open Expr
open Proj
theorem rule :
forall (Γ scm_dept scm_emp : Schema)
(rel_dept : ... |
83d4ca85a43bd8a9eb34dea8bd30268c9c88c5cb | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/closure1.lean | b130193b40dd1f5938d114825a387b482dd1d08c | [
"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 | 1,668 | lean | import Init.Lean
open Lean
open Lean.Meta
universes u
inductive Vec (α : Type u) : Nat → Type u
| nil : Vec 0
| cons {n} : α → Vec n → Vec (n+1)
set_option trace.Meta.debug true
def mkArrow (d b : Expr) : Expr := mkForall `_ BinderInfo.default d b
def printDef (declName : Name) : MetaM Unit := do
cinfo ← getC... |
462ba9fc602f2fbeb54118287f8a25962aead3b2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/order_synonym.lean | 19fa07d9095774b6894413e9e676b9b547a389b3 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 8,491 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Yaël Dillies
-/
import algebra.group.defs
import order.synonym
/-!
# Group structure on the order type synonyms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https:... |
81e63655f8a6187f2d4bd09355510c93239c646a | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/algebra/monoid_algebra/basic.lean | fcdbcbdc9a9dc7774d53c68c3a2543044f1d211a | [
"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 | 57,099 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Yury G. Kudryashov, Scott Morrison
-/
import algebra.big_operators.finsupp
import linear_algebra.finsupp
import algebra.non_unital_alg_hom
/-!
# Monoid algebras
When ... |
a93b00644fa5213c988fa73e349f43bc2209d324 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/category_theory/eq_to_hom.lean | d1602d4417b61350eeceb920a43c08dbc883c934 | [
"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 | 2,671 | lean | -- Copyright (c) 2018 Reid Barton. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Reid Barton, Scott Morrison
import category_theory.isomorphism
import category_theory.functor_category
universes v v' u u' -- declare the `v`'s first; see `category_theory.categor... |
c60405bcb99434e4af27a61074f2dd6709f20a8b | 4727251e0cd73359b15b664c3170e5d754078599 | /test/finish4.lean | 3bc84021728a6121b4a880e49e45ec10896c5237 | [
"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 | 1,565 | lean | /-
Copyright (c) 2019 Jesse Michael Han. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author(s): Jesse Michael Han
Tests for `finish using [...]`
-/
import tactic.finish
import algebra.order.ring
section list_rev
open list
variable {α : Type*}
def append1 (a : α) : list α... |
3b2d849dff05c1b09dd216c3a9491e8e7c9dcbe3 | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /analysis/topology/topological_structures.lean | 2bea02282a7bdc3bc5c2d36b9418fabc492a64a7 | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47,406 | 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
... |
1c5d655991703795245e0f228f5055c391f09e03 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/normed_space/pi_Lp.lean | 10df17630300eec04c829d159614491d33f969ff | [
"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 | 18,995 | 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.mean_inequalities
/-!
# `L^p` distance on finite products of metric spaces
Given finitely many metric spaces, one can put the max distance on t... |
e5ea2aea083b9b3f17941429905a894a5791c948 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/subst_bug.lean | 548dc24842cdf7708c7a391bfa253c8ec41d7e4f | [
"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 | 109 | lean | open tactic
example (b1 b2 : bool) (h : b1 = ff) : b1 && b2 = ff :=
by do h ← get_local `h,
subst h
|
eb78211646c80fdc129afd5d6da5250cdb23f189 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/limits/shapes/products.lean | aee44cc8c7f631214ed58d60e24e934a81991061 | [
"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,124 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.limits
import category_theory.discrete_category
universes v u
open category_theory
namespace category_theory.limits
variables {β : T... |
7e8594fdcffc7e9dd77f9a8d54be537fbef3bbfc | 41e069072396dcd54bd9fdadb27cfd35fd07016a | /src/K/semantics.lean | 055dc46d577c4ddd35e98187c3dd662bcc1c1821 | [
"MIT"
] | permissive | semorrison/ModalTab | 438ad601bd2631ab9cfe1e61f0d1337a36e2367e | cc94099194a2b69f84eb7a770b7aac711825179f | refs/heads/master | 1,585,939,884,891 | 1,540,961,947,000 | 1,540,961,947,000 | 155,500,181 | 0 | 0 | MIT | 1,540,961,175,000 | 1,540,961,175,000 | null | UTF-8 | Lean | false | false | 10,101 | lean | import .ops
open subtype nnf
class val_constructible (Γ : list nnf) extends saturated Γ:=
(no_contra : ∀ {n}, var n ∈ Γ → neg n ∉ Γ)
(v : list ℕ)
(hv : ∀ n, var n ∈ Γ ↔ n ∈ v)
class modal_applicable (Γ : list nnf) extends val_constructible Γ :=
(φ : nnf)
(ex : dia φ ∈ Γ)
class model_constructible (Γ : list nnf) exte... |
839833dd6d281606c4eeed15915cb22185ccfd06 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/dlist/instances.lean | ff04342323705e53bf1062464be7528106e7b2e9 | [
"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 | 741 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
Traversable instance for dlists.
-/
import data.dlist category.traversable.equiv category.traversable.instances
namespace dlist
variables (α : Type*)
open function equiv
... |
91173a4faa096c59f5f730638942276ebcdc3e81 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/let1.lean | a7ba9d4f3ee70657d753f7a64f4dba1f36c623ba | [
"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 | 174 | lean | import logic
check
let f x y := x ∧ y,
g x := f x x,
a := g true
in λ (x : a),
let h x y := f x (g y),
b := h
in b
|
3e41437deed97787e50d8c08c406138e7b18e81d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/adjunction/basic.lean | 9000cc8e1b0b5723baeaade7304e3cd2771eac65 | [
"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 | 19,755 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import category_theory.equivalence
/-!
# Adjunctions between functors
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file ... |
2f4d512fa5231a63772706b970f8fbe866c5a2ab | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/analysis/analytic/composition.lean | 90a8b70d83ebf61a806522a76fe6064ce988fa93 | [
"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 | 56,718 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johan Commelin
-/
import analysis.analytic.basic
import combinatorics.composition
/-!
# Composition of analytic functions
in this file we prove that the composi... |
a33dd561ac46943298521634b3c22adbbc17e4ad | 367134ba5a65885e863bdc4507601606690974c1 | /src/group_theory/free_group.lean | 96d27e122acff77b4a399b2a4ebab1e83003d7a0 | [
"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 | 32,583 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.fintype.basic
import group_theory.subgroup
/-!
# Free groups
This file defines free groups over a type. Furthermore, it is shown that the free group construction
... |
dc991722e41729e40845d28ccadb98d858af5f39 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/tuple.lean | 8b4feae40335fd287396f2e0941bb00790474c7d | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,012 | 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
Tuples are lists of a fixed size.
It is implemented as a subtype.
-/
import logic data.list data.fin
open nat list subtype function algebra
definition tuple [... |
ce42fb614dcc664b2e012d55ac8f13774b377823 | 2a70b774d16dbdf5a533432ee0ebab6838df0948 | /_target/deps/mathlib/src/deprecated/group.lean | e4f657e9bb50e51af34c8888673ecbd5af74911d | [
"Apache-2.0"
] | permissive | hjvromen/lewis | 40b035973df7c77ebf927afab7878c76d05ff758 | 105b675f73630f028ad5d890897a51b3c1146fb0 | refs/heads/master | 1,677,944,636,343 | 1,676,555,301,000 | 1,676,555,301,000 | 327,553,599 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,562 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import algebra.group.type_tags
import algebra.group.units_hom
import algebra.ring.basic
import data.equiv.mul_add
/-!
# Unbundled monoid and group homomorphisms (de... |
36557595b2d7f51ea334083afe438e8d0409738c | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Data/Repr.lean | cd068e4f21f96d90943cd33048dddf1bf0424d97 | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,147 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.Data.String.Basic
import Init.Data.UInt
import Init.Data.Nat.Div
open Sum Subtype Nat
universes u v
class HasRepr (α : Type u) :=
(repr... |
83993936880055f2e5680e4a2fa2e9f7c65f2b6e | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/list/range.lean | db58125628a7f6b723f2cba5a42cb1fc27af2d29 | [
"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,544 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kenny Lau, Scott Morrison
-/
import data.list.chain
import data.list.nodup
import data.list.of_fn
import data.list.zip
/-!
# Ranges of naturals as lists
This file sho... |
4abab68890b1d2fae3ba4f7c8e853830b24a7e66 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/unify_equations.lean | 9ac4ad8829a0f637fa0c31acd866f0b5c68a0a21 | [
"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,559 | 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.core
/-!
# The `unify_equations` tactic
This module defines `unify_equations`, a first-order unification tactic that
unifies one or more equations in ... |
61d919031a80e1257a9e6940a88b6ff3f4242ab0 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/sites/canonical.lean | 3d6a3a311a74503a0963deeed12e986105a5d078 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 9,647 | 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.sites.sheaf_of_types
/-!
# The canonical topology on a category
We define the finest (largest) Grothendieck topology for which a given presheaf... |
1c2e6301b3a0932a267f24a9d6b12ebe0afc644e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/even_odd.lean | fb70ceaa131c39a99641abe1d7d7997803430eb6 | [
"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 | 385 | lean | mutual def even, odd
with even : nat → bool
| 0 := tt
| (a+1) := odd a
with odd : nat → bool
| 0 := ff
| (a+1) := even a
example (a : nat) : even (a + 1) = odd a :=
by simp [even]
example (a : nat) : odd (a + 1) = even a :=
by simp [odd]
lemma even_eq_not_odd : ∀ a, even a = bnot (odd a) :=
begin
intro a, ... |
cbd47d4a69dad0ea9440380b5447c845e7303e0e | 7541ac8517945d0f903ff5397e13e2ccd7c10573 | /src/category_theory/coyoneda.lean | 7a426fc60495988d4267e1e748528e4a7c91ec3a | [] | no_license | ramonfmir/lean-category-theory | 29b6bad9f62c2cdf7517a3135e5a12b340b4ed90 | be516bcbc2dc21b99df2bcb8dde0d1e8de79c9ad | refs/heads/master | 1,586,110,684,637 | 1,541,927,184,000 | 1,541,927,184,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 744 | lean | import category_theory.yoneda
import category_theory.tactics.obviously
universes u₁ v₁
open category_theory
variables (C : Type u₁) [𝒞 : category.{u₁ v₁} C]
include 𝒞
def coyoneda : (Cᵒᵖ) ⥤ (C ⥤ (Type v₁)) :=
{ obj := λ X : C,
{ obj := λ Y, X ⟶ Y,
map := λ Y Y' f g, g ≫ f },
map := λ X X' f, { app := λ... |
2fa63bcd523c2fc271a80b2d0f0bfe6272f06428 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/tst17.lean | 6c9a2a6afcd4941789bb3e9e2dad1dfce3785bd4 | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 245 | lean | variable f : Type -> Bool
variable g : Type -> Type -> Bool
print forall (a b : Type), exists (c : Type), (g a b) = (f c)
check forall (a b : Type), exists (c : Type), (g a b) = (f c)
eval forall (a b : Type), exists (c : Type), (g a b) = (f c)
|
c08656c432d6e7fbeb8ce0c8b0e93f4d0d61ce20 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/set/intervals/surj_on.lean | cf654d516d7c412341bce280dff1bbac1186a8e4 | [
"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,985 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import data.set.intervals.basic
import data.set.function
/-!
# Monotone surjective functions are surjective on intervals
A monotone surjective function sends any ... |
f95fb68702fa8e0de3e7760ca1561a5441aa3021 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/eq18.lean | cbc1471562370f5daa12f62fce8bb2724e7a8f0c | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 331 | lean | import data.vector
open nat vector
definition last {A : Type} : Π {n}, vector A (succ n) → A,
last (a :: nil) := a,
last (a :: v) := last v
theorem last_cons_nil {A : Type} {n : nat} (a : A) : last (a :: nil) = a :=
rfl
theorem last_cons {A : Type} {n : nat} (a : A) (v : vector A (succ n)) : last (a :: v) = last v... |
7d8dbcf2f384eee7e0c70f236e369e17488608e1 | ae9f8bf05de0928a4374adc7d6b36af3411d3400 | /src/formal_ml/core.lean | 8ba361d51e66a0f045dc2703094a31510eee6e70 | [
"Apache-2.0"
] | permissive | NeoTim/formal-ml | bc42cf6beba9cd2ed56c1cd054ab4eb5402ed445 | c9cbad2837104160a9832a29245471468748bb8d | refs/heads/master | 1,671,549,160,900 | 1,601,362,989,000 | 1,601,362,989,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,847 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
060b81e6c31368a8032c60b77f5ffa1689c5d486 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/fintype/lattice.lean | da74d1a887fca1415a79dc128f078ca413453afd | [
"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,868 | 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.fintype.card
import data.finset.lattice
/-!
# Lemmas relating fintypes and order/lattice structure.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any cha... |
6208a67556397642c53e35b84d9fbf570209123d | f313d4982feee650661f61ed73f0cb6635326350 | /Mathlib.lean | 90583d343dac3a0fd1383998c99f49db65527660 | [
"Apache-2.0"
] | permissive | shingtaklam1324/mathlib4 | 38c6e172eec1385944db5a70a3b5545c924980ee | 50610c343b7065e8eec056d641f859ceed608e69 | refs/heads/master | 1,683,032,333,313 | 1,621,942,699,000 | 1,621,942,699,000 | 371,130,608 | 0 | 0 | Apache-2.0 | 1,622,053,166,000 | 1,622,053,166,000 | null | UTF-8 | Lean | false | false | 95 | lean | import Mathlib.Logic.Basic
import Mathlib.Tactic.Basic
@[simp] lemma foo : True = True := rfl
|
7420252b27a41ecdc813f554857cc9c7230c53a2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/qpf/multivariate/constructions/sigma.lean | 462edb0482310c3c087f2ee692a48079ba4e5619 | [
"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,120 | 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 data.pfunctor.multivariate.basic
import data.qpf.multivariate.basic
/-!
# Dependent product and sum of QPFs are QPFs
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> ... |
4576d3b515162be70480836c97d18ae9bdd74a55 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/vector/basic.lean | af8294a8e5454d7729fd579041d21509a1ed2461 | [
"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 | 16,310 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.vector
import data.list.nodup
import data.list.of_fn
import control.applicative
/-!
# Additional theorems and definitions about the `vector` type
This fi... |
86099b6dfa55d85efa285ff50a7025f68f5f252a | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/field_theory/minimal_polynomial.lean | 9d91a5303942f59057a4293996030a430fad9dbe | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 8,722 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johan Commelin
-/
import ring_theory.integral_closure
/-!
# Minimal polynomials
This file defines the minimal polynomial of an element x of an A-algebra B,
under the ass... |
20ff739ff2f0f71f41ab9d7366203e215f7f624b | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/hit/susp.hlean | 21d02d2fab61751cc9bf09f929e2380b7f3ba583 | [
"Apache-2.0"
] | permissive | eigengrau/lean | 07986a0f2548688c13ba36231f6cdbee82abf4c6 | f8a773be1112015e2d232661ce616d23f12874d0 | refs/heads/master | 1,610,939,198,566 | 1,441,352,386,000 | 1,441,352,494,000 | 41,903,576 | 0 | 0 | null | 1,441,352,210,000 | 1,441,352,210,000 | null | UTF-8 | Lean | false | false | 7,568 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of suspension
-/
import .pushout types.pointed cubical.square
open pushout unit eq equiv equiv.ops
definition susp (A : Type) : Type := pushout (λ(a ... |
c69df9a158adac1e9a86bb3540b3ddad3a73593b | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/ring_theory/perfection.lean | 463c829f91c290b8eac184038445d9c9d137fd27 | [
"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 | 25,308 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.char_p
import algebra.ring.pi
import analysis.special_functions.pow
import field_theory.perfect_closure
import ring_theory.localization
import ring_theory.subri... |
1df6c601a8d0e414520788e3520ed531ef4a961e | 94e33a31faa76775069b071adea97e86e218a8ee | /src/group_theory/group_action/opposite.lean | 65111b5354aede76dbf2cde5a91e3030ea604c97 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 5,553 | lean | /-
Copyright (c) 2020 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.group.opposite
import group_theory.group_action.defs
/-!
# Scalar actions on and by `Mᵐᵒᵖ`
This file defines the actions on the opposite type `has_smul R M... |
762c6593a5a34ae9f8f38e037d9716d917be2ac6 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/algebra/group/hom.lean | 3f3c809b8eaf711339a0ac5cd27e870917e954fc | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 36,986 | 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.commute
import algebra.group_with_zero.defs
/-!
... |
d6741df05596c7f7de17d28f1ced1a936c15c908 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/topology/metric_space/gromov_hausdorff.lean | b9e074d150879ca3293a0c8a5ac9ee0312022647 | [
"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 | 55,726 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sébastien Gouëzel
-/
import topology.metric_space.closeds
import set_theory.cardinal
import topology.metric_space.gromov_hausdorff_realized
import topology.metric_space.completion
/... |
2adc9d557513560e8d5d36551c54d7b1c1bfa994 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_topology/extra_degeneracy.lean | 0499cbf96e5829a69d4d0054a76de238c3277cef | [
"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 | 15,462 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.alternating_face_map_complex
import algebraic_topology.simplicial_set
import algebraic_topology.cech_nerve
import algebra.homology.homotopy
import ta... |
607662afa24bb729b930f0ece54f0991c9c0e7a9 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/normed_space/enorm.lean | e583fe8a91496b84f4d9a85a3a4ec210e47f233f | [
"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 | 7,510 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import analysis.normed_space.basic
/-!
# Extended norm
In this file we define a structure `enorm 𝕜 V` representing an extended norm (i.e., a norm that can
t... |
6f5b38f7689b00ce8e699056af5bb4f4252185e8 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Data/Lsp/Communication.lean | 7a944a4b061d92ee01ffffeaa9514c9f15f8f26b | [
"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 | 2,858 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Init.System.IO
import Lean.Data.JsonRpc
/-! Reading/writing LSP messages from/to IO handles. -/
namespace Lean
namespace Lsp
open IO
open ... |
1cefcf179026e9bb88f886767970d07a8d21eba9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/algebra_tower.lean | 85128910d2ca46c18eec9abd4b1b185c6214ad5e | [
"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,037 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.tower
import algebra.invertible
import algebra.module.big_operators
import linear_algebra.basis
/-!
# Towers of algebras
We set up the basic theory of ... |
2275f35aff3bae4091ba722e5daa06ad24543149 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/typeOf.lean | 22244887864d30c5cb2eb5ad770e21b0db700169 | [
"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 | 613 | lean | --
def f1 (x : Nat) (b : Bool) : typeOf! x :=
let r : typeOf! (x+1) := x+1;
r + 1
theorem ex1 : f1 1 true = 3 :=
rfl
def f2 (x : Nat) (b : Bool) : typeOf! x :=
let r : typeOf! b := x+1; -- error
r + 1
def f3 (x : Nat) (b : Bool) : typeOf! b :=
let r (x!1 : typeOf! x) : typeOf! b := x > 1;
r x
def f4 (x : Nat) : Na... |
78ffcb17d61fc58cd1448b632eadadec8037fb55 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/subset_properties.lean | c10575b739b9bb8fbfd2d0a22c6282177fc125fd | [
"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 | 83,553 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import order.filter.pi
import topology.bases
import data.finset.order
import data.set.accumulate
import tactic.tfae
import topology.b... |
250d6b550a8e36403ace9b12fea48e558bf9a941 | ebf7140a9ea507409ff4c994124fa36e79b4ae35 | /src/exercises_sources/thursday/linear_algebra.lean | 9db7ee2879f83d678237d4ba21b1890ab9bd75bd | [] | no_license | fundou/lftcm2020 | 3e88d58a92755ea5dd49f19c36239c35286ecf5e | 99d11bf3bcd71ffeaef0250caa08ecc46e69b55b | refs/heads/master | 1,685,610,799,304 | 1,624,070,416,000 | 1,624,070,416,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,147 | lean | import analysis.normed_space.inner_product
import data.matrix.notation
import linear_algebra.bilinear_form
import linear_algebra.matrix
import tactic
universes u v
noncomputable theory
namespace lftcm
section exercise1
namespace module
open module
variables (R M : Type*) [comm_semiring R] [add_comm_monoid M] [mod... |
4d988b95245cdbec21dfbd8d7b966f4460a76c28 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/measure_theory/probability_mass_function.lean | db668daa338860d6587b6981d6cd2ad92b33034a | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,248 | 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 topology.instances.ennreal
/-!
# Probability mass functions
This file is about probability mass functions or discrete probability measures:
a function `α → ℝ... |
f52a09a219ea04c48be43c0dfc626e99d855ccce | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/group_theory/perm/cycle_type.lean | 95efb9cd676f583954ed175d4446f6f9f0434564 | [
"Apache-2.0"
] | permissive | abentkamp/mathlib | d9a75d291ec09f4637b0f30cc3880ffb07549ee5 | 5360e476391508e092b5a1e5210bd0ed22dc0755 | refs/heads/master | 1,682,382,954,948 | 1,622,106,077,000 | 1,622,106,077,000 | 149,285,665 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,224 | lean | /-
Copyright (c) 2020 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import combinatorics.partition
import data.multiset.gcd
import tactic.linarith
import group_theory.perm.cycles
import group_theory.sylow
/-!
# Cycle Types
In thi... |
f6706968d2c5608fcf89a91e1edeb1c588231708 | dd4e652c749fea9ac77e404005cb3470e5f75469 | /src/alex_playground/monad.lean | 6102b321571cd961e10b8bbd1ec6709a5539ca49 | [] | no_license | skbaek/cvx | e32822ad5943541539966a37dee162b0a5495f55 | c50c790c9116f9fac8dfe742903a62bdd7292c15 | refs/heads/master | 1,623,803,010,339 | 1,618,058,958,000 | 1,618,058,958,000 | 176,293,135 | 3 | 2 | null | null | null | null | UTF-8 | Lean | false | false | 409 | lean |
def vars := [("x", ℕ), ("y", bool)]
def f : string → nat
| "x" := 1
| _ := 0
example (s : string) : s ≠ "x" → f s = 0 :=
begin
intro h,
by_cases s = "x",
end
def vars' : string → Type
| "x" := ℕ
| "y" := bool
| _ := unit
#print vars'._main
def point : Π v, option (vars' v)
| "x" := some (0 : ℕ)
| "y" :... |
bf1d2961751e03203abcd2e486fa6fc5fb3958af | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/sites/sheaf_of_types.lean | 5a9368fd1a50253dbdec7f7965f11993c1e484c5 | [
"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 | 40,816 | 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.sites.pretopology
import category_theory.limits.shapes.types
import category_theory.full_subcategory
/-!
# Sheaves of types on a Grothendieck top... |
9c003781ab6403ab193e625a27266cecd472952a | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/algebra/group.hlean | 646b410eed5edca4aa3830e965adfb3c5dc7be9e | [
"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 | 26,892 | hlean | /-
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. Partially modeled on Isabelle's library.
-/
import algebra.binary algebra.priority
open eq eq.ops -... |
0c72d7f00a62e23b6b781b08df8b462599d5ec6c | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Elab/Declaration.lean | d332899cf211f60e49de6c469c010d4d59f80e5c | [
"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 | 14,096 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
import Lean.Util.CollectLevelParams
import Lean.Elab.DeclUtil
import Lean.Elab.DefView
import Lean.Elab.Inductive
import Lean.Elab.Struct... |
314d981d86311a5db951049dee9c5c20e0ebb6ec | 4727251e0cd73359b15b664c3170e5d754078599 | /src/linear_algebra/multilinear/basic.lean | 11b27209a88590e67bd8189e0617a9eba332dafb | [
"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 | 58,290 | 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 linear_algebra.basic
import linear_algebra.matrix.to_lin
import algebra.algebra.basic
import algebra.big_operators.order
import algebra.big_operators.rin... |
fb37486e7429cea282890e870b4b0801b617e258 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/Contradiction.lean | 607f1e9d95c5dfdb7f7bbef321c914d2f1c02f76 | [
"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 | 9,622 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Cases
import Lean.Meta.Tactic.Apply
namespace Lean.Meta
structure Co... |
7534e9b314406185401ae2c81196eeb24a84291f | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/meta/rb_map.lean | 91844e0138d1226c26bfe3cc2f17b050e661c37d | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 3,525 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
Additional operations on native rb_maps and rb_sets.
-/
import data.option.defs
namespace native
namespace rb_set
meta def filter {key} (s : rb_set key) (P : key → b... |
6a3c58bccb892c2d6ddad257dfe398981559d40a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Lsp/Internal.lean | 37c5fb9af37d84da52c83d8f2854856f1a487042 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 3,015 | lean | /-
Copyright (c) 2022 Joscha Mennicken. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joscha Mennicken
-/
import Lean.Expr
import Lean.Data.Lsp.Basic
/-! This file contains types for communication between the watchdog and the
workers. These messages are not visible... |
1f0dd813714b093a7876eb721afcd916813d85e2 | e2fc96178628c7451e998a0db2b73877d0648be5 | /src/classes/context_free/basics/definition.lean | 7eba0a434772f9e41bd4068bf557abc799ebc87f | [
"BSD-2-Clause"
] | permissive | madvorak/grammars | cd324ae19b28f7b8be9c3ad010ef7bf0fabe5df2 | 1447343a45fcb7821070f1e20b57288d437323a6 | refs/heads/main | 1,692,383,644,884 | 1,692,032,429,000 | 1,692,032,429,000 | 453,948,141 | 7 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,696 | lean | import classes.context_sensitive.basics.definition
/-- Context-free grammar that generates words over the alphabet `T` (a type of terminals). -/
structure CF_grammar (T : Type) :=
(nt : Type) -- type of nonterminals
(initial : nt) -- initial symbol
(rules : l... |
e6e1a0d7a1fa5d5b0f5adba13ef11c9da06644a0 | fe84e287c662151bb313504482b218a503b972f3 | /src/logic/relation_extra.lean | a580e5719f12d15ddd96c3d653fb2956f3cacecf | [] | 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 | 690 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
The reflexive and transitive closure of a symmetric relation
is still symmetric.
-/
import logic.relation
namespace relation
open relation
lemma refl_trans_gen_s... |
96ffdc87c6eabae8836daad50ad634bee3c0cd07 | d320d01276642370017b4ce56793b5f73e0016f9 | /lean projects and notes/ta_rev2.lean | 11bad230ab4dff908f21c1bcc3e102a689183fbf | [] | no_license | samiazam00/my-work | 388d815ddc7e47860375959ba31be2530be7f11e | e9a8218b2441dce00bf117d3d985d00e6ee14ec0 | refs/heads/master | 1,608,518,076,248 | 1,580,268,523,000 | 1,580,268,523,000 | 236,280,156 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,378 | lean | example : ∀ P Q R : Prop, (P → Q) → (P ∧ R) → (Q ∧ (1 = 1)) :=
begin
assume P Q R,
assume pq,
assume pr,
apply and.intro _ _,
-- solving for hole 1, proof of Q
exact pq (and.elim_left pr),
-- solving for hole 2, proof of 1 = 1
exact eq.refl 1,
end
/- The above ... |
577c98981887eaabd0572e39aeeb19f00e548b48 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/equivalence.lean | 2fe657631ae424a9bafebb35543cfda726633212 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 19,973 | 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, Floris van Doorn
-/
import category_theory.fully_faithful
import category_theory.whiskering
import tactic.slice
namespace category_theory
... |
d743e797031fcc04e7ca702bb40640989ba4dc39 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/mv_polynomial/equiv.lean | 6fc617c5ad0fe7d1f683f30127a9df44dbd6acab | [
"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 | 18,894 | 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.mv_polynomial.rename
import data.polynomial.algebra_map
import data.mv_polynomial.variables
import data.finsupp.fin
impor... |
7b3e6c3a8857624c5b735f017a9a061853db9abf | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/order/filter/bases.lean | 3747f957d1f5b51699ec0efc031882af4b5a9c27 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,300 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov, Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.basic
import data.set.countable
/-!
# Filter bases
A filter basis `B : filter_basis α` on a typ... |
72f7868d42773850e25046190be7c7c68948d049 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/topology/continuous_on.lean | f4f553fe2a0ecfcfb0bbd1000188d8bf0052e14f | [
"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 | 20,803 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
`nhds_within` of `nhds`
`contin... |
0977126990fdfc8884b80126b718a4f770155cc9 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/locally_convex/weak_dual.lean | df9abacbce362e79944711b6bef77f1b77e5f8e6 | [
"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 | 5,449 | lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import topology.algebra.module.weak_dual
import analysis.normed.field.basic
import analysis.locally_convex.with_seminorms
/-!
# Weak Dual in Topological Vector Spaces
We ... |
d846eaa96b2421f6a52ccebaf4b169ae932cd6a2 | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/simplicial_sets/default.lean | 8deec532fd01ed6a78552804c7624b22c4307cb0 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 420 | lean | import category_theory.category
import category_theory.tactics.obviously
open category_theory
def simplicial_operator (n m : ℕ) := { f : fin n → fin m // ∀ i < n - 1, f ⟨ i, sorry ⟩ ≤ f ⟨ i + 1, sorry ⟩ }
def Δ : category ℕ :=
{ hom := λ n m, simplicial_operator n m,
comp := λ _ _ _ f g, ⟨ g.1 ∘ f.1, sorry ⟩,
... |
b7f8d961f19e18d67b3a7b530bac4de2f7bf8b75 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/convex/topology.lean | 8e37b2423ffe73a96c0273408f95f9cecbb3f001 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 12,190 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import analysis.convex.jensen
import analysis.normed_space.finite_dimension
import topology.path_connected
import topology.algebra.affine
/-!
#... |
4746d5b4ae84f78a7892e7849535152ebdd3ba3c | ca1ad81c8733787aba30f7a8d63f418508e12812 | /clfrags/src/hilbert/wr/pt.lean | ffb4dcf367486eeb14a3cb3dd8f22548503c9b24 | [] | no_license | greati/hilbert-classical-fragments | 5cdbe07851e979c8a03c621a5efd4d24bbfa333a | 18a21ac6b2e890060eb4ae65752fc0245394d226 | refs/heads/master | 1,591,973,117,184 | 1,573,822,710,000 | 1,573,822,710,000 | 194,334,439 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 608 | lean | import core.connectives
namespace clfrags
namespace hilbert
namespace wr
namespace pt
axiom pt₁ : Π {a b c : Prop}, a → b → c → pt a b c
axiom pt₂ : Π {a b c : Prop}, pt a b c → pt b a c
axiom pt₃ : Π {a b c : Prop}, pt a b c → pt a c b
... |
5d2c53fb4aeb22a983813f5f9159287273c4e989 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/equiv/fin.lean | 823e3c7db369d3f435e267effb6ec56991745b1a | [
"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 | 14,199 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.fin.vec_notation
import data.equiv.basic
import tactic.norm_num
/-!
# Equivalences for `fin n`
-/
universes u
variables {m n : ℕ}
/-- Equivalence between `fin 0... |
7a6413b62a9c7f10bdded3297cceb64847becf3d | 827a8a5c2041b1d7f55e128581f583dfbd65ecf6 | /myconcat.hlean | cadba6bb3ed727d2caec2c424a8e0f8cf94be307 | [
"Apache-2.0"
] | permissive | fpvandoorn/leansnippets | 6af0499f6f3fd2c07e4b580734d77b67574e7c27 | 601bafbe07e9534af76f60994d6bdf741996ef93 | refs/heads/master | 1,590,063,910,882 | 1,545,093,878,000 | 1,545,093,878,000 | 36,044,957 | 2 | 2 | null | 1,442,619,708,000 | 1,432,256,875,000 | Lean | UTF-8 | Lean | false | false | 564 | hlean |
open nat eq
inductive lpath {A : Type} (a : A) : A → ℕ → Type :=
lidp {} : lpath a a 0,
cons : Π{n : ℕ} {b c : A} (p : b = c) (l : lpath a b n), lpath a c (succ n)
-- inductive lpath2 {A : Type} : A → A → ℕ → Type :=
-- | lidp2 : Π{a : A}, lpath2 a a 0
-- | cons2 : Π{a b c : A} {n : ℕ} (p : b = c) (l : lpath2 a b n)... |
6818838bcf8f3d2596fc0536401f8425681fead0 | fa01e273a2a9f22530e6adb1ed7d4f54bb15c8d7 | /src/N2O/Network/Internal.lean | 85bc0354214d85b37956c8cea23c3f892944323f | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | o89/n2o | 4c99afb11fff0a1e3dae6b3bc8a3b7fc42c314ac | 58c1fbf4ef892ed86bdc6b78ec9ca5a403715c2d | refs/heads/master | 1,670,314,676,229 | 1,669,086,375,000 | 1,669,086,375,000 | 200,506,953 | 16 | 6 | null | null | null | null | UTF-8 | Lean | false | false | 2,175 | lean | import Init.System.IO
def String.init (s : String) := s.extract 0 (s.length - 1)
def Header := String × String
instance Header.ToString : ToString Header :=
⟨fun pair => pair.fst ++ ": " ++ pair.snd⟩
inductive Msg
| text : String → Msg
| binary : ByteArray → Msg
instance : ToString Msg :=
⟨λ m => match m with
|... |
5bd46d6efe25583ebe770e2616494c505668e3d2 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/euclidean_domain.lean | 143b93d9f8df05db36cfc22fd97ef068e3ba6899 | [
"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 | 17,175 | lean | /-
Copyright (c) 2018 Louis Carlin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Louis Carlin, Mario Carneiro
-/
import data.int.basic
import algebra.field
/-!
# Euclidean domains
This file introduces Euclidean domains and provides the extended Euclidean algorithm... |
1cae4bdda2a41f295498b321a81e96485546c089 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/homotopy/connectedness.hlean | f30d809b8ab18373cab6b1c7c72ff2df8493051b | [
"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 | 10,068 | hlean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz, Floris van Doorn
-/
import types.trunc types.arrow_2 .sphere
open eq is_trunc is_equiv nat equiv trunc function fiber funext pi
namespace homotopy
definition is_... |
33e91858ea072d78b6a00d664242be252a365b3c | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /src/Init/Lean/Meta/Offset.lean | 0cef17e37b23a86201caabd2613f9b70bef46549 | [
"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 | 4,196 | 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.Data.LBool
import Init.Lean.Meta.InferType
namespace Lean
namespace Meta
partial def evalNat : Expr → Option Nat
| Expr.lit (Lite... |
dada8292fc425775ed51904899827523d971b653 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/run/def7.lean | 5d3cea28cda52acc2047db5f59c40f70771b56e4 | [
"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 | 1,410 | lean | inductive InfTree.{u} (α : Type u)
| leaf : α → InfTree α
| node : (Nat → InfTree α) → InfTree α
open InfTree
def szn.{u} {α : Type u} (n : Nat) : InfTree α → InfTree α → Nat
| leaf a, t2 => 1
| node c, leaf b => 0
| node c, node d => szn n (c n) (d n)
universes u
theorem ex1 {α : Type u} (n : Nat) (c : Nat → I... |
e6ce98d5445d52427ab2bd34459d71d7c8b1bfda | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/struct_infer.lean | 2497229f8f500f041fc76509be7eee439e5006f4 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 644 | lean | import data.nat.basic
open nat
definition associative {A : Type} (op : A → A → A) := ∀a b c, op (op a b) c = op a (op b c)
structure semigroup [class] (A : Type) :=
mk {} :: (mul: A → A → A) (mul_assoc : associative mul)
definition nat_semigroup [instance] : semigroup nat :=
semigroup.mk nat.mul nat.mul_assoc
examp... |
a545a6cc17f5a28947cdfa41c8b912618ae41035 | 47181b4ef986292573c77e09fcb116584d37ea8a | /src/valuations/abv_pid.lean | 8f99c266360541f1cc200dae3013fb746d3c4909 | [
"MIT"
] | permissive | RaitoBezarius/berkovich-spaces | 87662a2bdb0ac0beed26e3338b221e3f12107b78 | 0a49f75a599bcb20333ec86b301f84411f04f7cf | refs/heads/main | 1,690,520,666,912 | 1,629,328,012,000 | 1,629,328,012,000 | 332,238,095 | 4 | 0 | MIT | 1,629,312,085,000 | 1,611,414,506,000 | Lean | UTF-8 | Lean | false | false | 5,839 | lean | /-
Absolute values on Principal Ideal Domains.
-/
import data.real.cau_seq
import for_mathlib.exp_log
import abvs_equiv
import valuations.basic
import valuations.bounded
import valuations.multiplicative_hom
open is_absolute_value
open_locale classical
def associated_ideal {α} [integral_domain α] [is_principal_i... |
84d58bbe12ecf850ed54695bc7b4779e353342bc | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/real/golden_ratio.lean | d7e76281ff9e395b529a07298e6570c2eaf24acf | [
"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 | 5,643 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Alexey Soloyev, Junyan Xu
-/
import data.real.irrational
import data.nat.fib
import data.fin.vec_notation
import tactic.ring_exp
import algebra.linear_recurrence
/... |
ea869f75781d1fd140a4622b2cd832ad394e1497 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/structInst2.lean | 85f009b56e6ba9c9d42d7670ea29deb431107b43 | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,533 | lean | import Init.Control.Option
new_frontend
universes u v
def OptionT2 (m : Type u → Type v) (α : Type u) : Type v :=
m (Option α)
namespace OptionT2
variables {m : Type u → Type v} [Monad m] {α β : Type u}
@[inline] protected def bind (ma : OptionT2 m α) (f : α → OptionT2 m β) : OptionT2 m β :=
(do {
let a? ← ma;
... |
953579cf038dba8a036b07cee3b4ad4775493bf4 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/analysis/normed/group/SemiNormedGroup/completion.lean | a4474b0762f4c7528c170b46592201eff152d690 | [
"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 | 4,544 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca, Johan Commelin
-/
import analysis.normed.group.SemiNormedGroup
import category_theory.preadditive.additive_functor
import analysis.normed.group.hom_completion
/-!
# ... |
4c4f7bab9737efff9a75eec7a39076bb1db2a6c0 | a047a4718edfa935d17231e9e6ecec8c7b701e05 | /src/ring_theory/fractional_ideal.lean | bf2c4273d73239c25fca294358c13d88586de442 | [
"Apache-2.0"
] | permissive | utensil-contrib/mathlib | bae0c9fafe5e2bdb516efc89d6f8c1502ecc9767 | b91909e77e219098a2f8cc031f89d595fe274bd2 | refs/heads/master | 1,668,048,976,965 | 1,592,442,701,000 | 1,592,442,701,000 | 273,197,855 | 0 | 0 | null | 1,592,472,812,000 | 1,592,472,811,000 | null | UTF-8 | Lean | false | false | 24,169 | 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 ring_theory.localization
import ring_theory.principal_ideal_domain
/-!
# Fractional ideals
This file defines fractional ideals of an integral domain and proves bas... |
a87d208b088f660bd0497b46ed59e178bf35d705 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /archive/imo/imo1972_b2.lean | b844e7f60dcd7c4eb90c219a93b4e58ae8fd7de9 | [
"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,447 | lean | /-
Copyright (c) 2020 Ruben Van de Velde, Stanislas Polu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ruben Van de Velde, Stanislas Polu
-/
import data.real.basic
import data.set.basic
import analysis.normed_space.basic
/-!
# IMO 1972 B2
Problem: `f` and `g` are ... |
2f0f9195cd9f77690bdbb08648107b1df0cff49f | 0d4c30038160d9c35586ce4dace36fe26a35023b | /src/category_theory/limits/shapes/binary_products.lean | 3ba348989e7b1612712c186fade525381f33b92e | [
"Apache-2.0"
] | permissive | b-mehta/mathlib | b0c8ec929ec638447e4262f7071570d23db52e14 | ce72cde867feabe5bb908cf9e895acc0e11bf1eb | refs/heads/master | 1,599,457,264,781 | 1,586,969,260,000 | 1,586,969,260,000 | 220,672,634 | 0 | 0 | Apache-2.0 | 1,583,944,480,000 | 1,573,317,991,000 | Lean | UTF-8 | Lean | false | false | 18,148 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.finite_products
import category_theory.limits.shapes.terminal
import category_theory.discrete_category
/-!
# Binary (co)products... |
3cc5b6e91afee914ab94b4c351de0dee8b41f415 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/category_theory/elements.lean | e5ab18de62ee65bd792c5a078a6ea7d16377f066 | [
"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 | 3,582 | 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.equivalence
import category_theory.comma
import category_theory.punit
import category_theory.eq_to_hom
/-!
# The category of elements
This fi... |
08a916e6d284eaf58c1f5ed26577ba1a5c639c3a | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/local_at_target.lean | 9b8b6f5595f8147ed830caba627ee80d5b76b695 | [
"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 | 6,033 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import topology.sets.opens
/-!
# Properties of maps that are local at the target.
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a correspo... |
b10ce42297a6a0a88c0ac115ad01709ccf592578 | 9cba98daa30c0804090f963f9024147a50292fa0 | /geom/khairul.lean | e1eb12497dfadc39acac0d45a051b93191164ef8 | [] | no_license | kevinsullivan/phys | dcb192f7b3033797541b980f0b4a7e75d84cea1a | ebc2df3779d3605ff7a9b47eeda25c2a551e011f | refs/heads/master | 1,637,490,575,500 | 1,629,899,064,000 | 1,629,899,064,000 | 168,012,884 | 0 | 3 | null | 1,629,644,436,000 | 1,548,699,832,000 | Lean | UTF-8 | Lean | false | false | 320 | lean | /-
Khairul and Kevin are working out a few things in this file.
Talk to us if you're curious.
-/
import .geom3d
noncomputable def p1 := mk_position3d geom3d_std_space 1 2 3
#check p1
#print p1
/-
mk_position3d geom3d_std_space 1 2 3
(position3d.mk (mk_point s ⟨[k₁,k₂,k₃],rfl⟩)) geom3d_std_space 1 2 3
-/ |
2d3fd7faff4e48dc4a9b3c18ca88c7197a030e8c | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/AuxRecursor.lean | cd969ae410ac6b10f112befafc85a55da0ecd0fb | [
"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 | 1,613 | 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.Environment
namespace Lean
def casesOnSuffix := "casesOn"
def recOnSuffix := "recOn"
def brecOnSuffix := "brecOn"
def bin... |
cb863a92f431cdcd439dced2a0ae155786d1f1af | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/omega/eq_elim.lean | 20bf778edbcfd067277741676aabf6000f394def | [
"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,593 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Correctness lemmas for equality elimination.
See 5.5 of <http://www.decision-procedures.org/> for details.
-/
import tactic.omega.clause
open list.func
namespace omega
... |
7cece27548340e6c229b847c3227e50abd04f3e3 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/solvable.lean | 1f8c3c14b4699b84634beebe89ece2f2bc15eefa | [
"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 | 10,061 | 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.fin.vec_notation
import group_theory.abelianization
import set_theory.cardinal
import group_the... |
ecad4872b9853fbda1c9a1da08cb9009b542b7f1 | 69bc7d0780be17e452d542a93f9599488f1c0c8e | /11-07-2019.lean | 2573911b95a37ce99fc50394f8f73d2c30f70ad6 | [] | no_license | joek13/cs2102-notes | b7352285b1d1184fae25594f89f5926d74e6d7b4 | 25bb18788641b20af9cf3c429afe1da9b2f5eafb | refs/heads/master | 1,673,461,162,867 | 1,575,561,090,000 | 1,575,561,090,000 | 207,573,549 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,709 | lean | /-
Notes for 11-07-2019.lean
-/
namespace test
-- The and'' proposition is really just like a product inductive type
inductive and'' (α β : Prop) : Prop
| intro : α → β → and''
-- but over the universe of Prop rather than of Type
inductive prod' (α β : Type) : Type
| pair : α → β → prod'
structure and (a b : Prop) ... |
901b24c8070dd6c4a6d3faff75c530c398456887 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebraic_geometry/presheafed_space/has_colimits.lean | 36b55b3d5a0f1455a82c9171ee40a77836f65638 | [
"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 | 10,285 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebraic_geometry.presheafed_space
import topology.category.Top.limits
import topology.sheaves.limits
import category_theory.limits.concrete_category
/-!
# `... |
18a6a80a0d61ed0ba81319a800f5635d60b107f1 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/padics/ring_homs.lean | 9c262c5fc5c9d61868927a1c739945dc995bb60e | [
"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 | 24,651 | lean | /-
Copyright (c) 2020 Johan Commelin and Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin and Robert Y. Lewis
-/
import data.padics.padic_integers
/-!
# Relating `ℤ_[p]` to `zmod (p ^ n)`
In this file we establish connections between t... |
a610cb559dcf6fa71d316b7dec6f3b4a0110d771 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/RightRingoid.lean | b49711606d2064e9c7b737d42fd3f1fe7da7c3f0 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,859 | 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 RightRingoid
structure RightRingoid (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(rightDistributive_times_plus : (∀ {x y z : A} , ... |
9c2eb378b0f898346befaa5159bad3b634073fa1 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/consume.lean | 0df1adee3d7a4b307876a827e584edced18590f8 | [
"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 | 136 | lean | import logic
definition pr2 {A : Type} (a b : A) := a
check pr2
check !pr2
check !@pr2
check @pr2
check @!pr2
check @@pr2
check !!pr2
|
299d1a7b021af7b38c151ff706b92c562bf9917c | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170320-sorts.lean | 756e0c91c3183add354248a06454dd88b2d40e1c | [
"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 | 32 | lean | def p (α β : Type) := α × β |
1523cff5033100458052aec6b1da439012d0a79a | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/def13.lean | 7d4d6d6e0c9d9c0bde78cd823525b7b159c7c383 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 587 | lean | variables {α} (p : α → Prop) [DecidablePred p]
def filter : List α → List α
| [] => []
| a::as => if p a then a :: filter as else filter as
theorem filter_nil : filter p [] = [] :=
rfl
theorem filter_cons (a : α) (as : List α) : filter p (a :: as) = if p a then a :: filter p as else filter p as :=
rfl
theorem fi... |
75a6354ba8dbd33cec63b94136fb009c703507c4 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/int/basic.lean | 550def4933abf91377d1ac647c69d1824dcf845b | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,714 | 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, Jeremy Avigad
The integers, with addition, multiplication, and subtraction. The representation of the integers is
chosen to compute efficiently.
To faciliate prov... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.