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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f1764eac5a9efe5c8acec47184c0418c35fa55f1 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/cubical/default.hlean | fbf7c846e4de24a33dc61d08706d449544e16caa | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 202 | 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
-/
import .square .cube .squareover .cubeover
|
b9274b8c7e92243c7fcf035879198c64d310763b | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/aops/2015-USAJMO-Problem_4.lean | 72f9aec53b10098770fabea88e7466a10bbec3a2 | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 242 | lean | import data.rat.basic
theorem USAJMO_Problem_4_2015 (f : β -> β):
(β x y z t : β,
((β d : β, (y = x + d β§ z = x + 2*d β§ t = x + 3*d)) β§
f(x)+f(t) = f(y) + f(z))) β
β k C : β, β b : β, f(b) = k*b + C
:= sorry |
d1c079cc2fb16931b2dc055e7d3a0d0f5775d94e | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/bool/set.lean | bc466d00bb3eefbf3786d3ffa7e4fdafb2ea6e36 | [
"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 | 803 | 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 data.bool.basic
import data.set.image
/-!
# Booleans and set operations
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require... |
e41f3bdbd49c0efa06a9122af4ff3e96bf187d7c | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/topology/algebra/affine.lean | e6c850730c9e2e640f045b52cd9c88fa9e916b75 | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 1,375 | lean | /-
Copyright (c) 2020 FrΓ©dΓ©ric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: FrΓ©dΓ©ric Dupuis
-/
import topology.algebra.continuous_functions
import linear_algebra.affine_space.affine_map
/-!
# Topological properties of affine spaces and maps
For now, this co... |
693d04349037a97885ee11066860445cf348180d | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/preadditive/schur.lean | ac6aa8a7980b5cf5c033fdee5eb803564ac2813e | [
"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,900 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import category_theory.simple
import category_theory.linear
import category_theory.endomorphism
import field_theory.algebraic_closure
/-!
# Schur's le... |
2dc4272c1af8e0ab404df66ac1f594db0da2786d | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/reserved_notation.lean | d34358ece412189d01c03bf55769fd1343d59e54 | [
"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,606 | lean | /-
Copyright (c) 2020 Bryan Gin-ge Chen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bryan Gin-ge Chen
-/
/-!
# Reserved notation
This file is imported by `logic.basic` and `logic.relator` to place it at the top of the
import graph.
We place all of `mathlib`'s re... |
eaaf50668c62bb6186abfd1fc10b937dc91143fe | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/run/parseCore.lean | a2ce66ec3092afdc8ccb989b65009826270bf10e | [
"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 | 324 | lean | import Init.Lean.Parser
def test : IO Unit :=
if System.Platform.isWindows then
pure () -- TODO investigate why the following doesn't work on Windows
else do
env β Lean.mkEmptyEnvironment;
Lean.Parser.parseFile env (System.mkFilePath ["..", "..", "..", "src", "Init", "Core.lean"]);
IO.println "done"
#eval tes... |
56d9bae4c8d43cfc1def438316561cc012d5f29e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/equiv/embedding.lean | 052fb9a27bf6f70b0ccd47d38ab47dbf78ac8638 | [
"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,748 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import logic.embedding.set
/-!
# Equivalences on embeddings
This file shows some advanced equivalences on embeddings, useful for constructing larger
embeddings from... |
5fcca4686966601c84fe3930a3fd90cf18a79f4a | 17d3c61bf162bf88be633867ed4cb201378a8769 | /library/init/core.lean | 301663126fab0aeb640519e7f7fd4dc808c7d65e | [
"Apache-2.0"
] | permissive | u20024804/lean | 11def01468fb4796fb0da76015855adceac7e311 | d315e424ff17faf6fe096a0a1407b70193009726 | refs/heads/master | 1,611,388,567,561 | 1,485,836,506,000 | 1,485,836,625,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,614 | 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
-/
prelude
notation `Prop` := Sort 0
/- Logical operations and relations -/
reserve prefix `Β¬`:40
reserve prefix... |
84770daf704d66f42b2fb6a31539bd68bd579512 | bd12a817ba941113eb7fdb7ddf0979d9ed9386a0 | /src/category_theory/const.lean | 83171e34597fda3db395a377827038475ae1da80 | [
"Apache-2.0"
] | permissive | flypitch/mathlib | 563d9c3356c2885eb6cefaa704d8d86b89b74b15 | 70cd00bc20ad304f2ac0886b2291b44261787607 | refs/heads/master | 1,590,167,818,658 | 1,557,762,121,000 | 1,557,762,121,000 | 186,450,076 | 0 | 0 | Apache-2.0 | 1,557,762,289,000 | 1,557,762,288,000 | null | UTF-8 | Lean | false | false | 2,536 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.functor_category
import category_theory.isomorphism
import category_theory.opposites
universes vβ vβ vβ uβ uβ uβ -- declare the `v`'s firs... |
66ea4c141ec600f2387a6bd699441acb57ff9f2b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/kernel_pair.lean | 222a172f72ccab10075ab1cb4069126a98abe07f | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,112 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.pullbacks
import category_theory.limits.shapes.regular_mono
/-!
# Kernel pairs
This... |
cda7e99a5932e43ea18a8513ef25fdf8dd0ed05a | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/list_mem_pred.lean | c4b5cdb96aea8794e541b6a2c354644ac6e14e5a | [
"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,043 | lean | universe u
inductive list_mem {Ξ± : Type u} : Ξ± β list Ξ± β Prop
| head (a : Ξ±) (l : list Ξ±) : list_mem a (a::l)
| tail (a b : Ξ±) (l : list Ξ±) : list_mem a l β list_mem a (b::l)
lemma mem_self {Ξ±} (a : Ξ±) (l : list Ξ±) : list_mem a (a::l) :=
list_mem.head a l
open tactic
lemma mem_cons_iff {Ξ±} (a y : Ξ±) (l : list Ξ±)... |
764e5f1cb9088fb439ae060fc13b108f29013c01 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/homology/quasi_iso.lean | 82fd8756762572f5bd9b63ab7b125d83cda9768f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,178 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, JoΓ«l Riou
-/
import algebra.homology.homotopy
import category_theory.abelian.homology
/-!
# Quasi-isomorphisms
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any change... |
89a006269ee6aaef571e5e98154407cd4172c506 | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/t3.lean | 6f149b8561bfd099874810bdefeb0c74ae70e1d2 | [
"Apache-2.0"
] | permissive | respu/lean | 6582d19a2f2838a28ecd2b3c6f81c32d07b5341d | 8c76419c60b63d0d9f7bc04ebb0b99812d0ec654 | refs/heads/master | 1,610,882,451,231 | 1,427,747,084,000 | 1,427,747,429,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,097 | lean | universe u
print raw Type.{u}
namespace tst
universe v
print raw Type.{v}
print raw Type.{tst.v}
end tst
print raw Type.{tst.v}
print raw Type.{v} -- Error: alias 'v' is not available anymore
context
universe z -- Remark: this is a local universe
print raw Type.{z}
end
print raw Type.{z} -- Error: lo... |
5a29f8fd4fc51466bdadcb0ee74a867dcf98b8c6 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/set/pairwise.lean | db4d17d4d8ba2fa3192d6d19f068383556227a29 | [
"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 | 17,633 | 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 data.set.lattice
import logic.relation
/-!
# Relations holding pairwise
This file defines pairwise relations and pairwise disjoint indexed sets.
## Main dec... |
73eb0a142e0f677e7337c6508ed1e9d4da8b3c2d | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/algebra/ring.lean | fa83e2baffa862d6fd7cd3623fc63d5add5d49a5 | [
"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 | 7,474 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes HΓΆlzl
Theory of topological rings.
-/
import topology.algebra.group
import ring_theory.ideal.basic
import ring_theory.subring
import algebra.ring.prod
open c... |
fd3e69deeedb3a63b4a6f5be04c3b0a650cd2bd0 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/class1.lean | 3ee33977d1524f95976891ad81929da8a4fc486c | [
"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 | 115 | lean | open prod inhabited
definition H : inhabited (Prop Γ nat Γ (nat β nat)) :=
by tactic.apply_instance
#print H
|
0e3dd70338278795f26a3bcb29f56e56ef72f3e1 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/sum_integral_comparisons.lean | 44d0e19616e66c6532c416a29a64681064a722df | [
"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,075 | lean | /-
Copyright (c) 2022 Kevin H. Wilson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin H. Wilson
-/
import measure_theory.integral.interval_integral
import algebra.order.floor
import data.set.function
import analysis.special_functions.integrals
/-!
# Comparing su... |
0c46d99a6d50abe15dc21424e8e3bfc27a23d699 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/algebra/free.lean | 5e7390f0b16df4438aa7636b9ce2990726c734b7 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 15,528 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
1. Free magma of a type (traversable, decidable equality).
2. Free semigroup of a magma.
3. Free semigroup of a type (traversable, decidable equality).
And finally, magma.free_s... |
492e7567e2ab9044cb9b6b90db2bdac81e2c88da | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/match3.lean | ed891ef29db4df4c319770cda337254814f2a3d4 | [
"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 | 1,151 | lean | import data.list
open nat
definition foo (a : nat) : nat :=
match a with
zero := zero,
succ n := n
end
example : foo 3 = 2 := rfl
open decidable
protected theorem dec_eq : β x y : nat, decidable (x = y),
dec_eq zero zero := inl rfl,
dec_eq (succ x) zero := inr (Ξ» h, nat.no_confusion h),
dec_eq zero ... |
c83d1b9a281af5c0830d737d7ca8a5d7513c20fe | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/algebra/inf_group.lean | 87fa09e23e9161b4e9303954957e3aa3d1ca776b | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 27,053 | 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
-/
import .binary
universes u v w
hott_theory
set_option old_structure_cmd true
namespace hott
open hott.binary is_trunc
variable {A : Type _}
/- i... |
ad4e7b997bec5cb9e580d14fdf4cf78d058f7250 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world5/level8.lean | e28594a1bdb5568de30f2b6b423a5936ce66dac3 | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 1,702 | lean | /-
# Function world.
## Level 8: `(P β Q) β ((Q β empty) β (P β empty))`
Level 8 is the same as level 7, except we have replaced the
set $F$ with the empty set $\emptyset$. The same proof will work (after all, our
previous proof worked for all sets, and the empty set is a set).
But note that if you start with `intr... |
07b5d1acbfbe7ffc964281d2e76798866bc7fb33 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/topology/dense_embedding.lean | c5ccf97165f66b79fc92f3610b69b715dcbfadaf | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 13,614 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Patrick Massot
-/
import topology.separation
/-!
# Dense embeddings
This file defines three properties of functions:
`dense_range f` means `f` has ... |
715fd7fae58ad522f14fd4efc16536bb7a8f48d1 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/control/functor/multivariate.lean | 76f37257882310eedbb8401312320ec0f9df4535 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 7,633 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Mario Carneiro, Simon Hudon
-/
import data.fin2
import data.typevec
import logic.function.basic
import tactic.basic
/-!
Functors between the category of tuples of types,... |
e213e33f56ae77f7afad22a9dccf87cda8780f19 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/order/filter/basic.lean | 2afa864a57a4ea7c8190d4fee90dd9f9b2ed6b91 | [
"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 | 97,124 | 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 order.galois_connection order.zorn order.copy
import data.set.finite
/-! # Theory of filters on sets
## Main definitions
* `filter` : filter ... |
69a3b67b3393c4d916fb78a493c250fb0a4d20b8 | 00de0c30dd1b090ed139f65c82ea6deb48c3f4c2 | /src/data/nat/prime.lean | 62f0543022022adf2c4ad5705d4dde0ad77de66f | [
"Apache-2.0"
] | permissive | paulvanwamelen/mathlib | 4b9c5c19eec71b475f3dd515cd8785f1c8515f26 | 79e296bdc9f83b9447dc1b81730d36f63a99f72d | refs/heads/master | 1,667,766,172,625 | 1,590,239,595,000 | 1,590,239,595,000 | 266,392,625 | 0 | 0 | Apache-2.0 | 1,590,257,277,000 | 1,590,257,277,000 | null | UTF-8 | Lean | false | false | 20,249 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.sqrt
import data.nat.gcd
import algebra.group_power
/-!
# Prime numbers
This file deals with prime numbers... |
6bc9941348aaf9654d862c98b8827a7f01ec2385 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/algebra/big_operators/basic.lean | f48b4461f211b285fb0068147e50e4c475e3350b | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 50,889 | 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 data.finset.fold
import data.equiv.mul_add
import tactic.abel
/-!
# Big operators
In this file we define products and sums indexed by finite sets (specifica... |
204772dcd0519b2bad81ade19999d523ac611cdd | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/algebra/category/CommRing/basic.lean | bdb4b55a96228280ebbbf17c7e6493d152af56bb | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 4,198 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes HΓΆlzl, Yury Kudryashov
-/
import algebra.category.Group
import category_theory.fully_faithful
import algebra.ring
import data.int.basic
/-!
# Category instan... |
16f929e69302b577a7287012fec64918dbe566a7 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/autoBoundImplicits2.lean | f85d0b020e21546e70521ed75b4559e924955ac7 | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 1,058 | lean | def f [Add Ξ±] (a : Ξ±) : Ξ± :=
a + a
def BV (n : Nat) := { a : Array Bool // a.size = n }
def allZero (bv : BV n) : Prop :=
β i, i < n β bv.val[i] = false
def foo (b : BV n) (h : allZero b) : BV n :=
b
def optbind (x : Option Ξ±) (f : Ξ± β Option Ξ²) : Option Ξ² :=
match x with
| none => none
| some a => f ... |
3b66ad960604b5b3afa192fd40532c22e2b17490 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/nested_inductive_code_gen.lean | ef330ff88a924a189003ebc46252f11089e6acf6 | [
"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 | 593 | lean | inductive term : Type
| var : nat β term
| app : list term β term
| cnst : string β term
meta def term.to_string : term β string
| (term.var x) := "v#" ++ to_string x
| (term.app ts) := "(app " ++ to_string (list.map term.to_string ts) ++ ")"
| (term.cnst c) := c
meta instance : has_to_string term :=
β¨term.to_stri... |
45e1774500ab8aba9c77a398037c0ab3a9db6fa8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/group_action/sigma.lean | fb5378455edc1458a4ee9a8b5a1ce04fe4a2327a | [
"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 | 2,383 | 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 group_theory.group_action.defs
/-!
# Sigma instances for additive and multiplicative actions
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fil... |
a14caeb5170aad97fdefd90aabaf808f219709ac | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/io_bug2.lean | dba3ef4e69a4d99e936974d0135824baf379dc54 | [
"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 | 140 | lean | import system.io
open io
def main : io unit := do
print_ln "t1",
(x, y) β return ((1 : nat), (2 : β)),
print_ln "t2"
#eval main
|
64dee08eedb9fc78d93296a9f83b00d7fbf1e383 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/field_theory/fixed.lean | 4b9986375a4d5e6629df013900bb4fecb2c547c8 | [
"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 | 11,260 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.group_action_hom
import deprecated.subfield
import field_theory.normal
import field_theory.separable
import field_theory.tower
import linear_algebra.matrix
impo... |
ddabf06bf00dc247ed087e3aa5784f373bbae6b1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/deprecated/group.lean | 445e9f7253d3c80efdef809eddd013ca1eb5f2a5 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,326 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.group.type_tags
import Mathlib.algebra.group.units_hom
import Mathlib.algebra.ring... |
5f990a87ccf4d6b6df73abe9854595bc97e01414 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/measure_theory/category/Meas.lean | 7b410c8c9ff471c9e4a67358381e4ee1c7c35382 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,265 | 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
-/
import topology.category.Top.basic
import measure_theory.giry_monad
import category_theory.monad.algebra
/-
* Meas, the category of measurable spaces
Measurable spa... |
a872b1ac1709ddfb6d67e7c5ea509ec9e92487b1 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/init/funext.hlean | 3037b04d0a6127311223d145b28cdf67c296d45e | [
"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 | 11,772 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .trunc .equiv .ua
open eq is_trunc sigma function is_equiv equiv prod unit prod.ops lift
/-
We now pro... |
4d997150bbd5acfa59fb15d8bc6c3fe08495dbf7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/measure_theory/function/l2_space.lean | 73e7a16a5e4d8793c961dadaf3ceb5506019c003 | [
"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,930 | 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 data.is_R_or_C.lemmas
import measure_theory.function.strongly_measurable.inner
import measure_theory.integral.set_integral
/-! # `L^2` space
> THIS FILE IS SYNCH... |
56bcd78742f9a05b80004e52b7c96f38aa06d9a5 | 08bd4ba4ca87dba1f09d2c96a26f5d65da81f4b4 | /src/Lean/Message.lean | dc1b73a7fc27263fdf61419aca74cc666af19509 | [
"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",
"Apache-2.0",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | gebner/lean4 | d51c4922640a52a6f7426536ea669ef18a1d9af5 | 8cd9ce06843c9d42d6d6dc43d3e81e3b49dfc20f | refs/heads/master | 1,685,732,780,391 | 1,672,962,627,000 | 1,673,459,398,000 | 373,307,283 | 0 | 0 | Apache-2.0 | 1,691,316,730,000 | 1,622,669,271,000 | Lean | UTF-8 | Lean | false | false | 16,330 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
Message type used by the Lean frontend
-/
import Lean.Data.Position
import Lean.Data.OpenDecl
import Lean.MetavarContext
import Lean.Environ... |
d910bfeb366daf21596d64f8aaf3ab52523509a6 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/convex/cone/basic.lean | 34135c4216f23468a0fe5397e4f3c1675b293d41 | [
"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 | 35,885 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, FrΓ©dΓ©ric Dupuis
-/
import analysis.inner_product_space.projection
/-!
# Convex cones
In a `π`-module `E`, we define a convex cone as a set `s` such that `a β’ x + b ... |
4a06b3d527f2d6110dd0232b11ce45b457b227cb | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/order.lean | acf5ed5cf61bc98a460c9ee28e56768cdd3fb10c | [
"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 | 38,367 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro
-/
import topology.tactic
/-!
# Ordering on topologies and (co)induced topologies
Topologies on a fixed type `Ξ±` are ordered, by reverse inclusion.
Tha... |
0c977242e8b5dde55fcbe010bc849ae079929688 | bb31430994044506fa42fd667e2d556327e18dfe | /src/category_theory/groupoid.lean | c3b0ca0a31ab66e6b54d5770d2051c109f3ea786 | [
"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,752 | lean | /-
Copyright (c) 2018 Reid Barton All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Scott Morrison, David WΓ€rn
-/
import category_theory.full_subcategory
import category_theory.products.basic
import category_theory.pi.basic
import category_theory.category.bas... |
5c278a6436e39e7387adee6d5b610e0844b2edbd | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/instances/ereal.lean | d470b25d8eb13cefa1c8849ba7bb23489208e716 | [
"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 | 13,245 | lean | /-
Copyright (c) 2021 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel
-/
import data.real.ereal
import topology.algebra.order.monotone_continuity
import topology.instances.ennreal
/-!
# Topological structure on `ereal`
We endow `er... |
6294cc07fc297d91b66fdd70fdb372d3935c84a8 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/t1.lean | eccdc97f3aa268834203ea444e60a23588b88657 | [
"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 | 342 | lean | prelude
definition Prop : Type.{1} := Type.{0}
#print raw ((Prop))
#print raw Prop
#print raw fun (x y : Prop), x x
#print raw fun (x y : Prop) {z : Prop}, x y
#print raw Ξ» [x : Prop] [y : Prop] {z : Prop}, x z
#print raw Pi (x y : Prop) {z : Prop}, x
#print raw β (x y : Prop) {z : Prop}, x
#print raw forall {x y : Pro... |
986f49311d4f7126055ea1d78c5d94579b12bcdf | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/theories/number_theory/primes.lean | 6bf2532858a966d03db7d3b56ea9eeeff5795f60 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,228 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad
Prime numbers.
-/
import data.nat logic.identities
open bool algebra
namespace nat
open decidable
definition prime [reducible] (p : nat) := p... |
8336145a82398c751f755027dff44e1efb7a90a1 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/set_theory/ordinal_arithmetic.lean | d4099b56da89511eb6658bd200256326672902c0 | [
"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 | 91,807 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn, Violeta HernΓ‘ndez Palacios
-/
import logic.small
import set_theory.ordinal
import tactic.by_contra
/-!
# Ordinal arithmetic
Ordinals have an additio... |
e9044a9af53178d6e96564a5f69985253bef7236 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_topology/dold_kan/compatibility.lean | b5afeedb24a51169379acf882b5441912c87b345 | [
"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 | 7,638 | lean | /-
Copyright (c) 2022 JoΓ«l Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: JoΓ«l Riou
-/
import category_theory.equivalence
/-!
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
Tools for compatibilitie... |
eb1770790656a341a7b124934ee66c239995ab73 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/normed_space/add_torsor_bases.lean | b7c0f7d735963f8ccbd4f5c9c29207fe7d73564b | [
"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 | 7,225 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import analysis.normed_space.banach
import analysis.normed_space.finite_dimension
import analysis.convex.combination
import linear_algebra.affine_space.barycentric_coords
i... |
d30e51a5fb33f79ff11eeef31773f99925fc49c7 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/limits/cones.lean | 8fb3cbd600d0df425142ab46590586825f6fb7af | [
"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 | 28,787 | 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.discrete_category
import category_theory.yoneda
import category_theory.reflects_... |
2cb657f5308ccbb851511779d050a6b181363a78 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /test/chain.lean | 13b14d29beeff8b524c7399dffc93632913d3bfe | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 546 | lean | import tidy.chain
open tactic
def F : 1 = 1 β§ 2 = 2 :=
begin
chain {trace_steps:=tt} [`[refl], `[split]],
end
#print F
#print F._aux_3
def G : β Γ β :=
begin
chain {trace_steps:=tt} [`[split]],
chain {trace_steps:=tt} [`[exact 0]],
end
#print G
#print G._aux_1
open tactic
structure C :=
(a : β)
(b : a > 0)... |
0dc2dc82f93ce27582953718065c74569104d837 | 6b45072eb2b3db3ecaace2a7a0241ce81f815787 | /topology/continuity.lean | d2b2d604ee6c984800208479a08f5f1a51f09cef | [] | no_license | avigad/library_dev | 27b47257382667b5eb7e6476c4f5b0d685dd3ddc | 9d8ac7c7798ca550874e90fed585caad030bbfac | refs/heads/master | 1,610,452,468,791 | 1,500,712,839,000 | 1,500,713,478,000 | 69,311,142 | 1 | 0 | null | 1,474,942,903,000 | 1,474,942,902,000 | null | UTF-8 | Lean | false | false | 13,462 | 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
Continuous functions.
-/
import .topological_space
open set filter lattice
universes u v w x
variables {Ξ± : Type u} {Ξ² : Type v} {Ξ³ : Type w} {ΞΉ : Sort x}
theorem cla... |
fb86985978395740a0cfec6be2cf3630a5b10da6 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/sets/sets_level02.lean | aaaf2928090048df846c75c262f363055b732157 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,425 | lean | import game.sets.sets_level01 -- hide
namespace xena -- hide
open_locale classical -- hide
variable X : Type -- hide
/-
# Chapter 1 : Sets
## Level 2 : union (βͺ)
-/
/-
Working with sets is very similar to working with propositions.
Let's now prove that any set $A$ is included in its union with
any other set $B$... |
1044911c5664cc7ed0610ca0ff0137b72438895e | 37fa6e77734d3aca013fed5a19c4ee1fe1c38857 | /library/init/meta/tactic.lean | 2d3d6927ff1775acaa85f3555ef2c8a002627b86 | [
"Apache-2.0"
] | permissive | gazimahmud/lean | 8736ac0b0289850b4c7e7600604e2ce9fc8606ad | 08495eef27b33f68dfc681e3bcab23b4771cbf03 | refs/heads/master | 1,611,158,659,846 | 1,498,642,351,000 | 1,498,671,799,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,830 | 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.function init.data.option.basic init.util
import init.category.combinators init.category.monad init.category.alternative init.category.m... |
39d55a113db56685a2e7bea896dfd8ff20bc4827 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Elab/Tactic/Rewrite.lean | 55dc5eb46f957078c7cdb9bb3d142ee0809ba487 | [
"Apache-2.0"
] | permissive | jcommelin/lean4 | c02dec0cc32c4bccab009285475f265f17d73228 | 2909313475588cc20ac0436e55548a4502050d0a | refs/heads/master | 1,674,129,550,893 | 1,606,415,348,000 | 1,606,415,348,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,417 | 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.Tactic.Rewrite
import Lean.Meta.Tactic.Replace
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.ElabTerm
import Lean.Elab.Tactic.Locat... |
b5f7d29d0818400831211b686f693f34e9cfb5e3 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/sheaves/sheaf.lean | a63ac5bf08704f5a82a1110292413a72e8355c8e | [
"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 | 3,942 | 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.sheaf_condition.equalizer_products
import category_theory.full_subcategory
import category_theory.limits.unit
/-!
# Sheaves
We define sheave... |
1a0b4235f31f016761df4dc0908e0d172359f21c | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/data/indicator_function.lean | 3e32622787532ff4d9d91aff2253cdadbec9ba82 | [
"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 | 7,681 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import group_theory.group_action algebra.pi_instances data.set.disjointed
/-!
# Indicator function
`indicator (s : set Ξ±) (f : Ξ± β Ξ²) (a : Ξ±)` is `f a` if `a β s` an... |
48f23c5717a063292d9d6c6e12fea3cbb1de8cfa | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/calculus/fderiv.lean | 40d6bb3dcd5d1f2825b40b9dc0720d6a28afcb57 | [
"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 | 102,645 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, SΓ©bastien GouΓ«zel, Yury Kudryashov
-/
import analysis.calculus.tangent_cone
/-!
# The FrΓ©chet derivative
Let `E` and `F` be normed spaces, `f : E β F`, and `f' : E βL[οΏ½... |
6e8155eeb3a1bca3f4f84140ab2575662b4395c1 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/eq25.lean | ff7f72f3aa53cc2431e607804889ab6208221766 | [
"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 | 156 | lean | inductive N :=
| O : N
| S : N β N
definition Nat := N
open N
definition add1 : Nat β Nat β Nat
| add1 O b := b
| add1 (S a) b := S (add1 a b)
|
91d5ff39a831d0804a1ef551a6b59eb4aea545f4 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/category_theory/monoidal/of_chosen_finite_products.lean | 9191730e2f0575e738335aeeeebc9dc37bc765ec | [
"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 | 16,185 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Simon Hudon
-/
import category_theory.monoidal.braided
import category_theory.limits.shapes.binary_products
import category_theory.limits.shapes.terminal
import categor... |
90e87cf609ce3a8f788fccca1f7dd785cf5f8fcb | d29d82a0af640c937e499f6be79fc552eae0aa13 | /src/topology/algebra/infinite_sum.lean | 467574c66f25638e8e9b59a5d9810afa2bdceb0e | [
"Apache-2.0"
] | permissive | AbdulMajeedkhurasani/mathlib | 835f8a5c5cf3075b250b3737172043ab4fa1edf6 | 79bc7323b164aebd000524ebafd198eb0e17f956 | refs/heads/master | 1,688,003,895,660 | 1,627,788,521,000 | 1,627,788,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 51,243 | 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... |
ef1b11d82a1fbda7dcaadce90df23b54bb7f5b37 | 3618c6e11aa822fd542440674dfb9a7b9921dba0 | /src/pow_single_pullback.lean | 3d13e3fbe800063ce6f44b9dad7a170e0026081e | [] | no_license | ChrisHughes24/single_relation | 99ceedcc02d236ce46d6c65d72caa669857533c5 | 057e157a59de6d0e43b50fcb537d66792ec20450 | refs/heads/master | 1,683,652,062,698 | 1,683,360,089,000 | 1,683,360,089,000 | 279,346,432 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,727 | lean | import P
import initial
import choose_letters
/-!
# Pow single pullback
The main definition in this file is `pow_single_pullback`
`pow_single_pullback t n p` has the property that for any `r`
`lhs (pow_single t n r) p = pow_single t n a` and
`right p = pow_single t n b` then
`lhs r (pow_single_pullback t n p) = a` an... |
b4c2564020408eaf75ba1d7347f79340065cd17f | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/thm95/default.lean | 5acef7f647559c924bc51a8c7c4a3e1a1ad5d60c | [] | 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 | 5,582 | lean | import breen_deligne.constants
import system_of_complexes.completion
import thm95.homotopy
import thm95.col_exact
noncomputable theory
universe variable u
open_locale nnreal -- enable the notation `ββ₯0` for the nonnegative real numbers.
open polyhedral_lattice opposite
open thm95.universal_constants system_of_dou... |
2038803ac0f53aca5416d24883a295da128df692 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/category/Module/subobject.lean | 6c944c9d578044073301b537fc2a1a998f57563d | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 2,329 | lean | /-
Copyright (c) 2021 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import algebra.category.Module.epi_mono
import category_theory.subobject.well_powered
/-!
# Subobjects in the category of `R`-modules
We construct an explicit order i... |
0ab74000db862e2c5958807ad4ff0c14eddb375f | 6b10c15e653d49d146378acda9f3692e9b5b1950 | /examples/basic_skills/unnamed_231.lean | 184679e790d1684a17094be8ee460fdd44f5904c | [] | no_license | gebner/mathematics_in_lean | 3cf7f18767208ea6c3307ec3a67c7ac266d8514d | 6d1462bba46d66a9b948fc1aef2714fd265cde0b | refs/heads/master | 1,655,301,945,565 | 1,588,697,505,000 | 1,588,697,505,000 | 261,523,603 | 0 | 0 | null | 1,588,695,611,000 | 1,588,695,610,000 | null | UTF-8 | Lean | false | false | 181 | lean | import data.real.basic
-- BEGIN
variables a b c d e f : β
example (h : a * b = c * d) (h' : e = f) :
a * (b * e) = c * (d * f) :=
by rw [h', βmul_assoc, h, mul_assoc]
-- END |
923ae2665c824708f7937037f15cfdc6db1ea631 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/int/log.lean | 9beea3d18ed73e64093aa35aa4510c1104e9a26b | [
"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 | 12,177 | lean | /-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import algebra.order.floor
import data.nat.log
/-!
# Integer logarithms in a field with respect to a natural base
This file defines two `β€`-valued analogs of the logarith... |
5ff1eab84e34c2780072d39d10f687c305b3d85e | e8d53a7b78545d183a23dd7bd921bc7ff312989f | /encode.hlean | ed6ed4bcc1607a57134733cf2ee8268a6bf3ab4a | [] | no_license | Sumit0730/Impredicative | 857007626592440a27cf4440aa9a226d0ede7f3e | a75cb9989a684133d31d4889a746ee4fa7b66cea | refs/heads/master | 1,631,994,804,745 | 1,531,980,761,000 | 1,531,980,761,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,000 | hlean | -- Impredicative encodings of (higher) inductive types
-- formalization by Steve Awodey and Jonas Frey
-- accompanies LICS 2018 paper by Awodey, Frey, and Sam Speight
import imp_prop_trunc .helpers
open funext eq trunc is_trunc prod sum pi function is_equiv sigma sigma.ops
abbreviation U := Type.{0}
abbreviatio... |
7c90c5dae93149aad95da7013fbe3511874a7d37 | 6afa22d5eee6e9a56b6a2f1210eca8f7a1067466 | /library/init/algebra/classes.lean | f15533c8573fbe948ef6ff2f1dd2ffdc00f7359c | [
"Apache-2.0"
] | permissive | giordano/lean | 72a1fabfeb2f1ccfd38673e2719a719cd6ffbb40 | 56f8877f1efa22215aca0b82f1c0ce2ff975b9c3 | refs/heads/master | 1,663,091,511,168 | 1,590,688,082,000 | 1,590,688,082,000 | 268,183,678 | 0 | 0 | Apache-2.0 | 1,590,885,425,000 | 1,590,885,424,000 | null | UTF-8 | Lean | false | false | 12,176 | 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.logic init.data.ordering.basic
universes u v
@[algebra] class is_symm_op (Ξ± : Type u) (Ξ² : out_param (Type v)) (op : Ξ± β Ξ± β Ξ²) : Prop ... |
8c726ea1ea4358f578dbc2d65438b021b55717c6 | e38e95b38a38a99ecfa1255822e78e4b26f65bb0 | /src/certigrad/ops.lean | 808966d3909cff0be2b3872c7b5a340d8a6bdc85 | [
"Apache-2.0"
] | permissive | ColaDrill/certigrad | fefb1be3670adccd3bed2f3faf57507f156fd501 | fe288251f623ac7152e5ce555f1cd9d3a20203c2 | refs/heads/master | 1,593,297,324,250 | 1,499,903,753,000 | 1,499,903,753,000 | 97,075,797 | 1 | 0 | null | 1,499,916,210,000 | 1,499,916,210,000 | null | UTF-8 | Lean | false | false | 28,198 | lean | /-
Copyright (c) 2017 Daniel Selsam. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Daniel Selsam
Deterministic operators.
-/
import .tgrads .util .tcont .det
namespace certigrad
open T list
namespace ops
section tactic
open tactic
meta def idx_over : tactic unit :... |
e095bb6fd5f78ea6172cf8630d2ec72c76b4dd29 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/ordered_group.lean | 03111a8e38e830d359d55bc5adae53e6805a3854 | [
"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 | 69,383 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura, Mario Carneiro, Johannes HΓΆlzl
-/
import algebra.group.with_one
import algebra.group.type_tags
import algebra.group.prod
import algebra.order_functions... |
05e3953cf09b37edf0ce29ced8b280c3984b44c6 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/span.lean | 56abfe2cb55453d17ac6ba01d9b030e8c9517d6e | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 35,825 | lean | /-
Copyright (c) 2017 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Mario Carneiro, Kevin Buzzard, Yury Kudryashov, FrΓ©dΓ©ric Dupuis,
Heather Macbeth
-/
import linear_algebra.basic
import order.compactly_generated
import order.omega_co... |
810c9015645ec0ec4fcbadaabd945c97b57c45fb | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/limits/preserves/shapes.lean | 3b859fbbd4e002bbaf533791d4c9e58ed34ceed0 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 2,699 | 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 category_theory.limits.preserves.basic
import category_theory.limits.shapes.products
universes v uβ uβ
noncomputable theory
open category_theory
open catego... |
7f3ec5607b7077e9840a187fd040a118237c3c4d | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/run/reverts_tac.lean | 6eae43326f165c4a6643afa12c116a97be02a527 | [
"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 | 552 | lean | import logic
theorem tst {a b c : Prop} : a β b β c β a β§ b :=
begin
intros (Ha, Hb, Hc),
reverts (Hb, Ha),
intros (Hb2, Ha2),
apply (and.intro Ha2 Hb2),
end
theorem foo1 {A : Type} (a b c : A) (P : A β Prop) : P a β a = b β P b :=
begin
intros (Hp, Heq),
reverts (Heq, Hp),
intro Heq,
apply (eq.rec_o... |
fa4202712a58cd57f372938f7cb2532986c19a9e | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/compiler/rbmap_library.lean | 54844b7f18847f27ae5e68297e1a99c470ff48eb | [
"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 | 2,312 | lean | import Std
open Std
def check (b : Bool) : IO Unit := do
unless b do IO.println "ERROR"
def sz {Ξ± Ξ² : Type} {lt : Ξ± β Ξ± β Bool} (m : RBMap Ξ± Ξ² lt) : Nat :=
m.fold (fun sz _ _ => sz+1) 0
def depth {Ξ± Ξ² : Type} {lt : Ξ± β Ξ± β Bool} (m : RBMap Ξ± Ξ² lt) : Nat :=
m.depth Nat.max
def tst1 : IO Unit :=
do let Map := RBMap S... |
5013fd00a4ff428ea52e9e9a28a147b7b00c2502 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/inClassNotes/predicate_logic/and.lean | 9776a45948234eb647f6d99d64305146003d8115 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 1,912 | lean | /-
The connective, β§, in predicate as in
propositional logic builds a proposition
that asserts that each of two propositions
is true. Given propositions P, Q, P β§ Q
is also a proposition, and we judge it to
be true iff we judge P to be true and we
judge Q to be true. We judge P and Q to
be true iff we have evidence th... |
fffb2f3e32c78abbe70744bba4c73c4c816fe895 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/ring_theory/ideal/operations.lean | e95e7f47b820915321f73dc39e36ef2b1b573fe7 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 41,058 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.nat.choose.sum
import data.equiv.ring
import ring_theory.algebra_operations
import ring_theory.ideal.basic
/-!
# More operations on modules and ideals
-/
universes ... |
982beed6ffc7f45d6440fc63f6902f1c158ef6bc | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/bicategory/functor.lean | cd2dd598ec9ad819436d9557fb275624ebcec8c9 | [
"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 | 8,962 | lean | /-
Copyright (c) 2022 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.bicategory.basic
/-!
# Oplax functors
An oplax functor `F` between bicategories `B` and `C` consists of
* a function between objects `F.obj : B βΆ C... |
c66420135c312d94cdf6c10c1c954790f3aee0fd | e0b0b1648286e442507eb62344760d5cd8d13f2d | /src/Lean/Meta/IndPredBelow.lean | 5a466055fbd5855dc97b48496bbee3832bb60754 | [
"Apache-2.0"
] | permissive | MULXCODE/lean4 | 743ed389e05e26e09c6a11d24607ad5a697db39b | 4675817a9e89824eca37192364cd47a4027c6437 | refs/heads/master | 1,682,231,879,857 | 1,620,423,501,000 | 1,620,423,501,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,180 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dany Fabian
-/
import Lean.Util.Constructions
import Lean.Meta.Transform
import Lean.Meta.Tactic
namespace Lean.Meta.IndPredBelow
register_builtin_option maxBackwardChainingD... |
e8a64881079be437989c009649e0eed884d586a4 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Lean/Data/Json/Basic.lean | d644b5de4f1afeb1297cbc22e9156d46acb073a7 | [
"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,893 | lean | /-
Copyright (c) 2019 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Marc Huisinga
-/
import Std.Data.RBTree
namespace Lean
-- mantissa * 10^-exponent
structure JsonNumber where
mantissa : Int
exponent : Nat
deriving DecidableEq
n... |
2df7b41f7a01c834ca5932ab94b3dd2592b45924 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/calculus/local_extr.lean | 8eaf28507c27565a43feb958117539cb1b44724a | [
"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 | 14,839 | 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 topology.local_extr
import analysis.calculus.deriv
/-!
# Local extrema of smooth functions
## Main definitions
In a real normed space `E` we define `pos_t... |
68da354fb1d7bd8f2859353dc8906f7bb8bd1699 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/peano/piazza_puzzle.lean | 8818600580579d1b8dd1e5fb5fd7a4b462620c37 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 1,048 | lean | import tactic
open_locale classical
open set
example (f : β β β) : f = id β β n, f (f n) < f (n + 1) :=
begin
split,
{ -- easy way
rintro rfl,
-- it's obvious
simp },
{ -- interesting way
-- Assume `f(f(n))<f(n+1)` for all n
intro hf,
-- Let S be the range of f
set S := range f with... |
506eef430a157b19270a46f9d80ca2f73731382c | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/ring_theory/fractional_ideal.lean | 6e6c77fed603bab0b6d6ccef3967174fb57bf6e5 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 27,507 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import ring_theory.localization
import ring_theory.principal_ideal_domain
/-!
# Fractional ideals
This file defines fractional ideals of an integral domain and proves bas... |
64095374713a44d867b962de0c4e8b14ea2b3dc3 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebra/homology/opposite.lean | e015eb1f61d5e60c5531fef40c90fa4edd554bd3 | [
"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 | 12,129 | lean | /-
Copyright (c) 2022 Amelia Livingston. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Amelia Livingston
-/
import category_theory.abelian.opposite
import category_theory.abelian.homology
import algebra.homology.additive
/-!
# Opposite categories of ... |
a87f0fcf5d22684bafff5a5efaf0d23dd92abefd | 02fbe05a45fda5abde7583464416db4366eedfbf | /library/init/meta/simp_tactic.lean | 64ae8179f7e1a0b1bd6ae854328ab1ee7d4a23a5 | [
"Apache-2.0"
] | permissive | jasonrute/lean | cc12807e11f9ac6b01b8951a8bfb9c2eb35a0154 | 4be962c167ca442a0ec5e84472d7ff9f5302788f | refs/heads/master | 1,672,036,664,637 | 1,601,642,826,000 | 1,601,642,826,000 | 260,777,966 | 0 | 0 | Apache-2.0 | 1,588,454,819,000 | 1,588,454,818,000 | null | UTF-8 | Lean | false | false | 26,741 | 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.meta.attribute init.meta.constructor_tactic
import init.meta.relation_tactics init.meta.occurrences
import init.data.op... |
ec74979ee27847737b2d7b7e750796738b525ddc | bf511698708289d2e2079ed8c47bd6810efe526c | /src/missing.lean | 04fd40335d4300f34cf230a081c964683946c7fd | [] | no_license | shingtaklam1324/darboux | 914d76f4c4c0806dff183e7e0c70b81b0b044340 | 1db362ad8a5c36f20a5784ae8663113da8976750 | refs/heads/master | 1,678,776,603,071 | 1,614,422,864,000 | 1,614,422,864,000 | 342,832,203 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,413 | lean | import topology.instances.real
namespace real
theorem Inf_le_Sup (S : set β) (hβ : β x, x β S) (hβ : β x, β y β S, y β€ x)
(hβ : β x, β y β S, x β€ y) :
Inf S β€ Sup S :=
begin
cases hβ with k hk,
exact le_trans (real.Inf_le _ hβ hk) (real.le_Sup _ hβ hk),
end
end real
lemma exists_of_range_eq_range {Ξ± : Type... |
5951309fd2bbe7d22b608f8a798d20d418c9c6fb | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /archive/sensitivity.lean | 15341f03b2ff87b9c81244518860ed5f4f247db2 | [
"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,641 | lean | /-
Copyright (c) 2019 Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis,
Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Jesse Han, Chris Hughes, Robert Y. Lewis, Patrick Massot
-/
import tactic.fin_cases... |
873f9f87dabc59e99ae61f1b0723871407bebddc | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/pfunctor/univariate/M.lean | a5f6936881562fd7bc65bdc29d686a8b2bbca06e | [
"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 | 23,888 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import data.pfunctor.univariate.basic
import meta.coinductive_predicates
/-!
# M-types
M types are potentially infinite tree-like structures. They are defined
as the great... |
652a572489f38cd70672193d9db3805156acd4c4 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/category_theory/products/default.lean | 799133aca2af13b0e1788371bdf40f6f0c864e72 | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 6,928 | 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
import category_theory.functor_category
import category_theory.isomorphism
import tactic.interactive
namespace category_theory
universes vβ vβ v... |
51ad10f2d7c4b38f7a63b99fb603d01ae8ae64f2 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /data/real/nnreal.lean | 81f253b5b85c9ef7b95681f98d17c5ea5452a492 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 14,252 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
Nonnegative real numbers.
-/
import data.real.basic order.lattice
section discrete_field
@[simp] lemma inv_eq_zero {Ξ±} [discrete_field Ξ±] (a : Ξ±) : aβ»ΒΉ = 0 β a = 0 :=... |
c8a85a8a67ed52338bc489465e297807f7cac631 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/Lake/Build/Topological.lean | 90faeb3370750f1a4e7a92290afc5bb798f7268c | [
"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 | 5,206 | 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.Cycle
import Lake.Util.Store
import Lake.Util.EquipT
/-!
# Topological / Suspending Recursive Builder
This module defines a recursive build function that t... |
8bcd3ddd94051813125e6e37b63884c46dd525b8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/qpf/multivariate/constructions/sigma.lean | 29eb3b1f10efcafde53f3308dbd0033885d10308 | [] | 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 | 4,105 | lean | /-
Copyright (c) 2018 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.data.pfunctor.multivariate.basic
import Mathlib.data.qpf.multivariate.basic
import Mathlib.PostPor... |
a0abb96adb52c2d8f04a5e3b3feb6b30e116494f | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Server/Rpc/RequestHandling.lean | 04bf080b1a8ad4c77903cd8aca4bf8f846008d49 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 5,756 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Data.Lsp.Extra
import Lean.Server.Requests
import Lean.Server.Rpc.Basic
namespace Lean.Server
private structure RpcProcedure where
wrapper... |
8a210de301ee4a5cd8bc89bc4761868a32d671fd | 87a08a8e9b222ec02f3327dca4ae24590c1b3de9 | /src/measure_theory/integration.lean | 2eef0bcb81ac4f7d41263218579e0f456a53c8f1 | [
"Apache-2.0"
] | permissive | naussicaa/mathlib | 86d05223517a39e80920549a8052f9cf0e0b77b8 | 1ef2c2df20cf45c21675d855436228c7ae02d47a | refs/heads/master | 1,592,104,950,080 | 1,562,073,069,000 | 1,562,073,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 46,142 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes HΓΆlzl
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
e4a71a5cd7b5d0bbec6199dc98b4c141eae75b4d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/p_series.lean | 28bd743d1a821cea90255b156932fbde6267767d | [
"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 | 12,498 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import analysis.special_functions.pow
/-!
# Convergence of `p`-series
In this file we prove that the series `β' k in β, 1 / k ^ p` converges if and only if ... |
91c7a0105469405a607734550edac2612c6735c3 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/sqrt_auto.lean | 86f6118c5bf0bfb1c335885454880d090f050b95 | [] | 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 | 3,843 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Johannes HΓΆlzl, Mario Carneiro
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.int.basic
import Mathlib.PostPort
namespace... |
a6d3d1d1868e130f310f690ca3e6f4d51058ea99 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/scc.lean | d2d3fa0955886759c86d32da4ceaa8ab12879754 | [
"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 | 763 | lean | import Lean.Util.SCC
open Lean.SCC
def checkSCC (expected : List (List Nat)) (vertices : List Nat) (successorsOf : Nat β List Nat) : IO Unit := do
let r := scc vertices successorsOf;
IO.println r;
unless (expected == r) $
throw $ IO.userError ("expected result " ++ toString expected)
#eval checkSCC [[2], [1, 3], [4... |
b715cb5efba32c75691aa3c6e84ba26bf7040082 | cc4e32129597fc42f4ac133f6eef3dbfd3d16218 | /Analysis/test.lean | cfdc1d804a8c55e13d2e39f22292040c63c435c6 | [] | no_license | JasonKYi/analysis_in_lean4 | 9791c76ab5f9408731acca075cf604ef4700b117 | 280d45bf2fc9c2f599b365a60a4b980bb2721c24 | refs/heads/main | 1,683,375,225,248 | 1,622,048,948,000 | 1,622,048,948,000 | 370,429,249 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,034 | lean | import Lean
open Lean Macro
universes u v
class Mem (Ξ± : outParam $ Type u) (Ξ³ : Type v) where
mem : Ξ± β Ξ³ β Prop
infix:50 " β " => Mem.mem
notation:50 x " β " s => Β¬ x β s
def Set (Ξ± : Type u) := Ξ± β Prop
def setOf {Ξ± : Type u} (p : Ξ± β Prop) : Set Ξ± :=
p
class Subset (Ξ± : Type u) where
subset : Ξ± β Ξ± β Pro... |
9137b3a5a061f96329f30ad8392688e5801b3411 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/rewrite_tactic.lean | 61717133c263280c40ae6aa6c83b1da4d6055c3f | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 1,934 | 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.relation_tactics init.meta.occurrences
namespace tactic
/-- Configuration options for the `rewrite` tactic. -/
structure rewrite_c... |
9415413da70e61c76ee784f653d8289fc2b434b4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/dependencies.lean | 8901b1c050670b624c5066a8198c2c7d131b120f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 5,886 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import tactic.dependencies
open tactic
open native.rb_map (set_of_list)
namespace native
meta def rb_set.equals {Ξ±} (xs ys : rb_set Ξ±) : bool :=
xs.fold tt (Ξ» x b... |
4441494a5ba2900221d9656b919e729c5335164d | a537b538f2bea3181e24409d8a52590603d1ddd9 | /src/tidy/lib/tactic.lean | 0e765dbb1f47d7c70947abb3d9a36392e93e1d6d | [] | no_license | rwbarton/lean-tidy | 6134813ded72b275d19d4d32514dba80c21708e3 | fe1125d32adb60decda7a77d0f679614ba9f6fbb | refs/heads/master | 1,585,549,718,705 | 1,538,120,619,000 | 1,538,120,624,000 | 150,864,330 | 0 | 0 | null | 1,538,225,790,000 | 1,538,225,790,000 | null | UTF-8 | Lean | false | false | 2,500 | lean | import .pretty_print
universe u
namespace tactic
meta def is_eq_after_binders : expr β bool
| (expr.pi n bi d b) := is_eq_after_binders b
| `(%%a = %%b) := tt
| _ := ff
meta def is_iff_after_binders : expr β bool
| (expr.pi n bi d b) := is_iff_after_binders b
| `(%%a β %%b) :=... |
dc6026c7f482ec084250020f3930f71c0ca83698 | 6b2d795ffb2bd5090156ce3a22ed770709328526 | /classical.lean | fc90d1900a1bda3f793ea718355bea2377d3ac9a | [] | no_license | sb7297/lean-exercises | e870fcd83a82d680fca92604238d89d9a797bd5b | d68a90b8db7fb3917c5526ddd001975b206c9a8c | refs/heads/master | 1,584,492,072,270 | 1,526,775,357,000 | 1,526,775,357,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,710 | lean | open classical
variables p q r s : Prop
theorem corsica : (p β r β¨ s) β ((p β r) β¨ (p β s)) :=
assume h : p β r β¨ s,
by_cases
(assume h1 : p,
(h h1).elim
(assume hr : r, or.inl (assume hp : p, hr))
(assume hs : s, or.inr (assume hp : p, hs)))
(assume h1 : Β¬p, or.inl (assume hp :... |
03b762683d4c9ece207c3da8cc58073dda6441e6 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/equiv/algebra.lean | c1e5c0f3c471ec68ecca7ae9d0e27f3e4c850e43 | [
"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 | 21,923 | 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, Callum Sutton
-/
import data.equiv.basic algebra.field
/-!
# equivs in the algebraic hierarchy
In the first part there are theorems of the following
form: if `Ξ±` has... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.