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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ec7380054d4b35a643a7f121c525a8ad08d9ddf | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/rcases.lean | 08e0d3173f07e51d3e603f3cafd637d43f6cbf2b | [
"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 | 20,053 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.dlist tactic.core
open lean lean.parser
namespace tactic
/-
These synonyms for `list` are used to clarify the meanings of the many
usages of lists in t... |
f7573edb8bd40a31450cff7c73ab07d933535785 | f29cd213e19220aedf7c72ee6ac95ba61a73f452 | /src/sub.lean | d1e69b5dc6e45ab82eefecb9aaee6dc9f8bc8285 | [] | no_license | EdAyers/topos | 1e42c2514272bc53379c6534643c6be0dc28ab9c | 349dac256403619869d01bc0f4c55048570cb61d | refs/heads/master | 1,610,003,311,636 | 1,582,115,034,000 | 1,582,115,034,000 | 241,615,626 | 0 | 0 | null | 1,582,115,125,000 | 1,582,115,124,000 | null | UTF-8 | Lean | false | false | 2,965 | lean | import category_theory.whiskering
import category_theory.opposites
import category_theory.limits.shapes.finite_limits
import category_theory.limits.shapes.terminal
import category_theory.limits.shapes.pullbacks
import category_theory.epi_mono
import category_theory.category.Cat
import category_theory.yoneda
import .pul... |
c92dc3b6c78cffa4b6288d2dcbb9ccf38b5e27ac | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Group/abelian_auto.lean | a8a31403c1b35bb11a809d07c2b5bd13867e5a5a | [] | 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,881 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.category.Group.Z_Module_equivalence
import Mathlib.algebra.category.Group.limits
impo... |
d41fef71b30a3b35b489ed7eca42dbf255c3f998 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/squash.lean | c13c72c0587e933efbb3e13539729ed52b18619b | [
"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 | 1,819 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Define squash type (aka propositional truncation) using quotients.
This definition is slightly better than defining the squash type ∥A∥ as (nonempty A).
If we ... |
91d977dc613d75292aabe17854bc0f7ff877b16a | cb1829c15cd3d28210f93507f96dfb1f56ec0128 | /theorem_proving/Sec_7_4.lean | 054eca797a0e1eeda1be9c57c5fda5a5da42b798 | [] | no_license | williamdemeo/LEAN_wjd | 69f9f76e35092b89e4479a320be2fa3c18aed6fe | 13826c75c06ef435166a26a72e76fe984c15bad7 | refs/heads/master | 1,609,516,630,137 | 1,518,123,893,000 | 1,518,123,893,000 | 97,740,278 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 861 | lean | namespace hide
-- inductive nat : Type
-- | zero : nat
-- | succ : nat → nat
-- #check @nat.rec_on
-- namespace nat
-- def add (m n : nat) : nat :=
-- nat.rec_on n m (λ n add_m_n, succ add_m_n)
-- #reduce add (succ zero) (succ (succ zero))
-- instance : has_zero nat := has_zero.mk zero... |
341999235100d6207f30c51242fefc7b379440fb | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/tactic/norm_num.lean | 833170e09aedb9bee605ddf2c95343da9cf46f16 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 20,222 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import algebra.group_power data.rat.order data.rat.cast data.rat.meta_defs data.nat.prime
import tactic.interactive tactic.converter.interactive
/-!
# `nor... |
1f1884d54f0dbf533a5beafa3c31e192ea47acc3 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/topology/sheaves/presheaf.lean | 6460861aa3ddaf0fbba04957310cc113ae0b53cc | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,810 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Mario Carneiro, Reid Barton
-/
import topology.category.Top.opens
/-!
# Presheaves on a topological space
We define `presheaf C X` simply as `(opens X)ᵒᵖ ⥤ C`,
and in... |
d637987a0fbf04e499e5a7c10b82333c4c12dca2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/data/set_like/basic.lean | 6db27c156f5b081f4676037fa0e55f183b29fe53 | [
"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 | 5,842 | lean | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import data.set.basic
import tactic.monotonicity.basic
/-!
# Typeclass for types with a set-like extensionality property
The `has_mem` typeclass is used to let terms of a... |
aff560d5915ef38db096fd736e5fd82f0022d2a2 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/category_theory/limits/shapes/pullbacks.lean | 027c36c2425fb361a6662a97894c73da80a3aff6 | [
"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 | 27,318 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel, Bhavik Mehta
-/
import category_theory.limits.shapes.wide_pullbacks
import category_theory.limits.shapes.binary_products
/-!
# Pullbacks
We define a ca... |
2f0cdaa44b86e2f0fbfe891d222e86902a66c77f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_geometry/morphisms/universally_closed.lean | 1d53bcffeb4caa2c2280f85e3b7f01c6bbd3a435 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,651 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.morphisms.basic
import topology.local_at_target
/-!
# Universally closed morphism
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to th... |
efebb01a454fe6a526eea75326da546d70c00e3e | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/data/option/basic.lean | 25484b2749c2abc06884ad0bce64e4d02ba0e6d3 | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 6,109 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import logic.basic data.bool data.option.defs tactic.basic
namespace option
variables {α : Type*} {β : Type*} {γ : Type*}
@[simp] theorem get_mem : ∀ {o : option α}... |
2815dce1d12552dbc4bb7ec15651d45833e065ae | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/continuous_function/polynomial.lean | 9fd21bbf205a282f737e23f0132351e27b8b2c1f | [
"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 | 6,278 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import topology.algebra.polynomial
import topology.continuous_function.algebra
import topology.continuous_function.compact
import topology.unit_interval
/-!
# Constr... |
c2cf2b960964ef647af65d723df6901b15b32ab6 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Compiler/LCNF/Simp/JpCases.lean | e66bfa65c74eee5b0456c884f834d70c2922f064 | [
"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 | 12,061 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.DependsOn
import Lean.Compiler.LCNF.InferType
import Lean.Compiler.LCNF.Internalize
import Lean.Compiler.LCNF.Simp.Basic
import Le... |
25133c759e0e1da808715ae05f12fc79dcaf42d8 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/algebra/ordered_ring.lean | d03d056992978a952df05bd9277d137a9aad0215 | [
"Apache-2.0"
] | permissive | molodiuc/mathlib | cae2ba3ef1601c1f42ca0b625c79b061b63fef5b | 98ebe5a6739fbe254f9ee9d401882d4388f91035 | refs/heads/master | 1,674,237,127,059 | 1,606,353,533,000 | 1,606,353,533,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 43,996 | 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
-/
import algebra.ordered_group
set_option old_structure_cmd true
universe u
variable {α : Type u}
/-- An `ordered_semiring α` is a s... |
cf9749751124b0b84468f559a0d2bbdfea56eef4 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/linear_algebra/dfinsupp.lean | 4732fc78906dd2b922e4d16e4f702fba7ec46e5e | [
"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,572 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Kenny Lau
-/
import data.dfinsupp
import linear_algebra.basic
/-!
# Properties of the module `Π₀ i, M i`
Given an indexed collection of `R`-modules `M i`, the `R`-module s... |
98b106adfed7c434f1deda97087b8d58e4579570 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/structuralEqns3.lean | ac72ee052221785df6bdb297f07fe896e700bf6b | [
"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 | 423 | lean | import Lean
open Lean
open Lean.Meta
def tst (declName : Name) : MetaM Unit := do
IO.println (← getUnfoldEqnFor? declName)
inductive Wk: Nat -> Nat -> Type 0 where
| id: Wk n n
| step: Wk m n -> Wk (Nat.succ m) n
def wk_comp : Wk n m → Wk m l → Wk n l
| Wk.id, σ => σ
| Wk.step ρ, σ => Wk.step (wk_comp ρ σ)... |
8f6c77407a32ed2b03df16d9b35fc901df47ce17 | 1ce2e14f78a7f514bae439fbbb1f7fa2932dd7dd | /src/tree_sort.lean | a3e2e29052fd5487cce9b121cfc746fc22530a23 | [
"MIT"
] | permissive | wudcscheme/lean-mathgirls | b88faf76d12e5ca07b83d6e5580663380b0bb45c | 95b64a33ffb34f3c45e212c4adff3cc988dcbc60 | refs/heads/master | 1,678,994,115,961 | 1,585,127,877,000 | 1,585,127,877,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,141 | lean | import data.list.basic data.list.perm
import tactic tactic.basic tactic.omega
namespace tree_sort
inductive tree (α: Type*) --[has_lt α] [h : decidable_rel ((<) : α → α → Prop)]
| l {} : tree
| n : tree -> α -> tree -> tree
def tree.has_dec_eq {α: Type*} [e: decidable_eq α]: decidable_eq (tree α)
| tree.l ... |
ceaa5ade0f13ba47d795b50bb2971606411d7bee | ccb7cdf8ebc2d015a000e8e7904952a36b910425 | /src/test.lean | 67c6eef7237b470d5c4f47a41d208e6413564dbf | [] | no_license | cipher1024/lean-pl | f7258bda55606b75e3e39deaf7ce8928ed177d66 | 829680605ac17e91038d793c0188e9614353ca25 | refs/heads/master | 1,592,558,951,987 | 1,565,043,356,000 | 1,565,043,531,000 | 196,661,367 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 630 | lean |
import spec
open separation separation.hProp
variables {value : Type}
example {p q a b : hProp value}
(h₀ : p =*> a)
(h₁ : b =*> q)
(h₂ : p =*> b)
(h₃ : p =*> q)
(h₄ : a =*> q)
(h₅ : a =*> b)
(h₆ : a =*> b ⊛ q)
(h₇ : p =*> emp) :
p ⊛ a =*> q ⊛ b :=
begin
duplicate_goal 9,
{ s_apply h₀, admit }... |
da618f4152a7ae81a8aab290eb29e6fe55a7ec65 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/testing/slim_check/gen.lean | 8fe6bf2ecda0e455751fb5281e7df70a946ac56e | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,705 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.uliftable
import system.random
import system.random.basic
/-!
# `gen` Monad
This monad is used to formulate randomized computations with a parameter
to sp... |
ade966619bc3970ba0251d19ad0e1c7109ddc4ee | 57fdc8de88f5ea3bfde4325e6ecd13f93a274ab5 | /analysis/ennreal.lean | c3b07f8f7fee79f9f424800c2b6f6735dbc7e069 | [
"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 | 43,727 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Extended non-negative reals
-/
import order.bounds algebra.ordered_group analysis.real analysis.topology.infinite_sum
noncomputable theory
open classical set lattice fil... |
e1b3d3a855493077f60b7a03c37928a0d3f051d9 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2509.lean | 5608adba99227e823fe8799f6ddef417d82a7c26 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 711 | lean | import data.real.basic
def converges_to (s : ℕ → ℝ) (a : ℝ) :=
∀ ε > 0, ∃ N, ∀ n ≥ N, abs (s n - a) < ε
open_locale classical
-- BEGIN
theorem converges_to_unique {s : ℕ → ℝ} {a b : ℝ}
(sa : converges_to s a) (sb : converges_to s b) :
a = b :=
begin
by_contradiction abne,
have : abs (a - b) > 0,
{ sorry ... |
3b736af60e6ca6c42e82165add481f70a706a985 | b0d97c09d47e3b0a68128c64cad26ab132d23108 | /src/compcont/ex2.lean | 8bdac63ab576c0b049fd76dd9fc7d9a0ba5d7165 | [] | no_license | jmvlangen/RIP-seminar | 2ad32c1c6fceb59ac7ae3b2251baf08f4c0c0caa | ed6771404dd4bcec298de2dfdc89d5e9cfd331bb | refs/heads/master | 1,585,865,817,237 | 1,546,865,823,000 | 1,546,865,823,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,164 | lean | import analysis.topology.topological_space
import analysis.topology.continuity
import analysis.topology.topological_structures
import ex1
open tactic expr
variables {X : Type*} {Y : Type*} {Z : Type*} {W : Type*} {f f₁ f₂ : X → Y} {g : Y → Z} {h : Z → W}
variables [topological_space X] [topological_space Y] [topologic... |
8de1ae58c08efb9824ae5bcaa3cf5a19426d1f76 | c5b07d17b3c9fb19e4b302465d237fd1d988c14f | /src/data/fseq.lean | ccd0c9be619a1b9a4f3812b2f1488b483c88a577 | [
"MIT"
] | permissive | skaslev/papers | acaec61602b28c33d6115e53913b2002136aa29b | f15b379f3c43bbd0a37ac7bb75f4278f7e901389 | refs/heads/master | 1,665,505,770,318 | 1,660,378,602,000 | 1,660,378,602,000 | 14,101,547 | 0 | 1 | MIT | 1,595,414,522,000 | 1,383,542,702,000 | Lean | UTF-8 | Lean | false | false | 65 | lean | -- fseq(n,x) = xⁿ
def fseq (n : ℕ) (X : Type) := fin n → X
|
048f274a280fee512c66ab7a3cfa74bac067bddc | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/trace1.lean | 43c8a36d3d9b485bff960f1bf501bfc4c9cabd0f | [
"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 | 297 | lean | open tactic
example : true :=
by do
when_tracing `app_builder $ do {
trace "hello",
trace "world" },
constructor
set_option trace.app_builder true
#print "------------"
example : true :=
by do
when_tracing `app_builder $ do {
trace "hello",
trace "world" },
constructor
|
515670ceb04bb394dbbc20a877bab47f8367f049 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Lean/Elab/Binders.lean | ffbbd820039f3e497abe0f338efe422cf5ccedf2 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,459 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Quotation.Precheck
import Lean.Elab.Term
import Lean.Elab.BindersUtil
import Lean.Parser.Term
namespace Lean.Elab.Term
open Meta
open Lean... |
e8b4fd9a6f8a2938478bba8418c40ebcbdc65892 | 0845ae2ca02071debcfd4ac24be871236c01784f | /library/init/data/string/basic.lean | 188c94e150a0d21b0039908f1e54ad049b0ff393 | [
"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 | 14,770 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.data.list.basic init.data.char.basic init.data.option.basic
universes u
structure String :=
(data : List Char)
abbrev String.Pos := Nat... |
75068febad3e65ef0d917587fa170eb4f36dbbe5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/linear_isometry.lean | 197d40bd68a709c47882f9a943f924a16ae1bb48 | [
"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 | 37,642 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Frédéric Dupuis, Heather Macbeth
-/
import analysis.normed.group.basic
import topology.algebra.module.basic
import linear_algebra.basis
/-!
# (Semi-)linear isometrie... |
4f5caeaec4513841d84ec3b2a793e2be27467e1e | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/probability_theory/integration.lean | 92addd49ac84d901eb8536c0169910ee98dc369d | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 5,675 | lean | /-
Copyright (c) 2021 Martin Zinkevich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Martin Zinkevich
-/
import measure_theory.integration
import probability_theory.independence
/-!
# Integration in Probability Theory
Integration results for independent random vari... |
64dfde104108bf099615920e0741f294d2d584cd | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/algebra/group_ring_action.lean | e49c56a2b84102d8c9339b54b841c9908b78a5ca | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 4,660 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Group action on rings.
-/
import group_theory.group_action
import data.equiv.ring
import data.polynomial
universes u v
variables (M G : Type u) [monoid M] [group G]
variables ... |
f9cb125e8a20268411390f8b66237f33fb9c3335 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/elementwise.lean | 020c19c1d70f65382a5c609b7f6555cd37c58013 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 9,047 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import tactic.fresh_names
import category_theory.concrete_category
/-!
# Tools to reformulate category-theoretic lemmas in concrete categories
## The `elementwise` ... |
bde679c0e521b83933eb587b4e25fc0b8fcd67c6 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/init/types.hlean | 56cc786e6448bee5b6110236ac7a82099e241035 | [
"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,789 | hlean | /-
Copyright (c) 2014-2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Floris van Doorn, Jakob von Raumer
-/
prelude
import init.num init.wf
open iff
-- Empty type
-- ----------
namespace empty
protected... |
9bc8925f128bd8d775c45117a332cff873f8eeb9 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Init/Data/List/Basic.lean | 36ca359e70c8e31be1ecfbbc3985e39594a6bf96 | [
"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 | 11,475 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import Init.SimpLemmas
import Init.Data.Nat.Basic
open Decidable List
universes u v w
variable {α : Type u} {β : Type v} {γ : Type w}
namespace Li... |
1e94ee74a596ed97edd39b67a56e8666189f1e03 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/elabissues/error_aux_decl_exists.lean | 5a013ac950225548c3b986302ef6ecaa81c5a11b | [
"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 | 779 | lean | /-
Sub-optimal error message.
The implementation detail that an auxiliary function `foo._main` leaks,
when there is a simple explanation for the problem that doesn't involve it.
-/
def foo : Nat → Unit
| 0 => ()
| n+1 => foo n
-- Second recursive function with same name.
/-
def foo : Nat → Unit
| 0 => ()
| n+1 => foo... |
c34a4d479ebbf058d5ab772018273952b867c5fc | 1e3a43e8ba59c6fe1c66775b6e833e721eaf1675 | /src/ring_theory/noetherian.lean | d3e5fa63029ca3231081f23e0d623135b5dd4245 | [
"Apache-2.0"
] | permissive | Sterrs/mathlib | ea6910847b8dfd18500486de9ab0ee35704a3f52 | d9327e433804004aa1dc65091bbe0de1e5a08c5e | refs/heads/master | 1,650,769,884,257 | 1,587,808,694,000 | 1,587,808,694,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,127 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import ring_theory.ideal_operations
import linear_algebra.basis
/-!
# Noetherian rings and modules
The following are equivalent for... |
c96a1fbfc373395bca61812c284eaffa078473d7 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/fin.lean | bd44008f59fda16d38da2ba3e0293650b539b095 | [
"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 | 11,367 | lean | /-
Copyright (c) 2017 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis, Keeley Hoek
More about finite numbers.
-/
import data.nat.basic
open fin nat
/-- `fin 0` is empty -/
def fin_zero_elim {C : Sort*} : fin 0 → C :=
λ x, false.elim $... |
6f5f5522d96469092b09fa0dd05a07083c37307e | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group_with_zero/inj_surj.lean | d12262651b61d31fdd193b8fdf13bfbe6c4a1b9a | [
"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 | 11,465 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group.inj_surj
import algebra.group_with_zero.defs
/-!
# Lifting groups with zero along injective/surjective maps
> THIS FILE IS SYNCHRONIZED WITH MA... |
5e909e68e6ae64fd02b5ffbca38b668d129e7120 | ac2987d8c7832fb4a87edb6bee26141facbb6fa0 | /Mathlib/Data/Char.lean | 580a7548b1b044755757380a4199270ceb202a14 | [
"Apache-2.0"
] | permissive | AurelienSaue/mathlib4 | 52204b9bd9d207c922fe0cf3397166728bb6c2e2 | 84271fe0875bafdaa88ac41f1b5a7c18151bd0d5 | refs/heads/master | 1,689,156,096,545 | 1,629,378,840,000 | 1,629,378,840,000 | 389,648,603 | 0 | 0 | Apache-2.0 | 1,627,307,284,000 | 1,627,307,284,000 | null | UTF-8 | Lean | false | false | 508 | lean |
/-- Convert a character into a `UInt8`, by truncating (reducing modulo 256) if necessary. -/
def Char.toUInt8 (n : Char) : UInt8 := n.1.toUInt8
theorem Char.utf8Size_pos (c : Char) : 0 < c.utf8Size :=
let this {c} {t e : UInt32} : [Decidable c] → 0 < t → 0 < e → 0 < ite c t e
| Decidable.isTrue _, h, _ => h
| D... |
ca15df01b5e257a633585a0216d5647f4930e1fb | 618003631150032a5676f229d13a079ac875ff77 | /src/algebra/group/hom.lean | 099ef6aa09675de168d44b8d78b57c29a626281d | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 10,665 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Kevin Buzzard, Scott Morrison, Johan Commelin, Chris Hughes,
Johannes Hölzl, Yury Kudryashov
-/
import algebra.group.basic
import tactic.ext
/-!
# monoid and group h... |
64054b47d521d10f067eacdcd4d1836405050bef | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/option/n_ary.lean | 154c3832cd793d0203389b716fc5d492f152a61e | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 8,135 | 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.option.basic
/-!
# Binary map of options
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/656
> Any change... |
275f2e00199b1bfc858ecad3052f844647c2ba81 | 5d62e434e81e3303af5bef665e46bef75f10b45e | /current_mathlib/src/algebraic_closure.lean | 2651fdb3c20f4b597ebd46a6a21b016307f2a19e | [] | no_license | ChrisHughes24/type_class | 4b49764e9b96b2c7d2b6e4e7827730ca7a64a3b2 | b582b60bdc84b7cd17b4243600088143afddc65c | refs/heads/master | 1,595,404,449,845 | 1,567,951,656,000 | 1,567,951,656,000 | 207,121,926 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,393 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import ring_theory.adjoin_root
import algebra.direct_limit
import set_theory.schroeder_bernstein
import ring_theory.integral_closure
universes u v w
open polynomial zor... |
9a3e51253ea66e347ba42208a9b275384eacf3ed | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/reflectiveIndPred.lean | 7abbec8d7f692cfc633f6c7b897f5faf2c33c51c | [
"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 | 344 | lean | inductive Expr where
| val : Nat → Expr
| add : Expr → Expr → Expr
| fn : (Nat → Expr) → Expr
inductive Pos : Expr → Prop
| base : (n : Nat) → Pos (Expr.val n.succ)
| add : Pos e₁ → Pos e₂ → Pos (Expr.add e₁ e₂)
| fn : ((n : Nat) → Pos (f n)) → Pos (Expr.fn f)
#print Pos.below
#print Pos.brecOn
|
ec69a3d30820540da81e87b1c12370d7db1026fb | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /library/data/nat/sub.lean | 4ceaedcfaafd3a4518f09e465a2ff3676bea0b51 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,816 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jeremy Avigad
Module: data.nat.sub
Subtraction on the natural numbers, as well as min, max, and distance.
-/
import .order
import tools.fake_simplifier
open eq.... |
c526162f1ebdbbfb0a65ce6f8a47c4d56e7972c3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/tauto.lean | 23c8e69030152f440c4eb49377831c765d7a4ac7 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,198 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic.tauto
section tauto₀
variables p q r : Prop
variables h : p ∧ q ∨ p ∧ r
include h
example : p ∧ p :=
by tauto
end tauto₀
section tauto₁
variables α : Type
... |
bf171688b0385ee6d1d78efd466eeeec2772bdc3 | b00eb947a9c4141624aa8919e94ce6dcd249ed70 | /src/Lean/Elab/App.lean | cfdd8f66c71e10ba525a04f04e85ad2a279ff5ef | [
"Apache-2.0"
] | permissive | gebner/lean4-old | a4129a041af2d4d12afb3a8d4deedabde727719b | ee51cdfaf63ee313c914d83264f91f414a0e3b6e | refs/heads/master | 1,683,628,606,745 | 1,622,651,300,000 | 1,622,654,405,000 | 142,608,821 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,638 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Util.FindMVar
import Lean.Parser.Term
import Lean.Elab.Term
import Lean.Elab.Binders
import Lean.Elab.SyntheticMVars
namespace Lean.Elab.Term
o... |
72f2a70a926e14c9bc7764376c1cb4f091181cba | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/algebra/group/defs.lean | 86e945eaaf6926088f3e82f422d0e21fd8427397 | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,914 | 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, Simon Hudon, Mario Carneiro
-/
import algebra.group.to_additive
import tactic.basic
/-!
# Typeclasses for (semi)groups and monoid
In this file we def... |
d147ee17319ccc20a714a4bcc0634af4214584bf | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/expand_exists.lean | 9d3a8e62c899be5d988301b0b93b111a9f292f31 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,774 | lean | /-
Copyright (c) 2022 Ian Wood. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ian Wood
-/
import meta.expr
/-!
# `expand_exists`
`expand_exists` is an attribute which takes a proof that something exists with some property, and
outputs a value using `classical.some`,... |
abf4fed07df71da9fc5d2bfff8013a559cc24fa7 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/analysis/convex/topology.lean | 1ac6afa87cf6565fa2a9aaa78eda799a26529586 | [
"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 | 7,485 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import analysis.convex.basic
import analysis.normed_space.finite_dimension
/-!
# Topological and metric properties of convex sets
We prove the... |
e62819e67cb7b6cee941dd6d595cbe50c1e8f06e | 246309748072bf9f8da313401699689ebbecd94d | /src/ring_theory/noetherian.lean | e4d57044426b2d0c698693baf1c86b9635d8f4e8 | [
"Apache-2.0"
] | permissive | YJMD/mathlib | b703a641e5f32a996f7842f7c0043bab2b462ee2 | 7310eab9fa8c1b1229dca42682f1fa6bfb7dbbf9 | refs/heads/master | 1,670,714,479,314 | 1,599,035,445,000 | 1,599,035,445,000 | 292,279,930 | 0 | 0 | null | 1,599,050,561,000 | 1,599,050,560,000 | null | UTF-8 | Lean | false | false | 23,236 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import ring_theory.ideal.operations
import linear_algebra.basis
import order.order_iso_nat
/-!
# Noetherian rings and modules
The f... |
2a9dc285e6477c30424d510ec6a7f7f6d979a3de | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/instances/matrix.lean | e6e13f42fe4a54fe371cb4dd0850d532a4efc7c9 | [
"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 | 18,454 | lean | /-
Copyright (c) 2021 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash, Eric Wieser
-/
import linear_algebra.determinant
import topology.algebra.infinite_sum
import topology.algebra.ring
import topology.algebra.star
/-!
# Topological properties ... |
f42da343427da8f191355080c6c3c3c9aea276dd | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Meta/Match/MatchEqsExt.lean | 0fa05e6c2ce602d3729ff298029513abc6317c8f | [
"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 | 1,211 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
namespace Lean.Meta.Match
structure MatchEqns where
eqnNames : Array Name
splitterName : Name
splitterAlt... |
6de13b2de7b4b4a5b1c1d2fa4f1f4da0d5bec1a9 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/sheaves/sheaf_condition/sites.lean | 0f96952d7cd00ff263964a3543fe1875468e80a1 | [
"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 | 20,058 | 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 category_theory.sites.sheaf
import category_theory.sites.spaces
import topology.sheaves.sheaf
/-!
# The sheaf condition in terms of sites.
The theory of ... |
2c03e20cb89bf939bdd6661931d4b433407781dc | 7b02c598aa57070b4cf4fbfe2416d0479220187f | /homotopy/fwedge.hlean | a6ecdb40be91b6f30a68eb7f854d4d6072356bba | [
"Apache-2.0"
] | permissive | jdchristensen/Spectral | 50d4f0ddaea1484d215ef74be951da6549de221d | 6ded2b94d7ae07c4098d96a68f80a9cd3d433eb8 | refs/heads/master | 1,611,555,010,649 | 1,496,724,191,000 | 1,496,724,191,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,457 | hlean | /-
Copyright (c) 2016 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
The Wedge Sum of a family of Pointed Types
-/
import homotopy.wedge ..move_to_lib ..choice
open eq pushout pointed unit trunc_index sigma bool equiv trunc choice u... |
d736f7e0a9c30810ef21751b88dcd71877c8075b | e030b0259b777fedcdf73dd966f3f1556d392178 | /tests/lean/run/unfold_issue.lean | f4be2c5dc8d602b3df9322da1bf6affee521cca5 | [
"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 | 311 | lean | def f : nat → nat → nat
| 0 := λ x, x
| (n+1) := λ x, x + 1
meta def check_expr (p : pexpr) (t : expr) : tactic unit :=
do e ← tactic.to_expr p, guard (t = e)
example (n : nat): f (n+1) n = n + 1 :=
begin
unfold f,
(tactic.target >>= check_expr `((λ x, x + 1) n = n + 1)),
reflexivity,
end
|
ee84b22eb556468a0cee882982fda0c4b4b45a75 | 6ae186a0c6ab366b39397ec9250541c9d5aeb023 | /src/category_theory/idempotent_completion.lean | 86ca1a8d1ee8ae17d7f1ae855ee4cbbb69b04415 | [] | no_license | ThanhPhamPhuong/lean-category-theory | 0d5c4fe1137866b4fe29ec2753d99aa0d0667881 | 968a29fe7c0b20e10d8a27e120aca8ddc184e1ea | refs/heads/master | 1,587,206,682,489 | 1,544,045,056,000 | 1,544,045,056,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,354 | 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.equivalence
namespace category_theory
universes u u₁ v₁ u₂ v₂
structure idempotent (C : Type u₁) [category.{u₁ v₁} C] :=... |
258b8918ad8d86b963a3427234fe443d60845cdf | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/ring_hom_properties.lean | 019209c051f6c8fa40d9b454772d60100432ffdc | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 5,117 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebra.category.Ring.constructions
import algebra.category.Ring.colimits
import category_theory.isomorphism
import ring_theory.localization.away
/-!
# Properties o... |
8011cba64f857b10b41fbfef458a596f5fa862c5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/syntaxInNamespacesAndPP.lean | 251ba3301db18185e57c4d1974d73565503bb99b | [
"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 | 297 | lean | namespace Foo
syntax "foo" term : term
macro_rules
| `(foo $x) => pure x
set_option trace.Elab true in
#check foo true
end Foo
namespace Bla
syntax (name := bla) "bla" term : term
macro_rules
| `(bla $x) => pure x
set_option trace.Elab true in
#check bla true
#print Bla.bla
end Bla
|
84e371c756a9e67bec7a552ea5698b02672fc649 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world8/level7.lean | ded1cd7ebc0d61a2d188a8ae43b27b6e068614d7 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 741 | lean | import game.world8.level6 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 7: `add_right_cancel_iff`
It's sometimes convenient to have the "if and only if" version
of theorems like `add_right_cancel`. Remember that you can use `split`
to split an `↔` goal into the `→` goal and the `←` goal.
##... |
cf697377b556c191c2adcd9ceba83779893fa286 | f3a5af2927397cf346ec0e24312bfff077f00425 | /src/game/world8/level10.lean | e47d394ca59490c63b0a71a0e4c279dfbb9bf3f4 | [
"Apache-2.0"
] | permissive | ImperialCollegeLondon/natural_number_game | 05c39e1586408cfb563d1a12e1085a90726ab655 | f29b6c2884299fc63fdfc81ae5d7daaa3219f9fd | refs/heads/master | 1,688,570,964,990 | 1,636,908,242,000 | 1,636,908,242,000 | 195,403,790 | 277 | 84 | Apache-2.0 | 1,694,547,955,000 | 1,562,328,792,000 | Lean | UTF-8 | Lean | false | false | 1,993 | lean | import game.world8.level9 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 10: `add_left_eq_zero`
## Important: the definition of `≠`
In Lean, `a ≠ b` is *defined to mean* `(a = b) → false`.
This means that if you see `a ≠ b` you can *literally treat
it as saying* `(a = b) → false`. Computer s... |
10e56c8811a8c36f631b4a6d8cd1b0dabf6f293c | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/measure_theory/function/l1_space.lean | e3b03c584789b360c1f803e4d06035e4d5177701 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 51,869 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.function.lp_order
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic pro... |
8131ebaa4e0770fe97754cf761e1ef59cc7ed82f | 5a6ff5f8d173cbfe51967eb4c96837e3a791fe3d | /mm0-lean/mm0/set.lean | fc949051bf7abc0ed91f5487ab2fcede7534e945 | [
"CC0-1.0"
] | permissive | digama0/mm0 | 491ac09146708aa1bb775007bf3dbe339ffc0096 | 98496badaf6464e56ed7b4204e7d54b85667cb01 | refs/heads/master | 1,692,321,030,902 | 1,686,254,458,000 | 1,686,254,458,000 | 172,456,790 | 273 | 38 | CC0-1.0 | 1,689,939,563,000 | 1,551,080,059,000 | Rust | UTF-8 | Lean | false | false | 3,807 | lean | import mm0.basic
namespace mm0
@[mm0 strict provable] def wff : Type := Prop
@[mm0 ax] def imp : wff → wff → wff := (→)
@[mm0 ax] def neg : wff → wff := not
attribute [mm0_alias neg] not
local infixr ` => `:30 := imp
local prefix `~` := neg
notation `wi` := imp
notation `wn` := neg
@[mm0 ax] theorem ax_1 {ph ps : wf... |
b7c5bb6bedb887360d9f27e1e81f1bc33b2f1969 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/group_theory/coset.lean | 23a8f77cca0f05a381715fb55cc38eab7d9e9b7b | [
"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 | 9,099 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup data.equiv.basic data.quot
open set function
variable {α : Type*}
@[to_additive left_add_coset]
def left_coset [has_m... |
93e9f9d6864558fee9582012eebf4efbab7e39de | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/ring_theory/simple_module.lean | 9b53dc5a33cb02fce3871c920bb031bbf82bbebd | [
"Apache-2.0"
] | permissive | stjordanis/mathlib | 51e286d19140e3788ef2c470bc7b953e4991f0c9 | 2568d41bca08f5d6bf39d915434c8447e21f42ee | refs/heads/master | 1,631,748,053,501 | 1,627,938,886,000 | 1,627,938,886,000 | 228,728,358 | 0 | 0 | Apache-2.0 | 1,576,630,588,000 | 1,576,630,587,000 | null | UTF-8 | Lean | false | false | 5,323 | 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 linear_algebra.basic
import order.atoms
/-!
# Simple Modules
## Main Definitions
* `is_simple_module` indicates that a module has no proper submodules
(... |
b173955853d289da27c7475a937736bf4b4f3398 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Init/Control/Basic.lean | 37dcd11aa600be6594da00171531a33f4697920d | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,812 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Core
universes u v w
@[reducible] def Functor.mapRev {f : Type u → Type v} [Functor f] {α β : Type u} : f α → (α → β... |
83020e6729dba9c8344c5c4f02cc7cdeaf89e9c0 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/algebra/continuous_functions.lean | 97788fcfabf8ca375f7dbba4f42fcb34ccd38c9c | [
"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 | 2,275 | 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.basic
import topology.algebra.ring
import ring_theory.subring
universes u v
local attribute [elab_simple] continuous.comp
@[to_additive continuous_... |
9bb46d20d26961ee2d872045d431b06666450566 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/rat/countable.lean | 3e4ca578b37770ebac75e774e8eb5f19038ad5ba | [
"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 | 1,423 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import data.rat.basic data.countable data.encodable data.int.countable
open encodable nat int option quot
namespace rat
definition encode_prerat : prerat → ... |
f04da7e89551532b731ed8d90bc6bc8e590099fb | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/geo/tes.lean | 496908592579f668a5ccfdabd5bc5eabf0553a26 | [] | no_license | Or7ando/lean | cc003e6c41048eae7c34aa6bada51c9e9add9e66 | d41169cf4e416a0d42092fb6bdc14131cee9dd15 | refs/heads/master | 1,650,600,589,722 | 1,587,262,906,000 | 1,587,262,906,000 | 255,387,160 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,151 | lean | import algebra.ring
import tactic
import order.bounded_lattice
/--
## It's the group functor idem,
## e1 × e2 = e1 e2 + (1-e1)(1-e2)
-/
structure idem (R : Type ) [comm_ring R] :=
(e : R)
(certif : e * e = e)
namespace idem
variables {R : Type} [comm_ring R]
/-! extension lemma : E = E' ↔ E.e = E'.e -/
@[ext] le... |
4c8feeb653d2447a929405ae2440bdc65be48eef | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/algebra/ordered_ring.lean | e4466bde17c5b2529828ffe4fd38cb4d2d9f50a3 | [
"Apache-2.0"
] | permissive | EdAyers/mathlib | 9ecfb2f14bd6caad748b64c9c131befbff0fb4e0 | ca5d4c1f16f9c451cf7170b10105d0051db79e1b | refs/heads/master | 1,626,189,395,845 | 1,555,284,396,000 | 1,555,284,396,000 | 144,004,030 | 0 | 0 | Apache-2.0 | 1,533,727,664,000 | 1,533,727,663,000 | null | UTF-8 | Lean | false | false | 17,696 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.basic algebra.order algebra.ordered_group algebra.ring data.nat.cast
universe u
variable {α : Type u}
-- TODO: this is necessary additionally to mul_no... |
b48d2315ff0f68c048fcb6129d0a2c8e5e21db66 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/hit/coeq.hlean | 7cc5975fb7dd39970b2c054d9ad3bcaa25eb3724 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,721 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the coequalizer
-/
import .quotient
open quotient eq equiv equiv.ops
namespace coeq
section
universe u
parameters {A B : Type.{u}} (f g : A → B)
... |
756d55706b482feb507d7c91a2c815efa3b15caf | 6fbf10071e62af7238f2de8f9aa83d55d8763907 | /src/2.2_logic_terms.lean | d139dc0c8f2842cfdfa32e40155b293d9319f232 | [] | no_license | HasanMukati/uva-cs-dm-s19 | ee5aad4568a3ca330c2738ed579c30e1308b03b0 | 3e7177682acdb56a2d16914e0344c10335583dcf | refs/heads/master | 1,596,946,213,130 | 1,568,221,949,000 | 1,568,221,949,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,745 | lean | /-
Copyright 2019 Kevin Sullivan and Ben Hocking.
-/
/-
Literal terms
-/
#eval 1
#eval tt
#eval "Hello, Lean!"
/-
Identifier terms
-/
namespace Terms.ex2
def x := 1
def y := 1 + 1
#eval x
#eval y
end Terms.ex2
/-
Lambda abstract terms: a special case of literal terms. Lambda abstractions are literal terms that ... |
a75a0e26a1ff3ac54c7ccf3a401d1e9b9be3d6ec | 137c667471a40116a7afd7261f030b30180468c2 | /src/analysis/complex/polynomial.lean | bc1aaad82da00f1d38474ec8bc67615919702a83 | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,621 | lean | /-
Copyright (c) 2019 Chris Hughes All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import analysis.special_functions.pow
import field_theory.algebraic_closure
import topology.algebra.polynomial
/-!
# The fundamental theorem of algebra
This file proves ... |
ba81900a29f1614a7c7f1d6db7c458e90c4a5a28 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/ring_theory/matrix_algebra.lean | edd5eac3048266ed7b444c4984d51f4ceadb1197 | [
"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 | 6,074 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import data.matrix.basis
import ring_theory.tensor_product
/-!
We show `matrix n n A ≃ₐ[R] (A ⊗[R] matrix n n R)`.
-/
universes u v w
open_locale tensor_product
op... |
1b21a698ff042e3adb37bd0d8b90f112e9971965 | 1901b51268d21ec7361af7d3534abd9a8fa5cf52 | /src/graph_theory/contraction.lean | 0c87858e638d29ce858bafb094e3ba6c13f1b9a7 | [] | no_license | vbeffara/lean | b9ea4107deeaca6f4da98e5de029b62e4861ab40 | 0004b1d502ac3f4ccd213dbd23589d4c4f9fece8 | refs/heads/main | 1,652,050,034,756 | 1,651,610,858,000 | 1,651,610,858,000 | 225,244,535 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 7,131 | lean | import graph_theory.pushforward graph_theory.path
open function classical
variables {V V' V'' : Type*} {x y z : V} {x' y' z' : V'} {f : V → V'} {g : V' → V''}
variables {G H : simple_graph V} {G' H' : simple_graph V'} {G'' : simple_graph V''}
namespace simple_graph
def adapted (f : V → V') (G : simple_graph V) : Pro... |
20c3be6da4db9df44af32ed86f8117680a33a276 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/hott/cases_eq.hlean | b2dc9c8cc530004499af380d43e04830ec5d793a | [
"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 | 509 | hlean | open eq.ops
theorem trans {A : Type} {a b c : A} (h₁ : a = b) (h₂ : b = c) : a = c :=
begin
cases h₁, cases h₂, apply rfl
end
theorem symm {A : Type} {a b : A} (h₁ : a = b) : b = a :=
begin
cases h₁, apply rfl
end
theorem congr2 {A B : Type} (f : A → B) {a₁ a₂ : A} (h : a₁ = a₂) : f a₁ = f a₂ :=
begin
cases h,... |
22427d3bdddbf6028cc9096dd6939383d5259860 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/algebraic_geometry/prime_spectrum.lean | f8064e6c952927be57dfc362adb38d384263899e | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 13,031 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import topology.opens
import ring_theory.ideal_operations
import linear_algebra.finsupp
/-!
# Prime spectrum of a commutative ring
The prime spectrum of a commutati... |
423869cbff750a138e12ea10af6fc186a3437296 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/quot_ind_bug.lean | 2ccb4e2c4dc87afbd6c011a9dd8baa681a57e858 | [
"Apache-2.0"
] | permissive | bre7k30/lean | de893411bcfa7b3c5572e61b9e1c52951b310aa4 | 5a924699d076dab1bd5af23a8f910b433e598d7a | refs/heads/master | 1,610,900,145,817 | 1,488,006,845,000 | 1,488,006,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 217 | lean | open quotient
variables {A : Type} [s : setoid A] {B : quotient s → Prop} (c : ∀ (a : A), B (quotient.mk a)) (a : A)
check (quotient.ind c ⟦a⟧ : B ⟦a⟧)
check c a
eval (quotient.ind c ⟦a⟧ : B ⟦a⟧)
|
9953475ffead4d12bbacbfa6b5a3b86e24bc7dd2 | c8b4b578b2fe61d500fbca7480e506f6603ea698 | /src/unused/resultant/basic.lean | 61475ce4c4906a3a5058706caaef31b06b08d07f | [] | no_license | leanprover-community/flt-regular | aa7e564f2679dfd2e86015a5a9674a6e1197f7cc | 67fb3e176584bbc03616c221a7be6fa28c5ccd32 | refs/heads/master | 1,692,188,905,751 | 1,691,766,312,000 | 1,691,766,312,000 | 421,021,216 | 19 | 4 | null | 1,694,532,115,000 | 1,635,166,136,000 | Lean | UTF-8 | Lean | false | false | 4,100 | lean | import field_theory.galois
import linear_algebra.determinant
import data.polynomial.derivative
import data.matrix.notation
import data.multiset.basic
import algebra.module.basic
section resultant
variables {R : Type*}
open matrix polynomial
open_locale polynomial
-- TODO redefine this in terms of a matrix.from_column_b... |
ac84647ed26309d9866c3fc8c9f5eef8ddc2d6a3 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/struct1.lean | 6273d5c9219ecc35bf9b34e71de30b5338e1387d | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 993 | lean | new_frontend
structure A0.{u} (α : Type u) :=
(x : α)
structure A.{u} (α : Type u) extends A0 α :=
(y : α)
structure B.{u} (α : Type u) :=
(z : α)
variable (β : Type _)
variable (β' : Type _)
universe u
structure C.{v} (α : Type _) (δ : Type u) (η : Type v) extends A β, B α :=
mk2 :: (w : Nat := 10)
#check C
#ch... |
3fa48da22aeb3e88147057291cfb7924a3e60c0d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/analysis/normed_space/continuous_affine_map.lean | 61513ff3a0f202947d0849bd34d3a450ab8f7538 | [
"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,495 | 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 topology.algebra.continuous_affine_map
import analysis.normed_space.affine_isometry
import analysis.normed_space.operator_norm
/-!
# Continuous affine maps between ... |
c6bad273267d09eb59e9f5fc35f27cb090fcd614 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/floor.lean | 77174285b16690e9a134010208a04d515a1eb4c8 | [
"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 | 10,613 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Kappelmann
-/
import tactic.linarith
import tactic.abel
import algebra.ordered_group
import data.set.intervals.basic
/-!
# Floor and Ceil
## Summary
We define `... |
0fd245c9a24cfce5b0c20652fe9480fd401e8011 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/associated.lean | 4bec54ef8b5505ceac7916c02c416e53eb135791 | [
"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 | 40,958 | 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
-/
import algebra.divisibility.basic
import algebra.group_power.lemmas
import algebra.parity
import order.atoms
/-!
# Associated, prime, and irreducible... |
0fd6f3ec8e10cdf09ef4944804b3156918fe09b1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/extra/print_info.lean | 310791c78fd3915f048183c9e83c1ddc1aa2f42d | [
"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 | 526 | lean | import data.int
open nat int
variables a b : nat
variables i j : int
axiom mysorry : ∀ {A : Type}, A
definition foo := add a i
definition f₁ := a + i
example (n : nat) : n + n = 2 * n :=
begin
unfold [nat.add,mul],
apply mysorry
end
example (n : nat) : n + n = n + n :=
rfl
example (a₁ a₂ a₃ : nat) : a₁ = 0 → a₂... |
40d275b53d231dd9b1d0ecbbf73187f4ac9199c5 | 39c5aa4cf3be4a2dfd294cd2becd0848ff4cad97 | /src/Terms.lean | 9f5cc48d38324c24b16d7cf009dfb913281d7b84 | [] | no_license | anfelor/coc-lean | 70d489ae1d34932d33bcf211b4ef8d1fe557e1d3 | fdd967d2b7bc349202a1deabbbce155eed4db73a | refs/heads/master | 1,617,867,588,097 | 1,587,224,804,000 | 1,587,224,804,000 | 248,754,643 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,928 | lean | import data.finset
/-! This file implements terms of a pure type system -/
@[derive decidable_eq]
inductive PTSSort : Type | star | box
open PTSSort
instance ptssort_has_repr : has_repr PTSSort :=
{ repr := λ s, match s with star := "*" | box := "□" end }
inductive Exp : Type
| free : string → Exp
| bound : nat →... |
d2ab5c457daa63e315dec8f3b5b0cf2f521fd6d8 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/nat/pairing.lean | b2f6f40486e1538ccb14e4522d2e2d9d75a03c8b | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,411 | 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
Elegant pairing function.
-/
import data.nat.sqrt data.nat.div
open prod decidable
namespace nat
definition mkpair (a b : nat) : nat :=
if a < b then b*b + a... |
bff5e9dc6f4bf80ebf792a4528b4c084a30a55e2 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/group/action.lean | 40174526c0d77bc10dd063d95222d838733b13cc | [
"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 | 8,460 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import measure_theory.group.measurable_equiv
import measure_theory.measure.regular
import dynamics.ergodic.measure_preserving
import dynamics.minimal
/-!
# M... |
926758d36810b257f9bb325f244dbb96cdca0408 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/finset/slice.lean | b88806deb040e071d4bfb774ae78b9b933ca11f3 | [
"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,386 | lean | /-
Copyright (c) 2021 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.basic
import data.nat.interval
import order.antichain
/-!
# `r`-sets and slice
> THIS FILE IS SY... |
5bb693998125d40d30b171aeccc1021acbef40a4 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/category/Mon/basic_auto.lean | 2c5eea89b12d468d5552e03ae84a7e643f2256d5 | [] | 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 | 8,265 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.category_theory.concrete_category.bundled_hom
import Mathlib.category_theory.concrete_categ... |
735ad64364318a7801a2a833a8be0c5a85de25b9 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/unfold_tac_bug1.lean | 86ae5173f4830bc0fa3825128a16970ab8891022 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,167 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
Show that tail recursive fib is equal to standard one.
-/
import data.nat
open nat
definition fib : nat → nat
| 0 := 1
| 1 := 1
| (n+2) := fib (n+1) +... |
1ef016c68d53bb5344fe90f2cee840d925b94b4f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/order/group.lean | b514c665ca1c83a2767a9f3b821a4a4f30d07172 | [
"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 | 47,033 | 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.abs
import algebra.order.sub
import order.order_dual
/-!
# Ordered groups
This file develops the bas... |
5279db54641f06c326d88a4ab9fda701c9b532b9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/normal_mono/equalizers.lean | 2fd7929120b712c01c7ba6caccacb7ab233943e8 | [
"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,223 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
import category_theory.limits.shapes.normal_mono.basic
import category_theory.limits.shapes.finite_products
/-!
# Normal mono categories with finite products and kerne... |
b9562e0f29be5bf6e929149ef1ba72f8422973c5 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/array/slice.lean | 8b290af0ab6729e8e7e73feb174eee2c2f86ca69 | [
"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,309 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
prelude
import init.data.nat init.data.array.basic init.data.nat.lemmas
universes u
variables {α : Type u} {n : nat}
namespace array
def slice (a : array n α)... |
3f89c8301f84909e09767b5736a5934de42e2a46 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/propositional_logic/propositional.lean | 80073bc852c1bbfb9b6faa945e63466d04ea382b | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,837 | lean |
/-
Propositional logic.
-/
/-
Propositions.
P: Kevin Is at Home.
Q: It's warm outside.
If P and Q are propositions, then so are
- not P
- P and Q
- P or Q
- P implies Q
-/
/-
Syntax -- defines set of well formed expressions.
We formalize syntax as an inductive data type.
Expressions are then just values of this... |
c416d47e8d17dabefda5570e52c4cd1671659c08 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/field_theory/finite.lean | 57e47c65664fc5198a2a6c9ec8df5a26d50cc61e | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 10,182 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Joey van Langen, Casper Putz
-/
import data.equiv.ring
import data.zmod.basic
import linear_algebra.basis
import ring_theory.integral_domain
/-!
# Finite fields
This fil... |
f7651c5bb3db8066ecb8bbc5fe94dfcc555a3ab8 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/preserves/basic.lean | cb916a33b292c4b9c0ae778be200d41ccd44663b | [
"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 | 28,116 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton, Bhavik Mehta
-/
import category_theory.limits.has_limits
/-!
# Preservation and reflection of (co)limits.
There are various distinct notions of "preservi... |
ced3aee7e9ea0353a7eda16bab414d307ba84117 | 367134ba5a65885e863bdc4507601606690974c1 | /test/simps.lean | 5a797e359926bb8354c3a558c9b9cab5f5b0fdb2 | [
"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 | 26,695 | lean | import tactic.simps
import algebra.group.to_additive
universe variables v u w
-- set_option trace.simps.verbose true
-- set_option trace.simps.debug true
-- set_option trace.app_builder true
open function tactic expr
structure equiv (α : Sort*) (β : Sort*) :=
(to_fun : α → β)
(inv_fun : β → α)
(left_inv : lef... |
bd107a2d6848c022c522ed23beb0320528564a4a | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/lvl1.lean | 9f1e21bc71f3a3695016980a6d69b68704d76b8a | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,344 | lean | import Lean.Level
namespace Lean
namespace Level
def mkMax (xs : Array Level) : Level :=
xs.foldl (start := 1) (init := xs[0]) mkLevelMax
#eval toString $ normalize $ mkLevelSucc $ mkLevelSucc $ mkMax #[levelZero, mkLevelParam `w, mkLevelSucc (mkLevelSucc (mkLevelSucc (mkLevelParam `z))), levelOne, mkLevelSucc (mkLe... |
5f0a73df7c49d24d2eaad2d3d38a12d2a020c2ea | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/mjissue.lean | d5b9ee48416c01745f84f9a0507d21fe9809f546 | [
"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 | 434 | lean | def Family (α : Type _) (n : Nat) := Inhabited (Fin n → α)
def all_but_last {α} {n} (f : Family α (n + 1)) : Family α n :=
Inhabited.mk λ k => f.default ⟨k.val, Nat.lt_trans k.isLt n.lt_succ_self⟩
def all : {n : Nat} → Family Prop n → Prop
| 0, _ => True
| n + 1, f => all (all_but_last f)
def th : (n : Nat) → (f : F... |
738693c152e82d2e269d57d1d0e50d2512a5513a | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/integral/periodic.lean | 288be8f6d012a5471860f02301b65ccf81c89d77 | [
"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 | 18,506 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Alex Kontorovich, Heather Macbeth
-/
import measure_theory.measure.haar_lebesgue
import measure_theory.measure.haar_quotient
import measure_theory.integral.interval_i... |
810a6864375631b960bac9b66250eb04af1f217f | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/data/nat/basic.lean | 0497fadc99ee2943a58f46c5da1e4bad28066298 | [
"Apache-2.0"
] | permissive | DanielFabian/mathlib | efc3a50b5dde303c59eeb6353ef4c35a345d7112 | f520d07eba0c852e96fe26da71d85bf6d40fcc2a | refs/heads/master | 1,668,739,922,971 | 1,595,201,756,000 | 1,595,201,756,000 | 279,469,476 | 0 | 0 | null | 1,594,696,604,000 | 1,594,696,604,000 | null | UTF-8 | Lean | false | false | 66,852 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import algebra.order_functions
import data.set.basic
/-!
# Basic operations on t... |
6d9b3a101a632ba5677ce74e8fd7d2d72552ca35 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/monoidal/types.lean | 864e0c873577f49baacf2ea239b94a6aec58ab8b | [
"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 | 3,018 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison
-/
import category_theory.monoidal.of_chosen_finite_products
import category_theory.limits.shapes.types
/-!
# The category of types is a symmetric... |
63d89d66c40d5374b2fd14017dcbf905554a9230 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/category/Profinite/projective.lean | d7ffa67de9fe71e15cc8f2cc55d814cbcaa3ad47 | [
"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 | 2,000 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import topology.category.Profinite
import topology.stone_cech
import category_theory.preadditive.projective
/-!
# Profinite sets have enough projectives
In this fi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.