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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
90d68dc81146d7b1065ffdd3b7bca19a46cdff57 | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/measure_theory/measure/measure_space.lean | 8134b0dae8597fbc1a9d6080ca1ee843d93147c5 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 134,667 | 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 measure_theory.measure.measure_space_def
import measure_theory.measurable_space
/-!
# Measure spaces
The definition of a measure and a measur... |
a054ecbe5820f630e6fa4e7eb0101d478b02be31 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/algebra/restrict_scalars.lean | 359974a5458e6a2e00811e7a843c96549c5a55af | [
"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,524 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import algebra.algebra.basic
/-!
# The `restrict_scalars` type alias
See the documentation attached to the `restrict_scalars` definition for advice on how a... |
401939395661881ffeba0a8e76b6ab12b826c6f7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/limits/shapes/split_coequalizer.lean | 1b13d4fe434acfb37938de4b68173c63e9fd2c94 | [
"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,759 | 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
/-!
# Split coequalizers
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding P... |
6f78fcabcb584b68fe793457fbe31a4203d37a36 | 07c6143268cfb72beccd1cc35735d424ebcb187b | /src/tactic/abel.lean | d28c83c5f437b10a9c5f4a56780c0bc3759e8680 | [
"Apache-2.0"
] | permissive | khoek/mathlib | bc49a842910af13a3c372748310e86467d1dc766 | aa55f8b50354b3e11ba64792dcb06cccb2d8ee28 | refs/heads/master | 1,588,232,063,837 | 1,587,304,803,000 | 1,587,304,803,000 | 176,688,517 | 0 | 0 | Apache-2.0 | 1,553,070,585,000 | 1,553,070,585,000 | null | UTF-8 | Lean | false | false | 13,169 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.group_power tactic.norm_num
/-!
# The `abel` tactic
Evaluate expressions in the language of additive, commutative monoids and groups.
-/
namespac... |
27457012c13347885ff588090d8f1717f342b412 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/list/destutter.lean | 8a761a809ea431f8a5d0e4284c5e6c8e32bd6170 | [
"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 | 4,391 | lean | /-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez, Eric Wieser
-/
import data.list.chain
/-!
# Destuttering of Lists
This file proves theorems about `list.destutter` (in `data.list.defs`), which greedily removes all
n... |
c738fa1721abf971b0ac86ad59fea06f57a9dbaf | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/category_theory/limits/shapes/finite_limits.lean | b6a3129abe46e4e07f98f7a6a3801ffedc626232 | [
"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 | 5,142 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.products
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.pullbacks
universes v u
namespace... |
f24615c2887751500270a5905af4e20e5ec996bc | 3dc4623269159d02a444fe898d33e8c7e7e9461b | /.github/workflows/project_1_a_decrire/foncteur/topology_etrte.lean | 08a5bfb091d80acd662ae37000190df9c45d421c | [] | 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 | 3,501 | lean | import topology.category.Top.limits
import category_theory.limits.shapes
import topology.instances.real
/- This file contains some demos of using the (co)limits API to do topology. -/
noncomputable theory
open category_theory
open category_theory.limits
def R : Top := Top.of ℝ
def I : Top := Top.of (set.Icc 0 1 : s... |
c975702f2f7562e3b865ce361e528dc9386babea | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/semiconj_Sup.lean | d81a361900c442e93e342f7d5992d6f3aa25e846 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 6,242 | 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 logic.function.conjugate
import order.bounds.order_iso
import order.conditionally_complete_lattice.basic
import order.rel_iso.group
import order.ord_co... |
b8005bdb0e1ce6bc44395033940cb5ae647edb0a | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/category_theory/sites/types.lean | a97c88ea1bd41f738254d432233addafe256037d | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,521 | 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 category_theory.sites.canonical
import category_theory.sites.sheaf
/-!
# Grothendieck Topology and Sheaves on the Category of Types
In this file we define a Grothendi... |
bb13dfb0ac85745f994ad9f0fb5d8293b73b07ab | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /data/nat/basic.lean | b534e464af2afa2172f844bc6df407747710369a | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,528 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
Basic operations on the natural numbers.
-/
import logic.basic algebra.order data.option
universe u
namespace na... |
4daba4ffbd1753b983074161a94dbd2dbd35022c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/record1.lean | 19c75569d40c3ae67e185673aa283f837873db19 | [
"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 | 786 | lean | structure point (A : Type) (B : Type) :=
mk :: (x : A) (y : B)
#check point
#check @ point.rec
#check point.mk
#check point.x
#check point.y
#check point.rec_on
inductive color
| red | green | blue
structure color_point (A : Type) (B : Type) extends point A B :=
mk :: (c : color)
#check @color_point.rec_on
#check c... |
362f7d821a59f7761a518060bd063ddea57bedfa | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/Tactic/FVarSubst.lean | 5d1b3ffe4777891b7c1e81350fcbe129e9c9841a | [
"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 | 2,317 | 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.Data.AssocList
import Lean.Expr
import Lean.LocalContext
import Lean.Util.ReplaceExpr
namespace Lean.Meta
/--
Some tactics substitute hypothe... |
643c10e7c695faecc48df3557ec9ccaf0ed92cd6 | 618003631150032a5676f229d13a079ac875ff77 | /src/topology/metric_space/gluing.lean | 1a7c82956c9b4654bd6319b584d74850f5fcc0a5 | [
"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 | 23,992 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Gluing metric spaces
Authors: Sébastien Gouëzel
-/
import topology.metric_space.isometry
import topology.metric_space.premetric_space
/-!
# Metric space gluing
Gluing two metric spaces alo... |
e605e8f18d371a57b21507326310f73e2a91c789 | a4673261e60b025e2c8c825dfa4ab9108246c32e | /stage0/src/Lean/Hygiene.lean | 2a6964a531f5d74cc72cad865220d68e2d296bc0 | [
"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 | 4,540 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.Syntax
namespace Lean
/- Remark: `MonadQuotation` class is part of the `Init` package and loaded by default since it is used in the builtin com... |
26bd3be140ed5e1e99c028a71ae07b089fcace0c | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/nth_rewrite/congr.lean | 161aef5cd12108f396fe6077f722c199e1f32e27 | [
"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 | 3,541 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Scott Morrison
-/
import tactic.nth_rewrite.basic
import tactic.core
import data.mllist
namespace tactic
namespace nth_rewrite.congr
open nth_rewrite
/-- Helper functi... |
6b66c4b3011427b8a0c8792365d8425cddd12dcc | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/data/stream.lean | 998720cead0dfa91abfb5fa39fe3f383d68da9b4 | [
"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 | 22,545 | 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.nat data.list data.equiv
open nat function option
definition stream (A : Type) := nat → A
namespace stream
variables {A B C : Type}
definition... |
f26b430e4344b614f84876293c8a99b6232b79c6 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/algebra/ordered_group.lean | 57b92fa29192e1bfb04e219b884fa883a50d7c5a | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 24,437 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Ordered monoids and groups.
-/
import algebra.group order.bounded_lattice tactic.basic
universe u
variable {α : Type u}
section old_structure_cmd
set... |
bd5bb1b77067be92435de1788240da6e754947e5 | 46125763b4dbf50619e8846a1371029346f4c3db | /src/ring_theory/adjoin.lean | db49744dbd80dd7830b0fc6df3a810adac5607d4 | [
"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 | 7,996 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
Adjoining elements to form subalgebras.
-/
import ring_theory.algebra_operations ring_theory.polynomial ring_theory.principal_ideal_domain
import algebra.pointwise
universes u ... |
6672d7e5d9edf8ff071cd324153014b934f9f12d | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Data/Lsp/LanguageFeatures.lean | 5155ead43dc757446f92e82271d383ce59b00209 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,215 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.Lsp.Basic
namespace Lean
namespace Lsp
open Json
structure Hover where
/- NOTE we should also accept MarkedString/M... |
15a90ecf06b6dbe6abc235fdc42c516008035a3d | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/for_mathlib/tsum.lean | b7f2cfbb0a3038c0684f6d33e4ce0354d00c430c | [] | 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 | 1,080 | lean | import topology.algebra.infinite_sum
import topology.instances.nnreal
open_locale big_operators nnreal
lemma tsum_abs_eq_coe_tsum_nnabs {α : Type*} (f : α → ℝ) :
(∑' i, abs (f i)) = ∑' i, real.nnabs (f i) :=
by simp only [nnreal.coe_nnabs]
open nnreal finset
lemma has_sum_nat_add_iff'' {f : ℕ → ℝ≥0} (k : ℕ) {a : ... |
d21e986fe8733a1329a49ce94c4d922f2e4a1cdc | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/real/sign.lean | 0942f1e7745a95cc7db140e069f12e4eed130fc7 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,743 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying, Eric Wieser
-/
import data.real.basic
/-!
# Real sign function
This file introduces and contains some results about `real.sign` which maps negative
real numbers to -1, posi... |
9ca16388e710728c1f1e9f454e0ea0167252f4b6 | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world2/level4.lean | 8cbeb5d4bd2f6f59d08a47ec9e9466f6a8b95d1a | [
"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 | 774 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level3 -- hide
namespace mynat -- hide
/-
# Addition World
## Level 4: `add_comm` (boss level)
[boss battle music]
Look in Theorem statements -> Addition world to see the proofs you have.
These should be enough.
-/
/- Lemma
On the set of ... |
e1507bcd5936f53cd919def0fec1f5305c47f447 | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /zeptometer/topprover/12.lean | 28cca74318a004296b885de0729e4c37651ba2f6 | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 309 | lean | example : ∀ n m, n + m = 1 → (n = 0 ∨ m = 0) := begin
intros n,
induction n,
intros,
simp,
intros m,
rw [nat.add_comm, nat.add_succ],
intro a,
have b : m + n_n = 0 := begin
exact nat.succ_inj a
end,
right,
exact (nat.eq_zero_of_add_eq_zero b).left
end |
a3e08064a0f2479ff6d111965f6353b71a1fb5ea | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/run/tree3.lean | 2d90f878d0d8e9181b7ff83841a800a7feb57313 | [
"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 | 2,444 | lean | import logic data.prod
open eq.ops prod tactic
inductive tree (A : Type) :=
leaf : A → tree A,
node : tree A → tree A → tree A
inductive one.{l} : Type.{max 1 l} :=
star : one
set_option pp.universes true
namespace tree
namespace manual
section
universe variables l₁ l₂
variable {A : Type.{l₁}}
varia... |
38728d12e83a4b1445bb8b48bcedcb07ec2dc2fc | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/topology/continuous_on.lean | b0f4a871c80bfd685132721a3dcc71cfdf0452d2 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 42,305 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import topology.constructions
/-!
# Neighborhoods and continuity relative to a subset
This file defines relative versions
* `nhds_within` of `nhds`
* `co... |
89b7422e71d016b7b33af3bb402e791ac38db34d | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Quotation/Precheck.lean | c0df85c2cba61bcf25f72e63319f1b1f59a18faf | [
"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,948 | lean | /-
Copyright (c) 2021 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Lean.KeyedDeclsAttribute
import Lean.Parser.Command -- for `precheckedQuot`
import Lean.Elab.Term
import Lean.Elab.Quotation.Util
namespace Lean.Elab.... |
523e3e1daad726631fdc08c32535b6a61adeb513 | 2731214ea32f2a1a985300e281fb3117640a16c3 | /portmanteau_cont_imp_closed.lean | 58abf2f220c9c0b54490910b510032678e381db8 | [
"Apache-2.0"
] | permissive | kkytola/lean_portmanteau | 5d6a156db959974ebc4f5bed9118a7a2438a33fa | ac55eb4e24be43032cbc082e2b68d8fb8bd63f22 | refs/heads/main | 1,686,107,117,334 | 1,625,177,052,000 | 1,625,177,052,000 | 381,514,032 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,747 | lean | /-
Copyright (c) 2021 Kalle Kytölä. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kalle Kytölä
-/
import tactic
import measure_theory.measurable_space
import measure_theory.integration
import measure_theory.borel_space
import topology.metric_space.basic
import topolo... |
6d0cfa4fad282bfe67f90985b91490375f984ecd | 4727251e0cd73359b15b664c3170e5d754078599 | /test/simp_result.lean | 1b04491e4b0d8bf02c51452692016e11c041096a | [
"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,915 | lean | import logic.equiv.basic
import tactic.simp_result
open tactic
-- Check that we can walk.
example : true :=
by { simp_result { trivial } }
-- Comparison without `dsimp_result`:
example : true :=
begin
exact (id trivial),
(do `(id trivial) ← result, skip),
success_if_fail { (do `(trivial) ← result, skip) },
end... |
d3653791c55d2a49e1ba64ed464da67c47c3a603 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /hott/cubical/pathover2.hlean | 193ac69c78657397fbf581add8d49fd9a7c62b9c | [
"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 | 5,993 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Coherence conditions for operations on pathovers
-/
open function equiv
namespace eq
variables {A A' A'' : Type} {B B' : A → Type} {B'' : A' → Type} {C : Π⦃a⦄, ... |
eb09cd5ab1fe4f49b54e7be9df3b5bcb65c5825e | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/group/conj.lean | ba3037ca353b06f3fb46086521cb197c501db341 | [
"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,007 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Chris Hughes, Michael Howes
-/
import algebra.group.semiconj
import algebra.group_with_zero.basic
import algebra.hom.aut
import algebra.hom.group
import data.fintype.b... |
4ff37e3e3f8d72267b013d68ac270d69f84ff9df | c3f2fcd060adfa2ca29f924839d2d925e8f2c685 | /tests/lean/run/match3.lean | 1f903778eb39e5ac86a432acc35aa9bae5be38de | [
"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,159 | 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 z... |
bbcd0907c8549804224a3baf467d305467502b31 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/abelian/injective_resolution.lean | 0a7da8778e0059fbd5529984e7e01c24dbf6f005 | [
"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,018 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Scott Morrison
-/
import category_theory.preadditive.injective_resolution
import category_theory.abelian.exact
import algebra.homology.homotopy_category
/-!
# Main result
... |
0e249a7045ba01c66234c322c177e9be3160ec57 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/group/units.lean | 1a6ae734291e33e9f53ef938699cfe4f32bffaa1 | [
"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 | 957 | 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.order.group.defs
import algebra.order.monoid.defs
import algebra.order.monoid.units
/-!
# Adjoining a... |
ba7ecabf87e9a96f77cb30a5b13d490abc3faea9 | ac89c256db07448984849346288e0eeffe8b20d0 | /src/Lean/ImportingFlag.lean | 540287cfb0e6e4ee74c7549bcc0fa98571cc23c6 | [
"Apache-2.0"
] | permissive | chepinzhang/lean4 | 002cc667f35417a418f0ebc9cb4a44559bb0ccac | 24fe2875c68549b5481f07c57eab4ad4a0ae5305 | refs/heads/master | 1,688,942,838,326 | 1,628,801,942,000 | 1,628,801,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,243 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
namespace Lean
private builtin_initialize importingRef : IO.Ref Bool ← IO.mkRef false
/- We say Lean is "initializing" when it is executing `builtin_initi... |
c56a33c1191f715977997e38b846fe75e6974d4b | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/linear_algebra/quadratic_form.lean | 68a762171784740c8e97fa42137cf3199cd5521c | [
"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 | 21,540 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen
-/
import algebra.invertible
import linear_algebra.bilinear_form
import linear_algebra.determinant
import linear_algebra.special_linear_group
/-!
# Quadratic forms
This file... |
bd957e6a531045483f67907f297e0ebbf6b81c8e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/meta_mutual.lean | 0d3a228554318638174f42be9dc042b78b8192dd | [
"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 | 235 | lean | namespace foo
meta mutual def even, odd
with even : nat → bool
| 0 := tt
| (n+1) := odd n
with odd : nat → bool
| 0 := ff
| (n+1) := even n
#eval even 10
#eval even 11
end foo
#print foo.even._main
#print foo.odd._main
|
d3578a11b25a36da20d0995506b965bd6f1ba84c | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/category/Ring/colimits.lean | 234bd02c6a23806b687f3521fad3883168348b2d | [
"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 | 13,301 | 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 algebra.category.Ring.basic
import category_theory.limits.has_limits
import category_theory.limits.concrete_category
/-!
# The category of commutative rings h... |
43677d4c99d8c4fbf0c325abb7a18c5c984f8a5a | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Init/Coe.lean | 95694703982df900644c17dc905ebbaac27f1f02 | [
"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 | 4,716 | 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
-/
prelude
import Init.Core
universes u v w w'
class Coe (α : Sort u) (β : Sort v) :=
(coe : α → β)
/-- Auxiliary class that contains the transitive closu... |
68a0ed8b3468eaae0668fced2a6d82a0e578beb0 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/topology/bounded_continuous_function.lean | d5953c28bc2cbbb320e2dd4ae1266132e5f2cc26 | [
"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 | 25,433 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro
-/
import analysis.normed_space.basic
/-!
# Bounded continuous functions
The type of bounded continuous functions taking values in a metric space... |
1583aa62bdb0a409e1942ef1d88b5007164cfdce | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/computability/tm_to_partrec.lean | 267f6b2edda2b3ce184be400da295ce87474bad8 | [
"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 | 80,796 | lean | /-
Copyright (c) 2020 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import computability.halting
import computability.turing_machine
import data.num.lemmas
import tactic.derive_fintype
/-!
# Modelling partial recursive functions usin... |
e0bdd979fbbebf51c8ec79b68b39cb2c4b3997f7 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Runtime.lean | b570f0bf5295c450940e2d223f750e4708beac4b | [
"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 | 428 | 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
-/
namespace Lean
@[extern "lean_closure_max_args"]
opaque closureMaxArgsFn : Unit → Nat
@[extern "lean_max_small_nat"]
opaque maxSmallNatFn : Unit → Nat
d... |
d5778b9fafeadf27465004cc21078661d271294a | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /library/init/data/int/basic.lean | 8aa16a8a304920bf2f85737c987e0901b737e215 | [
"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 | 17,229 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
prelude
import init.data.nat.lemmas
open nat
/- the type, coercions, and notation -/
inductive int : Ty... |
4cad1db349739f7e2b399d2e1e475dba294d4943 | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love01_definitions_and_lemma_statements_homework_solution.lean | 8e79263811cbe84a7ed083c1f618e460ea88a357 | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 505 | lean | /- LoVe Homework 1: Definitions and Lemma Statements -/
/- Replace the placeholders (e.g., `:= sorry`) with your solutions. -/
import .lovelib
namespace LoVe
/- Question 3: λ-Terms -/
/- We start by declaring four new opaque types. -/
constants α β γ δ : Type
/- 3.2 (**optional**). Complete the following defini... |
98fb5dcd6fc99cdae02ada2ef2fe6fe6b9ade56e | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/combinatorics/simple_graph/matching.lean | 832784eba30ca1c007adf2ed8979a8948c7a3dd5 | [
"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 | 1,993 | lean | /-
Copyright (c) 2020 Alena Gusakov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alena Gusakov
-/
import combinatorics.simple_graph.basic
/-!
# Matchings
## Main definitions
* a `matching` on a simple graph is a subset of its edge set such that
no two edges s... |
8c969d24f3d9227aab4b72a9a4cebbffdfd212c6 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/tactic/simps.lean | 3d4d7a5de88f89f28bcde11b4bea1be46ad59556 | [
"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 | 30,031 | lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import tactic.core
/-!
# simps attribute
This file defines the `@[simps]` attribute, to automatically generate simp-lemmas
reducing a definition when projections... |
c8c4d16122466e0b69abc4e10fb46370dc7b035e | c09f5945267fd905e23a77be83d9a78580e04a4a | /src/topology/algebra/monoid.lean | 86fb3370959ee9659eabbd3ae8472e543bbe50c8 | [
"Apache-2.0"
] | permissive | OHIHIYA20/mathlib | 023a6df35355b5b6eb931c404f7dd7535dccfa89 | 1ec0a1f49db97d45e8666a3bf33217ff79ca1d87 | refs/heads/master | 1,587,964,529,965 | 1,551,819,319,000 | 1,551,819,319,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,916 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Theory of topological monoids.
TODO: generalize `topological_monoid` and `topological_add_monoid` to semigroups, or add a type class
`topological_opera... |
622c242b0125612f20d084a28b5687ac7713a323 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/meta/expr.lean | 0ba45514fd6146635a8ea7fe6bd1488420606eb2 | [
"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 | 49,248 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek, Robert Y. Lewis, Floris van Doorn
-/
import data.option.defs
import data.string.defs
import tactic.derive_inhabited
/-!
# Add... |
34dcb8d6fe44f22160183687e8836f00ca62a774 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/norm_cast.lean | b0c4fdc0f94095c7967ad39f998ee8a17708fbc1 | [
"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 | 25,833 | lean | /-
Copyright (c) 2019 Paul-Nicolas Madelaine. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Paul-Nicolas Madelaine, Robert Y. Lewis
-/
import tactic.converter.interactive
import tactic.hint
/-!
# A tactic for normalizing casts inside expressions
This tactic normaliz... |
346a1d7ffd3cfd777daaa45be01a49955cfbf4a8 | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/order/basic.lean | 2c4cfb1b3af09a41eb6e8cd5b4f728ef7b67e09c | [
"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 | 21,059 | lean | /-
Copyright (c) 2014 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Mario Carneiro
-/
import data.subtype
import data.prod
open function
/-!
# Basic definitions about `≤` and `<`
## Definitions
### Predicates on functions
- `monotone... |
fb11ca422529cde0d4b38fe665e48b476182e280 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Data/Options.lean | 3d368ef569235da12a4d54ca3229ad6ae9b0a620 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,078 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich and Leonardo de Moura
-/
import Lean.ImportingFlag
import Lean.Data.KVMap
namespace Lean
def Options := KVMap
def Options.empty : Options := {}
instance : ... |
850a2a257d8ea9a0e740f6ef0ce6ee45b595a3cf | 2272e503179a58556187901b8698b789fad7e0c4 | /src/functor_examples.lean | 5729c3bc409570d3f87b2eacb49893470a245f8a | [] | no_license | kckennylau/category-theory | f15e582be862379453a5341d83b8cd5ebc686729 | b24962838c7370b5257e38b7648040aec95922bb | refs/heads/master | 1,583,605,043,449 | 1,525,154,882,000 | 1,525,154,882,000 | 127,633,452 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,428 | lean | import .natural_transformation .tensor_product
universes u v
namespace category
namespace examples
@[reducible] def Cat : category Σ α : Type u, category.{u v} α :=
{ Mor := λ C D, functor C.2 D.2,
Comp := λ C D E, functor.comp C.2 D.2 E.2,
Id := λ C, functor.id C.2,
Hid_left := λ C D F, by cases ... |
d7a982f67cea45684450acbccd5267518f22ffd6 | 90bd8c2a52dbaaba588bdab57b155a7ec1532de0 | /src/contractible/simply_connected.lean | 3ad10794960fdf1c6473e29034beb998f465bc2e | [
"Apache-2.0"
] | permissive | shingtaklam1324/alg-top | fd434f1478925a232af45f18f370ee3a22811c54 | 4c88e28df6f0a329f26eab32bae023789193990e | refs/heads/master | 1,689,447,024,947 | 1,630,073,400,000 | 1,630,073,400,000 | 381,528,689 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 565 | lean | import contractible.basic
import simply_connected.basic
import homotopy_group.unit
import homotopy_group.homotopy_isomorphism
section contractible
variables {X : Type _} [topological_space X] [contractible X]
instance simply_connected_of_contractible : simply_connected X :=
begin
rw simply_connected_iff_forall,
... |
ca9131f83c98f21e3bfdbda9e11035e23549ee71 | 137c667471a40116a7afd7261f030b30180468c2 | /src/analysis/normed_space/linear_isometry.lean | bc121e51b069b955e6be0622a426ba3768436264 | [
"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 | 13,680 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.normed_space.basic
/-!
# Linear isometries
In this file we define `linear_isometry R E F` (notation: `E →ₗᵢ[R] F`) to be a linear isometric
embedd... |
4d52e89d187513a6ab6a760b421264059d0de5a5 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/mvar1.lean | 26408390e2bcc516cbcf21850aa72a3b9e26e57f | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 3,094 | lean | import Lean.MetavarContext
open Lean
def check (b : Bool) : IO Unit :=
unless b do throw $ IO.userError "error"
def f := mkConst `f []
def g := mkConst `g []
def a := mkConst `a []
def b := mkConst `b []
def c := mkConst `c []
def b0 := mkBVar 0
def b1 := mkBVar 1
def b2 := mkBVar 2
def u := mkLevelParam `u
def t... |
6b96e9436bbeea1b3600b0e5a2ffbc3ed77d4fd6 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/analysis/filter.lean | 6d4c8176442a5e5896f67423912df91ab69aa7e6 | [
"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 | 11,816 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
Computational realization of filters (experimental).
-/
import order.filter.cofinite
open set filter
/-- A `cfilter α σ` is a realization of a filter (base) on `α`,
... |
5922ac30a6737292d9d8a098ee43b6ec83aee01f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/simp_rw.lean | 001be941fc69eb19b21c3c8a51dc5766ddee4141 | [
"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 | 1,617 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
A set of test cases for the `simp_rw` tactic.
-/
import tactic.simp_rw
import data.set.basic
import data.nat.basic
-- `simp_rw` can perform rewrites under binders:
example :... |
b0a061510bf85e2d831367e60254f3236d192721 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/finish3.lean | a38dc5782e801bd1c654f7f62a97b90664611c6d | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 3,001 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
Examples from the tutorial.
-/
import tactic.finish
open auto
section
variables p q r s : Prop
-- commutativity of ∧ and ∨
example : p ∧ q ↔ q ∧ p := by finish
... |
5f48adaaea928a42b77e524f91de5dc978a5939b | c777c32c8e484e195053731103c5e52af26a25d1 | /src/algebraic_topology/dold_kan/split_simplicial_object.lean | f3b2c7fec482fd9ad0d80a7f42cbef7c8c246388 | [
"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 | 11,085 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.split_simplicial_object
import algebraic_topology.dold_kan.degeneracies
import algebraic_topology.dold_kan.functor_n
/-!
# Split simplicial objects... |
ce772f8b8b34ff6ae3dc4693dfe2e4d9defdad0a | 8e6cad62ec62c6c348e5faaa3c3f2079012bdd69 | /src/algebra/algebra/basic.lean | ca63c93efc2f69c3b74f8f91234828db117c6377 | [
"Apache-2.0"
] | permissive | benjamindavidson/mathlib | 8cc81c865aa8e7cf4462245f58d35ae9a56b150d | fad44b9f670670d87c8e25ff9cdf63af87ad731e | refs/heads/master | 1,679,545,578,362 | 1,615,343,014,000 | 1,615,343,014,000 | 312,926,983 | 0 | 0 | Apache-2.0 | 1,615,360,301,000 | 1,605,399,418,000 | Lean | UTF-8 | Lean | false | false | 54,886 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import tactic.nth_rewrite
import data.matrix.basic
import data.equiv.ring_aut
import linear_algebra.tensor_product
import ring_theory.subring
import deprecated... |
a2bec8fd8e1b6b53b709c4dbc3b286225708492c | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/def7.lean | e460585a323794f017222a2df8a467e42b02bf9e | [
"Apache-2.0"
] | permissive | shyamalschandra/lean4 | 27044812be8698f0c79147615b1d5090b9f4b037 | 6e7a883b21eaf62831e8111b251dc9b18f40e604 | refs/heads/master | 1,671,417,126,371 | 1,601,859,995,000 | 1,601,860,020,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,435 | lean | new_frontend
inductive InfTree.{u} (α : Type u)
| leaf : α → InfTree α
| node : (Nat → InfTree α) → InfTree α
open InfTree
def szn.{u} {α : Type u} (n : Nat) : InfTree α → InfTree α → Nat
| leaf a, t2 => 1
| node c, leaf b => 0
| node c, node d => szn n (c n) (d n)
universes u
theorem ex1 {α : Type u} (n : Nat... |
5ec16d050bc0310206cf0319595c4bdf248f7167 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/simpcrash_unnecessary_casts.lean | ad0fd69288343f3323c9f076589b8a54d2ac06de | [
"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 | 500 | lean | class ss : Type
instance : subsingleton ss := ⟨λ ⟨⟩ ⟨⟩, rfl⟩
instance : decidable_eq ss := λ ⟨⟩ ⟨⟩, decidable.is_true rfl
instance ss.inst : ss := ⟨⟩
def vector (n : nat) (α : Type) := fin n → α
def vector.get {n α} [ss] (v : vector n α) (i : nat) (h : i < n) : α :=
v ⟨i, h⟩
example (v : vector 7 nat) :
@vector.ge... |
ab47c3783cbeae6428f9c7ab70d5a82521f3ba1f | ec5e5a9dbe7f60fa5784d15211d8bf24ada0825c | /src/Simulate.lean | ae835069666b23bb3ac520f3466465fa68235010 | [] | no_license | pnwamk/lean-llvm | fcd9a828e52e80eb197f7d9032b3846f2e09ef74 | ebc3bca9a57a6aef29529d46394f560398fb5c9c | refs/heads/master | 1,668,418,078,706 | 1,593,548,643,000 | 1,593,548,643,000 | 258,617,753 | 0 | 0 | null | 1,587,760,298,000 | 1,587,760,298,000 | null | UTF-8 | Lean | false | false | 13,109 | lean | import Galois.Data.Bitvec
import LeanLLVM.AST
import LeanLLVM.Memory
import LeanLLVM.PP
import LeanLLVM.SimMonad
import LeanLLVM.TypeContext
import LeanLLVM.Value
namespace LLVM
namespace Sim
def unreachable {a} : Sim a := throw (IO.userError "unreachable code!").
def int_op (f:∀w, bitvec w -> bitvec w -> Sim Sim.V... |
b9f69cdec2e191363974628663fcd9f09146758d | f5f7e6fae601a5fe3cac7cc3ed353ed781d62419 | /src/data/padics/padic_norm.lean | f1d722c7bbbc8057f8bfd17fbe6fdcb02c078315 | [
"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 | 13,575 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
Define the p-adic valuation on ℤ and ℚ, and the p-adic norm on ℚ
-/
import data.rat algebra.gcd_domain algebra.field_power
import ring_theory.multiplicity tactic.rin... |
632d9eee7e0303a02c128f625ac6b0139454d3d1 | ac60dab17014edd769c9618cc1569ce8c960a6a5 | /src/cautomaton.lean | d3489f21e32ca001ae7b25a2be110831c6d9f98d | [
"MIT"
] | permissive | frankSil/CAExtensions | 20e1f856b3ad775d5e8dc8877614dbcd58c77901 | f5c74fd9a806696c73497d9abd45b7315f45379f | refs/heads/master | 1,608,706,941,607 | 1,586,193,337,000 | 1,586,193,337,000 | 237,077,434 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 34,379 | lean | import grid utils data.vector
open utils
namespace grid
attribute [simp, reducible]
def Q (α : Type*) [grid α] := relative_grid.carrier α
end grid
open grid
section cautomatons
structure cautomaton (α : Type) [decidable_eq α] :=
(g : vec_grid₀ α)
(empty : α)
(neigh : point → list point)
(bound : (bou... |
0f0b4c86060996f1f97b46a0111a357a3f9fe4c0 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/algebra/functions.lean | 50eb783dce88a60951b49fdf4ed5f5dd34c0ea07 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 17,292 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.ordered_field
universe u
definition min {α : Type u} [decidable_linear_order α] (a b : α) : α := if a ≤ b then ... |
56adba190a875b94a67b26a5f66685f7bc498650 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2228.lean | 927b4ae8a12c6a30e285b68704f25c9b6db5e2c3 | [] | 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 | 108 | lean | import data.real.basic
-- BEGIN
example (a b : ℝ) : abs a = abs (a - b + b) :=
by { congr, ring }
-- END |
4f8889707c1bdd09f664c18ea89a3a5f1c5e5290 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/ring_theory/algebra_tower.lean | 430e76404757098d2e3480e2e1f52ee03a4c77bd | [
"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 | 12,604 | lean | /-
Copyright (c) 2020 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.tower
import algebra.invertible
import linear_algebra.basis
import ring_theory.adjoin.basic
import ring_theory.polynomial.tower
/-!
# Towers of algebra... |
f9de0eaaa2c45b9b11b3f76bdd840eda734f1e48 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/slow/nat_bug1.lean | 2527de42780f21aa5e9f233098fac54e785766db | [
"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 | 878 | lean | ----------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Floris van Doorn
-----------------------------------------------------------... |
0b3f1dda7c4eda40600980a5e11f672f3663707d | b70031c8e2c5337b91d7e70f1e0c5f528f7b0e77 | /src/category_theory/limits/preserves/shapes/products.lean | 04078029f647d31a492c0861b633d70d27342292 | [
"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 | 3,481 | lean | /-
Copyright (c) 2020 Scott Morrison, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Bhavik Mehta
-/
import category_theory.limits.shapes.products
import category_theory.limits.preserves.basic
/-!
# Preserving products
Constructions to r... |
c1f5f348dcc102722b4b011d6002a40491de8bb3 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/types/pi.lean | b5843bce86b4c0e2341ac2fb8e753ac09ad6fffd | [
"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 | 14,554 | lean | /-
Copyright (c) 2014-15 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn
Partially ported from Coq HoTT
Theorems about pi-types (dependent function spaces)
-/
import .sigma hott.arity hott.cubical.square
universe u
hott_theory
names... |
722f565fcd8007e982655e5f401b470d6bf21ae0 | f29cd213e19220aedf7c72ee6ac95ba61a73f452 | /src/test.lean | 35b0a3be3222630719ad42ac2dd99b4144b2583f | [] | 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 | 15,643 | lean | import category_theory.limits.shapes
import category_theory.limits.types
-- import category_theory.opposites
universes v v₂ u
open category_theory category_theory.category category_theory.limits
open opposite
-- Mathlib PR 1998:
-- def has_binary_products_of_terminal_and_pullbacks
-- (C : Type u) [𝒞 : category.{... |
ffbe20dd681a51126724e6e31bc9b4912511b6b3 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/set/countable.lean | 6f0b7ab29764270a771db6b65d5fc1999e735ae1 | [
"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 | 10,719 | 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.equiv.list
import data.set.finite
/-!
# Countable sets
-/
noncomputable theory
open function set encodable
open classical (hiding some)
open_locale cla... |
9c6e03f49ce3c0fb7d41efb9ebd4ba150dcce059 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/rat/basic.lean | 1ad0a5bdba2ee08d5d629a4fe6cba1edc07ba7f6 | [
"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 | 1,394 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import algebra.field.defs
import data.rat.defs
/-!
# Field Structure on the Rational Numbers
## Summary
We put the (discrete) field structure on th... |
acb66e2b1df25ac23445ffe315fa858b32bbd8fa | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/subtype.lean | 3909be2e51588073902e4d193ab32c163540efcf | [
"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 | 8,102 | 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 logic.function.basic
import tactic.ext
import tactic.lint
import tactic.simps
/-!
# Subtypes
This file provides basic API for subtypes, which are defined in ... |
3354d5ef2287ee51494e69d88b9c44a832917bac | 34c1747a946aa0941114ffca77a3b7c1e4cfb686 | /src/sheaves/presheaf_of_rings.lean | 164443b113279c2fe504d60ddb0c7d2200136d17 | [] | no_license | martrik/lean-scheme | 2b9edd63550c4579a451f793ab289af9fc79a16d | 033dc47192ba4c61e4e771701f5e29f8007e6332 | refs/heads/master | 1,588,866,287,405 | 1,554,922,682,000 | 1,554,922,682,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,377 | lean | /-
Presheaf of rings.
https://stacks.math.columbia.edu/tag/006N
-/
import sheaves.presheaf
universes u v
-- Definition of a presheaf of rings.
structure presheaf_of_rings (α : Type u) [topological_space α]
extends presheaf α :=
(Fring : ∀ (U), comm_ring (F U))
(res_is_ring_hom : ∀ (U V) (HVU : V ⊆ U... |
e98eea998bc9c4ab0e6b6e940a800faec359b4a8 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/analysis/calculus/tangent_cone.lean | f7688315b37fc9f8d7852f46abf25fd6ad1a320f | [
"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 | 18,711 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.convex.basic
import analysis.specific_limits
/-!
# Tangent cone
In this file, we define two predicates `unique_diff_within_at 𝕜 s x` and `uni... |
bd781707c6c5e537289bbb37769d49f217833729 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/PrettyPrinter/Delaborator/Basic.lean | 213169c74a79ef2d6f0242b99e08a37477a17737 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,942 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-!
The delaborator is the first stage of the pretty printer, and the inverse of the
elaborator: it turns fully elaborated `Expr` core terms back into surf... |
b30fbf910e328bf8abd1f1e91742b0b286144932 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/topology/algebra/topological_structures.lean | a6b12b6c3471fca8dd142f4198bc7996ca57ba3c | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 65,677 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Theory of topological monoids, groups and rings.
TODO: generalize `topological_monoid` and `topological_add_monoid` to semigroups, or add a type class
... |
9297448f73815da65db5ce372b5fff673d8c2c43 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/match2.lean | 7493865ad7e5c4f29f3c01521c148d2d46243a2f | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,925 | lean | #print "---- Op"
inductive Op : Nat → Nat → Type
| mk : ∀ n, Op n n
structure Node : Type where
id₁ : Nat
id₂ : Nat
o : Op id₁ id₂
def h1 (x : List Node) : Bool :=
match x with
| _ :: Node.mk 0 _ (Op.mk _) :: _ => true
| _ => false
def mkNode (n : Nat) : Node := { id₁... |
5f58acdd3e7b381fea7517586243706593602a82 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/category/Locale.lean | 85a3223a11f35d7d447df6c26a136097e47cddff | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 1,254 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.category.Frame
/-!
# The category of locales
This file defines `Locale`, the category of locales. This is the opposite of the category of frames.
-/
unive... |
8558781df43b0581fa6a8c822adfae6175df28e2 | f09e92753b1d3d2eb3ce2cfb5288a7f5d1d4bd89 | /src/Huber_pair.lean | b145893f7c3c72810ff8350843dcada16a7015fc | [
"Apache-2.0"
] | permissive | PatrickMassot/lean-perfectoid-spaces | 7f63c581db26461b5a92d968e7563247e96a5597 | 5f70b2020b3c6d508431192b18457fa988afa50d | refs/heads/master | 1,625,797,721,782 | 1,547,308,357,000 | 1,547,309,364,000 | 136,658,414 | 0 | 1 | Apache-2.0 | 1,528,486,100,000 | 1,528,486,100,000 | null | UTF-8 | Lean | false | false | 1,281 | lean | import power_bounded Huber_ring
universes u v
--notation
local postfix `ᵒ` : 66 := power_bounded_subring
open power_bounded
section integral
variables {R : Type u} [comm_ring R] [decidable_eq R]
instance subtype.val.is_ring_hom (S : set R) [is_subring S] : is_ring_hom (@subtype.val _ S) :=
by apply_instance
def i... |
54bf264a061d8f73c7d606ed4c8565d6af285c54 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/rewrite_search/strategy/pexplore.lean | 64854806f4ad4012674a224ea1671664078a3bab | [
"Apache-2.0"
] | permissive | khoek/mathlib-tidy | 8623b27b4e04e7d598164e7eaf248610d58f768b | 866afa6ab597c47f1b72e8fe2b82b97fff5b980f | refs/heads/master | 1,585,598,975,772 | 1,538,659,544,000 | 1,538,659,544,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,197 | lean | import tidy.rewrite_search.core
open tidy.rewrite_search
open tidy.rewrite_search.bound_progress
namespace tidy.rewrite_search.strategy.pexplore
structure pexplore_config :=
(pop_size : ℕ := 100)
(pop_alternate : bool := tt)
structure pair_stream :=
(last_side : side)
(its : sided_pair rewriterator)
inductive... |
a77dba7b88d009c71cf5905d218394c692dcccda | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/compactly_generated.lean | 0608ac36044c7cc4893e222eb3bd35be94478d3d | [
"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 | 20,412 | 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 data.set.finite
import data.finset.order
import order.well_founded
import order.order_iso_nat
import order.atoms
import order.zorn
import tactic.tfae
/-!
# Compactn... |
b7b620e47e86f2a3be74497b7044765d2060b142 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/topology/sequences.lean | a8fba3c1e619672cac9d314942aadf05044b9e9d | [
"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 | 10,392 | lean | /-
Copyright (c) 2018 Jan-David Salchow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan-David Salchow
-/
import topology.basic
import topology.bases
/-!
# Sequences in topological spaces
In this file we define sequences in topological spaces and show how they ar... |
e931a57d01d160d275d0a65cae00446cfffb9fa6 | d8f6c47921aa2f4f02b5272d2ed9c99f396d3858 | /lean/src/bv/lemmas.lean | 7a133e1b0b9686dfffb7b0f1461218a2025cfd68 | [] | no_license | hongyunnchen/jitterbug | cc94e01483cdb36f9007ab978f174e5df9a65fd2 | eb5d50ef17f78c430f9033ff18472972b3588aee | refs/heads/master | 1,670,909,198,044 | 1,599,154,934,000 | 1,599,154,934,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,865 | lean |
import .basic
import .helper
namespace bv
open nat
open bv.helper
section fin
variable {n : ℕ}
@[simp]
lemma lsb_cons (b : bool) (v : bv n) : (cons b v).lsb = b :=
fin.cons_zero _ v
@[simp]
lemma tail_cons (b : bool) (v : bv n) : (cons b v).tail = v :=
fin.tail_cons _ _
@[simp]
lemma cons_lsb_tail (v : bv (n + 1)... |
43c292d3a747d0ff4f4f0d6c570e4ceb00b559b8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/adjunction/comma.lean | 5b5bf955cd7fa62c20fa6a37e355e6841dca9ac0 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 6,535 | lean | /-
Copyright (c) 2021 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.adjunction.basic
import category_theory.punit
import category_theory.structured_arrow
/-!
# Properties of comma categories relating to adjunctions... |
ac1bb47d9ddebc2ae6398e361579b55712a8545d | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/category/functor.lean | bf01004df70451d9fafb4d396137574fb1322230 | [
"Apache-2.0"
] | permissive | Solertis/lean | 491e0939957486f664498fbfb02546e042699958 | 84188c5aa1673fdf37a082b2de8562dddf53df3f | refs/heads/master | 1,610,174,257,606 | 1,486,263,620,000 | 1,486,263,620,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 481 | lean | /-
Copyright (c) Luke Nelson and Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson and Jared Roesch
-/
prelude
import init.core
universe variables u v
class functor (f : Type u → Type v) : Type (max u+1 v) :=
(map : Π {a b : Type u}, (a → b) → f... |
f6dc02766017abe3a02ed34f2cb78fe1d3a15820 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/data/equiv/encodable/basic.lean | 55f93cca2b9ea000db10fdbb517fed267ea438a6 | [
"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 | 14,729 | 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, Mario Carneiro
Type class for encodable Types.
Note that every encodable Type is countable.
-/
import data.equiv.nat
import order.rel_iso
import order.directe... |
93241f12acd79415f776370a03157807aafeaf67 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/order/ring/defs.lean | 24067d42c45fc8406de9102b2b9b8729430972c4 | [
"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 | 44,519 | 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, Yaël Dillies
-/
import algebra.order.group.defs
import algebra.order.monoid.cancel.defs
import algebra.order.monoid.canonical.defs
imp... |
09d9e9dc365483f7b82041f8aaf23e4692128d6d | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /data/pfun.lean | ffccc1a50f85d83043cb4c400082226c0d3ecb02 | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 15,803 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.set.basic data.option data.equiv.basic
/-- `roption α` is the type of "partial values" of type `α`. It
is similar to `option α` except the domain condit... |
286a9283726a68800fa2b97543bdc1e9d4568f43 | f1b175e38ffc5cc1c7c5551a72d0dbaf70786f83 | /set_theory/cardinal.lean | e147f380e46d1ef12915b2741dbe2c38eb311f3c | [
"Apache-2.0"
] | permissive | mjendrusch/mathlib | df3ae884dd5ce38c7edf452bcbfd3baf4e3a6214 | 5c209edb7eb616a26f64efe3500f2b1ba95b8d55 | refs/heads/master | 1,585,663,284,800 | 1,539,062,055,000 | 1,539,062,055,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,598 | 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, Mario Carneiro
Cardinal arithmetic.
Cardinals are represented as quotient over equinumerous types.
-/
import data.set.finite data.quot logic.schroeder_bernstein logic... |
198e0270b8c85c45b79a44e804f6c62ac1ad412c | 618003631150032a5676f229d13a079ac875ff77 | /src/group_theory/quotient_group.lean | 4a505e154b403390b10d00cf7a6a69b22b8df4a9 | [
"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 | 7,198 | lean | /-
Copyright (c) 2018 Kevin Buzzard and Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Patrick Massot.
This file is to a certain extent based on `quotient_module.lean` by Johannes Hölzl.
-/
import group_theory.coset
universes u v
names... |
0ad5c504522952f377b5e854e3062d6567a3a7cd | c31182a012eec69da0a1f6c05f42b0f0717d212d | /src/thm95/pfpng_iso.lean | 157636013879e881de1fca9abd444925da1392ab | [] | 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,112 | lean | import pseudo_normed_group.category
import rescale.pseudo_normed_group
.
open_locale nnreal
local attribute [instance] type_pow
noncomputable theory
open category_theory
namespace ProFiltPseuNormGrpWithTinv
variables (r' : ℝ≥0) [fact (0 < r')]
variables (c : ℝ≥0) (m n : ℕ)
variables (M : ProFiltPseuNormGrpWithTinv ... |
61740bc4a851ad0fbdf11d0a08371334576174b3 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /library/data/nat/fact.lean | 05f2d9953044b9035e09db29247a673cc7204456 | [
"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,436 | 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
Factorial
-/
import data.nat.div
namespace nat
definition fact : nat → nat
| 0 := 1
| (succ n) := (succ n) * fact n
lemma fact_zero : fact 0 = 1 :=
r... |
a57e735763f6a6c772dbac442291ee1a6567b648 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/order/filter/basic.lean | 19211c8c9d7d2919a73df96b5aa501ee66df0a2c | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 111,097 | 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.zorn
import order.copy
import data.set.finite
/-! # Theory of filters on sets
## Main definitions
* `filter` : filters on a set;
* `at_... |
7ca1789731349c84bfda27f31ec95c6514ebc82c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/geometry/manifold/instances/sphere.lean | 71158b59e4aa9ca7ab75e566da88bc8bfda1c5f5 | [
"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 | 26,727 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.calculus.deriv.inv
import analysis.normed_space.ball_action
import analysis.special_functions.exp_deriv
import analysis.inner_product_space.calculus... |
945c5b30a1789b7ff9d94adca527602aac0bf665 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean/Elab/Frontend.lean | 9bdca702fae31f381aa3a1f5369b2844378ef10a | [
"Apache-2.0"
] | permissive | dgorokho/lean4 | 805f99b0b60c545b64ac34ab8237a8504f89d7d4 | e949a052bad59b1c7b54a82d24d516a656487d8a | refs/heads/master | 1,607,061,363,851 | 1,578,006,086,000 | 1,578,006,086,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,157 | 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, Sebastian Ullrich
-/
prelude
import Init.Lean.Elab.Import
import Init.Lean.Elab.Command
namespace Lean
namespace Elab
namespace Frontend
structure State :=
... |
9655773bdcef4826419c9b9d867244ca3198be8e | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/CancellativeCommutativeMonoid.lean | d180f0639022920601de17ab910c62f6d308b0b7 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,805 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section CancellativeCommutativeMonoid
structure CancellativeCommutativeMonoid (A : Type) : Type :=
(op : (A → (A → A)))
(e : A)
(lunit_e : (∀ {x : A} , (op e x) ... |
c60b0f1537249ced80c0610258529d117ce284fa | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/with_terminal.lean | b3e3142e36c5cf2197cde89d18a8b70eb026334f | [
"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 | 12,078 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import category_theory.limits.shapes.terminal
/-!
# `with_initial` and `with_terminal`
Given a category `C`, this file constructs two objects:
1. `with_terminal C`, the ca... |
1a92d88a59345a5bf8ec973c4f8dea7bd5bc5b36 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/data/matrix/notation.lean | b27abcdd01ad42f9b4193989a3b3ff021fa4978f | [
"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 | 17,646 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
Notation for vectors and matrices
-/
import data.fintype.card
import data.matrix.basic
import tactic.fin_cases
/-!
# Matrix and vector notation
This file defines notation ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.