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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
30ef652bf4cb90258efbe41b02ac1abd2195c2f2 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/default.lean | ec49ff874e6c08be15e107f580c36b80dfd6f714 | [
"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 | 433 | 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, Michael Howes
-/
import algebra.group.conj
import algebra.group.type_tags
import algebra.group.with_one.basic
import algebra.hom.units
/-!
# Various m... |
475d49515b831e0794e8fb4177a88cd5409cf4e7 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/phashmap_inst_coherence.lean | 03d5a6c15dbf52e8a1fb6f0e6ffc112a7c0263ff | [
"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 | 381 | lean | import Std.Data.PersistentHashMap
new_frontend
open Std
def m : PersistentHashMap Nat Nat :=
let m : PersistentHashMap Nat Nat := {};
m.insert 1 1
def natDiffHash : Hashable Nat :=
⟨fun n => USize.ofNat $ n+10⟩
-- The following example should fail since the `Hashable` instance used to create `m` is not `natDiffHash`
... |
997b0e6d79e0fba3964d8ddfc8cb44e248f20ed7 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/SystemModel/System.lean | 97569e990516c0794a893ef0375f5cdc59f9cb2c | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 709 | lean | -- System Model
record SystemType :=
mk :: (Contexts : Type) (Stakeholders : Type) (Phases : Type) (ArtifactType: Type) (ValueType: Type)
/-
A system instance models a system of a particular type in a particular state.
The state includes the current context and phase, the current state of the
artifact itself, and th... |
0c559ef6621734455ec5bdb08a01ab0280ed422e | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/auto_propext.lean | 168cc82d4befc025dde14844b5582f4528ef08c1 | [
"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 | 122 | lean | example (p q : Prop) (h : p) : q ∨ p :=
by simp [h]
example (p q : Prop) : p → q ∨ p :=
by simp {contextual := tt}
|
dae8d9a44cd914b7ea04a5d256aab71aa55e224b | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /order/basic.lean | 79be8ad3d26a3bbaa43e3b537b4107b4bb926193 | [
"Apache-2.0"
] | permissive | semorrison/mathlib | 1be6f11086e0d24180fec4b9696d3ec58b439d10 | 20b4143976dad48e664c4847b75a85237dca0a89 | refs/heads/master | 1,583,799,212,170 | 1,535,634,130,000 | 1,535,730,505,000 | 129,076,205 | 0 | 0 | Apache-2.0 | 1,551,697,998,000 | 1,523,442,265,000 | Lean | UTF-8 | Lean | false | false | 14,653 | 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 tactic.interactive logic.basic data.sum data.set.basic algebra.order
open function
/- TODO: automatic construction of dual definitions / theorem... |
27be66870315392ac0328e1618113641815cfded | d1bbf1801b3dcb214451d48214589f511061da63 | /src/data/mv_polynomial/variables.lean | 0ca13b179ea3790d81d8601f3c7df8e9e0649817 | [
"Apache-2.0"
] | permissive | cheraghchi/mathlib | 5c366f8c4f8e66973b60c37881889da8390cab86 | f29d1c3038422168fbbdb2526abf7c0ff13e86db | refs/heads/master | 1,676,577,831,283 | 1,610,894,638,000 | 1,610,894,638,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,152 | 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, Johan Commelin, Mario Carneiro
-/
import data.mv_polynomial.monad
import data.set.disjointed
/-!
# Degrees and variables of polynomials
This file establishes many re... |
647f2104240dbc0ca9a93e9fec2baba569c6f455 | f22ac065755dfcbb9df7a6362ddf271499b4df3c | /src/tactic/fattribute.lean | 7142b58351e39dc32c08107fb37bb84a64c8a509 | [] | no_license | kodyvajjha/formalabstracts | d3abea03f9e58ce2c52c2c937d770b0b1e0bb125 | 6c121532fc76f3e47d1c6f8db900407c850b8d9c | refs/heads/master | 1,587,205,663,093 | 1,552,504,578,000 | 1,552,504,578,000 | 167,468,394 | 0 | 0 | null | 1,548,381,639,000 | 1,548,381,639,000 | null | UTF-8 | Lean | false | false | 3,072 | lean | /-
Copyright (c) 2019 Koundinya Vajjha. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Koundinya Vajjha
The fabstract user attribute.
-/
import tactic.metadata
import system.io
open interactive interactive.types lean.parser tactic native io
@[user_attribute]
meta d... |
bc1195a54b75adaa0193026a49cd68914f14cbdf | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/data/equiv/local_equiv.lean | 1f6607dded2c445a441c17615bbbc646bf03d885 | [
"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 | 24,008 | 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 data.equiv.basic
import tactic.tauto
/-!
# Local equivalences
This files defines equivalences between subsets of given types.
An element `e` of `local_... |
1ecc2d97379726d7dd8748fde22ba294ea9ba442 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20170116_POPL/assoc/ac_by_simp.lean | a98b7c1d6a8650610d5155d057053f9cb9e37dec | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 4,345 | lean | import data.set
/-
The Lean simplifer can be also use to "flatten" nested application of associative operators,
and "sort" associative/commutative ones.
The Lean simplifier can be viewed as a ordered rewriting system.
It can be customized with user provided lemmas.
It is well-known that we can use ordered rewriting ... |
f1211a20c2e259703b169cbd060fba2567a9f5bb | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/data/int/basic.lean | dec9d160162e302ec48069222cb0818ea50430d9 | [
"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 | 15,200 | 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 init.meta.transfer
open nat
/- the type, coercions, and notation -/
... |
0499e92afb8615be925cfcf70483aef577d7c769 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/topology/sequences.lean | bfd4a402f9d1467dc0e9b6a82178f23140ef9831 | [
"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 | 10,521 | 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
Sequences in topological spaces.
In this file we define sequences in topological spaces and show how they are related to
filters and the topology. In particular,... |
ebabb15e41eb91412cada646e7ea82f333ff23f3 | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebraic_geometry/open_immersion.lean | 92f56540532a78778a507ac1188b66f7e39ff2c1 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 86,370 | lean | /-
Copyright (c) 2021 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import algebraic_geometry.presheafed_space.has_colimits
import category_theory.limits.shapes.binary_products
import category_theory.limits.preserves.shapes.pullbacks
import... |
64346e25f2f0b21cdeb769e03f3cc3fe82c1fdad | ea80d7bb31b9673a3a06d5148363b44b66c53796 | /thys/core/thy.lean | d339f562c81cbcd1813fe1661cc9767f61af3e0f | [] | no_license | gitter-badger/electrolysis | 2a59d6e0fe1b6629a14a1202e31b1a8ff1c93ced | 4f63846e817cb52bdac4ae65ef3d17634e6ffc36 | refs/heads/master | 1,608,825,996,259 | 1,467,154,609,000 | 1,467,154,609,000 | 62,184,345 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,546 | lean | import core.generated
import algebra.interval
import data.finset
import data.list.sorted
import move
open [class] classical
open core
open eq.ops
open list
open list.prefixeq
open nat
open interval
open option
open partial
open prod.ops
open set
-- doesn't seem to get picked up by class inference
definition inv_imag... |
89af6f2d6ebb26587d93d16b6160997fe1f74731 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/normed_space/exponential.lean | 3135feba55d1b6f13d85fc3c12b44d595f0650c4 | [
"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 | 26,253 | lean | /-
Copyright (c) 2021 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Eric Wieser
-/
import analysis.specific_limits.basic
import analysis.analytic.basic
import analysis.complex.basic
import data.nat.choose.cast
import data.finset.non... |
fee87723a3c0886da5ad4cbd3903b76285099717 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Elab/Structure.lean | eee9f1f7c3213b5e7f7370ae555e93ab6a12a29b | [
"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 | 44,984 | 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.Parser.Command
import Lean.Meta.Closure
import Lean.Meta.SizeOf
import Lean.Meta.Injective
import Lean.Meta.Structure
import Lean.Meta.AppBuilde... |
baa8b05aebdac1bf6a31cb4173f27d48df6cdd34 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/tprod.lean | 0ce597c898a74e4ed8fb0705aebb4acd03db681d | [
"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,924 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import data.list.nodup
/-!
# Finite products of types
This file defines the product of types over a list. For `l : list ι` and `α : ι → Type*` we define
`list.t... |
e4b75ff1214930a9b3aaa5296069b3427202c8d7 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/measure_theory/interval_integral.lean | 94b22c794708c60b55d92ca74c010b66fb8836ef | [
"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 | 62,076 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury G. Kudryashov
-/
import measure_theory.set_integral
import measure_theory.lebesgue_measure
import analysis.calculus.deriv
/-!
# Integral over an interval
In this file we defi... |
7d3148055090813caea704a5ba33bc8e7bfd96fe | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/algebra/ring.lean | 99f96fb9885e506d8b72452eb58869032a932b75 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 14,678 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
-/
import algebra.ring.prod
import ring_theory.ideal.quotient
import ring_theory.subring.basic
import topology.algebra.group
/-!
# Topological (semi)ri... |
3e47832fb5d3f47a705a4c532e6f3bb491794f94 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/measure_theory/set_integral.lean | dca0f800a1a12261f81cd6d01cb60e8fbbc1c8fe | [
"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 | 8,507 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.bochner_integration
import measure_theory.lebesgue_measure
/-!
# Set integral
This file is temporarily commented out because of an ongoing refac... |
5123e082be1fc60c8726d1d9b67e65d64160f875 | 271e26e338b0c14544a889c31c30b39c989f2e0f | /stage0/src/Init/Lean/Syntax.lean | 36cb3a89fa2d1a1016df144e4da058d532f95677 | [
"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 | 17,160 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich, Leonardo de Moura
-/
prelude
import Init.Data.Array
import Init.Lean.Data.Name
import Init.Lean.Data.Format
namespace Lean
structure SourceInfo :=
/- Will be ... |
6fa361750ea1ef1f72f7b9240eaa42ac9e49eb71 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/order/partition/equipartition.lean | 3a3d8b1f6eddbe41ab83ed80281cdde4d2e9ba84 | [
"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 | 2,368 | lean | /-
Copyright (c) 2022 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import data.set.equitable
import order.partition.finpartition
/-!
# Finite equipartitions
This file defines finite equipartitions, the parti... |
1a45ec591595d2a1d3c0d711e2e1ff54e8e2a06d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/687.lean | 5aea838b97acb968a11404d5bd818cd22da121f3 | [
"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 | 665 | lean | import data.fin
section rot
open nat fin eq.ops algebra
open eq.ops
definition rotr₀ {n : nat} : fin n → fin n :=
match n with
| 0 := take i, elim0 i
| (succ k) := madd (-maxi)
end
definition rotr₁ {n : nat} : fin n → fin n :=
match n with
| zero := take i, elim0 i
| (succ k) := madd (-maxi)
end
definiti... |
ca67bb1ac6128c4ca1581000a9659395507e7d32 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/subtype.lean | e439f82926a42246fa7812d5afed2e660572134b | [
"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,999 | 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 tactic.lint
import tactic.ext
import tactic.simps
open function
namespace subtype
variables {α : Sort*} {β : Sort*} {γ : Sort*} {p : α → Prop} {q : α → Prop}... |
6dcf0125915941abb8d0fdb79c8570cb48654489 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/leak2.lean | 16077867944e4f23ba0a804b0350180e1aa9ba0f | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15 | lean | print true /\ a |
c9d7fa28f2f079bae6d63d70cf20dd269db12c01 | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /8.9.5.lean | 4af56862d62ce8a2be3f39807ccda9d608daf709 | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,885 | lean | universe u
inductive vector (α : Type u) : nat → Type u
| nil {} : vector 0
| cons : Π {n}, α → vector n → vector (n+1)
namespace vector
local notation h :: t := cons h t
#check @vector.cases_on
-- Π {α : Type}
-- {C : Π (a : ℕ), vector α a → Type}
-- {a : ℕ}
-- (n : vector α a),
-- (e1 : C 0... |
0da84db54e3ffc899a6b520d81f220b16049b10d | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category_theory/functor.lean | 51f1972746b9d70a5fdef74b989ec861fa883a40 | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 3,129 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tim Baumann, Stephen Morgan, Scott Morrison
Defines a functor between categories.
(As it is a 'bundled' object rather than the `is_functorial` typeclass parametrised
by the underlyin... |
581f08fcbd3434b3d2b57817918dc635c5c8ed5a | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/2136.lean | 666eff05dd5304afc4f7b4bb2d0e63a57b28e874 | [
"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 | 509 | lean | opaque bar : Nat → Nat
theorem foo : bar (Nat.succ a) = 0 := sorry
example : bar (a + 1) = 0 := by with_reducible exact foo -- ok
example : bar (a + a + 1) = 0 := by with_reducible exact foo -- should also work
def factorial : Nat → Nat
| 0 => 1
| n + 1 => (n + 1) * factorial n
example (a : Nat) : factorial (a + ... |
25675a4591da62a7a6ec5386c86b3295b851a778 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/shapes/reflexive.lean | 5a841d81e2fe12ac1f060b1bb311d1b26ed2a8e7 | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 6,181 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import category_theory.adjunction
import category_theory.limits.shapes.equalizers
import category_theory.limits.shapes.kernel_pair
/-!
# Reflexive coequalizers
We defin... |
4a0edefffb64020f3ec302c4e93442a3bb7355ef | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/fin_category.lean | eded75657adb4d27f488189922aed36737078549 | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 1,585 | 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 data.fintype.basic
import category_theory.discrete_category
/-!
# Finite categories
A category is finite in this sense if it has finitely many objects, and f... |
cfe7e058993f1078bc277c6dea8a0fe491542a63 | d436468d80b739ba7e06843c4d0d2070e43448e5 | /src/data/tree.lean | bc0619aabf258c32178d4e6ded49736517740577 | [
"Apache-2.0"
] | permissive | roro47/mathlib | 761fdc002aef92f77818f3fef06bf6ec6fc1a28e | 80aa7d52537571a2ca62a3fdf71c9533a09422cf | refs/heads/master | 1,599,656,410,625 | 1,573,649,488,000 | 1,573,649,488,000 | 221,452,951 | 0 | 0 | Apache-2.0 | 1,573,647,693,000 | 1,573,647,692,000 | null | UTF-8 | Lean | false | false | 2,546 | lean | /-
Copyright (c) 2019 Mathlib Authors. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Wojciech Nawrocki
-/
import data.num.basic
/-!
# Binary tree
Provides binary tree storage for values of any type, with O(lg n) retrieval.
See also `data.rbtree` for... |
07de01ecb1dbd655441bf05aebc149d002aa8d0b | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world10/level6.lean | 0453df8c35c5d576108c1519edd82c3cc92323ea | [
"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 | 621 | lean | import game.world10.level5 -- hide
namespace mynat -- hide
/-
# Inequality world.
## Level 6: `le_antisymm`
In Advanced Addition World you proved
`eq_zero_of_add_right_eq_self (a b : mynat) : a + b = a → b = 0`.
This might be useful in this level.
-/
/- Lemma
$\le$ is antisymmetric. In other words, if $a\le b$ ... |
da9c77fc762f6dbcf908b8aad86f5f1523d498bb | 7d5ad87afb17e514aee234fcf0a24412eed6384f | /src/fol.lean | 33f1b1246f2f6971c300542689ca9fd2cb917c8a | [] | no_license | digama0/flypitch | 764f849eaef59c045dfbeca142a0f827973e70c1 | 2ec14b8da6a3964f09521d17e51f363d255b030f | refs/heads/master | 1,586,980,069,651 | 1,547,078,141,000 | 1,547,078,283,000 | 164,965,135 | 1 | 0 | null | 1,547,082,858,000 | 1,547,082,857,000 | null | UTF-8 | Lean | false | false | 119,876 | lean | /- A development of first-order logic in Lean.
* The object theory uses classical logic
* We use de Bruijn variables.
* We use a deep embedding of the logic, i.e. the type of terms and formulas is inductively defined.
* There is no well-formedness predicate; all elements of type "term" are well-formed.
-/
import .to_... |
ac2faf45ac6ae582bc1632cbcc601bc1ff9604f8 | 1136b4d61007050cc632ede270de45a662f8dba4 | /library/init/meta/comp_value_tactics.lean | 3cd4a006d028bab34697b5f2c20422e452050382 | [
"Apache-2.0"
] | permissive | zk744750315/lean | 7fe895f16cc0ef1869238a01cae903bbd623b4a9 | c17e5b913b2db687ab38f53285326b9dbb2b1b6e | refs/heads/master | 1,618,208,425,413 | 1,521,520,544,000 | 1,521,520,936,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,508 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.data.option.instances
meta constant mk_nat_val_ne_proof : expr → expr → option expr
meta constant mk_nat_val_lt_proof ... |
720def964500b31f74c4b59686bb9412044f7dd4 | 54deab7025df5d2df4573383df7e1e5497b7a2c2 | /data/prod.lean | b0ec4377d19b22e904a4cf14b9f8b5fbddc75a21 | [
"Apache-2.0"
] | permissive | HGldJ1966/mathlib | f8daac93a5b4ae805cfb0ecebac21a9ce9469009 | c5c5b504b918a6c5e91e372ee29ed754b0513e85 | refs/heads/master | 1,611,340,395,683 | 1,503,040,489,000 | 1,503,040,489,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 825 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
Extends theory on products
-/
universes u v
variables {α : Type u} {β : Type v}
-- copied from parser
@[simp] lemma prod.mk.eta : ∀{p : α × β}, (p.1, p.2) = p
| (a, b... |
6da3f46500147e591ef1f8113456f66768a7eacf | f57749ca63d6416f807b770f67559503fdb21001 | /library/init/prod.lean | a2a95c96571243d48f38d627e32b26296db6291e | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,714 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad
-/
prelude
import init.num init.wf
definition pair := @prod.mk
notation A × B := prod A B
-- notation for n-ary tuples
notation `(` h `,` t:(fol... |
493c9f80160be0f78dd24c2e2cfb911cc9cc95b4 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/algebra/ordered_group.lean | e34337266e48cf8572488877f1aaf7bf0f523ffe | [
"Apache-2.0"
] | permissive | JLimperg/aesop3 | 306cc6570c556568897ed2e508c8869667252e8a | a4a116f650cc7403428e72bd2e2c4cda300fe03f | refs/heads/master | 1,682,884,916,368 | 1,620,320,033,000 | 1,620,320,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 33,590 | 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.ordered_monoid
/-!
# Ordered groups
This file develops the basics of ordered groups.
## Implementat... |
1feaa310ab30b1e142099674de97d48b7597ec9b | 3f7026ea8bef0825ca0339a275c03b911baef64d | /src/topology/algebra/uniform_group.lean | c2e01809e30359c8fcfe4cf350b29f73c2d20f5b | [
"Apache-2.0"
] | permissive | rspencer01/mathlib | b1e3afa5c121362ef0881012cc116513ab09f18c | c7d36292c6b9234dc40143c16288932ae38fdc12 | refs/heads/master | 1,595,010,346,708 | 1,567,511,503,000 | 1,567,511,503,000 | 206,071,681 | 0 | 0 | Apache-2.0 | 1,567,513,643,000 | 1,567,513,643,000 | null | UTF-8 | Lean | false | false | 20,005 | lean | /-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl
Uniform structure on topological groups:
* `topological_add_group.to_uniform_space` and `topological_add_group_is_uniform` can be used to
construct a... |
83bbeeaca49f3241d0bb0179b453df72690b4e07 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/auto_quote2.lean | a4f40ab09376e695089ec71857b4d58b30e47caa | [
"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 | 368 | lean | example (a b c : nat) : a = b → b = c → c = a :=
by {
intros,
apply eq.symm,
apply eq.trans,
assumption,
assumption
}
example (a b c : nat) : a = b → b = c → c = a :=
by intros; apply eq.symm; apply eq.trans; repeat {assumption}
example (p q r : Prop) : p → q → r → p ∧ q ∧ r ∧ p ∧ q :=
by intros; repeat {as... |
2955834b03bb14a368db9b2447b626f5369898e2 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/meta_expr1.lean | 70677e61d25c4274ee3b4ace33f8a01784401e9b | [
"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,779 | lean | open unsigned list
meta definition e1 := expr.app (expr.app (expr.const `f []) (expr.mk_var 1)) (expr.const `a [])
meta definition e1' := expr.app (expr.app (expr.const `f []) (expr.mk_var 1)) (expr.const `a [])
meta definition tst : e1 = e1' :=
rfl
#eval e1
#eval expr.fold e1 (0:nat) (λ e d n, n+1)
meta definiti... |
db87eb1b0531e80564d3b8ca767472a5ed85bb96 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/compiler/append.lean | e49504b70678ac5a9c2801b9cc175ef854d3a779 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 157 | lean | def main (xs : List String) : IO Unit :=
let ys1 := List.replicate 1000000 1;
let ys2 := List.replicate 1000000 2;
IO.println (toString (ys1 ++ ys2).length)
|
2e2707252bf32f875fa59a553420824537c12ffc | 7617a8700fc3eebd9200f1e620ee65b3565d2eff | /src/c0/ast_ok.lean | 34b6b56abff20735658fd5d5f1a2a5a0919989ed | [] | no_license | digama0/vc0 | 9747eee791c5c2f58eb53264ca6263ee53de0f87 | b8b192c8c139e0b5a25a7284b93ed53cdf7fd7a5 | refs/heads/master | 1,626,186,940,436 | 1,592,385,972,000 | 1,592,385,972,000 | 158,556,766 | 5 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,234 | lean | import c0.ast logic.function.basic util.basic
namespace c0
open ast function
def main := "main"
namespace type
def small : type → Prop
| (struct _) := false
| _ := true
end type
namespace binop
inductive ok : binop → type → type → Prop
| add : ok add type.int type.int
| sub : ok sub type.int type.int
|... |
7d338ab50640738cdc7d67acf5da2db7356f1ab7 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/probability/kernel/composition.lean | c77ed1f7c9ddac46e38a93a5877216b7dce4ae9b | [
"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 | 32,020 | lean | /-
Copyright (c) 2023 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import probability.kernel.measurable_integral
/-!
# Product and composition of kernels
We define
* the composition-product `κ ⊗ₖ η` of two s-finite kernels `κ : kernel... |
32ad0b37848a90f4f36039f646abc1d71c6f4016 | ad3e8f15221a986da27c99f371922c0b3f5792b6 | /src/week-02/e01-sets.lean | 0631f2a64c908419fab08452185753c55b139ed9 | [] | no_license | VArtem/lean-itmo | a0e1424c8cc4c2de2ac85ab6fd4a12d80e9b85f1 | dc44cd06f9f5b984d051831b3aaa7364e64c2dc4 | refs/heads/main | 1,683,761,214,467 | 1,622,821,295,000 | 1,622,821,295,000 | 357,236,048 | 12 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,876 | lean | import data.set.basic
import data.set.lattice
/-
Первые несколько строк файла на Lean импортируют нужные файлы. Если вы скачали репозиторий с помощью `leanproject`, то у вас автоматически в _target/deps/mathlib установлена библиотека mathlib:
GitHub: https://github.com/leanprover-community/mathlib
Документация: https:... |
dd59a526c6453dfa1561c1022a4eaaa8de0fca1a | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebraic_geometry/morphisms/universally_closed.lean | 036ff1844d1d90271177e75fd80e8afa374262ea | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,540 | 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
A morphism of schemes `f : X ⟶ Y` is universally closed if `X ... |
85aa24076903435248273651c0082e44fc5113db | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /01_Introduction.org.1.lean | 06ab6dc1032749149d750cc62690039d9c9b235f | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 240 | lean | /- page 9 -/
import standard
-- BEGIN
theorem and_commutative (p q : Prop) : p ∧ q → q ∧ p :=
assume Hpq : p ∧ q,
have Hp : p, from and.elim_left Hpq,
have Hq : q, from and.elim_right Hpq,
show q ∧ p, from and.intro Hq Hp
-- END
|
63b32d1c44d28e2c4b126cc9dc21e1d6672e90a3 | e61a235b8468b03aee0120bf26ec615c045005d2 | /src/Init/Lean/Meta/Tactic/Util.lean | 3ae2b1faff6811c52842ace2a3f0a7ae9426d8d3 | [
"Apache-2.0"
] | permissive | SCKelemen/lean4 | 140dc63a80539f7c61c8e43e1c174d8500ec3230 | e10507e6615ddbef73d67b0b6c7f1e4cecdd82bc | refs/heads/master | 1,660,973,595,917 | 1,590,278,033,000 | 1,590,278,033,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,632 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.Meta.Basic
import Init.Lean.Meta.LevelDefEq
namespace Lean
namespace Meta
/-- Aka user name -/
def getMVarTag (mvarId : MVarId) :... |
992f4c9c8cc3867a9d918465bdfa4fe1af647a3d | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/direct_limit.lean | 98c36b53b2b4133612188c71ebefee3950ece013 | [] | 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 | 24,597 | lean | /-
Copyright (c) 2019 Kenny Lau, Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.finset.order
import Mathlib.linear_algebra.direct_sum_module
import ... |
ab47224e5241bae8591b615cc43137654a64eeaa | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /12_Axioms.org.17.lean | 4d9626fb4443e12761b33d27951227b31a8b383c | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 169 | lean | import standard
open subtype nonempty
namespace hide
-- BEGIN
axiom indefinite_description {A : Type} {P : A → Prop} (H : ∃ x, P x) :
{x : A | P x}
-- END
end hide
|
6f020648a4f88cd77a2b95f8ad00b3ca7b80c05f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/simple.lean | 1b6d2ee0c5cb54fb60803e73044c4035f06af667 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,955 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import category_theory.limits.shapes.zero_morphisms
import category_theory.limits.shapes.kernels
import category_theory.abelian.basic
import category_t... |
3bd82beb48519d39513774015410d60ff234af49 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/fin_category.lean | e77e28cff8456af8473f7cff9d0c92f09d80ee69 | [
"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 | 2,043 | 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 data.fintype.basic
import category_theory.discrete_category
import category_theory.opposites
/-!
# Finite categories
A category is finite in this sense if it... |
32e520d62f7fe6676b88dce1ba98cb540d8282e2 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/function/lp_space.lean | 0ff13d618a5e18b06cb1354abe8a4a36fec60d92 | [
"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 | 134,109 | lean | /-
Copyright (c) 2020 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne, Sébastien Gouëzel
-/
import analysis.normed_space.indicator_function
import analysis.normed.group.hom
import measure_theory.function.ess_sup
import measure_theory.function.... |
34741b1d95946cd019098ba13cdde5f094eb0d32 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/let_coe_sort.lean | 072a6c4356593370fbd61ac2ca3b765156bf6c19 | [
"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 | 377 | lean | inductive foo | bar
instance : has_coe_to_sort foo _ :=
⟨λ _, unit⟩
set_option pp.all true
example : true :=
begin
let x : foo.bar := (),
have y : foo.bar := (),
suffices z : foo.bar,
trivial,
exact (),
end
example : true :=
let x : foo.bar := () in
have y : foo.bar, from (),
trivial
example : foo.bar → ... |
8f9c1729c457823e43d3144b18cf9734b30dfedd | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/data/equiv/fin.lean | 62597226d9961944bada5ce007710ff2852527ec | [
"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 | 2,851 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Kenny Lau
Equivalences between finite numbers.
-/
import data.fin data.equiv.basic
variables {m n : ℕ}
def fin_zero_equiv : fin 0 ≃ empty :=
⟨fin_zero_elim, empty.elim, assume a, fin_zero... |
eac61d154f9d4cf8b6433ddddfd482405e1ea130 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/geometry/manifold/algebra/monoid.lean | ba0993e415897cd36531cb0ac13dddfc60390c43 | [
"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 | 11,286 | lean | /-
Copyright © 2020 Nicolò Cavalleri. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nicolò Cavalleri
-/
import geometry.manifold.times_cont_mdiff_map
/-!
# Smooth monoid
A smooth monoid is a monoid that is also a smooth manifold, in which multiplication is a smooth ... |
1dd3fea4146d070fe93c1ea914b7bfeecedd0e84 | 735bb6d9c54e20a6bdc031c27bff1717e68886b9 | /data/set/basic.lean | 6eeadc401be790d68a35762235cc7e56c50bcab3 | [] | no_license | digama0/library_dev | 3ea441564c4d7eca54a562b701febaa4db6a1061 | 56520d5d1dda46d87c98bf3acdf850672fdab00f | refs/heads/master | 1,611,047,574,219 | 1,500,469,648,000 | 1,500,469,648,000 | 87,738,883 | 0 | 0 | null | 1,491,771,880,000 | 1,491,771,879,000 | null | UTF-8 | Lean | false | false | 32,458 | 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, Johannes Hölzl
-- QUESTION: can make the first argument in ∀ x ∈ a, ... implicit?
-/
import logic.basic data.set -- from the library in the main repo
... |
b7fb2318e738c5cadacf4cdabe99a4b027536a91 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/rat/nnrat.lean | 29e05d2d872e225ab14dd25e8257350399f42dda | [
"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 | 12,783 | lean | /-
Copyright (c) 2022 Yaël Dillies, Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Bhavik Mehta
-/
import algebra.algebra.basic
import algebra.order.nonneg
/-!
# Nonnegative rationals
This file defines the nonnegative rationals as a subtyp... |
91d740ac5f7f3202afb99dbaa9225e1e3ea4f21f | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/linterUnusedVariables.lean | 16c09d892d029b193532b7b7c216fe0dd5d192e3 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 4,928 | lean | import Lean
set_option linter.missingDocs false
set_option linter.all true
def explicitlyUsedVariable (x : Nat) : Nat :=
x
theorem implicitlyUsedVariable : P ∧ Q → Q := by
intro HPQ
have HQ : Q := by exact And.right HPQ
assumption
axiom axiomVariable (x : Prop) : True
def unusedVariables (x : Nat) : Nat :=... |
7a3d3d193d90607ec9cffb73901dec4b9be53397 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/tactic/monotonicity/basic.lean | 7fd18988de1d85f9a33dba83388e9fb5460447b2 | [
"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 | 5,473 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import algebra.order_functions
namespace tactic.interactive
open tactic list
open lean lean.parser interactive
open interactive.types
@[derive inhabited]
structure mono_cf... |
8e68a53d2f5b30161cef0e5de9112022928c5d46 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/padics/default_auto.lean | 4c051b1b30601726624421f2552e13b8efde79ad | [] | 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 | 157 | lean | import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.padics.padic_integers
import Mathlib.PostPort
namespace Mathlib
end Mathlib |
6e986f429ef5ca851f8c47c4818c68c062f7fa14 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/pempty.lean | 9babd922d98eca0888c996187a2cc77d191d6c10 | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 638 | lean | import data.fintype
universes u v
@[derive decidable_eq]
inductive pempty : Type u
instance pempty_fintype : fintype pempty := {
elems := [].to_finset,
complete := begin intros, cases x, end
}
def empty_function {α : Sort u} : empty → α := begin intros, cases a, end
def empty_dep... |
9506fe900f631f2d309fc96e4ff84772e416a24a | 367134ba5a65885e863bdc4507601606690974c1 | /src/topology/algebra/monoid.lean | 8eef72161472bf7e9507fada524ef9cda25647f7 | [
"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 | 12,444 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import topology.continuous_on
import group_theory.submonoid.basic
import algebra.group.prod
import algebra.pointwise
/-!
# Theory of topological mono... |
10279941972441f410af32f42acdeeacb1bbcc19 | f3849be5d845a1cb97680f0bbbe03b85518312f0 | /library/data/buffer/parser.lean | 9fadac54e1235f557cccb47579784b8e5b5a2499 | [
"Apache-2.0"
] | permissive | bjoeris/lean | 0ed95125d762b17bfcb54dad1f9721f953f92eeb | 4e496b78d5e73545fa4f9a807155113d8e6b0561 | refs/heads/master | 1,611,251,218,281 | 1,495,337,658,000 | 1,495,337,658,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,602 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import data.buffer data.dlist
universes u v
inductive parse_result (α : Type u)
| done (pos : ℕ) (result : α) : parse_result
| fail (pos : ℕ) (expected : dlist... |
47896b3127496e79c5e661b947fe049fd6e96d77 | ce6917c5bacabee346655160b74a307b4a5ab620 | /src/ch3/ex0308.lean | df3a245c3a33da26f52b33a35bc429f27e539f77 | [] | no_license | Ailrun/Theorem_Proving_in_Lean | ae6a23f3c54d62d401314d6a771e8ff8b4132db2 | 2eb1b5caf93c6a5a555c79e9097cf2ba5a66cf68 | refs/heads/master | 1,609,838,270,467 | 1,586,846,743,000 | 1,586,846,743,000 | 240,967,761 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 79 | lean | variables p q : Prop
example (h : p ∧ q) : q ∧ p := ⟨h.right, h.left⟩
|
a64cab1cd665ff7f84b95b600d3d164a48ccbb2d | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/CommutativeAdditiveMagma.lean | 0e609aa7ba39338bf6ab470188761c4523e0a5bc | [] | 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 | 6,819 | 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 CommutativeAdditiveMagma
structure CommutativeAdditiveMagma (A : Type) : Type :=
(plus : (A → (A → A)))
(commutative_plus : (∀ {x y : A} , (plus x y) = (plus y ... |
5eda108c150fd423c838e9bb9c41ecda856c1e0d | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/int/absolute_value.lean | ba7c3e8546a1f1e6fc15c46dd183925a6c40b4a4 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,087 | lean | /-
Copyright (c) 2021 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import algebra.absolute_value
import algebra.algebra.basic
import data.int.cast
import group_theory.group_action.units
/-!
# Absolute values and the integers
This file co... |
0240dc45142618631acd30878d7d806b3358748b | 1abd1ed12aa68b375cdef28959f39531c6e95b84 | /src/ring_theory/multiplicity.lean | 49f7cf6a0b4f23019e7ff828440074095f4a79b9 | [
"Apache-2.0"
] | permissive | jumpy4/mathlib | d3829e75173012833e9f15ac16e481e17596de0f | af36f1a35f279f0e5b3c2a77647c6bf2cfd51a13 | refs/heads/master | 1,693,508,842,818 | 1,636,203,271,000 | 1,636,203,271,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,763 | 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, Chris Hughes
-/
import algebra.associated
import algebra.big_operators.basic
import ring_theory.valuation.basic
/-!
# Multiplicity of a divisor
For a commutative mo... |
0956acf46d52841e983868048cc9ea90dd7bd40a | 5719a16e23dfc08cdea7a5bf035b81690f307965 | /src/Init/Lean/Meta/ExprDefEq.lean | 3b150ea26c8d1471dce72046aba80a949dbba5c8 | [
"Apache-2.0"
] | permissive | postmasters/lean4 | 488b03969a371e1507e1e8a4df9ebf63c7cbe7ac | f3976fc53a883ac7606fc59357d43f4b51016ca7 | refs/heads/master | 1,655,582,707,480 | 1,588,682,595,000 | 1,588,682,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 41,895 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Lean.ProjFns
import Init.Lean.Meta.WHNF
import Init.Lean.Meta.InferType
import Init.Lean.Meta.FunInfo
import Init.Lean.Meta.LevelDefEq
i... |
0b6563139210a320c828209bfb6ed4792d6edca6 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_lean_summary/unnamed_77.lean | a29a444e28e4a294782d2bf6b7a878e207a2a78f | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 55 | lean | example (h : p) : p :=
h -- Application of reiteration. |
9ee744169500e7c85b27d203ace413438524ea79 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/subobject/lattice.lean | a4ec9791318d5d0b6229fff7b97815b1eb860cc4 | [
"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 | 21,913 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.subobject.factor_thru
import category_theory.subobject.well_powered
/-!
# The lattice of subobjects
We provide the `semilattice... |
30fb4fd21326146de9995ba5a0db72a871ad6469 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/concrete_category/elementwise.lean | 79aba623e3e3958b1de4ee50e38c697a6ad9544d | [
"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 | 752 | 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 tactic.elementwise
import category_theory.limits.has_limits
import category_theory.limits.shapes.kernels
/-!
In this file we provide various simp lemmas in its elem... |
be3bcac27f63aaf2473ba4cef5573dec43af31d7 | 94637389e03c919023691dcd05bd4411b1034aa5 | /src/assignments/assignment_5/assignment_5.lean | adca9142aa6ede512874bc52077c5de3e8d62d02 | [] | no_license | kevinsullivan/complogic-s21 | 7c4eef2105abad899e46502270d9829d913e8afc | 99039501b770248c8ceb39890be5dfe129dc1082 | refs/heads/master | 1,682,985,669,944 | 1,621,126,241,000 | 1,621,126,241,000 | 335,706,272 | 0 | 38 | null | 1,618,325,669,000 | 1,612,374,118,000 | Lean | UTF-8 | Lean | false | false | 100 | lean | /-
Formalizing algebraic structures. Typeclasses
and group theory. See Collab site for details.
-/
|
053ba886ab46ae07cb60a411e21621683eca0263 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/meta5.lean | bf370274726dfa43f67c3f7655ac34ea5c44c421 | [
"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 | 641 | lean | import Lean.Meta
open Lean
open Lean.Meta
def tst1 : MetaM Unit :=
withLocalDeclD `y (mkConst `Nat) $ fun y => do
withLetDecl `x (mkConst `Nat) (mkNatLit 0) $ fun x => do {
let mvar ← mkFreshExprMVar (mkConst `Nat) MetavarKind.syntheticOpaque;
trace[Meta.debug] mvar;
let r ← mkLambdaFVars #[y, x] mvar;
trace[... |
20c498394aad51e80bc19c9ae960c9292d762cc2 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/logic/basic.lean | b05b0ca4c0349c7baa9912910b111bc594fe5927 | [
"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 | 60,510 | 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
-/
import tactic.doc_commands
import tactic.reserved_notation
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Im... |
aa1290cbb14131143335e15f901626d2fe9ac067 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/real/cau_seq_completion.lean | fc28397f931336abab297cfd7d3d8a96ec2910cb | [
"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 | 10,539 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Robert Y. Lewis
-/
import data.real.cau_seq
/-!
# Cauchy completion
This file generalizes the Cauchy completion of `(ℚ, abs)` to the completion of a commutative ring
... |
a3d6436d4585f6fb7d5fe09b12441668d7e07818 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/data/set/countable.lean | 55ebdf59c57e89ddde27ecb657cc8e11d8ee887d | [
"Apache-2.0"
] | permissive | aceg00/mathlib | 5e15e79a8af87ff7eb8c17e2629c442ef24e746b | 8786ea6d6d46d6969ac9a869eb818bf100802882 | refs/heads/master | 1,649,202,698,930 | 1,580,924,783,000 | 1,580,924,783,000 | 149,197,272 | 0 | 0 | Apache-2.0 | 1,537,224,208,000 | 1,537,224,207,000 | null | UTF-8 | Lean | false | false | 8,076 | 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
Countable sets.
-/
import data.equiv.list data.set.finite logic.function data.set.function
noncomputable theory
open function set encodable
open classical (hiding som... |
41decb2ea9094899a5961f46f9e47e8283041627 | 37a833c924892ee3ecb911484775a6d6ebb8984d | /src/category_theory/follow_your_nose.lean | 485277d5bfbcdf1d3e02ef89e361f9070ebc6389 | [] | no_license | silky/lean-category-theory | 28126e80564a1f99e9c322d86b3f7d750da0afa1 | 0f029a2364975f56ac727d31d867a18c95c22fd8 | refs/heads/master | 1,589,555,811,646 | 1,554,673,665,000 | 1,554,673,665,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,096 | lean | import category_theory.natural_transformation
import category_theory.opposites
import category_theory.types
import category_theory.tactics.obviously
universes u₁ v₁
open tactic
def fyn_names :=
[ `category_theory.category.id,
`category_theory.functor.map,
`category_theory.nat_trans.app,
`category_theory.c... |
5175f9b5500819eb8bb7cba1719e0e2128222542 | bb31430994044506fa42fd667e2d556327e18dfe | /src/logic/function/basic.lean | f3691cdc4c00e7bd32d0aa193ff207f388e22f47 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 35,532 | lean | /-
Copyright (c) 2016 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 data.option.defs
import logic.nonempty
import tactic.cache
/-!
# Miscellaneous function constructions and lemmas
> THIS FILE IS SYNCHRONIZED ... |
9fb533a2d0709f14b45955e7dea52e9c34c61646 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/order/extension.lean | c9e902f36facc9d5bc5482edb9a78af308cb4af0 | [
"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 | 3,912 | 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 data.set.lattice
import order.zorn
import tactic.by_contra
/-!
# Extend a partial order to a linear order
This file constructs a linear order which is an extensi... |
1ffc4b4ad9f74a7e2f5ae173311e8252e904137f | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/algebra/iterate_hom.lean | add349ecc06007b9159fb13a07f3911af75ab005 | [
"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 | 5,954 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.group_power
import algebra.group_power.basic
import logic.function.iterate
import group_theory.perm.basic
/-!
# Iterates of monoid and ring homomor... |
d5ed974bb31fb3ef8d4a0387b183ec80295ef764 | 9a0b1b3a653ea926b03d1495fef64da1d14b3174 | /tidy/rewrite_search/discovery/bundle.lean | 7210f36b320918fbf9a273c1091537bdf17d63ac | [
"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 | 5,264 | lean | import tidy.lib.parser
import .screening
namespace tidy.rewrite_search.discovery
open tactic
open lean.parser
open interactive.types
meta def atrr_fail {α : Type} (attr : string) (reason : format) : tactic α := fail $ "[" ++ attr ++"] error: " ++ to_string reason
private meta def bundle_fail {α : Type} : format → t... |
8ef8486a131ba5ec955e0186603bc7854e344d15 | b328e8ebb2ba923140e5137c83f09fa59516b793 | /src/Lean/Elab/AutoBound.lean | f8e7727fbfa8c7de213f2d4eb8119cee39ff4459 | [
"Apache-2.0"
] | permissive | DrMaxis/lean4 | a781bcc095511687c56ab060e816fd948553e162 | 5a02c4facc0658aad627cfdcc3db203eac0cb544 | refs/heads/master | 1,677,051,517,055 | 1,611,876,226,000 | 1,611,876,226,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,855 | 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.Options
/- Basic support for auto bound implicit local names -/
namespace Lean.Elab
register_builtin_option autoBoundImplicitLocal : Boo... |
e2201218f50abc769d777aea4c4eed596cce57d4 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/funext.lean | a83cf2f5fc1a9f111b31e9dd7ee5daec989d07f3 | [
"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 | 2,134 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
Extensional equality for functions, and a proof of function extensionality from quotients.
-/
prelude
import init.data.quot init.logic
universe variables u v
nam... |
78c3b6b07c4f791bf30bc9dcae41819bf624be33 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/defEqVsWhnfI.lean | fd1422f57fd15e9ab4c8c873739c2b0d0818c154 | [
"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 | 721 | lean | import Lean
class CountParts_ (S : Type u) where
μ : Type v
α : Type w
φ : S → μ → α
instance : CountParts_ String where
μ := Char
α := Nat
φ haystack needle := haystack.foldl (fun acc x => acc + if x == needle then 1 else 0) 0
class CountParts (S : Type u) (μ : Type v) (α : Type w) where
φ : S → μ → α... |
803d7798d062c86058cb86c7d49b17003d245b6c | 96338d06deb5f54f351493a71d6ecf6c546089a2 | /priv/Lean/Mor.lean | 71b459ba6b1f97adae2abb3a3f89269a1da6f0bf | [] | no_license | silky/exe | 5f9e4eea772d74852a1a2fac57d8d20588282d2b | e81690d6e16f2a83c105cce446011af6ae905b81 | refs/heads/master | 1,609,385,766,412 | 1,472,164,223,000 | 1,472,164,223,000 | 66,610,224 | 1 | 0 | null | 1,472,178,919,000 | 1,472,178,919,000 | null | UTF-8 | Lean | false | false | 5,546 | lean | /- Mor.lean -/
import Setoid
import Cat
namespace EXE
/-
- The category of morphisms
-/
record MorType (C : CatType) : Type :=
(Dom : C)
(Cod : C)
(Hom : Dom ⇒C⇒ Cod)
namespace Mor
-- commutative squares
abbreviation SquareProp
(C : CatType) {X11 X12 X21 X22 : C}
(m1x : X11 ⇒... |
a60d5a717cf682e60355c82005b653baf1694194 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/group/pi.lean | 2ad220e07c476989f3889f73ee916d017676a2d7 | [
"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 | 15,685 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.hom.group_instances
import data.pi.algebra
import data.set.function
import data.set.pairwise
import tactic.pi_instances
/-!
# Pi instances f... |
c2defe8561f584e23cc7e6cc9a052537b7c0a50e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/category_theory/closed/cartesian.lean | 253ab06b3d5d6ce46d6a26cf3695407e7b2be33a | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 14,901 | lean | /-
Copyright (c) 2020 Bhavik Mehta, Edward Ayers, Thomas Read. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Edward Ayers, Thomas Read
-/
import category_theory.epi_mono
import category_theory.limits.shapes.finite_products
import category_theory.monoida... |
a5ec159c363b4d6656016040bf4d3238a976b9cb | 1d335ec6ac4181a0a762b12797936770cc9fcef9 | /expressions/classical_time.lean | 924ed684881a4b037836525a63a979fdbf4346e5 | [] | no_license | rohanrajnair/lang | dbadcc3997e44245ca84d48dc1733cf09a2605a6 | 3beb4e29d8faa692983a55fa18acb6eb947134e8 | refs/heads/master | 1,672,640,379,424 | 1,597,948,771,000 | 1,597,948,771,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 320 | lean | import ...phys.src.classical_time
namespace lang.classicalTime
structure var : Type :=
mk :: (num : ℕ)
def varEq : var → var → bool
| v1 v2 := v1.num=v2.num
def env := (var → classicalTime)
inductive expr
| lit (v : classicalTime)
| var (v : var)
def init := λ v : var, worldTime
end lang.classicalTime |
847064f1d5f5a7b2450b65d6e914b3dc7a46b44f | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/data/fintype/basic.lean | d3c65fe7ff9548e0f4f5dfe0d3f7ead643332bdf | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 80,183 | 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.array.lemmas
import data.finset.pi
import data.finset.powerset
import data.sym.basic
import data.ulift
import group_theory.perm.basic
import order.well_fo... |
9775d8d99ed70b3785047d60f9e972dda68c0280 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Elab/MacroArgUtil.lean | ee411539de5431438742a68f4e5f94cfc64cf357 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 1,801 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.Syntax
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
open Lean.Parser.Command
/- Convert `macro` arg... |
8a5d13783472b61cdb99e9a93bb1dd7a275c7ada | 3446e92e64a5de7ed1f2109cfb024f83cd904c34 | /src/game/world3/level3.lean | c7ba0941c109948e0b0a731d0bc93029b8025f1a | [] | no_license | kckennylau/natural_number_game | 019f4a5f419c9681e65234ecd124c564f9a0a246 | ad8c0adaa725975be8a9f978c8494a39311029be | refs/heads/master | 1,598,784,137,722 | 1,571,905,156,000 | 1,571,905,156,000 | 218,354,686 | 0 | 0 | null | 1,572,373,319,000 | 1,572,373,318,000 | null | UTF-8 | Lean | false | false | 1,062 | lean | import game.world3.level2 -- hide
import mynat.mul -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 3: `one_mul`
Currently our tools for multiplication are the
following:
* `mul_zero : ∀ m, m * 0 = 0`
* `zero_mul : ∀ m, 0 * m = m`
* `mul_succ : ∀ a b, a * succ b = a * b + b`
* `mul_one ; ∀ m, m ... |
9095eeb1e789f9bc30be61df2702d33e78711d56 | a8c03ed21a1bd6fc45901943b79dd6574ea3f0c2 | /prover.lean | 19c265acbd87173893f61bf76748d9f5b4c9f969 | [] | no_license | gebner/resolution.lean | 716c355fbb5204e5c4d0c5a7f3f3cc825892a2bf | c6fafe06fba1cfad73db68f2aa474b29fe892a2b | refs/heads/master | 1,601,111,444,528 | 1,475,256,701,000 | 1,475,256,701,000 | 67,711,151 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,013 | lean | import clause prover_state
import subsumption misc_preprocessing
import resolution factoring clausifier superposition equality splitting
import inhabited
import selection
open monad tactic expr
declare_trace resolution
set_option trace.resolution false
meta def trace_clauses : resolution_prover unit := do
state ← sta... |
699aadd0cd4276d93e53e562aae956b74ae140ee | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/special_functions/polar_coord.lean | 93ff2a25343ea6183eb53b291e0d0938bce257d2 | [
"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,858 | lean | /-
Copyright (c) 2022 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.special_functions.trigonometric.deriv
import measure_theory.function.jacobian
/-!
# Polar coordinates
> THIS FILE IS SYNCHRONIZED WITH MATHLIB... |
dc7a865bd01dee1549aa552b3bb2b4ceb1228bd0 | 69d4931b605e11ca61881fc4f66db50a0a875e39 | /src/topology/metric_space/lipschitz.lean | 016f998bba72380085eefd6f40b51d1f3309314d | [
"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 | 14,255 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl, Yury Kudryashov
-/
import logic.function.iterate
import topology.metric_space.basic
import category_theory.endomorphism
import... |
ce3f94cd7100f10f365f7b78da69736b14e5827d | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /src/Std/ShareCommon.lean | de4dec84af05a0731bdf30d22a58702abe6be4ce | [
"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 | 6,400 | 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 Std.Data.HashSet
import Std.Data.HashMap
import Std.Data.PersistentHashMap
import Std.Data.PersistentHashSet
namespace Std
universe u v
namespace Sh... |
2716004accb0471367b866adef1d3e733ca625f1 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/topology/local_homeomorph.lean | 4825c417e81fb283713d413888110833d63be293 | [
"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 | 31,365 | 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 data.equiv.local_equiv
import topology.homeomorph
/-!
# Local homeomorphisms
This file defines homeomorphisms between open subsets of topological space... |
ea5008f8e5f46d350850980252fadd7cbe0197bd | f3be49eddff7edf577d3d3666e314d995f7a6357 | /TBA/Solutions/Exercise1.lean | d5cc6f9159fba3f5d13a70d5b86436b5c2fa2a72 | [] | no_license | IPDSnelting/tba-2021 | 8b930bcd2f4aae44a2ddc86e72b77f84e6d46e82 | b6390e55b768423d3266969e81d19290129c5914 | refs/heads/master | 1,686,754,693,583 | 1,625,135,602,000 | 1,625,136,365,000 | 355,124,341 | 50 | 7 | null | 1,625,133,762,000 | 1,617,699,824,000 | Lean | UTF-8 | Lean | false | false | 6,243 | lean | -- Let's first prove some simple example lemmas with the logical connectives we learned in the lecture.
section
-- Variables in sections determine the type of certain variables for the remainder of the section, saving us a bit of space.
variable (p q r : Prop)
example : p → p :=
fun h => h
example : p → (q → p) :=... |
509cef5997c8571cae1f01e36ed9019ce106d331 | 367134ba5a65885e863bdc4507601606690974c1 | /src/category_theory/adjunction/basic.lean | 2fd45f409ec4faf46cf0cafec1bd5ede35b3a6ab | [
"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 | 18,127 | lean | /-
Copyright (c) 2019 Reid Barton. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Bhavik Mehta
-/
import category_theory.equivalence
import data.equiv.basic
namespace category_theory
open category
-- declare the `v`'s first; see `category... |
57cd139f3559a43f2c597f34d40e0d39e0cf2f4a | 4727251e0cd73359b15b664c3170e5d754078599 | /archive/imo/imo1972_q5.lean | 7bd89bacc97d6cf7e89fb0e225aa08d5a5e03dfe | [
"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,260 | lean | /-
Copyright (c) 2020 Ruben Van de Velde, Stanislas Polu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ruben Van de Velde, Stanislas Polu
-/
import data.real.basic
import analysis.normed_space.basic
/-!
# IMO 1972 Q5
Problem: `f` and `g` are real-valued functions ... |
6d8d61d06c92c82d9148275317aa31f317dd2d73 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/noetherian_space.lean | 7806a0c6a7bb712d9402e38035ba321b836a0a70 | [
"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 | 9,046 | 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 order.compactly_generated
import order.order_iso_nat
import topology.sets.closeds
/-!
# Noetherian space
A Noetherian space is a topological space that satisfies a... |
3a912dab12e2731390babb99d3426f47d8cf00b0 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/linear_algebra/special_linear_group.lean | a6ca761de80db270b3532da647a13dd7fb450bd6 | [
"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 | 5,696 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Anne Baanen.
The Special Linear group $SL(n, R)$
-/
import linear_algebra.matrix
import linear_algebra.nonsingular_inverse
/-!
# The Special Linear group $SL(n, R)$
This file de... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.