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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
068c95093aafba0e12dad38df9e3f44859ecdc0c | c777c32c8e484e195053731103c5e52af26a25d1 | /src/order/category/BoolAlg.lean | 08e38c978beb0a8caa5d2f07b8f265fd5caf7b9b | [
"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 | 2,650 | 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 order.category.HeytAlg
/-!
# The category of boolean algebras
This defines `BoolAlg`, the category of boolean algebras.
-/
open order_dual opposite set
univers... |
cfda72ca11a62033f1efa076dcd120781547378b | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/injection_tactic.lean | b8b1ceec10e9efc01c158b30d695e33e26062995 | [
"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 | 2,723 | 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.tactic init.function
namespace tactic
open nat tactic environment expr list
private meta def at_end₂ (e₁ e₂ : expr) : ℕ → tactic ... |
50e727eaf174a2038710204a55770e38055c7e65 | ff5230333a701471f46c57e8c115a073ebaaa448 | /library/init/category/option.lean | e022dd476df97e09cc4845620fb81a4bf258b0e5 | [
"Apache-2.0"
] | permissive | stanford-cs242/lean | f81721d2b5d00bc175f2e58c57b710d465e6c858 | 7bd861261f4a37326dcf8d7a17f1f1f330e4548c | refs/heads/master | 1,600,957,431,849 | 1,576,465,093,000 | 1,576,465,093,000 | 225,779,423 | 0 | 3 | Apache-2.0 | 1,575,433,936,000 | 1,575,433,935,000 | null | UTF-8 | Lean | false | false | 2,127 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import init.category.alternative init.category.lift init.category.except
universes u v
structure option_t (m : Type u → Type v)... |
2e9fb3b90b70d68469aa02f658ffc83e7d942606 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/pp_goal_issue.lean | 08f33be1d5f52c0fa419624802904693e809777c | [
"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 | 369 | lean | constant f : (nat → nat → Prop) → Prop
example (h1 : false) : ∀ (a b c : nat), a = 0 → b = 0 → f (λ x y, a + x = b + c + y) :=
begin
intros x x y h h, -- Force name clash
trace_state,
contradiction
end
example (h1 : false) : ∀ (a b c : nat), a = 0 → b = 0 → f (λ x y, a + x = b + c + y) :=
begin
intros,
trac... |
e2af4947a0e352c2b5f4beaccbe0f2ec1c1d70d8 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/sebastien_coe_simp.lean | 71ebc36052f770436d6a96700b51fd7c85605d4d | [
"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 | 540 | lean | variable (α : Type*)
structure my_equiv :=
(to_fun : α → α)
instance : has_coe_to_fun (my_equiv α) _ := ⟨my_equiv.to_fun⟩
def my_equiv1 : my_equiv α :=
{ to_fun := id }
def my_equiv2 : my_equiv α :=
{ to_fun := id }
@[simp] lemma one_eq_two : my_equiv1 α = my_equiv2 α := rfl
lemma other (x : ℕ) : my_equiv1 ℕ (x +... |
7ec94771b0296a5b80b2fb309599b017352cbfc6 | e514e8b939af519a1d5e9b30a850769d058df4e9 | /src/lib_unused/expr.lean | 52916b12b9f80c23c8627cf5c017a29882a354ec | [] | no_license | semorrison/lean-rewrite-search | dca317c5a52e170fb6ffc87c5ab767afb5e3e51a | e804b8f2753366b8957be839908230ee73f9e89f | refs/heads/master | 1,624,051,754,485 | 1,614,160,817,000 | 1,614,160,817,000 | 162,660,605 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,269 | lean | import data.list
import tactic.where
import lib.string
namespace binder
meta def set_name : binder → _root_.name → binder
| ⟨_, bi, e⟩ n := ⟨n, bi, e⟩
meta def set_type : binder → expr → binder
| ⟨n, bi, _⟩ e := ⟨n, bi, e⟩
meta def set_binder_info : binder → _root_.binder_info → binder
| ⟨n, _, e⟩ bi := ⟨n, bi, e⟩... |
4894ce380042827fe598d6a1db978c573a5a970c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/set_family/lym.lean | 8d47f70ced332e14ef8dcf0aafbe2ada25a96df4 | [
"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 | 9,426 | lean | /-
Copyright (c) 2022 Bhavik Mehta, Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Alena Gusakov, Yaël Dillies
-/
import algebra.big_operators.ring
import algebra.order.field.basic
import combinatorics.double_counting
import combinatorics.se... |
be48987d11f516d45f25fdff6970f3a099a74c31 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/topology/algebra/continuous_functions.lean | 773f8dbe4b742be5fee2515dae6918c8065af5ef | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 7,819 | 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 topology.algebra.module
/- TODO: change subtype of continuous functions into continuous bundled functions. -/
universes u v
local attribute [elab_simple] co... |
adf9330782532bb10f049fc6e92958b39cd58ea1 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/number_theory/primorial.lean | 0a8783bf1999021e2c5b94c8a2e4d45ed2722ebc | [
"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 | 7,372 | lean | /-
Copyright (c) 2020 Patrick Stevens. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Stevens
-/
import tactic.ring_exp
import data.nat.parity
import data.nat.choose.sum
/-!
# Primorial
This file defines the primorial function (the product of primes less than... |
aacff130321849619e5ff86a3b592868e6e51e13 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /field_theory/subfield.lean | fef9b531c2f137c6efe64b90053b30c6e9e1cd13 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 2,009 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow
-/
import ring_theory.subring
variables {F : Type*}
class is_subfield [field F] (s : set F) extends is_subring s :=
(inv_mem : ∀ {x : F}, x ∈ s → x⁻¹ ∈ s)
open i... |
c328b62ae18059e57e8c31f0f175d5b40c2cf812 | 7c2dd01406c42053207061adb11703dc7ce0b5e5 | /src/solutions/04_exists.lean | 693bbd345cdcdb3174b815a3ac6cda05d9bf64ff | [
"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 | 3,021 | lean | import data.real.basic
import data.int.parity
/-
In this file, we learn how to handle the ∃ quantifier.
In order to prove `∃ x, P x`, we give some x₀ using tactic `use x₀` and
then prove `P x₀`. This x₀ can be an object from the local context
or a more complicated expression.
-/
example : ∃ n : ℕ, 8 = 2*n :=
begin
... |
3e1126d05a9d718c225633bce7ed8c45401d15af | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/eqn_compiler_error_msg.lean | fb8c3758eb5327dfc93a728e5a1db1d2a5541c7e | [
"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 | 126 | lean | inductive R : ℕ → Prop
| pos : ∀p n, R (p + n)
lemma R_id : ∀n, R n → R n
| (.(p) + .(n)) (R.pos p n) := R.pos p n
|
7a863642dc12be35fa9fb808fa923acb3eeacdc5 | 9a2260f3b7b64ae9c50bf326fdb0387f5ac64683 | /src/NITRO/Tags.lean | 9986ab8aa0af309ca635617d3882790f5798eaf6 | [
"LicenseRef-scancode-mit-taylor-variant",
"LicenseRef-scancode-warranty-disclaimer"
] | permissive | o89/nitro | e8e1c7f3e7baeb7a659f899c605d37b1d3e553a6 | c62a67398a89d6e6a2e9da62350adaf5f17cfda9 | refs/heads/master | 1,670,068,174,264 | 1,669,086,407,000 | 1,669,086,407,000 | 204,147,098 | 3 | 5 | null | null | null | null | UTF-8 | Lean | false | false | 2,690 | lean | import N2O.Data.BERT
abbrev Name := String
inductive Attr : Type
| int : Name → Int → Attr
| str : Name → String → Attr
| list : Name → List String → Attr
| noVal : Name → Attr
structure Event (α : Type) :=
(source : List String) (type : String) (postback : α)
inductive Elem (α : Type) : Type
| tag : Name → Li... |
4aca61e58b99b9af4c6db21025a80357e175d81e | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/nat/choose/dvd.lean | de94388ca425d7ec76028d139728b5ffe6e92be9 | [
"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 | 1,784 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Patrick Stevens
-/
import data.nat.choose.basic
import data.nat.prime
/-!
# Divisibility properties of binomial coefficients
-/
namespace nat
open_locale nat
namespace ... |
b6aa521b67658928ce3a04c8dbc13ca8bc30a154 | 827a8a5c2041b1d7f55e128581f583dfbd65ecf6 | /cpp.hlean | bee40329e7763ba3e8c3708b073093e6a0ab429b | [
"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 | 12,398 | hlean | import core hit.colimit hit.trunc homotopy.connectedness
open eq is_trunc unit quotient seq_colim pi nat equiv sum is_conn
/-
This is the formalization which is part of the paper
Constructing the Propositional Truncation using non-recursive HITs
submitted to CPP 2016.
-/
/-
Call a function f weakly constan... |
5920e78b54bbcc0a32698fd394ce2cad3f229a99 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/linear_algebra/direct_sum/finsupp.lean | 0b10bdff4d04aa5d666462460f563fc99c26cdcc | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 3,264 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import linear_algebra.finsupp
import linear_algebra.direct_sum.tensor_product
/-!
# Results on direct sums and finitely supported functions.
1. The linear equivalenc... |
c478fea468450ea4f7108b0013a4755147d04266 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/1333.lean | fe22ce1596ead3cf5ce138860df5e1dde248e203 | [
"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 | 569 | lean | example
(h1 : a = b + 3)
(h2 : b = c + 2)
(h3 : c = d + 1)
(h4 : d = e + 4)
(useless : a = x + 1)
(H : a = 10) :
e = 0 := by
simp [*, -useless] at H
exact H
example
(useless : a = x + 1)
(h1 : a = b + 3)
(h2 : b = c + 2)
(h3 : c = d + 1)
(h4 : d = e + 4)
(H : a = 10) :
e = 0 := by
sim... |
17be467dcbfcfa940eb4dd90ef113a1e7b60f0ff | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/native/cf.lean | 7ce9801ab80868c5a23d8d8bee0b4f914a0ac0fe | [
"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 | 2,477 | lean | /-
Copyright (c) 2016 Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch
-/
prelude
import init.meta.format
import init.meta.expr
import init.data.string
import init.category.state
import init.native.ir
import init.native.format
import init.nati... |
1388f6543ee3e3e9c25f346184266318bdb870c8 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/algebraic_geometry/stalks.lean | 7e86cc44cc5461da3d5c309014818956f6d650b0 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 2,828 | 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 algebraic_geometry.presheafed_space
import topology.sheaves.stalks
/-!
# Stalks for presheaved spaces
This file lifts constructions of stalks and pushforward... |
483e70f03488875d403c5bf6630fb54db8e2a21a | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/algebra/category/iso.hlean | 6d6a16bede2dbaa8c76d2860ecbc3a0345c5a67b | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 19,642 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
-/
import .precategory types.sigma arity
open eq category prod equiv is_equiv sigma sigma.ops is_trunc
namespace iso
structure split_mono [clas... |
d4c4334bded141773611a0510023eae84258d003 | 59b654f4ee2fef898a3487dc03554a569051b63a | /src/old/playground.lean | 0569ffb1ccd7e0fcf520a83ba5037255baeb1069 | [] | no_license | gunpinyo/twisted_cube_formalisation | 180c9157478b66ec2b11ca47c8ff998a3e978a88 | f78206ac495e84bd43a9b820fa10b6c94722e0ec | refs/heads/master | 1,624,501,222,992 | 1,607,081,624,000 | 1,607,081,624,000 | 166,885,106 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,499 | lean | -- import utils
variable b : bool
#check b.rec_on
#check nat.add
inductive fin' : ℕ → Type
| zero : fin' 0
| succ : Π {n : ℕ}, fin' n → fin' (n +1)
-- example : ∀ (n : ℕ) (i : fin n), i.cast_succ = (↑i : fin (n +1)) :=
-- def foo (n : ℕ) : fin n → bool
-- | 0 := false
-- | (i +1) := true
-- def fin_cycle : Π n ... |
ed0f6ccbc167862a544c25d8ed26f451ffa50f38 | e030b0259b777fedcdf73dd966f3f1556d392178 | /library/init/data/list/lemmas.lean | cf008525602f89055755440265cd3f21ce16b903 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 7,922 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn
-/
prelude
import init.data.list.basic init.function init.meta
universe variables u v
variables {α : Type u} {β :... |
9cd96b8aafb2102157683c7a9a8859027f4bc00b | 827124860511172deb7ee955917c49b2bccd1b3c | /data/containers/utils/list.lean | fa7f0456eeb959503a89bde265431677306214c1 | [] | no_license | joehendrix/lean-containers | afec24c7de19c935774738ff3a0415362894956c | ef6ff0533eada75f18922039f8312badf12e6124 | refs/heads/master | 1,624,853,911,199 | 1,505,890,599,000 | 1,505,890,599,000 | 103,489,962 | 1 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 609 | lean | /- Additional theroems for list. -/
import data.list
import .option
namespace list
theorem find_append {α : Type _} (p : α → Prop) [decidable_pred p] (x y : list α)
: list.find p (x ++ y) = (list.find p x <|> list.find p y) :=
begin
induction x,
case list.nil {
simp [list.find, option.none_or_else],
},
ca... |
d11be4fed237655917ebde4261bd8fe5c9fdbad2 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/doNotation2.lean | 639c209b3e93a4623d73dc6fe0e5e56c2a71a15e | [
"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 | 4,083 | lean | def f (x : Nat) : IO Nat := do
IO.println "hello world"
let aux (y : Nat) (z : Nat) : IO Nat := do
IO.println "aux started"
IO.println s!"y: {y}, z: {z}"
pure (x+y)
discard <| aux x
(x + 1) -- It is part of the application since it is indented
discard <| aux x (x -- parentheses use `withoutPosition`
-1)
discard... |
ed22d1ddc998260f6544ba4efe681124bd35bd63 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/equivalence.lean | f421667168bf9b584d7fc86ba31fb94229f1a789 | [
"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 | 27,463 | 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.functor.fully_faithful
import category_theory.full_subcategory
import category_theory.whiskering... |
6eb4d0c18ed67052fddcd8d76a54b05472c128e0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/pp_beta.lean | 5103fdaae91680c670b845db4b247dda532a722d | [
"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 | 86 | lean | open nat
#check (λ x : nat, x) 1
set_option pp.beta true
#check (λ x : nat, x) 1
|
64a09432e38cf9a2c6027eb285d098b76ee8ce56 | d6124c8dbe5661dcc5b8c9da0a56fbf1f0480ad6 | /Papyrus/Script/SyntaxUtil.lean | d4e9b2e383fc0ff8dc36333dde7182845fe9fc18 | [
"Apache-2.0"
] | permissive | xubaiw/lean4-papyrus | c3fbbf8ba162eb5f210155ae4e20feb2d32c8182 | 02e82973a5badda26fc0f9fd15b3d37e2eb309e0 | refs/heads/master | 1,691,425,756,824 | 1,632,122,825,000 | 1,632,123,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 493 | lean | open Lean Syntax
namespace Papyrus.Script
def mkEvalAt (tk : Syntax) (stx : Syntax) : Syntax :=
mkNode `Lean.Parser.Command.eval #[mkAtomFrom tk "#eval ", stx]
def identAsStrLit (id : Syntax) : Syntax :=
mkStrLit (info := SourceInfo.fromRef id) <| id.getId.toString (escape := false)
def mkCAppFrom (src : Syntax)... |
01f9303df5c52d60d7e0fa927c12446a24783d91 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/meta/rb_map.lean | 4fd4ce1b100965be2382e1a74e1b07fb99bb1963 | [
"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 | 3,627 | 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... |
61e4609478c9e41c7554e35a81ab0401711c3ca3 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/graded_algebra/basic.lean | ae34e467f49e6b9c60ee0631613eaa77c13a3f55 | [
"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 | 9,707 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Kevin Buzzard, Jujian Zhang
-/
import algebra.direct_sum.algebra
import algebra.direct_sum.decomposition
import algebra.direct_sum.internal
import algebra.direct_sum.ring
imp... |
376f5f02a3817b48f046994c1f5bb7ddc1b6e183 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/ring_theory/subsemiring/basic.lean | b39772122725f6f0908fdf148a9c482ed074b6e3 | [
"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 | 44,276 | 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.module.basic
import algebra.ring.equiv
import algebra.ring.prod
import data.set.finite
import group_theory.submonoid.centralizer
import group_theory.... |
3b7267b3a3d006d60e195df4b681f25582fb4390 | 5c4b17dae42fab1d4f493f3b52977bffa54fefea | /4.6.5.lean | 9ed261a7476d268348f22259e32969dfb282ddd8 | [] | no_license | hyponymous/theorem-proving-in-lean-solutions | 9214cb45cc87347862fd17dfdea79fdf24b9df92 | a95320ae81c90c1b15da04574602cd378794400d | refs/heads/master | 1,585,777,733,214 | 1,541,039,359,000 | 1,541,039,359,000 | 153,676,525 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,195 | lean | open classical
variables (α : Type) (p q : α → Prop)
variable a : α
variable r : Prop
--
-- using exists.elim
example : (∃ x : α, r) → r :=
assume h : ∃ x : α, r,
show r, from
exists.elim h
(assume w,
assume hw : r,
hw)
-- using match
example : (∃ x : α, r) → r :=
assume h : ∃ x : α, r,
match h with ⟨w,... |
31e5b70cf883f0ba67a62ec95cbdc04a43f54af0 | 367134ba5a65885e863bdc4507601606690974c1 | /test/derive_fintype.lean | 272e8e98c9bea7285c65e01ca8128cdb705e2d7c | [
"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 | 1,041 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import tactic.derive_fintype
@[derive fintype]
inductive alphabet
| a | b | c | d | e | f | g | h | i | j | k | l | m
| n | o | p | q | r | s | t | u | v | w | x | y... |
14fc3e8927a5ba31c83a6fff0eadb3f013bc69a6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/category/Mon/filtered_colimits.lean | 37fd60e8dcbdaf4ce4edffaba7e8e7f84584af0c | [
"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 | 14,404 | lean | /-
Copyright (c) 2021 Justus Springer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Justus Springer
-/
import algebra.category.Mon.basic
import category_theory.limits.preserves.filtered
import category_theory.concrete_category.elementwise
import category_theory.limit... |
4317e4971b107c937559eb5de9478554faef7b6c | 842b7df4a999c5c50bbd215b8617dd705e43c2e1 | /test.lean | fbac46fc027e1f79063a6dc0a09027c6ca5b8ba9 | [] | no_license | Samyak-Surti/LeanCode | 1c245631f74b00057d20483c8ac75916e8643b14 | 944eac3e5f43e2614ed246083b97fbdf24181d83 | refs/heads/master | 1,669,023,730,828 | 1,595,534,784,000 | 1,595,534,784,000 | 282,037,186 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44 | lean | example: 2 + 2 = 4 :=
begin
trivial
end
|
aed79b06e1b664113919f0b440b5a25b90925bc1 | 60bf3fa4185ec5075eaea4384181bfbc7e1dc319 | /src/game/order/level03.lean | 039b74520702129d6b5f432509f759ddd01a42c1 | [
"Apache-2.0"
] | permissive | anrddh/real-number-game | 660f1127d03a78fd35986c771d65c3132c5f4025 | c708c4e02ec306c657e1ea67862177490db041b0 | refs/heads/master | 1,668,214,277,092 | 1,593,105,075,000 | 1,593,105,075,000 | 264,269,218 | 0 | 0 | null | 1,589,567,264,000 | 1,589,567,264,000 | null | UTF-8 | Lean | false | false | 807 | lean | import data.real.basic
namespace xena -- hide
/-
# Chapter 2 : Order
## Level 3
Another property of the absolute value.
-/
notation `|` x `|` := abs x --hide
/- Lemma
For any two real numbers $a$ and $b$, we have that
$$|a| ≤ c ↔ -c ≤ a ≤ c$$.
-/
theorem abs_le (a c : ℝ) (h : 0 ≤ c): |a| ≤ c → (-c) ≤ a ∧ a ≤ c :=... |
a953a65e613f0b513d1fbe24a48afeb236cf6d3b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/fix_reflect_string.lean | 2657700a5d25e4cd637176cfa244694e0f50b1f2 | [
"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,546 | lean | /-
Copyright (c) 2020 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
/-!
# Workaround for stack overflows with `has_reflect string`
The default `has_reflect string` instance in Lean only work for strings up to
few thousand characters.... |
ece820ef1be5626440d4692e95ed06f9155bb542 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/polynomial/monic_auto.lean | ec14381c6f1dd0934b7cb3aee576e336d29cad0a | [] | 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 | 5,907 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.polynomial.reverse
import Mathlib.algebra.... |
90635274a8cbe07cadf64ea27663664ce4ad4556 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/locally_convex/abs_convex.lean | b302e21cb2d3cd8ce4c3c73bb74ee292725629de | [
"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,282 | 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 analysis.locally_convex.balanced_core_hull
import analysis.locally_convex.with_seminorms
import analysis.convex.gauge
/-!
# Absolutely convex sets
> THIS FILE IS S... |
4a0a063f2b204a213403ae09177bd1a7b9781c25 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/totient.lean | d78eae8ae6b7ce9ab604edd0e1f4a7c4cbb1958d | [
"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 | 14,621 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import algebra.char_p.two
import data.nat.factorization.basic
import data.nat.periodic
import data.zmod.basic
/-!
# Euler's totient function
This file defines [Euler's ... |
c0694961da80bccdfa9a74c36259be5bd4d019cd | 682dc1c167e5900ba3168b89700ae1cf501cfa29 | /src/basicmodal/syntax/syntaxlemmas.lean | ec300bc407dc3fd9cd1899b9441ddec92eaf622d | [] | no_license | paulaneeley/modal | 834558c87f55cdd6d8a29bb46c12f4d1de3239bc | ee5d149d4ecb337005b850bddf4453e56a5daf04 | refs/heads/master | 1,675,911,819,093 | 1,609,785,144,000 | 1,609,785,144,000 | 270,388,715 | 13 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 7,316 | lean | /-
Copyright (c) 2021 Paula Neeley. All rights reserved.
Author: Paula Neeley
-/
import basicmodal.language basicmodal.syntax.syntax data.set.basic
local attribute [instance] classical.prop_decidable
open prfK
---------------------- Helper Lemmas ----------------------
lemma iden {Γ : ctx} {φ : form} :
prfK Γ (... |
ea645635dc00bd2ffe5d50050f55fb46f47d3f52 | dfbb669f3f58ceb57cb207dcfab5726a07425b03 | /vscode-lean4/test/test-fixtures/multi/foo/lakefile.lean | c6899e54cb6c537c9f37d39a10a89ffbda8c95e4 | [
"Apache-2.0"
] | permissive | leanprover/vscode-lean4 | 8bcf7f06867b3c1d42007fe6da863a7a17444dbb | 6ef0bfa668bdeaad0979e6df10551d42fcc01094 | refs/heads/master | 1,692,247,771,767 | 1,691,608,804,000 | 1,691,608,804,000 | 325,845,305 | 64 | 24 | Apache-2.0 | 1,694,176,429,000 | 1,609,435,614,000 | TypeScript | UTF-8 | Lean | false | false | 194 | lean | import Lake
open Lake DSL
package foo {
-- add configuration options here
}
lean_lib Foo {
-- add library configuration options here
}
@[default_target]
lean_exe foo {
root := `Main
}
|
a0b7a7b1c4fae04d99782e04fc84e0224af69fc1 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/measure_theory/integral/integrable_on.lean | c36a42b963b08723825f58ddbcafdb097c8f48ad | [
"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 | 20,812 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov
-/
import measure_theory.function.l1_space
import analysis.normed_space.indicator_function
/-! # Functions integrable on a set and at a filter
We define... |
25103d12030ba47ff290b3feffd1f94e7e8e770a | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/init/axioms/funext.hlean | 110b876acccd2494d44923af4b1eeec9c7bf41fc | [
"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 | 999 | hlean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Jeremy Avigad, Jakob von Raumer
-- Ported from Coq HoTT
prelude
import ..path ..equiv
open eq
-- Funext
-- ------
-- Define function extensionality as a type class
induct... |
162dcf908a9ee7e6ee4be1609ad86d8bc1d165fa | 8cd4726d66eec7673bcc0325fed07d5ba5bf17c4 | /hw7.lean | ca0f5f2efcab85a49722e5b295fbe70069940a4f | [] | no_license | justinqcai/CS2102 | 8c5fddedffa6147fedd4b6ee7d5d39fc21f0ddab | d309f0db3f1df52eb77206ee1e8665a3b49d7a0c | refs/heads/master | 1,590,108,991,894 | 1,557,610,044,000 | 1,557,610,044,000 | 186,064,169 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,841 | lean | /- Justin Cai, jc5pz -/
/-
Read, and if you have already read, then re-read, the
chapters in the notes on proofs of disjunctions and negations.
We have added some new material, especially under negation
elimination.
In proofs of bi-implications, use comments to mark the start of
the proofs of the implications in ea... |
90399e2670a685b86fb97238b88fae7540957623 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/compiler/t4.lean | ef27a59492e7cb2a5c2181206996b907ce690dbc | [
"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 | 3,388 | lean | /- Benchmark for new code generator -/
inductive Expr
| Val : Int → Expr
| Var : String → Expr
| Add : Expr → Expr → Expr
| Mul : Expr → Expr → Expr
| Pow : Expr → Expr → Expr
| Ln : Expr → Expr
open Expr
def Expr.toString : Expr → String
| Val n => toString n
| Var x => x
| Add f g => "(" ++ Expr.toString f +... |
de1830b14197a4fddb294c58e4a0f3e85f1450e0 | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/1226.lean | cee34cdfbb46fe6f2834d1f996984b78cf4be0c1 | [
"Apache-2.0"
] | permissive | fgdorais/lean | 17b46a095b70b21fa0790ce74876658dc5faca06 | c3b7c54d7cca7aaa25328f0a5660b6b75fe26055 | refs/heads/master | 1,611,523,590,686 | 1,484,412,902,000 | 1,484,412,902,000 | 38,489,734 | 0 | 0 | null | 1,435,923,380,000 | 1,435,923,379,000 | null | UTF-8 | Lean | false | false | 1,657 | lean | open nat
inductive vec (α : Type*) : ℕ → Type*
| nil {} : vec 0
| cons : α → Π {n : nat}, vec n → vec (n+1)
namespace vec
def head {α : Type*} : Π {n : ℕ}, vec α (n+1) → α
| n (cons x xs) := x
end vec
constants (dret : Π {n : ℕ}, vec nat n → (vec nat n → nat) → nat)
axiom dret_spec : Π {n : ℕ} (xs : vec nat n) (f ... |
98ac6ddde76f592a6eb97c509b26f4e9baf9e3d4 | e9dbaaae490bc072444e3021634bf73664003760 | /src/Problems/2005/IMO_2005_P1.lean | b3155a42c373d4db490a70af068a61e4cbcbc743 | [
"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 | 510 | lean | import Geo.Geo.Core
namespace Geo
open Line Polygon Triangle
def IMO_2005_P1 : Prop :=
∀ (A B C : Point),
equilateral ⟨A, B, C⟩ →
∀ (A₁ A₂ B₁ B₂ C₁ C₂ : Point),
allOn [A₁, A₂] (Seg.mk B C) →
allOn [B₁, B₂] (Seg.mk C A) →
allOn [C₁, C₂] (Seg.mk A B) →
convex (Polygon.buildPs [A₁, A₂, B₁, B₂, C₁, C₂]) →
(Polygon.build... |
ea415914e2eb0569020eaa5c525e4f53937770ac | 11e28114d9553ecd984ac4819661ffce3068bafe | /src/expr_zipper.lean | 9120ada80abbf85a4d3eb1756da3a402672d5521 | [
"MIT"
] | permissive | EdAyers/lean-subtask | 9a26eb81f0c8576effed4ca94342ae1281445c59 | 04ac5a6c3bc3bfd190af4d6dcce444ddc8914e4b | refs/heads/master | 1,586,516,665,621 | 1,558,701,948,000 | 1,558,701,948,000 | 160,983,035 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 26,583 | lean | /- Author: E.W.Ayers © 2019 -/
/- Expression zipper. -/
import .util .table
namespace expr
/-- Labels for each recursive argument of a constructor for `expr`. -/
@[derive decidable_eq]
inductive coord
|app_left |app_right
|lam_var_type |lam_body
|pi_var_type |pi_body
|elet_type |elet_assignment |elet_body
de... |
29ffff146ba0f1dd74b72095bf97d502590e5db4 | f00cc9c04d77f9621aa57d1406d35c522c3ff82c | /library/init/data/ordering/lemmas.lean | 50b7502362e57f76d49c83f9718392c9191974ba | [
"Apache-2.0"
] | permissive | shonfeder/lean | 444c66a74676d74fb3ef682d88cd0f5c1bf928a5 | 24d5a1592d80cefe86552d96410c51bb07e6d411 | refs/heads/master | 1,619,338,440,905 | 1,512,842,340,000 | 1,512,842,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,135 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.ordering.basic init.meta init.algebra.classes init.ite_simp
set_option default_priority 100
universes u
namespace ordering
/- Del... |
b24266fd3d86d0ed625fa4a10e03607fbc860b8d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/core.lean | 15657cf447ab10b523a49ac9e8f97b5e74d82bf7 | [] | 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 | 18,040 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
notation, basic datatypes and type classes
-/
import Mathlib.PrePort
universes u l v w u_1 u_2 u₁ u₂ u₃
namespace Mathlib
/- Reserving notation. We do thi... |
f9cb639aa06792d612be8d8ca8a24f0853be6f1a | ee8cdbabf07f77e7be63a449b8483ce308d37218 | /lean/src/valid/mathd-numbertheory-45.lean | da63ff580939c9d74993b2692f0c9cf6f8819112 | [
"MIT",
"Apache-2.0"
] | permissive | zeta1999/miniF2F | 6d66c75d1c18152e224d07d5eed57624f731d4b7 | c1ba9629559c5273c92ec226894baa0c1ce27861 | refs/heads/main | 1,681,897,460,642 | 1,620,646,361,000 | 1,620,646,361,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 573 | lean | /-
Copyright (c) 2021 OpenAI. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kunhao Zheng
-/
import tactic.gptf
import data.nat.basic
import data.real.basic
example : ( nat.gcd 6432 132 ) + 11 = 23 :=
begin
suffices : ( nat.gcd 6432 132 ) = 12, rw this,
rw nat.gcd... |
efe4bf3c9ff98deea508eb429cc5f74ae7be2ae7 | 3b15c7b0b62d8ada1399c112ad88a529e6bfa115 | /stage0/src/Lean/Elab/PreDefinition/WF/Fix.lean | 10c9b07d32b6926c3c0e3abbd43b7abfef20f3c7 | [
"Apache-2.0"
] | permissive | stephenbrady/lean4 | 74bf5cae8a433e9c815708ce96c9e54a5caf2115 | b1bd3fc304d0f7bc6810ec78bfa4c51476d263f9 | refs/heads/master | 1,692,621,473,161 | 1,634,308,743,000 | 1,634,310,749,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,898 | 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.Match.Match
import Lean.Meta.Tactic.Simp.Main
import Lean.Meta.Tactic.Cleanup
import Lean.Elab.PreDefinition.Basic
import Lean.Elab.PreDefi... |
eb65be2078da268a952582918eb10fef965f4a14 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/metric_space/cau_seq_filter.lean | f2f98bcd494736598165c3a015dd2e573899d244 | [
"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,824 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Sébastien Gouëzel
-/
import topology.uniform_space.basic analysis.normed_space.basic data.real.cau_seq
import tactic.linarith
/-! # Completeness in terms of `cauchy... |
a744ddb628ab1eba473505cfa5c2fefc10370e31 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /src/Init/Lean/Expr.lean | 5a7a791de9fbe3b779329d8b494e07c22509f982 | [
"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 | 32,471 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.HashMap
import Init.Data.HashSet
import Init.Data.PersistentHashMap
import Init.Data.PersistentHashSet
import Init.Lean.Data.KVMap
... |
3c0e99d6863e4b1d6d8b281231600b2c9702f269 | fe208a542cea7b2d6d7ff79f94d535f6d11d814a | /src/Logic/Chris_Hughes.lean | 9da904d4d1aece05642874a84514efc990f2e559 | [] | no_license | ImperialCollegeLondon/M1F_room_342_questions | c4b98b14113fe900a7f388762269305faff73e63 | 63de9a6ab9c27a433039dd5530bc9b10b1d227f7 | refs/heads/master | 1,585,807,312,561 | 1,545,232,972,000 | 1,545,232,972,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 807 | lean | -- I cheated by making Rohan's proof constructive and evaluating it.
@[derive decidable_eq] inductive fml
| atom (i : ℕ)
| imp (a b : fml)
| not (a : fml)
open fml
infixr ` →' `:50 := imp -- right associative
prefix `¬' `:51 := fml.not
inductive prf : fml → Type
| axk {p q} : prf (p →' q →' p)
| axs {p q r} : prf ... |
94df8f82f9bbbfb851de99ca5ff3497263c0cfa0 | e07b1aca72e83a272dd59d24c6e0fa246034d774 | /src/surreal/game/basic.lean | b1dac98b8acd11c6b3eba140148c19ec4551a9a1 | [] | no_license | pedrominicz/learn | 637a343bd4f8669d76819ac660a2d2d3e0958710 | b79b802a9846c86c21d4b6f3e17af36e7382f0ef | refs/heads/master | 1,671,746,990,402 | 1,670,778,113,000 | 1,670,778,113,000 | 265,735,177 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,398 | lean | import set_theory.game.pgame
import tactic.abel
open pgame
open_locale pgame
universes u v
namespace game
instance pgame.setoid : setoid pgame.{u} :=
⟨(≈), equiv_refl, @pgame.equiv.symm, @pgame.equiv.trans⟩
abbreviation game : Type (u+1) := quotient pgame.setoid.{u}
instance : add_comm_group game :=
{ zero := ⟦0... |
ac78ee2d0542d75202c82be1948c2e4692f01386 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/ring_theory/unique_factorization_domain.lean | 9ccc24e783f57b63cb150b98393e0b6dd8dcfacb | [
"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 | 50,263 | 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, Jens Wagemaker, Aaron Anderson
-/
import algebra.gcd_monoid
import ring_theory.integral_domain
import ring_theory.noetherian
/-!
# Unique factorization
## Main Defi... |
5d11d6ca900ebaa4581274c81e830fc3c42902c4 | b24beef0a8b1a8e92be756a25aa78e24908b2b14 | /src/solutions/friday/manifolds.lean | 311261b76227e4f27838457ebafbfd5f91e40fee | [] | permissive | ChristopheMargerin/lftcm2020 | 14967e74cbe92a7b61d32d8130f32cfa09b5172b | 589180047fa4fdfb3179636db58b0b0320549871 | refs/heads/master | 1,668,536,269,632 | 1,594,891,664,000 | 1,594,891,664,000 | 280,112,730 | 0 | 0 | MIT | 1,594,891,963,000 | 1,594,891,962,000 | null | UTF-8 | Lean | false | false | 25,510 | lean | import for_mathlib.manifolds
noncomputable theory
open_locale manifold classical big_operators
open set
/-! ### Local homeomorphisms
Local homeomorphisms are globally defined maps with a globally defined "inverse", but the only
relevant set is the *source*, which should be mapped homeomorphically to the *target*.
... |
66a9f4d30ee2d436a9f7e61350c9114e071a4b8c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/sheaves/limits.lean | 6ee5b92158cf4b723b2c7f93968c8b430dbfeabd | [] | 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 | 988 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.sheaves.presheaf
import Mathlib.category_theory.limits.functor_category
import Mat... |
97241f6fac8120add36e1bad1c77bcce53f52bb4 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/data/polynomial/eval.lean | 526a21bb30f3e39c7f4e926780a691e699bd5cb1 | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,783 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker
-/
import data.polynomial.induction
import data.polynomial.degree.definitions
import deprecated.ring
/-!
# Theory of univari... |
4a553a9772615e6a1a82d756346379fd0d25c802 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/special_linear_group.lean | f5d5961a433a2f6ddd5bb0c2a9f4ec6ca57462c1 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,666 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen.
The Special Linear group $SL(n, R)$
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.matrix
import Mathlib.linear_algebra.... |
5218114ff4239c8b81e0ad1ea9cae9459ef4afeb | 4fa161becb8ce7378a709f5992a594764699e268 | /src/category_theory/limits/cones.lean | ae52a0327788b51f289a7cd5a08b2cd8b1b7accc | [
"Apache-2.0"
] | permissive | laughinggas/mathlib | e4aa4565ae34e46e834434284cb26bd9d67bc373 | 86dcd5cda7a5017c8b3c8876c89a510a19d49aad | refs/heads/master | 1,669,496,232,688 | 1,592,831,995,000 | 1,592,831,995,000 | 274,155,979 | 0 | 0 | Apache-2.0 | 1,592,835,190,000 | 1,592,835,189,000 | null | UTF-8 | Lean | false | false | 13,255 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Stephen Morgan, Scott Morrison, Floris van Doorn
-/
import category_theory.const
import category_theory.yoneda
universes v u u' -- declare the `v`'s first; see `category_theory.catego... |
3b0bbd7ce7981a78a52bf0898b99ec754d781ef2 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/nat/default.lean | 3efeb2636d17b03621edee4b87a24c604b5fce3b | [
"Apache-2.0"
] | permissive | GaloisInc/lean4 | 74c267eb0e900bfaa23df8de86039483ecbd60b7 | 228ddd5fdcd98dd4e9c009f425284e86917938aa | refs/heads/master | 1,643,131,356,301 | 1,562,715,572,000 | 1,562,715,572,000 | 192,390,898 | 0 | 0 | null | 1,560,792,750,000 | 1,560,792,749,000 | null | UTF-8 | Lean | false | false | 239 | 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.nat.basic init.data.nat.div init.data.nat.bitwise
|
7d5cd400193a2fd3da9e28b2123f6b57a2f290c2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/missingExplicitWithForwardNamedDep.lean | 9633bb4acee78c90dc047290d909a54026393829 | [
"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 | 633 | lean | class Foo (α : Type) (β : Type) where
val : Nat
a : α
b : β
#check Foo.val
def valOf [s : Foo α β] : Nat :=
s.val
#eval valOf (s := { val := 10, a := true, b := false : Foo Bool Bool })
def valOf2 (α β : Type) [s : Foo α β] : Nat :=
s.val
#check valOf2 (s := { val := 10, a := true, b := false : Foo ... |
aae3ca9a156c86d6f29788eb23ae22a088ffced5 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/divisibility/basic.lean | ffa10bb7ff9c1341c66b74c5bb278461339202cf | [
"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 | 4,836 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Amelia Livingston, Yury Kudryashov,
Neil Strickland, Aaron Anderson
-/
import algebra.hom.group
/-!
# Divisibility
> THIS FILE IS ... |
f4bf0be8d0848bc66690f6bea4e3c06f30a526a1 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/linear_algebra/affine_space/combination.lean | 1999dfe3d6d5e636a27b5587ab578a6d0a80fe1b | [
"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 | 32,024 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.invertible
import algebra.indicator_function
import linear_algebra.affine_space.affine_map
import linear_algebra.affine_space.affine_subspace
import linear... |
9ce377f9e8fc814975fec5ab8f03f8c354f918ae | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/number_theory/arithmetic_function.lean | 2ef99dfa25faa48f5799e165b8152a2e87b8c5b2 | [
"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 | 32,590 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import algebra.big_operators.ring
import number_theory.divisors
import algebra.squarefree
import algebra.invertible
/-!
# Arithmetic Functions and Dirichlet Convolut... |
464e6eff8bb2054d83f2225f08f7dbd7b1de14da | bc1214dae29f5e9d007f2c80f5ddb079115f99c4 | /test.lean | 8aee9530d98ac42b7e0803dc169da8bb11d18c3a | [] | no_license | khkim1/f19-assignments | d2e16416f6f90c36a8c16dc367892505d12ccbba | 9c455e0cb4fcd5f456ea7635a99d787c217fe422 | refs/heads/master | 1,596,569,533,145 | 1,575,519,583,000 | 1,575,519,583,000 | 212,254,214 | 0 | 0 | null | 1,569,990,006,000 | 1,569,990,005,000 | null | UTF-8 | Lean | false | false | 141 | lean |
variables p q : Prop
example (h : p ∧ q) : q ∧ p :=
have hq: q, from h.right,
suffices hp: p, from ⟨hq, hp⟩,
show p, from h.left |
c7ae0821a2534fd4f2c2a70e36c39518be9b0258 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/constructions/limits_of_products_and_equalizers.lean | 0be2e07faa027e09c4c86a9ef34e3d355e315939 | [
"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 | 18,172 | 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 data.fintype.prod
import data.fintype.sigma
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.finite_products
im... |
7a62726a8e3a5ce834a3ab3160d407c60a121692 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/alg.lean | 903866a6a44684175912f51ec776caab6e3a8fb9 | [
"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 | 2,250 | lean | class Semigroup (α : Type u) extends Mul α where
mul_assoc (a b c : α) : a * b * c = a * (b * c)
export Semigroup (mul_assoc)
class MulComm (α : Type u) extends Mul α where
mul_comm (a b : α) : a * b = b * a
export MulComm (mul_comm)
class CommSemigroup (α : Type u) extends Semigroup α where
mul_comm (a b : ... |
127d8e6d9fbb001d022d8cf86b888c0a0b134391 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Data/Lsp/Communication.lean | 6b51c2252eec4a30aee5e0f4ead80e39ff1fbf48 | [
"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 | 4,212 | 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 IO.FS.Stream
open Lean
open Lean... |
405159f39a0e9651a134fd5b275901dd210c7a19 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/forInUniv.lean | 9b3c13374de9f786d9af3a565fa18b418400a26a | [
"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 | 421 | lean | #lang lean4
universes u
def f {α : Type u} [BEq α] (xs : List α) (y : α) : α := do
for x in xs do
if x == y then
return x
return y
structure S :=
(key val : Nat)
instance : BEq S :=
⟨fun a b => a.key == b.key⟩
theorem ex1 : f (α := S) [⟨1, 2⟩, ⟨3, 4⟩, ⟨5, 6⟩] ⟨3, 0⟩ = ⟨3, 4⟩ :=
rfl
theorem ex2 : f (α := S) ... |
443e29f961a4f081a9e7879c11f3f3b030c9266b | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/algebra/precategory/strict.hlean | 4e75752c8b653da06afde303630328158252f345 | [
"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 | 1,547 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.precategory.functor
Authors: Floris van Doorn, Jakob von Raumer
-/
import .basic .functor
open category is_trunc eq function sigma sigma.ops
namespace category
structure... |
f8f3081f8e18f6b80ce06f535ba9dffe6beeadd6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finsupp/indicator.lean | 918c6da0c0ae8009e550f7e03a8d281ef87f7194 | [
"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,887 | 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.finsupp.basic
/-!
# Building finitely supported functions off finsets
This file defines `finsupp.indicator` to help create finsupps from finsets.
## Main d... |
4de249b35b867c09664a4de26efd3b327d03e6d0 | e4def7044cdf5942eed78db25d2daa58d80eed64 | /src/test_your_setup.lean | 0ee0a276b5b63d88c36c179da899810009365d42 | [] | no_license | kevinsullivan/dm.s20.old | 3f8f736b9a792cca8dd44a73a98ade0b534ed084 | a240be0a53961ac25b5f4426fe7bc8d4dbe7013f | refs/heads/master | 1,607,522,498,471 | 1,579,058,084,000 | 1,579,058,084,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 138 | lean | import topology.basic
-- Is your Lean and VS Code setup working?
#check 0
-- Is Lean's math library working?
#check topological_space |
17fdebdb0b64cdafd4c105c6cbc4c3bf68d2dc06 | 1446f520c1db37e157b631385707cc28a17a595e | /src/Init/Lean/Meta/Exception.lean | 715be79fb788118cf4a4389d9f388b5222e1941f | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,550 | 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.Environment
import Init.Lean.MetavarContext
import Init.Lean.Message
import Init.Lean.Util.PPGoal
namespace Lean
namespace Meta
a... |
eb60120a9fe15958e7a152e9519f77d20998b9ea | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/tools/super/trim.lean | cad173ad4887f2b3fef0abd17ff52f741ac4800d | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,300 | 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 .utils
open monad expr tactic
namespace super
-- TODO(gabriel): rewrite using conversions
meta def trim : expr → tactic expr
| (app (lam n m d b) arg) :=
if ... |
14c37a5ce020612ee8428546910764690ed43af4 | 2f8bf12144551bc7d8087a6320990c4621741f3d | /library/init/io.lean | e10da8b3330eb5cedb67b71ed65c316bf7eb873b | [
"Apache-2.0"
] | permissive | jesse-michael-han/lean4 | eb63a12960e69823749edceb4f23fd33fa2253ce | fa16920a6a7700cabc567aa629ce4ae2478a2f40 | refs/heads/master | 1,589,935,810,594 | 1,557,177,860,000 | 1,557,177,860,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,985 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Leonardo de Moura, Sebastian Ullrich
-/
prelude
import init.control.estate init.data.string.basic
/-- Like https://hackage.haskell.org/package/ghc-Pr... |
62e35a464f83e63451c373252032b737458c621f | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/data/matrix.lean | 7d9e4a751452066752e7375d39a21a11c497e6d9 | [
"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 | 9,376 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
Matrices
-/
import algebra.module algebra.pi_instances
import data.fintype
universes u v
def matrix (m n : Type u) [f... |
2c3041065bc9c42bdaed25e3f6496919c471995f | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /data/seq/wseq.lean | 1d58e1991873323fb4785002915abad10732f539 | [
"Apache-2.0"
] | permissive | louisanu/mathlib | 11f56f2d40dc792bc05ee2f78ea37d73e98ecbfe | 2bd5e2159d20a8f20d04fc4d382e65eea775ed39 | refs/heads/master | 1,617,706,993,439 | 1,523,163,654,000 | 1,523,163,654,000 | 124,519,997 | 0 | 0 | Apache-2.0 | 1,520,588,283,000 | 1,520,588,283,000 | null | UTF-8 | Lean | false | false | 55,268 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.seq.seq data.seq.computation data.list.basic data.dlist
universes u v w
/-
coinductive wseq (α : Type u) : Type u
| nil : wseq α
| cons : α → wseq ... |
b0beba750c78d80c5f1b1fe1426479a7bde0b084 | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Lean/Elab/Binders.lean | 8231a0b21de933dc84a86f576dbb5d31a7fbcdac | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,517 | 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.Elab.Term
import Init.Lean.Elab.Quotation
namespace Lean
namespace Elab
namespace Term
/--
Given syntax of the forms
a) (`:... |
93f62a33cc45ffef338b1d95d1c112827361f890 | 3aad12fe82645d2d3173fbedc2e5c2ba945a4d75 | /src/data/serial/basic.lean | 0fe3c2f73b0be0d7779fbf6001f1f440d3b4917e | [] | no_license | seanpm2001/LeanProver-Community_MathLIB-Nursery | 4f88d539cb18d73a94af983092896b851e6640b5 | 0479b31fa5b4d39f41e89b8584c9f5bf5271e8ec | refs/heads/master | 1,688,730,786,645 | 1,572,070,026,000 | 1,572,070,026,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,684 | lean |
import tactic
import tactic.monotonicity
import tactic.norm_num
import category.basic
import category.nursery
import data.equiv.nursery
import data.serial.medium
universes u v w
abbreviation put_m' := medium.put_m'.{u} unsigned
abbreviation put_m := medium.put_m'.{u} unsigned punit
abbreviation get_m := medium.get... |
0929491b1518d0b1e8f6a2c9d77b49869d159829 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/run/pred_using_structure_cmd.lean | 37fc3aecbf245b492089f25b3c48c081dec73344 | [
"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 | 345 | lean | variable {A : Type}
structure has_refl (R : A → A → Prop) : Prop :=
(refl : ∀ a, R a a)
structure is_equiv (R : A → A → Prop) extends has_refl R : Prop :=
(symm : ∀ a b, R a b → R b a)
(trans : ∀ a b c, R a b → R b c → R a c)
#check @has_refl.refl
#check @is_equiv.symm
#check @is_equiv.trans
#check @is_equiv.to_has_... |
722c9decd8682ffac7c5a173a29588225b68c53b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/analysis/special_functions/arsinh.lean | 71819a35c1fafb1dc6075490575510174aa32028 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,909 | lean | /-
Copyright (c) 2020 James Arthur. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: James Arthur, Chris Hughes, Shing Tak Lam
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.analysis.special_functions.trigonometric
import Mathlib.PostPort
... |
b2a1841f79feb290ebe9048a89d924757bb5eef8 | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/homotopy/quaternionic_hopf.hlean | 5fa538bf3e1620143a9e6c2141c0138c41bd35fa | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 4,290 | hlean | /-
Copyright (c) 2016 Ulrik Buchholtz and Egbert Rijke. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz, Egbert Rijke
The H-space structure on S³ and the quaternionic Hopf fibration
(using the imaginaroid structure on S⁰).
-/
import .complex_hopf .ima... |
87fbddc35a7b177c5a842e5d6b665c49e69b5f0e | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Elab/Match.lean | baf49bc7455a6a3c8286cdc92591ada13dd34fc9 | [
"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 | 40,802 | 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.Match.MatchPatternAttr
import Lean.Meta.Match.Match
import Lean.Elab.SyntheticMVars
import Lean.Elab.App
import Lean.Parser.Term
namespace... |
24a4c12cf041ea301d56fdf43cad924e1545d58c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/group_theory/submonoid/basic.lean | 442244b2971161cc77378bd748f2b22d480c99c8 | [
"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 | 20,847 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau, Johan Commelin, Mario Carneiro, Kevin Buzzard,
Amelia Livingston, Yury Kudryashov
-/
import group_theory.subsemigroup.basic
/-!
# Submonoids: definition and... |
4a4fca4953dd605da15e0cc597543527379e0510 | bb31430994044506fa42fd667e2d556327e18dfe | /src/combinatorics/configuration.lean | 36221045516c067e1d2297f18449bc811b6ea990 | [
"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 | 23,666 | lean | /-
Copyright (c) 2021 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import algebra.big_operators.order
import combinatorics.hall.basic
import data.fintype.big_operators
import set_theory.cardinal.finite
/-!
# Configurations of Poin... |
290e7a99dcc1e96bba40028bbf162a77d238b5de | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/real/ennreal.lean | 8c8ead1997873fe0065c03073e508d9fde34c830 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 68,565 | 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 Kudryashov
-/
import data.real.nnreal
import data.set.intervals
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_no ℝ≥0` to be the type of ext... |
75683544a9b9ab92621c3ad8870f5dfd09da0e90 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/parser_error_recovery.lean | 1ad789807b01999a1be8d3e03320757670e325b9 | [
"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 | 643 | lean | /- unknown identifiers -/
def f1 : ℕ → ℕ
| 42 := 1234
| arg := ag
#eval f1 42 -- OK (prints 1234)
/- incomplete structure instances -/
def f2 : ℕ × ℕ := { fst := 1234, sn}
#reduce f2.fst -- OK (prints 1234)
/- incomplete if-then-else -/
def f3 (x : ℕ) : ℕ :=
(if x ≥ 42 then 1234)
-- ^ missing el... |
8a66a7b3eff5f0d292c68eaa74c679287fa6d452 | 6065973b1fa7bbacba932011c9e2f32bf7bdd6c1 | /src/algebra/group/prod.lean | ec248edc5f6ecefe939be8724b7a6267f7475453 | [
"Apache-2.0"
] | permissive | khmacdonald/mathlib | 90a0fa2222369fa69ed2fbfb841b74d2bdfd66cb | 3669cb35c578441812ad30fd967d21a94b6f387e | refs/heads/master | 1,675,863,801,090 | 1,609,761,876,000 | 1,609,761,876,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,572 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot, Yury Kudryashov
-/
import algebra.group.hom
import data.equiv.mul_add
import data.prod
/-!
# Monoid, group etc structures on `M × N`
In this file we def... |
84c7fdff046bc292544d03ea6ecb082a93d4b841 | 5b0c53e5aaa0e60538d10f6b619a464aaf463815 | /misc.hlean | 93a9a3b7f2b2602a7cea720973fdbfcf226392a5 | [
"Apache-2.0"
] | permissive | bbentzen/hott-book-in-lean | f845a19ef09d48d2fb813624b4650d5832a47e10 | 9e262e633e653280b9cde5d287631fcec8501f64 | refs/heads/master | 1,586,430,679,994 | 1,519,975,089,000 | 1,519,975,089,000 | 50,330,220 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 992 | hlean | /-
Copyright (c) 2017 Bruno Bentzen. All rights reserved.
Released under the Apache License 2.0 (see "License");
-/
import .ch2 .ch3 .ch4
open eq prod unit bool sum sigma ua funext nat lift
/- ************************************** -/
/- Miscellaneous results -/
/- *********************************... |
61975906d6faf16e720b094b429be27a4cbbbfde | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/mvar2.lean | 43e7ac144f162b97a625f6dcf14a6e60a79700e3 | [
"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 | 1,435 | lean | import Lean.MetavarContext
open Lean
def check (b : Bool) : IO Unit :=
«unless» b (throw $ IO.userError "error")
def f := mkConst `f []
def g := mkConst `g []
def a := mkConst `a []
def b := mkConst `b []
def c := mkConst `c []
def b0 := mkBVar 0
def b1 := mkBVar 1
def b2 := mkBVar 2
def u := mkLevelParam `u
def ... |
2b0acd66329e33e1787f7265e2b8fa6e77728572 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/ess_sup.lean | 1f8e498fb7586b8e0b41768648f3b835d2022e92 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 9,959 | 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 measure_theory.constructions.borel_space
import order.filter.ennreal
/-!
# Essential supremum and infimum
We define the essential supremum and infimum of a functi... |
099f18ba4aa58d656724183eb66a9f4784d4f1c4 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/continued_fractions/computation/approximation_corollaries.lean | 1c0e022f378cc8be506b775c636eb49ec043888d | [
"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 | 6,595 | lean | /-
Copyright (c) 2021 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import algebra.continued_fractions.computation.approximations
import algebra.continued_fractions.convergents_equiv
import topology.algebra.ordered.basic
/-!
# Cor... |
2f48cb3b2c8e57ba9f4856250e7d1814bf26c008 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /stage0/src/Lean/Elab/Tactic/BuiltinTactic.lean | 9d2f7ad2524083eadc223addcedcd6199282847e | [
"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 | 10,497 | 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.Elab.Tactic.Basic
namespace Lean.Elab.Tactic
open Meta
@[builtinTactic Lean.Parser.Tactic.«done»] def evalDone : Tactic := fun _ =>
done
@[... |
0b6ebb0a51e913267538f7832d1aa61e05bb4c3a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/iffRefl.lean | 6a204696dba58f56f7dcdeb503b5e2f1e46c458c | [
"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 | 162 | lean | macro_rules | `(tactic| rfl) => `(tactic| exact Iff.rfl)
theorem r (A : Prop) : A ↔ A := by rfl
theorem s (A B : Prop) (h : A ↔ B) : B ↔ A := by
rw [h]
|
f06308f16aff101cdc27ebcf8d11bea8ac72b2d4 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/interactive/hover.lean | 6d2011b89b8ad335fa09337830201706fbaf40cd | [
"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,931 | lean | import Lean
example : True := by
apply True.intro
--^ textDocument/hover
example : True := by
simp [True.intro]
--^ textDocument/hover
example (n : Nat) : True := by
match n with
| Nat.zero => _
--^ textDocument/hover
| n + 1 => _
/-- My tactic -/
macro "mytac" o:("only"?) e:term : tactic =... |
8b9c08d88990a2b09417f0d4e3679ee4eae29a1c | 66a6486e19b71391cc438afee5f081a4257564ec | /homotopy/join_theorem.hlean | 6185190799693f34f6ebf5e3c0ac1eafb7e3dd27 | [
"Apache-2.0"
] | permissive | spiceghello/Spectral | c8ccd1e32d4b6a9132ccee20fcba44b477cd0331 | 20023aa3de27c22ab9f9b4a177f5a1efdec2b19f | refs/heads/master | 1,611,263,374,078 | 1,523,349,717,000 | 1,523,349,717,000 | 92,312,239 | 0 | 0 | null | 1,495,642,470,000 | 1,495,642,470,000 | null | UTF-8 | Lean | false | false | 1,960 | hlean | /-- Authors: Clive, Egbert --/
import homotopy.connectedness homotopy.join
open eq sigma pi function join is_conn is_trunc equiv is_equiv
namespace retraction
variables {A B C : Type} (r2 : B → C) (r1 : A → B)
definition is_retraction_compose
[Hr2 : is_retraction r2] [Hr1 : is_retraction r1] :
is_retra... |
d6c17daa57f99d72eda2a22f17644fde129d2d7f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/diag.lean | 730a5610077479376d4ebf731d2d40c82f01d04c | [
"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 | 557 | lean | import data.examples.vector
open nat
namespace vector
definition diag {A} {n} : vector (vector A n) n → vector A n :=
nat.rec_on n
(λv, nil)
(λn₁ (r : vector (vector A n₁) n₁ → vector A n₁) (v : vector (vector A (succ n₁)) (succ n₁)),
let h₁ : A := head (head v) in
let t₁ : vector (v... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.