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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e3ebe6ed73443d93d45af76d78d1c9180c3dda5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/direct_sum/module.lean | 10735345090598e7e8005a1fa04a846f9370f890 | [
"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,619 | 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 algebra.direct_sum.basic
import linear_algebra.dfinsupp
/-!
# Direct sum of modules
The first part of the file provides constructors for direct sums of modules. It pro... |
12ea2f55c2e5f20e411d769142448cc8c2b43d42 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/number_theory/dioph.lean | 1f2228e22a95d4cdfd7ee74b0594037db10f7d7e | [
"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 | 36,835 | 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 number_theory.pell data.pfun
universe u
open nat function
namespace int
lemma eq_nat_abs_iff_mul (x n) : nat_abs x = n ↔ (x - n) * (x + n) = 0 :=
begin
r... |
542cb550cddd61cbb123bccd69b43df84c044276 | d9ed0fce1c218297bcba93e046cb4e79c83c3af8 | /library/tools/super/prover.lean | b7694e201f5b13b1c58b99a7a46f7460a0ef1d2e | [
"Apache-2.0"
] | permissive | leodemoura/lean_clone | 005c63aa892a6492f2d4741ee3c2cb07a6be9d7f | cc077554b584d39bab55c360bc12a6fe7957afe6 | refs/heads/master | 1,610,506,475,484 | 1,482,348,354,000 | 1,482,348,543,000 | 77,091,586 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,634 | lean | /-
Copyright (c) 2016 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state data.monad.transformers
import .misc_preprocessing
import .selection
import .trim
-- default inferences
-- 0
import .clausifier
-- 10
impo... |
2e442ebae04c970baf447b7f9310f3b9d8915dfe | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/multiset/dedup.lean | dfc2082b242068da42f50f8c4c82c6b65250d9e8 | [
"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 | 3,928 | 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.multiset.nodup
/-!
# Erasing duplicates in a multiset.
-/
namespace multiset
open list
variables {α β : Type*} [decidable_eq α]
/-! ### dedup -/
/-- ... |
5986c356f50729736fe343cfe0517d34594e0300 | 6dacdff2020860f2468bb8dacf344e6b043d6a78 | /cap/src/demo_tac_two.lean | da3467a78f21e3a32f686c8e5408bcf25e6db9d0 | [] | no_license | alexjbest/talks | 514ca57af312a14cf68c30efa1c7228294edc190 | 84976b4329ea768c754da72cc15d5ce29332466d | refs/heads/master | 1,686,993,465,308 | 1,686,315,975,000 | 1,686,315,975,000 | 16,347,963 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 351 | lean | import tactic
import data.nat.parity
-- intermediate statements using have
lemma haves (x : ℚ) (hx : 0 < x) : x / x = 1 :=
begin
-- library_search,
end
lemma ors (P Q : Prop) (h : P ∨ Q) : Q ∨ P :=
begin
cases h,
end
lemma exist : ∃ n : ℕ, n + 3 = 7 :=
begin
end
lemma exist2 (m : ℕ) : ∃ n : ℕ, m < m ∧ even n :... |
2e76f4d173da30a460c554113c5c7be66e457e16 | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/pseudo_normed_group/homotopy.lean | 161b9b1b62a129052051f31f5fc5e88a0998f5a6 | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,906 | lean | import algebra.homology.homotopy
import pseudo_normed_group.system_of_complexes
import rescale.Tinv
/-!
*TODO*: find someone who can explain what is going on in this file.
-/
noncomputable theory
universe variables u
open_locale nnreal
open category_theory homological_complex
namespace breen_deligne
variables... |
8bebd0312612a692f943327f7edc675285de2146 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/matchVarNames.lean | e922c7eb42b91a0425f4508100677ff676ff9839 | [
"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 | 410 | lean | inductive HList {α : Type v} (β : α → Type u) : List α → Type (max u v)
| nil : HList β []
| cons : β i → HList β is → HList β (i::is)
infix:67 " :: " => HList.cons
inductive Member : α → List α → Type
| head : Member a (a::as)
| tail : Member a bs → Member a (b::bs)
def HList.get : HList β is → Member i is... |
f4694f4f27d25b392282eafefe66858201cc2e1a | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /02_Dependent_Type_Theory.org.19.lean | 8e2ffaa4e1f6c11dcffa8588031091a5f4c3a99a | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 161 | lean | /- page 21 -/
import standard
import data.nat
open nat
constant n : ℕ
check let y := n + n in y * y
definition t (x : ℕ) : ℕ :=
let y := x + x in y * y
|
53e4e7936cff8002922aea7ec87fc257f4f70b25 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/quotient/classical.lean | d9f7d48dbfaf151e3ba30fe1695c01d8660f856d | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,113 | lean | -- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Floris van Doorn
import algebra.relation logic.nonempty data.subtype
import logic.axioms.classical logic.axioms.hilbert logic.axioms.funext
import .basic
namespace quotient
o... |
97c94f64b7d5ee167243785566727ea8c9c85f90 | 1a61aba1b67cddccce19532a9596efe44be4285f | /hott/hit/trunc.hlean | b6fb91fa3cea6e04f96ef7f3d0010928af3bafe9 | [
"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 | 4,889 | 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
n-truncation of types.
Ported from Coq HoTT
-/
/- The hit n-truncation is primitive, declared in init.hit. -/
import types.sigma types.pointed
open is_trunc eq ... |
5fb40f2d00e7a54c0c8370c18f7e747636c0a15e | 43390109ab88557e6090f3245c47479c123ee500 | /src/xenalib/Group_actions.lean | de2ef3e3d5eca2b25f0f28a92580822eb7955a00 | [
"Apache-2.0"
] | permissive | Ja1941/xena-UROP-2018 | 41f0956519f94d56b8bf6834a8d39473f4923200 | b111fb87f343cf79eca3b886f99ee15c1dd9884b | refs/heads/master | 1,662,355,955,139 | 1,590,577,325,000 | 1,590,577,325,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,517 | lean | import data.set.finite group_theory.coset
universes u v
variables {α : Type u} {β : Type v} [group α]
class is_group_action (f : α → β → β) : Prop :=
(one : ∀ a : β, f (1 : α) a = a)
(mul : ∀ (x y : α) (a : β), f (x * y) a = f x (f y a))
namespace is_group_action
variables (f : α → β → β) [is_group_action f]
@[si... |
377f59956bb2cbe09d4d9d53436c448bae6582e4 | ed27983dd289b3bcad416f0b1927105d6ef19db8 | /src/exam1/lin2k.lean | 72efcf3695aeaf67913f57d580239363ff048a0a | [] | no_license | liuxin-James/complogic-s21 | 0d55b76dbe25024473d31d98b5b83655c365f811 | 13e03e0114626643b44015c654151fb651603486 | refs/heads/master | 1,681,109,264,463 | 1,618,848,261,000 | 1,618,848,261,000 | 337,599,491 | 0 | 0 | null | 1,613,141,619,000 | 1,612,925,555,000 | null | UTF-8 | Lean | false | false | 8,722 | lean | import algebra.module.basic
import data.real.basic
/-
This is EXAM #1 for UVa CS 4501/6501, Spring
2021.
Ground rules are as follows:
- open book, notes, code, WWW
- no communication except with instructors
- don't post any part of an answer on Piazza
- use Piazza only to ask about errors or to request clarification... |
ca9347c8b1e4cadc999fc4de7e9069481f51590f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/metric_space/shrinking_lemma.lean | 4833ac17419776fd24423728dc3a485c26425d91 | [
"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 | 6,335 | 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 topology.metric_space.basic
import topology.metric_space.emetric_paracompact
import topology.shrinking_lemma
/-!
# Shrinking lemma in a proper metric ... |
67cc8d2279645d1115e7559182722c891f9051b2 | 0f5090f82d527e0df5bf3adac9f9e2e1d81d71e2 | /src/michael/simple_graph.lean | d8245d66ea9753ef7a7be315b483b4e5449e3416 | [] | no_license | apurvanakade/mc2020-lean-projects | 36eb42c4baccc37183635c36f8e1b3afa4ec1230 | 02466225aa629ab1232043bcc0a053a099fdb939 | refs/heads/master | 1,688,791,717,534 | 1,597,874,092,000 | 1,597,874,092,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,112 | 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.
Author: Aaron Anderson, Jalex Stark, Kyle Miller.
-/
import data.fintype.basic
import .sym2
import tactic
open finset
-- noncomputable theory
/-!
# Simple graphs
Th... |
42b74d2510ce32894cd443c18d6770e259691590 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/char_p/basic.lean | ee2355e8a85665059a6df4e0154a5e122daa5dff | [
"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 | 15,156 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Joey van Langen, Casper Putz
-/
import data.nat.choose
import data.int.modeq
import algebra.iterate_hom
import group_theory.order_of_element
/-!
# Characteristic of semirings
-/... |
8bbd9d993fecfbd7d1831fa67a154daebe069df8 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/order/pilex.lean | 47c7b393f6c262e9a8678ef78ba301165f375af9 | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 4,114 | 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 algebra.group.pi
import order.rel_classes
import algebra.order_functions
variables {ι : Type*} {β : ι → Type*} (r : ι → ι → Prop)
(s : Π {i}, β i → β i → Prop)
... |
2a5d9c92297a62a112be3d237ba4619de1f09504 | 137c667471a40116a7afd7261f030b30180468c2 | /src/topology/algebra/infinite_sum.lean | 0db3b7c453f73873d2a3654cb15c5fdf23bc6697 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51,118 | 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 topology.algebra.module
import algebra.indicator_function
import data.equiv.encodable.lat... |
73d2a780e6e1df6681f6eecd84491dab939c7da1 | 37da0369b6c03e380e057bf680d81e6c9fdf9219 | /hott/homotopy/LES_of_homotopy_groups.hlean | 39688d4b8b02a5d2e6e2fe09990728b8695bd918 | [
"Apache-2.0"
] | permissive | kodyvajjha/lean2 | 72b120d95c3a1d77f54433fa90c9810e14a931a4 | 227fcad22ab2bc27bb7471be7911075d101ba3f9 | refs/heads/master | 1,627,157,512,295 | 1,501,855,676,000 | 1,504,809,427,000 | 109,317,326 | 0 | 0 | null | 1,509,839,253,000 | 1,509,655,713,000 | C++ | UTF-8 | Lean | false | false | 31,971 | hlean | /-
Copyright (c) 2016 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
We define the fiber sequence of a pointed map f : X →* Y. We mostly follow the proof in section 8.4
of the book.
PART 1:
We define a sequence fiber_sequence as in ... |
a7a5e8376e19dbf053c86252f6067f300e88cb3e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/dfinsupp/order.lean | 1c37f6a388ff719a6c51a045f9ba336c835d175b | [
"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 | 7,794 | lean | /-
Copyright (c) 2021 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.dfinsupp.basic
/-!
# Pointwise order on finitely supported dependent functions
This file lifts order structures on the `α i` to `Π₀ i, α i`.
## Main declar... |
b4f22cb4735b3f236934416c5db2e7a64173fe09 | a5e2e6395319779f21675263bc0e486be5bc03bd | /bench/stlc_lessimpl5k.lean | 0d994af80d4d6e8206c62e8f2eb24ef5e7c89f31 | [
"MIT"
] | permissive | AndrasKovacs/smalltt | 10f0ec55fb3f487e9dd21a740fe1a899e0cdb790 | c306f727ba3c92abe6ef75013da5a5dade6b15c8 | refs/heads/master | 1,689,497,785,394 | 1,680,893,106,000 | 1,680,893,106,000 | 112,098,494 | 483 | 26 | MIT | 1,640,720,815,000 | 1,511,713,805,000 | Lean | UTF-8 | Lean | false | false | 295,213 | lean | def Ty : Type 1
:= ∀ (Ty : Type)
(nat top bot : Ty)
(arr prod sum : Ty → Ty → Ty)
, Ty
def nat : Ty := λ _ nat _ _ _ _ _ => nat
def top : Ty := λ _ _ top _ _ _ _ => top
def bot : Ty := λ _ _ _ bot _ _ _ => bot
def arr : Ty → Ty → Ty
:= λ A B Ty nat top bot arr prod sum =>
arr (A Ty n... |
b4c978691c98e800692a7e2537129fee6a77b792 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Lean/Util/Trace.lean | 053c1ec84e91e54776a1e888054fd18b7a0f88a1 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 5,435 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich, Leonardo de Moura
-/
import Lean.Message
import Lean.MonadEnv
universe u
namespace Lean
open Std (PersistentArray)
structure TraceElem where
ref : Syntax... |
e5786404e925ebd749346c08418f3a0affec2059 | 2783bc3189b940c66202d605fe037bd35f2d2b90 | /RecursionSchemes.lean | 302f43f3ffae839b021b599cfbdc76b5a345b6fb | [
"MIT"
] | permissive | intsuc/recursion-schemes | dac0ec1cd60b0787d2a432b88be2cacd588b9f41 | dad5bdb656716c75a6e4b8748faf657aa04ee0bd | refs/heads/main | 1,688,998,463,156 | 1,627,630,885,000 | 1,627,630,885,000 | 390,127,735 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,396 | lean | abbrev Algebra (f : Type → Type) (α : Type) := f α → α
abbrev Coalgebra (f : Type → Type) (α : Type) := α → f α
constant Fix (f : Type → Type) : Type
instance : Inhabited (Fix f) where
default := sorry
unsafe def projectUnsafe : Fix f → f (Fix f) := unsafeCast
@[implementedBy projectUnsafe]
constant project : Fi... |
4ee78945b32cf2087c08dc1274585b71037e6e18 | a219dc692a6598d0a0a44aae56286b29a34ef09c | /delta.lean | 0476c9f027b1c0318e88f9608e13900b90195aaa | [] | no_license | bjoernkjoshanssen/jaccard-nid | c66475f6230d062d21b0d119ce5b9da1648b042e | 2a8dd9c5cc33d3cdfba94bb97ecadbfc51710fe2 | refs/heads/main | 1,675,404,699,874 | 1,608,937,501,000 | 1,608,937,501,000 | 323,006,169 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 25,057 | lean | /-
Copyright (c) 2020 Bjørn Kjos-Hanssen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Bjørn Kjos-Hanssen.
Zulip chat help from:
Alex J. Best, Johan Commelin, Kyle Miller, Pedro Minicz, Reid Barton, Scott Morrison, Heather Macbeth.
-/
import data.finset -- finite set... |
a6cbb7286ff71b1d39dee6ca9eb12d1671e062af | d1bbf1801b3dcb214451d48214589f511061da63 | /src/data/finset/lattice.lean | 6a3f24154bf93f2eeb8d4798640b32256e2f4afa | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,478 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.finset.fold
import data.multiset.lattice
import order.order_dual
import order.complete_lattice
/-!
# Lattice operations on finsets
-/
variables {α β γ : ... |
7472fd4be1e6518933a96a668915aa1cb61f3036 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/computability/primrec.lean | 38b16a21d98892f27ad8123d80569e9d6b2f1c35 | [
"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 | 52,028 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.equiv.list
import logic.function.iterate
/-!
# The primitive recursive functions
The primitive recursive functions are the least collection of functions
... |
0320a94e36a13533b81cab1cc35a35fd3f8c8773 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/sum/interval.lean | 77e525f9265049f1afa931b399bcfda22d017418 | [
"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 | 5,816 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import data.sum.order
import order.locally_finite
/-!
# Finite intervals in a disjoint union
This file provides the `locally_finite_order` instance for the disjoint sum... |
d2f1904436e2c550ff683bfba091c4f757a8fac4 | df7bb3acd9623e489e95e85d0bc55590ab0bc393 | /lean/love03_forward_proofs_demo.lean | 26a53aafc2ae295d96b73930f93e8ba826596db6 | [] | no_license | MaschavanderMarel/logical_verification_2020 | a41c210b9237c56cb35f6cd399e3ac2fe42e775d | 7d562ef174cc6578ca6013f74db336480470b708 | refs/heads/master | 1,692,144,223,196 | 1,634,661,675,000 | 1,634,661,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,703 | lean | import .love01_definitions_and_statements_demo
/- # LoVe Demo 3: Forward Proofs
When developing a proof, often it makes sense to work __forward__: to start with
what we already know and proceed step by step towards our goal. Lean's
structured proofs and raw proof terms are two style that support forward
reasoning. -... |
0a6d34a3f5788115c1e59c23eaa57390f38fd228 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/big_operators/pi.lean | ee2f6fc4b94c5cb857e8ef2f0ccf8871de985d06 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,091 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import data.fintype.card
import algebra.group.prod
import algebra.big_operators.basic
import algebra.ring.pi
/-!
# Big operators for Pi Types
> THIS FILE ... |
f14a9cc8b7b5b2cdb3df76891c5ca23ca48b87cb | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/conj.lean | ef8f0e39408eda943b068960ae8f175ddd381a82 | [
"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 | 5,840 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import category_theory.isomorphism data.equiv.basic category_theory.endomorphism algebra.group_power
/-!
# Conjugate morphisms by isomorphisms
An isomorphism `α ... |
0181298cd946b6292d469ae9a25c649673cc6924 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/nat/multiplicity.lean | 91b737feb9f6db25148c5264ef19beca4bba268e | [
"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 | 11,610 | 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 data.nat.bitwise
import data.nat.parity
import ring_theory.int.basic
import algebra.big_operators.intervals
/-!
# Natural number multiplicity
This file contains... |
b83b8b2f6eb711ce0f8db3dbc334aedc0f684739 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/ideal/over.lean | 0a517d69988eb376e46ab6f6e87b0c5e86a59422 | [
"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,586 | 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.algebraic
import ring_theory.localization
/-!
# Ideals over/under ideals
This file concerns ideals lying over other ideals.
Let `f : R →+* S` be a rin... |
3c6360749daa1e9e8068014e95029dc98e3d6dde | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Elab/Structure.lean | 586cd5a948f2a230f4dab680b94828b038a9a86c | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,378 | 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.Meta.Closure
import Lean.Elab.Command
import Lean.Elab.DeclModifiers
import Lean.Elab.DeclUtil
import Lean.Elab.Inductive
namespace Lean.Elab.C... |
38cffb72708fa045db7cfc4d2701a3c9df18fc5e | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/sheaves/sheaf_condition/equalizer_products.lean | 13488a6aba2857319758d37dc89165a2e16a85be | [
"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 | 8,438 | 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 topology.sheaves.presheaf
import category_theory.limits.punit
import category_theory.limits.shapes.products
import category_theory.limits.shapes.equalizers
imp... |
ac2d29fd4e13d22593f5f2d65e42887ef34d8ab8 | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/data/list/prod_monoid.lean | 02b859511554d04afa2161849d4321f661e600e9 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,124 | lean | /-
Copyright (c) 2021 Alex J. Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best
-/
import data.list.basic
import algebra.group_power.basic
/-!
# Products / sums of lists of terms of a monoid
This file provides basic results about `list.prod` (definiti... |
e3a6b20f8d432c7fc09aaa8ce986a4c894025b09 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/dsimp_options.lean | d8e95dda4493fd4e9f87f17047dab33895af5fe6 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 1,737 | lean | example (b c : nat) : c = @bool.cases_on (λ _, nat) tt b c :=
begin
fail_if_success {dsimp {iota := ff}},
dsimp {iota := tt},
guard_target c = c,
reflexivity
end
example (b c : nat) : c = @bool.cases_on (λ _, nat) tt b c :=
begin
dsimp, -- iota is tt by default
guard_target c = c,
reflexivity
end
exam... |
04971b8828f86e88b64d65ad4c1807ee10d6a469 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/module/opposites.lean | 0e74ada964b1832f70a78a50922d6993b7c91db6 | [
"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 | 1,587 | 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.opposites
import data.equiv.module
/-!
# Module operations on `Mᵒᵖ`
This file contains definitions that could not be placed into `algebra.opposites` due to... |
a8e1a3e8c92b7286fc9d32defa9d34cee81363d4 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Binary/Heterogenize.lean | 1ad4d48c114569ed3a6c6ea713f9bac2bb93555f | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 2,457 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniel Selsam
-/
import Lean
import Mathport.Util.Misc
import Mathport.Util.String
import Mathport.Binary.Basic
import Mathport.Binary.Number
import Mathport.Binary.Decode
impor... |
e1fdfa074721df70657de2cc79cdc66ea3fe0fc1 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Lean/Util/CollectLevelParams.lean | eb2db9125e4aacaafdc282baa99a454cac4230fa | [
"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,276 | 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.Expr
namespace Lean
namespace CollectLevelParams
structure State where
visitedLevel : LevelSet := {}
visitedExpr : ExprSet := {}
... |
b76373a957516576e9e6fef88e035235790c792f | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/data/nat/basic.lean | 8fbf9dbd01696e94ea4b453b07954aa5007f7549 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 58,154 | 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... |
9de06d47cf087dc251fe565ff6ab3b5402962410 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/probability/independence/zero_one.lean | 10fe4002eda6d162d09cd6148de8d6a01b76246c | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,824 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import probability.independence.basic
/-!
# Kolmogorov's 0-1 law
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mat... |
2c35398be6a10c577ba18afcf3383372c3bb0adc | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/data/finsupp.lean | 1c145591b75eec831afc0eee39a7ccd6620395e8 | [
"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 | 66,473 | 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, Scott Morrison
-/
import data.finset data.set.finite algebra.big_operators algebra.module
/-!
# Type of functions with finite support
For any type `α` and a type `β... |
71161cedfb85e9d0ca6db713a11e2b482d9a5b11 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Meta/PPGoal.lean | 0a1276c700619cbbed554a137db620f61ef46cbb | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,298 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Meta.InferType
import Lean.Meta.MatchUtil
namespace Lean.Meta
register_builtin_option pp.auxDecls : Bool := {
defValue := false
group :=... |
c455b853c94ac11c8293d54e12d6ac46b070d9b1 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/tactic/interactive.lean | a5dc4fdc9bcfd9636bff1ee494c6d955bff35634 | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 30,636 | lean |
/-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import tactic.lint
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:9001 := many
name... |
03b428908404bf8482a22b86583e4e3b811e8f3c | df561f413cfe0a88b1056655515399c546ff32a5 | /4-proposition-world/l9.lean | 202920e6634f79b2e61abddbaab50f67a02b4b78 | [] | no_license | nicholaspun/natural-number-game-solutions | 31d5158415c6f582694680044c5c6469032c2a06 | 1e2aed86d2e76a3f4a275c6d99e795ad30cf6df0 | refs/heads/main | 1,675,123,625,012 | 1,607,633,548,000 | 1,607,633,548,000 | 318,933,860 | 3 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 299 | 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 |
aead3b4a2b71ff0516a342438b8075c2b6b4adca | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Server/Completion.lean | 15fe2aed0c6ee79a402e8df8dee88426b687635f | [
"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 | 22,765 | 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.Environment
import Lean.Parser.Term
import Lean.Data.FuzzyMatching
import Lean.Data.Lsp.LanguageFeatures
import Lean.Data.Lsp.Capabilities
impor... |
0a57efc9877f7bec147950afc67c2b5073b0d3ef | e6b8240a90527fd55d42d0ec6649253d5d0bd414 | /src/topology/subset_properties.lean | 13667f944f82576ee24693074f4340ea7875b8d1 | [
"Apache-2.0"
] | permissive | mattearnshaw/mathlib | ac90f9fb8168aa642223bea3ffd0286b0cfde44f | d8dc1445cf8a8c74f8df60b9f7a1f5cf10946666 | refs/heads/master | 1,606,308,351,137 | 1,576,594,130,000 | 1,576,594,130,000 | 228,666,195 | 0 | 0 | Apache-2.0 | 1,576,603,094,000 | 1,576,603,093,000 | null | UTF-8 | Lean | false | false | 31,561 | 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
Properties of subsets of topological spaces: compact, clopen, irreducible,
connected, totally disconnected, totally separated.
-/
import topology.const... |
9f85cf475dcc69deb907f0c65d1291d3f3aaa79c | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/analysis/convex/basic.lean | d028617b680f812964664104ed5b808ea0c21a28 | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,848 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import data.set.intervals
import data.complex.module
import algebra.pointwise
/-!
# Convex sets and functions on real vector spaces
In a re... |
8b760d709e59c4a9b5b9c2f9d66bac0dc80c9042 | c37c89b934e368a90005cf2a72457da4d59a48a1 | /Ideas.lean | 288ec9fd3a670429316667c6d31341975fc43db8 | [
"Apache-2.0"
] | permissive | mukeshtiwari/Leanplayground | aa1cd9c69d4f1db6c824778a560c72f1e5aeaf65 | 773deaf73fbb677cdf518d0db34ad62a79bad642 | refs/heads/master | 1,667,860,698,346 | 1,664,052,419,000 | 1,664,052,419,000 | 209,532,791 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,394 | lean | import Init.WF
import Init.Data.Nat
theorem nat_lt : ∀ n : Nat,
Acc (fun (x y : Nat) => x < y) n := by
intros n
induction n with
| zero =>
focus
apply Acc.intro
intros y Hy
cases Hy
| succ n ih =>
focus
apply Acc.intro
intros y Hy
apply Acc.intro
in... |
e8d2ff468e1b572c1c23536a7a4eae57fedf6f23 | 95a02f25ddbaf30f9e6fdb8043e6fd3c197ea01c | /src/semantics.lean | 11d2333f041f574ea1d3bf182a4312458aa35fd7 | [
"MIT"
] | permissive | praalhans/lean-abs | b23aad54878c06f5a495dfff63260b72d17e9b99 | 5d23eec7234c880f5ebc0d7b831caf55119edef8 | refs/heads/master | 1,587,416,771,564 | 1,575,885,115,000 | 1,575,885,115,000 | 169,097,861 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,256 | lean | /- Copyright 2019 (c) Hans-Dieter Hiep. All rights reserved. Released under MIT license as described in the file LICENSE. -/
import process
universe u
open objects
/- A local configuration is an object and its process. -/
@[derive decidable_eq]
structure local_config {α β : Type} [interpret α β]
(C : class_name α... |
8c34f0c2dd0e369705e0959a5595c086d5bc0a21 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/maze.lean | 220784e180d282d02ede9b4f03297d5540f244e3 | [
"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 | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 11,036 | lean | import Lean
-- Coordinates in a two dimensional grid. ⟨0,0⟩ is the upper left.
structure Coords where
x : Nat -- column number
y : Nat -- row number
deriving BEq
instance : ToString Coords where
toString := (λ ⟨x,y⟩ => String.join ["Coords.mk ", toString x, ", ", toString y])
structure GameState where
size ... |
e13c830ad84f8fa11bdf2b11117a36376b73d7c9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/terminal_goal.lean | 0bbb61ee4153100b771f012cf49d6c3352449cae | [
"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,556 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.core
open tactic
structure C :=
( w : Type )
( x : list w )
( y : Type )
( z : prod w y )
def test_terminal_goal_1 : C :=
begin
fapply C.mk,... |
c0f1b395ed0d1c3be8e727e6e44282a933243d5d | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/breen_deligne/constants.lean | aa402e7e68cef3e593ba47be0d708fb0acc2295f | [] | no_license | Ja1941/lean-liquid | fbec3ffc7fc67df1b5ca95b7ee225685ab9ffbdc | 8e80ed0cbdf5145d6814e833a674eaf05a1495c1 | refs/heads/master | 1,689,437,983,362 | 1,628,362,719,000 | 1,628,362,719,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,097 | lean | import breen_deligne.homotopy
noncomputable theory
open_locale nnreal big_operators
namespace breen_deligne
namespace data
variables (BD : data) (r r' : ℝ≥0)
lemma b_exists [hr : fact (r < 1)] (x : ℝ≥0) [fact (0 < x)] :
∃ b : ℕ, r ^ b ≤ x⁻¹ :=
begin
suffices : ∃ b : ℕ, (r ^ b : ℝ) < x⁻¹,
{ rcases this with ... |
25a6c493b60b9f419d3d29124ca5d2ea055e8223 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/number_theory/modular.lean | 7f2d5c9ba7599c48bf5243d907e841a3ddadc2e3 | [
"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 | 24,691 | 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
import linear_algebra.general_linear_group
import anal... |
3d19c4d6cff19d55e5f3d0a14ea486ecba253912 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/affine_space/midpoint_zero.lean | a93b8c2d3bb5c98415399c76bd2c27b34d1f7308 | [
"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,845 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.char_p.invertible
import linear_algebra.affine_space.midpoint
/-!
# Midpoint of a segment for characteristic zero
> THIS FILE IS SYNCHRONIZED WITH ... |
0193bac2a332a3c71987b2e2331e18633498d39b | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/alg_rw.lean | 0267f3071940b4164da8597906651e1f88fe5a7c | [
"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 | 388 | lean | import algebra.group
open algebra
section
variable {A : Type}
variable [s : comm_monoid A]
include s
theorem one_mul_one : 1 * 1 = (1:A) :=
mul_one 1
end
definition one [reducible] (A : Type) [s : has_one A] : A :=
!has_one.one
section
variable {A : Type}
variable [s : comm_group A]
include s
the... |
c9f4a39e1fdba289db134f3f5fc6a7dcb538881a | 274261f7150b4ed5f1962f172c9357591be8a2b5 | /src/quiver.lean | 317b97f79ea99cca09c65758d93e7a4c4e2e7735 | [] | no_license | rspencer01/lean_representation_theory | 219ea1edf4b9897b2997226b54473e44e1538b50 | 2eef2b4b39d99d7ce71bec7bbc3dcc2f7586fcb5 | refs/heads/master | 1,588,133,157,029 | 1,571,689,957,000 | 1,571,689,957,000 | 175,835,785 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,625 | lean | import set_theory.zfc
import data.vector
import order.lattice
import order.complete_lattice
import .lists
import .downset
class quiver :=
(vertices : Type)
(edges : Type)
(s : edges → vertices)
(t : edges → vertices)
namespace quiver
def head_to_head {Q : quiver} : Q.edges → Q.edges → Prop :=
... |
551cf47aaeca53c80a63e14076d833579e7fb2e3 | 7c2dd01406c42053207061adb11703dc7ce0b5e5 | /src/solutions/00_first_proofs.lean | d5b59b0ca78e3b5b4f1267c0fe7dd402d64400d0 | [
"Apache-2.0"
] | permissive | leanprover-community/tutorials | 50ec79564cbf2ad1afd1ac43d8ee3c592c2883a8 | 79a6872a755c4ae0c2aca57e1adfdac38b1d8bb1 | refs/heads/master | 1,687,466,144,386 | 1,672,061,276,000 | 1,672,061,276,000 | 189,169,918 | 186 | 81 | Apache-2.0 | 1,686,350,300,000 | 1,559,113,678,000 | Lean | UTF-8 | Lean | false | false | 17,981 | lean | /-
This file is intended for Lean beginners. The goal is to demonstrate what it feels like to prove
things using Lean and mathlib. Complicated definitions and theory building are not covered.
Everything is covered again more slowly and with exercises in the next files.
-/
-- We want real numbers and their basic proper... |
2cb807f10393b6f6917052040cb7e966c84387dd | 49ffcd4736fa3bdcc1cdbb546d4c855d67c0f28a | /library/init/meta/expr.lean | 48f265ba30237e9f53c9c06cb17057441cc1f72e | [
"Apache-2.0"
] | permissive | black13/lean | 979e24d09e17b2fdf8ec74aac160583000086bc8 | 1a80ea9c8e28902cadbfb612896bcd45ba4ce697 | refs/heads/master | 1,626,839,620,164 | 1,509,113,016,000 | 1,509,122,889,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,050 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.level init.category.monad init.meta.rb_map
universes u v
structure pos :=
(line : nat)
(column : nat)
instance : decidable_eq p... |
a65261d3eed7ec283f71c1034f97fd9d5f8304c5 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/analysis/normed_space/basic.lean | f06ff9a28983dea7aeaa862dc5d7994a724600dd | [
"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 | 34,269 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Normed spaces.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.pi_instances
import linear_algebra.basic
import topology.instances.nnreal topology.instances.complex
import topology.a... |
2e0450872390066a5b7defded8ad73f58552832e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/functor.lean | e2c68bd7138819ab3ceb6d7a1b3b531dcd7c0c67 | [] | 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 | 11,033 | lean | /-
Copyright (c) 2017 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.ext
import Mathlib.tactic.lint.default
import Mathlib.PostPort
universes u v u_1 u_2 u_3 w... |
0126b38166aa6d9243836ef87899923ebb0d4f84 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/category_theory/subobject/basic.lean | 9835c8ef18407409a4087f6feaeb64c664ffd00a | [
"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 | 17,644 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.subobject.mono_over
import category_theory.skeletal
/-!
# Subobjects
We define `subobject X` as the quotient (by isomorphisms) of... |
1ebc344e36794f08e0e45d6d122f7cb586d8b026 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch4/ex0201.lean | d3a55cf8725d22c75d90858f027b5497f82ddb86 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 47 | lean | #check eq.refl
#check eq.symm
#check eq.trans
|
1e4a439e57a4bd9ad745aae266648eb8efd3f3c5 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /src/analysis/normed_space/inner_product.lean | 1a023bc2320919ca4568a24ed8daaae30693304d | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 125,314 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis, Heather Macbeth
-/
import analysis.complex.basic
import analysis.normed_space.bounded_linear_maps
import analysis.special_functions.sq... |
65b8b4ba802fe549b251946a5bde144889910654 | 4767244035cdd124e1ce3d0c81128f8929df6163 | /data/polynomial.lean | 5f1e1c4613a9bd72fa334d250aeee0cdd5e98521 | [
"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 | 71,241 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Jens Wagemaker
Theory of univariate polynomials, represented as `ℕ →₀ α`, where α is a commutative semiring.
-/
import data.finsupp algebra.euclidean_domai... |
791e44223898f49b40248a6fbe7337bcf48471c8 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/data/seq/seq.lean | 8d629f9f4ad3a028cdf52e9f2bb69cb181c14231 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 28,534 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import tactic.basic
import data.list.basic data.stream data.lazy_list data.seq.computation logic.basic
universes u v w
/-
coinductive seq (α : Type u) : Type u
| nil... |
16d64ab7266493606a07b8d0379f99955ad57b03 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/data/multiset.lean | 3a52a0641b2345fc7ec6d96896aa9d2a41f15ad8 | [
"Apache-2.0"
] | permissive | thjread/mathlib | a9d97612cedc2c3101060737233df15abcdb9eb1 | 7cffe2520a5518bba19227a107078d83fa725ddc | refs/heads/master | 1,615,637,696,376 | 1,583,953,063,000 | 1,583,953,063,000 | 246,680,271 | 0 | 0 | Apache-2.0 | 1,583,960,875,000 | 1,583,960,875,000 | null | UTF-8 | Lean | false | false | 135,168 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Multisets.
-/
import logic.function order.boolean_algebra
data.equiv.basic data.list.basic data.list.perm data.list.sort data.quot data.string.basic
algebra.o... |
d03a7f644eb961ed83ce19bd657cfaf66fb1a2cf | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/affine_space/independent.lean | 8a7b05614abe238ec7c841486ae1c9c7c3be0c2b | [
"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,457 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Joseph Myers.
-/
import data.finset.sort
import data.matrix.notation
import linear_algebra.affine_space.combination
import linear_algebra.basis
/-!
# Affine independence
This file defin... |
3caa868007985329e7ebe2aec0d1295362c2e1f9 | 6e36ebd5594a0d512dea8bc6ffe78c71b5b5032d | /src/submissions/practice_2.lean | e5294862c4ae31ef5f6799ae8d6846e4fba81527 | [] | no_license | wrw2ztk/cs2120f21 | cdc4b1b4043c8ae8f3c8c3c0e91cdacb2cfddb16 | f55df4c723d3ce989908679f5653e4be669334ae | refs/heads/main | 1,691,764,473,342 | 1,633,707,809,000 | 1,633,707,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,747 | lean | /-
Wyndham White (working alone)
wrw2ztk
https://github.com/wyndhamv/cs2120f21.git
-/
/-
Prove the following simple logical conjectures.
Give a formal and an English proof of each one.
Your English language proofs should be complete
in the sense that they identify all the axioms
and/or theorems that you use.
-/
examp... |
3ccf7a631d9978c5f81d03944247322a0ff985d5 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/list/cycle.lean | 8cfba07a9c6a662d6b92af92c0d468f72908a4ac | [
"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 | 30,052 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.multiset.sort
import data.fintype.list
import data.list.rotate
/-!
# Cycles of a list
Lists have an equivalence relation of whether they are rotationa... |
ba2a4fe2a502c9aad0a47f7271e23dd56af72d15 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/tactic/rcases.lean | 19b94534a857f74e1446d1fac4b805782d06eea9 | [
"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 | 41,920 | 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.dlist
import tactic.core
import tactic.clear
/-!
# Recursive cases (`rcases`) tactic and related tactics
`rcases` is a tactic that will perform `cases`... |
26e5ed10eec03cf2ed81ee320dec10f31f2af249 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/measure_theory/set_integral.lean | 492f21c5626f88a3785276339772976dac03b72c | [
"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,934 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.integrable_on
import measure_theory.bochner_integration
/-!
# Set integral
In this file we prove some properties of `∫ x in s, ... |
ebdadea2e2a25819b4699f22eb248db6cca32d2f | bb31430994044506fa42fd667e2d556327e18dfe | /src/order/filter/basic.lean | e4e33dbfccce44b2663d4913a8c3840161e0a4d2 | [
"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 | 111,699 | 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, Jeremy Avigad
-/
import control.traversable.instances
import data.set.finite
import order.copy
import tactic.monotonicity
/-!
# Theory of filters on sets
## Main defi... |
e30259a35d4164ec350a5ecafbd59755965b8605 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/matrix/block.lean | 0b79438b9f1e0ec0f94382e1ab598bcc4611876e | [
"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,848 | 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, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.determinant
import linear_algebra.matrix.nonsingular_inverse
import tactic.fin_cases
/-!
# Blo... |
64edc08f76d1894b938817921b1b81d25cb3e5b5 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/group_theory/order_of_element.lean | 44eb664b3460a8840ca4dae77c459ce8512b6065 | [
"Apache-2.0"
] | permissive | kbuzzard/mathlib | 2ff9e85dfe2a46f4b291927f983afec17e946eb8 | 58537299e922f9c77df76cb613910914a479c1f7 | refs/heads/master | 1,685,313,702,744 | 1,683,974,212,000 | 1,683,974,212,000 | 128,185,277 | 1 | 0 | null | 1,522,920,600,000 | 1,522,920,600,000 | null | UTF-8 | Lean | false | false | 40,073 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Julian Kuelshammer
-/
import algebra.hom.iterate
import data.nat.modeq
import data.set.pointwise.basic
import data.set.intervals.infinite
import dynamics.periodic_pts
i... |
bbac251a9f066ea64e29765557f68e2a9f2d71d5 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Lean/Meta/DiscrTreeTypes.lean | dad9d787b3318e1ae311e6fb015f9975919d4983 | [
"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,476 | 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.Expr
namespace Lean
namespace Meta
/- See file `DiscrTree.lean` for the actual implementation and documentation. -/
namespace DiscrTree
indu... |
91757aa7f51202475f2d34da86373a6df38229fb | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/hausdorff_distance.lean | a8150266b51aa279f09706bc55dccaa4a87660ba | [
"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 | 66,548 | 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.specific_limits.basic
import topology.metric_space.isometric_smul
import topology.metric_space.isometry
import topology.instances.ennreal
/-!
#... |
48645d056b763c531318cf88972c2cec9dbeea11 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/category_theory/abelian/basic_auto.lean | bad4f4b166110136a7d45d0ec70b0d556f932b8f | [] | 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 | 20,354 | 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.limits.constructions.pullbacks
import Mathlib.category_theory.limits.shapes.b... |
a182d8e09d830f8136cf290d34c5701687a35cfc | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/beginend2.lean | 87cda77bc36a8d6686025b1b05b92610217b24e5 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 336 | lean | import hott.path tools.tactic
open path tactic
open path (rec_on)
definition concat_whisker2 {A} {x y z : A} (p p' : x ≈ y) (q q' : y ≈ z) (a : p ≈ p') (b : q ≈ q') :
(whiskerR a q) ⬝ (whiskerL p' b) ≈ (whiskerL p b) ⬝ (whiskerR a q') :=
begin
apply (rec_on b),
apply (rec_on a),
apply ((concat_1p _)⁻¹),
end
|
88e7a58317edb2c7742a165b0b5c29cda51361a0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/reflect_type_defeq.lean | 73bcdc11ecba8a1b09128095b02e0d5d43b8f31c | [
"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 | 445 | lean | meta def foo (x : reflected ℕ 3) : reflected (list ℕ) [10] :=
x -- ERROR
def synonym (α : Type) : Type := α
def synonym.of {α : Type} (a : α) : synonym α := a
meta instance synonym.reflect {α : Type} [h : has_reflect α] [reflected _ α] :
has_reflect (synonym α) :=
λ x, show reflected _ (synonym.of x), from `(synon... |
c2ea9af3c8f63ae28f93808e8a28a44f9f35fb8a | 618003631150032a5676f229d13a079ac875ff77 | /src/category_theory/monad/limits.lean | beb3cdb4b4d6b5b346a78549bc935b46c2216473 | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 10,326 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.monad.adjunction
import category_theory.adjunction.limits
namespace category_theory
open category
open category_theory.limits
u... |
fae3c8d0e6b1fe974bc457fadb64462951f8669e | e39f04f6ff425fe3b3f5e26a8998b817d1dba80f | /data/nat/basic.lean | bab97254987619bfb5935f09c5135b169d1bc087 | [
"Apache-2.0"
] | permissive | kristychoi/mathlib | c504b5e8f84e272ea1d8966693c42de7523bf0ec | 257fd84fe98927ff4a5ffe044f68c4e9d235cc75 | refs/heads/master | 1,586,520,722,896 | 1,544,030,145,000 | 1,544,031,933,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,352 | 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
Basic operations on the natural numbers.
-/
import logic.basic algebra.ordered_ring data.option
universes u v
na... |
b985fee2369c97f1f2e9554faaba75e7b7876fe8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/congr_tac2.hlean | 5ffe45173b6329a3ae17dd622b62d17b7e86d742 | [
"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 | 260 | hlean | open nat is_trunc
example (f : Π (a b : nat), a = b → nat) (a₁ a₂ b₁ b₂ : nat) (h₁ : a₁ = b₁) (h₂ : a₂ = b₂) : a₁ = a₂ → b₁ = b₂ → f a₁ b₁ h₁ = f a₂ b₂ h₂ :=
begin
intros,
congruence,
repeat assumption
end
|
f92c0782f215eb87c95db54bbef9e2a58595bc09 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /library/data/int/order.lean | fcded9a115c20c53c369a7e857daed841b916ec7 | [
"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 | 32,023 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.int.order
Authors: Floris van Doorn, Jeremy Avigad
The order relation on the integers. We show that int is an instance of linear_comm_ordered_ring
and transfer the results.
-/
... |
5a582b9938269b4c7d165de14d6b99637a9b1561 | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/run/all_goals2.lean | bbbf02b6094776adccdd5d710b894f7e44cc9aae | [
"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 | 424 | lean | import data.nat
open nat
attribute nat.add [unfold-c 2]
attribute nat.rec_on [unfold-c 2]
namespace tactic
definition then_all (t1 t2 : tactic) : tactic :=
focus (t1 ; all_goals t2)
infixl `;;`:15 := tactic.then_all
end tactic
open tactic
example (a b c : nat) : (a + 0 = 0 + a ∧ b + 0 = 0 + b) ∧ c = c :=
begi... |
520939b59b4ef2a11d4ca5689b76a482ac98cba5 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/monad/basic.lean | 2d43bd6797dbda98f2230232c5d9dfea4b02af5c | [
"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,288 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta, Adam Topaz
-/
import category_theory.functor_category
import category_theory.fully_faithful
namespace category_theory
open category
universes v₁ u₁ -- m... |
fed032ca75e8ecd54af76c7047b69efb5ae984a5 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/category_theory/limits/presheaf.lean | 8294e172df9c08c788e61e36186e3d16933f2058 | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,099 | 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.adjunction
import category_theory.elements
import category_theory.limits.functor_category
import category_theory.limits.preserves.limits
import cat... |
3f092bb6781af956f6f72f2c1b12baf497c0a3a9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/preadditive/opposite.lean | f492483e15cab20a20e59aea00c4ae6ec79f001c | [
"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,818 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Adam Topaz
-/
import category_theory.preadditive
import category_theory.preadditive.additive_functor
import logic.equiv.transfer_instance
/-!
# If `C` is preadditive, ... |
7a6ef5ccb42c292853101ab9c5a7668bf3802d87 | fe84e287c662151bb313504482b218a503b972f3 | /src/data/unique_element.lean | 4816b0c2a6011d5c4182e6388bc57d0a103ef983 | [] | 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 | 13,623 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
In classical mathematics, if we prove that there is a unique element
x with a certain property p x, then we can treat that as a valid
definition of x and use x as a ... |
733f0dfa2bf154b68018cbad9dfae147e6769e04 | c8af905dcd8475f414868d303b2eb0e9d3eb32f9 | /src/data/cpi/prefix_expr.lean | a0504917186c8dbf864bd79704952bca467a8682 | [
"BSD-3-Clause"
] | permissive | continuouspi/lean-cpi | 81480a13842d67ff5f3698643210d8ed5dd08de4 | 443bf2cb236feadc45a01387099c236ab2b78237 | refs/heads/master | 1,650,307,316,582 | 1,587,033,364,000 | 1,587,033,364,000 | 207,499,661 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,726 | lean | import data.cpi.name
import data.list.witness
namespace cpi
/-- A telescope may extend a context by 0 or 1 levels. This is effectively a
function on contexts, but having it be inductive allows us to case split on
it, simplifying some proofs. -/
@[derive decidable_eq, nolint has_inhabited_instance]
inductive t... |
fa1e367eb76701cd11cf6231d37ea1472f188195 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/def_inaccessible_issue.lean | 361df887b4d2ca960ea3be535846852688a52bd3 | [
"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 | 388 | lean | open nat
set_option pp.binder_types true
inductive bv : nat → Type
| nil : bv 0
| cons : ∀ (n) (hd : bool) (tl : bv n), bv (n+1)
open bv
variable (f : bool → bool → bool)
definition map2 : ∀ {n}, bv n → bv n → bv n
| 0 nil nil := nil
| (n+1) (cons .(n) b1 v1) (cons .(n) b2 v2) := cons n... |
12d49638dfb89edcee9d7c9a58adf2f093d31620 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cases_tac1.lean | 1c5bc1c499a86a883dae40d9522bd90d50d9cdfb | [
"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 | 1,030 | lean | inductive {u} vec (A : Type u) : nat → Type u
| nil : vec 0
| cons : ∀ {n}, A → vec n → vec (n+1)
open tactic nat vec
def head {A : Type*} : ∀ {n : nat}, vec A (n+1) → A
| n (cons h t) := h
def tail {A : Type*} : ∀ {n : nat}, vec A (n+1) → vec A n
| n (cons h t) := t
@[simp] lemma head_cons {A : Type*} {n : nat} (... |
3278386e004925613bf3b57256fab23b47d771d5 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/group_power/order.lean | 777cf2584405f2215b05cb284db261de8f735ec5 | [
"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,787 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
-/
import algebra.order.ring
import algebra.group_power.basic
/-!
# Lemmas about the interaction of power operations with order
Note that some lemmas ar... |
415cd20112c200e56370d2ec75722f41ed1414ef | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/connected.lean | f066ce70b7849620aaafbd07c50ff5f3e8acfbf0 | [
"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,909 | 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.binary_products
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.wide_pullbacks
import category_t... |
f1ae2f3f1af06c2324a6c05404973aa894befb2a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/levelNGen.lean | c071d396f088ab44b90c50fe00e55c4b26ee3d1e | [
"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 | 200 | lean | opaque test1 {α : Sort _} : α → Sort u_1
#check test1
def test2 {α : Sort _} : α → Sort u_1 := sorry
#check test2
variable {α : Sort _} in theorem test3 : α → Sort _ := sorry
#check test3
|
5913ffd44b53b7ecde1dd7eed7cb42bad430ce2d | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /stage0/src/Lean/PrettyPrinter.lean | ea5fba190266004341b60d48183ea4fe7eca1efe | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,722 | lean | /-
Copyright (c) 2020 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Delaborator
import Lean.PrettyPrinter.Parenthesizer
import Lean.PrettyPrinter.Formatter
import Lean.Parser.Module
namespace Lean
namespace PrettyPr... |
efed31a99e21b1b30c042aa997eb0c2530974306 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/data/nat/lemmas.lean | 7b9e7db9be7f8d467abb5218b97e6380ae19466e | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,871 | 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, Jeremy Avigad
-/
prelude
import init.data.nat.basic init.meta init.algebra
namespace nat
attribute [pre_smt] nat_zero_eq_zero
protected lemma zero_add : ∀ n... |
8c9b3dbba9c59d6ee6373ae40ba097a840b7a1f8 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/category/Algebra/limits.lean | 94b53468313f573f4fa431b98a0ea59ef51e83f0 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 5,263 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.category.Algebra.basic
import algebra.category.Module.limits
import algebra.category.CommRing.limits
/-!
# The category of R-algebras has all limits
... |
03b321bf4d1cd2d3ac973648d55288cf4688a165 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Util/Lift.lean | ca034c567c896ec8579ddddc5258eca9aedade86 | [
"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,314 | lean | /-
Copyright (c) 2022 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone
-/
import Lake.Util.OptionIO
namespace Lake
instance [Pure m] : MonadLiftT Id m where
monadLift act := pure act.run
instance [Alternative m] : MonadLiftT Option m where
m... |
2915458ed34b69c707cba14a3de93d8b6bc37b11 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2014/IMO_2014_P3.lean | fb601502041a6b9ce88c8db42d8159e9a0263b6e | [
"Apache-2.0"
] | permissive | liaofei1128/geometry | 566d8bfe095ce0c0113d36df90635306c60e975b | 3dd128e4eec8008764bb94e18b932f9ffd66e6b3 | refs/heads/master | 1,678,996,510,399 | 1,581,454,543,000 | 1,583,337,839,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 600 | lean | import Geo.Geo.Core
namespace Geo
open Analytic Angle Quadrilateral
def IMO_2014_P3 : Prop :=
∀ (A B C D : Point),
convex ⟨A, B, C, D⟩ →
Angle.isRight ⟨A, B, C⟩ → -- ryankrue: should we use Analytic.degToRadians 90 here?
Angle.isRight ⟨C, D, A⟩ → -- same as above
let H := foot A ⟨B, D⟩;
∀ (S T : Point),
on S (Seg.mk... |
2907506911d939e4c78868ccaf99772d7d3d2579 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/field_theory/splitting_field.lean | 8532f8a6f9df3fde8b21d980fa55024099ee03a5 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 7,855 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
Definition of splitting fields, and definition of homomorphism into any field that splits
-/
import ring_theory.unique_factorization_domain
import data.polynomial ring_the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.