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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
f9a9b598c893007005be2b3a31db261ecf17138c | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/print_inductive.lean | 5e5b6359da0ca0cd98cea7c810e1cc55f05f6b9b | [
"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 | 97 | lean | import data.list algebra.group
print inductive nat
print inductive group
print inductive list
|
b9c918d1c0743d253536e73f054c4e1bbc03e395 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/control/fix_auto.lean | c07e414f1d20ea6bec6edfa138f5a8651fa32cd8 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,019 | lean | /-
Copyright (c) 2020 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.nat.upto
import Mathlib.data.stream.basic
import Mathlib.data.pfun
import Mathlib.PostPort
u... |
e0babd3fb3742c6f9f47df06b685da53887db99e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/dynamics/periodic_pts.lean | cb6ceeafae4aeeba0ce46f88de4b9f5e55477268 | [] | 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 | 10,542 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.dynamics.fixed_points.basic
import Mathlib.data.set.lattice
import Mathlib.data.pnat... |
7b8d5ffbb0fde2c2ff810ba1cebb7fecfbcf5376 | 14224ebee6f0440455c8a61292fd77bdf13d0560 | /src/first_proofs.lean | 870abf685bfa194d0244bbe28ab9965db51a8801 | [
"Apache-2.0"
] | permissive | kbuzzard/tutorials | 429db7a5b126fc66cffc1d8681954dc300ecdcea | 635f760370a6ba6738b4cc2153d4f7fa5986ae4d | refs/heads/master | 1,599,813,861,697 | 1,588,251,786,000 | 1,588,251,786,000 | 222,009,836 | 1 | 1 | Apache-2.0 | 1,573,855,045,000 | 1,573,855,044,000 | null | UTF-8 | Lean | false | false | 17,946 | lean | /-
This file is intended for Lean beginners. The goal is to demonstrate what it feels like to prove
things using Lean and mathlib. Complicated definitions and theory building are not covered.
-/
-- We want real numbers and their basic properties
import data.real.basic
-- We want to be able to define functions using t... |
879d43d03e690ecdecf631bca7df404186699031 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/equiv/encodable.lean | d82285e8b3ce196f331e6f7dcb29979cdbe27109 | [
"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,104 | 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
open option list nat function
/-- An enc... |
1f9703b11751c9bacbe88014ef739915b3968f2c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/nat/fib_auto.lean | 09c566eef71e5b68b7359e4c45d0ad6fc8242814 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,187 | lean | /-
Copyright (c) 2019 Kevin Kappelmann. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Kappelmann
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.stream.basic
import Mathlib.tactic.default
import Mathlib.data.nat.gcd
import Math... |
7cfc6b09e6679b866d7d430ce1500b3012b1eaf1 | 367134ba5a65885e863bdc4507601606690974c1 | /src/algebra/char_zero.lean | 4168185040a6607030c05e969fe84b750f4df9a6 | [
"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 | 4,258 | lean | /-
Copyright (c) 2014 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.nat.cast
import data.fintype.basic
import tactic.wlog
/-!
# Characteristic zero
A ring `R` is called of characteristic zero if every natural number `n`... |
dd8184d6dceda36ae0444c84fae75cf15a982156 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/hit/quotient.lean | afb20d5c17b016dbb4b5691689b2f99c26b545c0 | [
"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 | 11,433 | lean | /-
Copyright (c) 2017 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Ulrik Buchholtz
Quotients. This is a quotient without truncation for an arbitrary type-valued binary relation
(graph).
See also .set_quotient
-/
/-
The hit quot... |
9411c24ad8500d30420e3129bc5f3341509abf29 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/partition/finpartition.lean | 77687a71a5f461c4fee0c322c6df1098a0f34b40 | [
"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 | 19,796 | 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.big_operators.basic
import order.atoms.finite
import order.sup_indep
/-!
# Finite partitions
> THIS FILE IS SYNCHRONIZED WITH... |
5fb0aa4b379fe3eeb6bca09bcef8fb303c6d1728 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/normed_space/bounded_linear_maps.lean | 8b9841c6388548adf676a4a1eccbb3fba870a591 | [
"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 | 20,480 | 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
Continuous linear functions -- functions between normed vector spaces which are bounded and linear.
-/
import analysis.normed_space.multilinear
noncomp... |
2d227ede9b6c8e35d599b6829ef39d60602f5562 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Linter/MissingDocs.lean | 19e237ad3af8d9e3b329e314c8c7122197833cb7 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 10,257 | lean | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Lean.Meta.Tactic.Simp.SimpTheorems
import Lean.Elab.SetOption
import Lean.Linter.Util
namespace Lean.Linter
open Elab.Command Parser.Command
open Parser.Term... |
13ab706a2fd2a1427875ecfaf55c6623f4ec6a87 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/multiset/erase_dup.lean | b5488d4c70579162c8f66b25b6172caa12edb18d | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,611 | 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.multiset.nodup
/-!
# Erasing duplicates in a multiset.
-/
namespace multiset
open list
variables {α β : Type*} [decidable_eq α]
/-! ### erase_dup -/
... |
66feb826fdb26531722719713af030d2dfbf8d60 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tests/lean/StxQuot.lean | 8ad98a43fc8e557c51a6a2a17d23fec8fa28d568 | [
"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 | 2,257 | lean | import Init.Lean
namespace Lean
open Lean.Elab
def run {α} [HasToString α] : Unhygienic α → String := toString ∘ Unhygienic.run
#eval run `(Nat.one)
#eval run `($Syntax.missing)
namespace Syntax
#eval run `($missing)
#eval run `($(missing.getArg 0))
#eval run `($(id Syntax.missing) + 1)
#eval run $ let id := Syntax.... |
85c8a3809932759ec54b237a9b9d5d4dc01a60bb | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_2109.lean | c1a3d6e8dd9723877d4e85d4e47fd0a56d0b4132 | [] | 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 | 116 | lean | example (P : Prop) : ¬ ¬ P → P :=
begin
intro h,
cases classical.em P,
{ assumption },
contradiction
end |
b38de9ac7a8b474b47067f488dbdc01ddc1ce32a | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/list/indexes_auto.lean | b5c09092435d472931a9c21ab00acf500402a008 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,189 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jannis Limperg
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.list.basic
import Mathlib.data.list.defs
import Mathlib.logic.basic
import Mathlib.Pos... |
0902f62d1dd374bfa0e7cf7f99b0dc3ab71c8582 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/internalizeCasesIssue.lean | 8233bde6a05ed9ff10ffeec6763f9a8c8b84c624 | [
"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 | 761 | lean | namespace MWE
inductive Id {A : Type u} : A → A → Type u
| refl {a : A} : Id a a
attribute [eliminator] Id.casesOn
infix:50 (priority := high) " = " => Id
def symm {A : Type u} {a b : A} (p : a = b) : b = a :=
by { induction p; exact Id.refl }
def transport {A : Type u} (B : A → Type v) {a b : A} (p : a = b) : B a... |
62027f3e71043749e33e88f0bd5cab9fbb76639b | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/shrinkFn.lean | 4459161ffc681ff3c054f8f6cad8d17a945c4e26 | [
"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 | 513 | lean | abbrev shrinkFn (α : Type u) [sz : SizeOf α] := (x : α) → List { y : α // sz.sizeOf y < sz.sizeOf x }
class Sampleable (α : Type u) [SizeOf α] where
shrink : shrinkFn α := fun _ => []
def Prod.shrink [SizeOf α] [SizeOf β] (shrA : shrinkFn α) (shrB : shrinkFn β) : shrinkFn (α × β) := fun (fst, snd) =>
let shrink1 ... |
c818ed5d9c97b7a4a9f1e4b3fb38543fea3a110b | 92b50235facfbc08dfe7f334827d47281471333b | /hott/types/cubical/cubeover.hlean | 9f721f624991b7393108994f4a851d3a7595d96c | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 4,216 | 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
Cubeovers
-/
import .squareover .cube
open equiv is_equiv
namespace eq
-- we need to specify B explicitly, also in pathovers
inductive cubeover {A : Type} (B... |
d20617f0ad3bd8becaad5dfe0b6ef9b23ab72f00 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/345.lean | 47c1edecc5c532b91576b5662b663059a8c7af19 | [
"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 | 75 | lean | axiom bla : 1
structure Foo where
foo : 1
inductive Bla (x : 1) : Type
|
d337b0446cf4e86779eb23c583bf6b0a8699044f | b561a44b48979a98df50ade0789a21c79ee31288 | /src/Lean/Server/FileWorker.lean | 51fda06da0b7f5ea98e2fa453b71573b7df45a34 | [
"Apache-2.0"
] | permissive | 3401ijk/lean4 | 97659c475ebd33a034fed515cb83a85f75ccfb06 | a5b1b8de4f4b038ff752b9e607b721f15a9a4351 | refs/heads/master | 1,693,933,007,651 | 1,636,424,845,000 | 1,636,424,845,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 21,419 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Init.System.IO
import Std.Data.RBMap
import Lean.Environment
import Lean.Data.Lsp
import Lean.Data.Json.FromToJson
import Lean.Util.Paths
... |
3dc89fd3982abd9ab8282e64d70dbe892f102682 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/data/complex/is_R_or_C.lean | cb6e4ffa762f924c7110a9803a7e4bc1a22a4cfe | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 32,331 | lean | /-
Copyright (c) 2020 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
import data.real.sqrt
import field_theory.tower
import analysis.normed_space.finite_dimension
/-!
# `is_R_or_C`: a typeclass for ℝ or ℂ
This file defines the type... |
b0f339a353d41385cf1dd4e7cd6bf9fad192da17 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /hott/types/sigma.hlean | ddc02fce6d987d97e037473d05cb63a02a867ac0 | [
"Apache-2.0"
] | permissive | EgbertRijke/lean | 3426cfa0e5b3d35d12fc3fd7318b35574cb67dc3 | 4f2e0c6d7fc9274d953cfa1c37ab2f3e799ab183 | refs/heads/master | 1,610,834,871,476 | 1,422,159,801,000 | 1,422,159,801,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 18,952 | hlean | /-
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
Ported from Coq HoTT
Theorems about sigma-types (dependent sums)
-/
import types.prod
open eq sigma sigma.ops equiv is_equiv
namespace sigma
infixr [local] ∘ := ... |
7e18d0dfa058c3e7c3585ef9b769e99ff7e71996 | 4bcaca5dc83d49803f72b7b5920b75b6e7d9de2d | /src/Init/Data/Array/Basic.lean | 7ca753ad51a29e535169ed29c5d55f9c17149c09 | [
"Apache-2.0"
] | permissive | subfish-zhou/leanprover-zh_CN.github.io | 30b9fba9bd790720bd95764e61ae796697d2f603 | 8b2985d4a3d458ceda9361ac454c28168d920d3f | refs/heads/master | 1,689,709,967,820 | 1,632,503,056,000 | 1,632,503,056,000 | 409,962,097 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 27,721 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import Init.Data.Nat.Basic
import Init.Data.Fin.Basic
import Init.Data.UInt
import Init.Data.Repr
import Init.Data.ToString.Basic
import Init.Util
u... |
51551728ebf4fe5add10216a4194dd59f269f0af | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/continuous_function/algebra.lean | 05486d2b6804932c0d4b385e4d7bb85fda41eea1 | [
"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 | 36,269 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Nicolò Cavalleri
-/
import topology.algebra.module.basic
import topology.continuous_function.ordered
import topology.algebra.uniform_group
import topology.uniform_space... |
f4f2930a2ae4997b375aa2ff271147b461116fd1 | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/analysis/analytic/composition.lean | 8050d838f129c2a8b8598bd6590eb4412de286e5 | [
"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 | 56,816 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Johan Commelin
-/
import analysis.analytic.basic
import combinatorics.composition
/-!
# Composition of analytic functions
in this file we prove that the composi... |
7372680941784583bd66cbf9f667e3aeec0bb257 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/topology/uniform_space/cauchy.lean | 9bb4bc46af6010e8168ad4e8725a003f5256cf4b | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 25,090 | 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 Cauchy filters in uniform spaces. Complete uniform spaces. Totally bounded subsets.
-/
import topology.uniform_space.basic topology.bases data... |
504003e620ade5c84ea91a024990e4c6450eeb35 | 1d265c7dd8cb3d0e1d645a19fd6157a2084c3921 | /src/lessons/lesson1.lean | 6bc35f5e3f84b23840833d0a3f9381a3fc15d814 | [
"MIT"
] | permissive | hanzhi713/lean-proofs | de432372f220d302be09b5ca4227f8986567e4fd | 4d8356a878645b9ba7cb036f87737f3f1e68ede5 | refs/heads/master | 1,585,580,245,658 | 1,553,646,623,000 | 1,553,646,623,000 | 151,342,188 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 476 | lean | def n: ℕ := 1
lemma p: 0 = 0 := eq.refl 0
lemma s: "Hello Lean!" = "Hello Lean!" := eq.refl "Hello Lean!"
lemma s1: tt = tt := eq.refl tt
/-def p' : 0 = 0 := eq.refl 1-/
theorem s' : 0 = 0 := eq.refl 0
lemma oeqo : 1 = 1 := eq.refl 1
lemma teqt: 2 = 1 + 1 := eq.refl (1+1)
lemma h : "Hello" = "He" ++ "llo" := rfl... |
5cb3cd457ca9fbc5bf6903edeaf0ac652cb7d9ce | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/group_theory/schreier.lean | b13b3323c061ddd6934ecefb7f4c8a4097c3f5ad | [
"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 | 10,580 | lean | /-
Copyright (c) 2022 Thomas Browning. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning
-/
import group_theory.abelianization
import group_theory.exponent
import group_theory.transfer
/-!
# Schreier's Lemma
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> ... |
fe41163400dcaf1d2ce7715694a76026cd5a0f80 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/localization_auto.lean | 62e4d9038f384d24f197dd0ed49ef71f21749e08 | [] | 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 | 77,171 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.ring
import Mathlib.group_theory.monoid... |
313f836b8829748ae029c13651208403651a36f5 | 217bb195841a8be2d1b4edd2084d6b69ccd62f50 | /library/init/lean/level.lean | a9c15215fe3952f2fddc5fed0b54f83a5ac57fdc | [
"Apache-2.0"
] | permissive | frank-lesser/lean4 | 717f56c9bacd5bf3a67542d2f5cea721d4743a30 | 79e2abe33f73162f773ea731265e456dbfe822f9 | refs/heads/master | 1,589,741,267,933 | 1,556,424,200,000 | 1,556,424,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,675 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.option.basic init.lean.name init.lean.format
namespace Lean
inductive Level
| zero : Level
| succ : Level → Level
| max : ... |
506f7d8f185361df627126d625a6f0649459770e | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/rewrite_search/discovery.lean | 4e51044f24bbe0c4289ba5ca4846a252ccebce23 | [] | 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 | 697 | lean | /-
Copyright (c) 2020 Kevin Lacker, Keeley Hoek, Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker, Keeley Hoek, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.nth_rewrite.default
import Mat... |
0d7e9bf35f705c911c327b8c2f0ee803e5474cb9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/linear_algebra/finite_dimensional.lean | 41ecc40f74eb0db30fab1ecb910ca1ae27dfb89d | [] | 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 | 44,498 | lean | /-
Copyright (c) 2019 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.linear_algebra.dimension
import Mathlib.ring_theory.principal_ideal_domain
import Mathlib.algeb... |
bb5a49b56f36355c874d7c03563fd252e05de31c | ac1c2a2f522b0fdf854095ba00f882ca849669e7 | /library/init/meta/name.lean | 4519b17674d1917e5155688b470310b4a5e12f3c | [
"Apache-2.0"
] | permissive | abliss/lean | b8b336abc8d50dbb0726dcff9dd16793c23bfbe1 | fb24cc99573c153f97a1951ee94bbbdda300b6be | refs/heads/master | 1,611,536,584,520 | 1,497,811,981,000 | 1,497,811,981,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,381 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.ordering init.coe
/-- Reflect a C++ name object. The VM replaces it with the C++ implementation. -/
inductive name
| anonymous : ... |
3b20cb63479fbd95ce7f0c3247186e36a02ca7ed | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/field_theory/separable.lean | 9c2951f0f08c2d8179cc63f39565b75ecab6cfc4 | [
"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 | 24,836 | 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.polynomial.big_operators
import field_theory.minimal_polynomial
import field_theory.splitting_field
import field_theory.tower
import algebra.squarefree
/-!
#... |
de8db32f283e90625d93b35ade113e9d3cfb93e8 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/data/fin2.lean | d54c2c1bea15f9e86b6a8702808752c2b3951201 | [] | 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 | 2,775 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.PostPort
universes l u
namespace Mathlib
/-- An alternate definition of `fin n` defined... |
7bf96f1dc9c1bec78cb3b418b60031ec8bb015e5 | b76f25a9822ee718683abfaa22f5cd4b40e5bfce | /library/init/meta/interactive_base.lean | 22870fe506aacec4b22cce002490b49a67a47ccf | [
"Apache-2.0"
] | permissive | robertylewis/lean | 7b953940ac025cc47b225b324b722103d6055994 | 6f545718a02370abffa4f0151c50e8be1497b7c2 | refs/heads/master | 1,649,197,585,774 | 1,496,929,777,000 | 1,496,930,081,000 | 36,263,844 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,335 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.option.instances
import init.meta.lean.parser init.meta.tactic init.meta.has_reflect
open lean
open lean.parser
local postfix `?`... |
e66a36a574a7c86624043737c7d46f6c2a58db52 | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/algebra/category/strict.hlean | 10941d3776b588ec72c2d511b4c3405f11937321 | [
"Apache-2.0"
] | permissive | davidmueller13/lean | 65a3ed141b4088cd0a268e4de80eb6778b21a0e9 | c626e2e3c6f3771e07c32e82ee5b9e030de5b050 | refs/heads/master | 1,611,278,313,401 | 1,444,021,177,000 | 1,444,021,177,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,757 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Jakob von Raumer
-/
import .precategory .functor
open is_trunc eq
namespace category
structure strict_precategory [class] (ob : Type) extends precategory ob :=... |
bfe789609e52ec6fb6edc25f7416f81a6962ad87 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/wf1.lean | 10a72ec42c25055a4ea8438a292e7987971bdcdc | [
"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 | 87 | lean | def g (x : Nat) (y : Nat) : Nat :=
if x < y then
2 * id (g (x-1)) y
else
0
|
a8b0ae5e30af673cb2f5c96d2d893ffa53260a7d | 4727251e0cd73359b15b664c3170e5d754078599 | /src/topology/algebra/algebra.lean | 297f91aef929c92b6f0f426f18e400a871feb556 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 6,064 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.algebra.subalgebra.basic
import topology.algebra.module.basic
import topology.algebra.field
/-!
# Topological (sub)algebras
A topological algebra ove... |
cdb6f98753d277cbd5fae00331db0f1ae408c7ad | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/control/monad/writer.lean | 3e782e80c5c976cab40495e3084072b9fcffeac4 | [
"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 | 7,928 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
The writer monad transformer for passing immutable state.
-/
import control.monad.basic
import algebra.group.basic
universes u v w u₀ u₁ v₀ v₁
structure writer_t ... |
3afe6c7651ce4df3ed0c08ef1b7578d671674fc3 | 5842125af0946f8797927ce44a1a4c3ba27ad5b4 | /tests/Tests.lean | 7027fc944ecf72fd07db4f441854a071127c5e70 | [] | no_license | Anderssorby/Neptune.lean | 5c2f3e4885b4a5635718ac827069690703bc1ffb | 378317a3e4383c7874d01907efb84b1e39180cf3 | refs/heads/main | 1,692,962,529,542 | 1,636,564,929,000 | 1,636,564,929,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15 | lean | import Neptune
|
fc6a0b7a1389c614302a9833f7b62a452519f7b2 | 88fb7558b0636ec6b181f2a548ac11ad3919f8a5 | /leanpkg/leanpkg/proc.lean | 85c13cd1c8d92bc9af7bf4f9b558fca8fb254f21 | [
"Apache-2.0"
] | permissive | moritayasuaki/lean | 9f666c323cb6fa1f31ac597d777914aed41e3b7a | ae96ebf6ee953088c235ff7ae0e8c95066ba8001 | refs/heads/master | 1,611,135,440,814 | 1,493,852,869,000 | 1,493,852,869,000 | 90,269,903 | 0 | 0 | null | 1,493,906,291,000 | 1,493,906,291,000 | null | UTF-8 | Lean | false | false | 680 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import system.io leanpkg.toml
open io io.proc
variable [io.interface]
namespace leanpkg
def exec_cmd (cmd : string) (args : list string) (cwd : option string :... |
585977e35ff3c4524a3d46b0736273347d963e7d | bf532e3e865883a676110e756f800e0ddeb465be | /data/seq/computation.lean | f5daa6a1407f893228c13c3957cba707ad5a9c43 | [
"Apache-2.0"
] | permissive | aqjune/mathlib | da42a97d9e6670d2efaa7d2aa53ed3585dafc289 | f7977ff5a6bcf7e5c54eec908364ceb40dafc795 | refs/heads/master | 1,631,213,225,595 | 1,521,089,840,000 | 1,521,089,840,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,438 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Coinductive formalization of unbounded computations.
-/
import data.stream data.nat.basic
universes u v w
/-
coinductive computation (α : Type u) : Type u
| retu... |
0e0ec331049f1636ba02a2822ff340865f3ad1e0 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/module/torsion.lean | 8143e0c3fc300d46e482f6231b4fb3bae23ac300 | [
"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 | 27,537 | lean | /-
Copyright (c) 2022 Pierre-Alexandre Bazin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Pierre-Alexandre Bazin
-/
import algebra.direct_sum.module
import algebra.module.big_operators
import linear_algebra.isomorphisms
import group_theory.torsion
import ring_theory... |
90c1c0f1ecdf520c66fd2d173226fa126472d2fa | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170216-problem-with-inheritance.lean | 639dcbc733448ecd932211c95615c7fc6599ae7e | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,977 | lean | open tactic
open smt_tactic
meta def blast : tactic unit := using_smt $ intros >> add_lemmas_from_facts >> try ematch >> try simp
universe variables u v
structure Category :=
(Obj : Type u)
(Hom : Obj → Obj → Type v)
(identity : Π X : Obj, Hom X X)
universe variables u1 v1 u2 v2
structure Functor (C : C... |
3c19365db0e60b3111983f51dab0d9a0b6f08bf4 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/algebra/homology/image_to_kernel_map.lean | 14af012698d579ffbf1dfe49976bc1f2cf5fcb55 | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 2,952 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.images
import category_theory.limits.shapes.kernels
/-!
# The morphism from `image f` to `kernel g` when `f ≫ g = 0`
We define ... |
b6087ca1f2ea52ff2bb950b95032dfc2a66deec4 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /archive/imo/imo1998_q2.lean | 0b5ed2b2747496b7f6067ab9e37bdebc96cdff59 | [
"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 | 9,567 | lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import data.fintype.basic
import data.int.parity
import algebra.big_operators.order
import tactic.ring
import tactic.noncomm_ring
/-!
# IMO 1998 Q2
In a competition, there... |
7b729272d12a7b06fe340e41fa101c61de1263a7 | 5749d8999a76f3a8fddceca1f6941981e33aaa96 | /src/logic/basic.lean | 7002495370bf8eb6107ae40c8a511e1a983858d3 | [
"Apache-2.0"
] | permissive | jdsalchow/mathlib | 13ab43ef0d0515a17e550b16d09bd14b76125276 | 497e692b946d93906900bb33a51fd243e7649406 | refs/heads/master | 1,585,819,143,348 | 1,580,072,892,000 | 1,580,072,892,000 | 154,287,128 | 0 | 0 | Apache-2.0 | 1,540,281,610,000 | 1,540,281,609,000 | null | UTF-8 | Lean | false | false | 31,028 | 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.library_note
/-!
# Basic logic properties
This file is one of the earliest imports in mathlib.
## Implementation notes
Theorems th... |
1038b596cfc7e618ab5b2c079966be8284c03a89 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/data/option_t.lean | e2ad6675656709ba1d7963075f12488535f5c61c | [
"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 | 2,260 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.interactive init.category.transformers
universes u v
def option_t (m : Type u → Type v) [monad m] (α : Type u) : Type v :=
m (opt... |
c7d334bfd63cf104d4deca0a13085134fb0d1775 | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world4/level2.lean | 24a6c48fdbfa2b1893afe28fd44b131eb88ea5fc | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 312 | lean | import game.world4.level1 -- hide
namespace mynat -- hide
/-
# Power World
## Level 2: `zero_pow_succ`
-/
/- Lemma
For all naturals $m$, $0 ^{succ (m)} = 0$.
-/
lemma zero_pow_succ (m : mynat) : (0 : mynat) ^ (succ m) = 0 :=
begin [less_leaky]
rw pow_succ,
rw mul_zero,
refl,
end
end mynat -- hide
|
4bee2d75042aabdc40c3cfcfab9c525244bda812 | bb31430994044506fa42fd667e2d556327e18dfe | /src/measure_theory/function/l1_space.lean | 9caa52b58626c1cec2755b44b68498c066de46f8 | [
"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 | 51,913 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import measure_theory.function.lp_order
/-!
# Integrable functions and `L¹` space
In the first part of this file, the predicate `integrable` is defined and basic pro... |
5c3f922c15ec8f43bcfb0a645597b7326a33f9a5 | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/System/IOError.lean | e97905f1d841b1dfc288dce4ba0832ac69e6acb2 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,445 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
prelude
import Init.Core
import Init.Data.UInt
import Init.Data.ToString
import Init.Data.String.Basic
/-
Imitate the structure of IOErrorType in Haskell:
https... |
074a6151b23e6a0611a632d15c89a836285c8de7 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /instructor/identifiers/eval.lean | 2c79c1550b491ec922b1afde2072e4720b08aebf | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31 | lean | def x := 1 + 2
#print x
#eval x |
023399ec51fab7908b611664c42a3fb2de0ecff2 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/server/init_exit_worker.lean | a9bcb0981fe32c7b1036f1d956d737391e4615bf | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 443 | lean | import Lean.Data.Lsp
open IO Lean Lsp
#eval (do
Ipc.runWith (←IO.appPath) #["--worker"] do
let hIn ← Ipc.stdin
hIn.write (←FS.readBinFile "init_vscode_1_47_2.log")
hIn.flush
hIn.write (←FS.readBinFile "open_empty.log")
hIn.flush
let diags ← Ipc.collectDiagnostics 1 "file:///empty" 1
asse... |
5af66d6d32bf66e20037e5a61b7361156f114fad | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/pp_param_bug.lean | 4e93e9bfadc9176ceebbf5c8d1d991b1076e6870 | [
"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 | 102 | lean | section
parameters (A : Type) {B : Type}
definition foo3 (a : A) (b : B) := a
#check foo3
end
|
cb970cbad07429ea95494f964e836fc3d7725eaf | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/calculus/tangent_cone.lean | f030aa993bdfd7ff189a06e9b0670b284101ff15 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 20,012 | 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.topology
import analysis.normed_space.basic
import analysis.specific_limits.basic
/-!
# Tangent cone
In this file, we define two predic... |
5ce2fa027e5aca5b502cdbf237e6c3fc89ca850d | 022547453607c6244552158ff25ab3bf17361760 | /src/data/matrix/block.lean | c5c2a660fdf2b56f282787e2487f1cbdc2479784 | [
"Apache-2.0"
] | permissive | 1293045656/mathlib | 5f81741a7c1ff1873440ec680b3680bfb6b7b048 | 4709e61525a60189733e72a50e564c58d534bed8 | refs/heads/master | 1,687,010,200,553 | 1,626,245,646,000 | 1,626,245,646,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 14,205 | lean | /-
Copyright (c) 2018 Ellen Arlt. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ellen Arlt, Blair Shi, Sean Leather, Mario Carneiro, Johan Commelin
-/
import data.matrix.basic
/-!
# Block Matrices
## Main definitions
* `matrix.from_blocks`: build a block matrix out... |
ce8549ef870b2e4773d97844b5a541e2e8793874 | 618003631150032a5676f229d13a079ac875ff77 | /src/group_theory/coset.lean | 883c92e23bc632ae4b3112f45d0242b2b1c7605e | [
"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 | 9,210 | lean | /-
Copyright (c) 2018 Mitchell Rowett. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mitchell Rowett, Scott Morrison
-/
import group_theory.subgroup
open set function
variable {α : Type*}
@[to_additive left_add_coset]
def left_coset [has_mul α] (a : α) (s : set α) :... |
66bcd5e47113b2cb9472efe94d0ad84a9a4c0aa9 | a537b538f2bea3181e24409d8a52590603d1ddd9 | /test/rewrite_all.lean | b8abc23b86b0dac8a80095dc690389aa47b62d54 | [] | no_license | rwbarton/lean-tidy | 6134813ded72b275d19d4d32514dba80c21708e3 | fe1125d32adb60decda7a77d0f679614ba9f6fbb | refs/heads/master | 1,585,549,718,705 | 1,538,120,619,000 | 1,538,120,624,000 | 150,864,330 | 0 | 0 | null | 1,538,225,790,000 | 1,538,225,790,000 | null | UTF-8 | Lean | false | false | 950 | lean | import tidy.rewrite_all_wrappers
import data.vector
structure F :=
(a : ℕ)
(v : vector ℕ a)
(p : v.val = [])
example (f : F) : f.v.val = [] :=
begin
perform_nth_rewrite 0 [f.p],
end
private structure cat :=
(O : Type)
(H : O → O → Type)
(i : Π o : O, H o o)
(c : Π {X Y Z : O} (f : H X Y) (g : H Y Z), H X Z)
... |
6a1ff28b15f0b86a86af0878d987cd05c8311942 | 205f0fc16279a69ea36e9fd158e3a97b06834ce2 | /src/13_Relations/01_sorts.lean | eb61ed2afdf2af55e4bff872857534761cfe75de | [] | no_license | kevinsullivan/cs-dm-lean | b21d3ca1a9b2a0751ba13fcb4e7b258010a5d124 | a06a94e98be77170ca1df486c8189338b16cf6c6 | refs/heads/master | 1,585,948,743,595 | 1,544,339,346,000 | 1,544,339,346,000 | 155,570,767 | 1 | 3 | null | 1,541,540,372,000 | 1,540,995,993,000 | Lean | UTF-8 | Lean | false | false | 811 | lean | /-
Every type in Lean in an expression of
type "Sort u" for some type universe, u.
Prop is just a shorthand for Sort 0, and
Type, for Type 0, which is Sort 1.
-/
-- Sort 0 is Prop (itself of type, Type 0)
#check Sort 0
-- Sort 1 is Type (itself of type, Type 1)
#check Sort 1
-- Sort 2 is Type 1 (itself of type, Typ... |
51c4c5a147e596403adb2abf3a345e4b4847db3e | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/category_theory/differential_object.lean | b116aef6af72f92088b6f1a1a98a326640d958c0 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 3,732 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.zero
import category_theory.shift
/-!
# Differential objects in a category.
A differential object in a category with zero morph... |
a636ec1c706fabb7e284e0a93064f578e139d350 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/ring_theory/dedekind_domain/selmer_group.lean | 433814c96a50e2f2eb32c7c76b0c7c134d65b50f | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 9,719 | lean | /-
Copyright (c) 2022 David Kurniadi Angdinata. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Kurniadi Angdinata
-/
import algebra.hom.equiv.type_tags
import data.zmod.quotient
import ring_theory.dedekind_domain.adic_valuation
/-!
# Selmer groups of fraction fi... |
7a6ba12ef73f04c975d84255c7821f375bd282aa | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/analysis/normed_space/inner_product.lean | 86bb5e233c09eb41a8230443c83fd5262b0e6a57 | [
"Apache-2.0"
] | permissive | SAAluthwela/mathlib | 62044349d72dd63983a8500214736aa7779634d3 | 83a4b8b990907291421de54a78988c024dc8a552 | refs/heads/master | 1,679,433,873,417 | 1,615,998,031,000 | 1,615,998,031,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 125,766 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Sébastien Gouëzel, Frédéric Dupuis, Heather Macbeth
-/
import linear_algebra.bilinear_form
import linear_algebra.sesquilinear_form
import topology.metric_space.pi_Lp
imp... |
e4fad4780df7c053cce089cd0872fb45e8de87cd | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/doNotation2.lean | 50ff6af1ecc5250ce0d405e9d0a5d8c7712f1487 | [
"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 | 4,037 | lean | def f (x : Nat) : IO Nat := do
IO.println "hello world"
let aux (y : Nat) (z : Nat) : IO Nat := do
IO.println "aux started"
IO.println s!"y: {y}, z: {z}"
pure (x+y)
discard <| aux x
(x + 1) -- It is part of the application since it is indented
discard <| aux x (x -- parentheses use `withoutPosition`
-1)
discard... |
1a54dc580edf60aba488f680e1d3bcc532880261 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/ne_zero.lean | f2bb34bca6febf3e5f7512ead0729cf78d9658b9 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 2,629 | lean | /-
Copyright (c) 2021 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import logic.basic
/-!
# `ne_zero` typeclass
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
We creat... |
51b769a15f396b06ac6458d6d219aeb71cce678a | 3c9dc4ea6cc92e02634ef557110bde9eae393338 | /stage0/src/Leanpkg.lean | ecbfad043e3785261eb848dd78cc1ac7ded6ab11 | [
"Apache-2.0"
] | permissive | shingtaklam1324/lean4 | 3d7efe0c8743a4e33d3c6f4adbe1300df2e71492 | 351285a2e8ad0cef37af05851cfabf31edfb5970 | refs/heads/master | 1,676,827,679,740 | 1,610,462,623,000 | 1,610,552,340,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,986 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Sebastian Ullrich
-/
import Leanpkg.Resolve
import Leanpkg.Git
namespace Leanpkg
def readManifest : IO Manifest := do
let m ← Manifest.fromFile leanpkgTomlFn
... |
55138907864ddb24dbd6ca22966caa2b3ca3b65c | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/free_monoid_auto.lean | d0dd64d9baa3fb17a986f6a5be4d576323ba9f7b | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,312 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Yury Kudryashov
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.equiv.basic
import Mathlib.data.list.basic
import Mathlib.algebra.star.basi... |
c4a039ce6a5082e5f2e71e38b7714b5bba1a6710 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/rename_var.lean | c6cae2f9592c33ac8429b2a938593518b8c2b1a3 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 2,773 | lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import tactic.interactive
/-!
# Rename bound variable tactic
This files defines a tactic `rename_var` whose main purpose is to teach
renaming of bound variables.
... |
c82f3b0fc5a92484f8b1d08600e55a0b49d8e0a2 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/wiedijk_100_theorems/perfect_numbers.lean | 191b9bd62c36ed8f501c20067dd6b2c8c03185ad | [
"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,239 | lean | /-
Copyright (c) 2020 Aaron Anderson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Aaron Anderson
-/
import number_theory.arithmetic_function
import number_theory.lucas_lehmer
import algebra.geom_sum
import ring_theory.multiplicity
/-!
# Perfect Numbers
> THIS FIL... |
5a62c53683a20514b655af24ae8a84595428427c | 6b02ce66658141f3e0aa3dfa88cd30bbbb24d17b | /src/Lean/Meta.lean | 1045c27416c069a7aa3fa6a51e34c94e490f578b | [
"Apache-2.0"
] | permissive | pbrinkmeier/lean4 | d31991fd64095e64490cb7157bcc6803f9c48af4 | 32fd82efc2eaf1232299e930ec16624b370eac39 | refs/heads/master | 1,681,364,001,662 | 1,618,425,427,000 | 1,618,425,427,000 | 358,314,562 | 0 | 0 | Apache-2.0 | 1,618,504,558,000 | 1,618,501,999,000 | null | UTF-8 | Lean | false | false | 963 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.LevelDefEq
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.ExprDefEq
impo... |
99f37c95b71e63cbbea162e08820284e3f424991 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /11_Tactic-Style_Proofs.org.34.lean | 7639bbb91da7f55e84f4d53ac98f18fd68ccf868 | [] | 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 | 431 | lean | import standard
import data.nat
open nat
inductive foo : Type :=
| bar1 : ℕ → ℕ → foo
| bar2 : ℕ → ℕ → ℕ → foo
-- BEGIN
example (x : ℕ) (H : x ≠ 0) : succ (pred x) = x :=
begin
revert H,
match x with
| 0 := by intro H1; exact (absurd rfl H1)
| succ y := by intro H1; apply rfl
end
end
definition silly (x : foo) ... |
6524f5af7fc9cb9b368ce4ab32eee54f002225db | c777c32c8e484e195053731103c5e52af26a25d1 | /src/ring_theory/localization/localization_localization.lean | 86ed623a3cb6cd04202b4a39cf7eb1fb93c8a12c | [
"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 | 13,104 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Mario Carneiro, Johan Commelin, Amelia Livingston, Anne Baanen
-/
import ring_theory.localization.at_prime
import ring_theory.localization.basic
import ring_theory.localization.f... |
7d8453edb6886cc4513be53aff51f49968d5bcad | c678b448c073e84fd00f1777ac278c36a7bb9a83 | /data/containers/rbtree/insert.lean | 8d404243114cbefb93f0efe6082bfd89f8060061 | [] | no_license | GaloisInc/lean-containers | 9d714d9a355381d66f4bf9b686589a85ce7afcc4 | c3359c6e439a611926168e2c86496d0d90a67f9b | refs/heads/master | 1,587,884,399,036 | 1,548,187,422,000 | 1,548,187,422,000 | 173,382,186 | 0 | 0 | null | 1,551,483,637,000 | 1,551,483,637,000 | null | UTF-8 | Lean | false | false | 18,777 | lean | import .basic
namespace data.containers
namespace rbtree
open color
/-- An insert_result is a generalization of the tree to allow
a node with 2-keys and 3-children each of which should have the
same height.
This is used
Specifically, it is either a tree that respects the red-black rules,
or a the concatenation of t... |
80e653d0b28c53d0bdb1436620a6a87d9da14384 | ea4aee6b11f86433e69bb5e50d0259e056d0ae61 | /src/tidy/applicable.lean | 2b6c6962c7c5b0aed9ab985f2e442a4f42c97e46 | [] | no_license | timjb/lean-tidy | e18feff0b7f0aad08c614fb4d34aaf527bf21e20 | e767e259bf76c69edfd4ab8af1b76e6f1ed67f48 | refs/heads/master | 1,624,861,693,182 | 1,504,411,006,000 | 1,504,411,006,000 | 103,740,824 | 0 | 0 | null | 1,505,553,968,000 | 1,505,553,968,000 | null | UTF-8 | Lean | false | false | 843 | lean | -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
open tactic
meta def applicable_attribute : user_attribute := {
name := `applicable,
descr := "A lemma that should be applied to a goal whenever possible."
}... |
a5fcd5b8c7be41f623206c2fbc67ae2256777775 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/rewrite_all.lean | 73e5957f7ed5a0affddcfebb21a507fa3b7bbaac | [] | 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 | 9,425 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import data.list
import tidy.pretty_print
import tidy.lock_tactic_state
open tactic
open interactive
open interactive.types
open expr
open lean
open lean.parser
... |
6c9da8bf2e5381e24587941d7c4487c1d1e0cc7b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/tactic/linarith/elimination.lean | 96b02a814a39457299dc1e6feace8f104d4d0a6c | [
"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 | 13,999 | lean | /-
Copyright (c) 2020 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import tactic.linarith.datatypes
/-!
# The Fourier-Motzkin elimination procedure
The Fourier-Motzkin procedure is a variable elimination method for linear inequa... |
a2778f5780e999effc18a507160afc4f3980246a | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/univ1.lean | 49b9d3bf6decb5c95a3e5330ecfd439371fd5d62 | [
"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 | 654 | lean | namespace S1
axiom I : Type*
definition F (X : Type*) : Type* := (X → Prop) → Prop
axiom {u} unfoldd : I.{u} → F I.{u}
axiom {l} foldd : F I.{l} → I.{l}
axiom iso1 : ∀x, foldd (unfoldd x) = x
end S1
namespace S2
universe variables u
axiom I : Type.{u}
definition F (X : Type*) : Type* := (X → Prop) → Prop
axiom unfol... |
f820eba78a8056d3fd2eac731ba50172335f207a | c777c32c8e484e195053731103c5e52af26a25d1 | /src/field_theory/cardinality.lean | 9fe35f450678a889412635572a57afbaea612e04 | [
"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 | 3,350 | lean | /-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import algebra.field.ulift
import data.mv_polynomial.cardinal
import data.nat.factorization.prime_pow
import data.rat.denumerable
import field_theory.finite.galois_fi... |
846435a01678c3d5b0c9388ecb61d3890dc918f0 | 432d948a4d3d242fdfb44b81c9e1b1baacd58617 | /src/ring_theory/witt_vector/structure_polynomial.lean | 3143f8fc150e78bd213ffb076b3a7f7f4b0d18db | [
"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 | 18,521 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Robert Y. Lewis
-/
import data.matrix.notation
import field_theory.mv_polynomial
import field_theory.finite.polynomial
import number_theory.basic
import ring_theory.wi... |
79235d24fc8221cd0eb5a1efa2aaceca556f5d01 | 947b78d97130d56365ae2ec264df196ce769371a | /src/Init/System/IO.lean | e102498be115e58018968e5cc615056d3e1a0a4e | [
"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 | 19,035 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Luke Nelson, Jared Roesch, Leonardo de Moura, Sebastian Ullrich
-/
prelude
import Init.Control.EState
import Init.Control.Reader
import Init.Data.String
import Init.Data.ByteArr... |
3475db9513bce22b73060746c7655625b2e6da54 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/preadditive/Mat.lean | af49beb4b3e0b4ac8d88acfe8b250797d451a314 | [
"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 | 15,442 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.preadditive.default
import category_theory.preadditive.single_obj
import category_theory.preadditive.additive_functor
import category_theory.li... |
834907043e385e6241075cdfe1837a60131c0287 | 95a02f25ddbaf30f9e6fdb8043e6fd3c197ea01c | /src/syntax.lean | 609248159d70154516f278941c72b0282a2b2a26 | [
"MIT"
] | permissive | praalhans/lean-abs | b23aad54878c06f5a495dfff63260b72d17e9b99 | 5d23eec7234c880f5ebc0d7b831caf55119edef8 | refs/heads/master | 1,587,416,771,564 | 1,575,885,115,000 | 1,575,885,115,000 | 169,097,861 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,410 | lean | /- Copyright 2019 (c) Hans-Dieter Hiep. All rights reserved. Released under MIT license as described in the file LICENSE. -/
import util
/- Each program has names. Names consist of a finite set of class names, a finite set of record names, and a finite set of symbol names. To each class name, there an associated fini... |
bc425b52c6ef4e7142116348695f526f63ca7ea1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/algebra/nonarchimedean/basic.lean | a7b6e1da8abaf57c60b4fadcec9f3dd526927717 | [
"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,835 | lean | /-
Copyright (c) 2021 Ashwin Iyengar. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard, Johan Commelin, Ashwin Iyengar, Patrick Massot
-/
import topology.algebra.ring
import topology.algebra.open_subgroup
import data.set.basic
import group_theory.subgroup
... |
c6b7c07612b70f15e535c75fc8d28381a1a6d1c9 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /13_More_Tactics.org.12.lean | 59c6c33feb81c0900c62462fdbe3b1e42cafc61d | [] | 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 | 196 | lean | import standard
example (a b c d : Prop) : a ∧ b ∧ c ∧ d ↔ d ∧ c ∧ b ∧ a :=
begin
apply iff.intro,
repeat (intro H; repeat (cases H with [H', H] | apply and.intro | assumption))
end
|
47ccd506a38e1c5245c3b3815c8f56d079e99a3e | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/toFromJson.lean | 0ecec5fa8dd80b0419b39ced8305190f85c14717 | [
"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 | 3,077 | lean | import Lean
open Lean
declare_syntax_cat json
syntax str : json
syntax num : json
syntax "{" (ident ": " json),* "}" : json
syntax "[" json,* "]" : json
syntax "json " json : term
/- declare a micro json parser, so we can write our tests in a more legible way. -/
open Json in macro_rules
| `(json $s:strLit) => s
... |
6c5771b6feec944a129619e28ee811ab8f91eb3c | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/nestedDo.lean | e4a2b6694928240e269bd5400ace57c92e9710a6 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 164 | lean | #lang lean4
def f (x : Nat) : StateM Nat Nat := do
let y ← do
modify (·+1)
let s ← get
pure $ s + x
pure $ y + 1
theorem ex1 : (f 5).run' 2 = 9 :=
rfl
|
2ff9236b678013618f1ee1c5d87077a09815f086 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/Lsp/Diagnostics.lean | 43bcca9fb346ab4fb018120f450201534da36526 | [
"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,170 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.Json
import Lean.Data.Lsp.Basic
import Lean.Data.Lsp.Utf16
import Lean.Message
/-! Definitions and functionality for emitting dia... |
bb72f546f09c89bbde27c0f3f44fe21ef410c125 | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /tmp/new-frontend/elaborator.lean | 223a7ea4b037554e8dae871121f19ba57b0f08a2 | [
"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 | 41,809 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Sebastian Ullrich
Elaborator for the Lean language: takes commands and produces side effects
-/
prelude
import init.lean.parser.module
import init.lean.expander
import init.lean... |
ffba8d187dc1b4eb700efac9cc7b1cdecec21122 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/measure_theory/probability_mass_function.lean | f99586021b1446a6fb497c4fca91136e3f9e98d6 | [
"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 | 13,247 | 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 topology.instances.ennreal
/-!
# Probability mass functions
This file is about probability mass functions or discrete probability measures:
a function `α → ℝ... |
a48ee24d9ec1f5c3c09228b10a45b4fd8646ef30 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Compiler/CSimpAttr.lean | 1f15f55129be862d1ba76171f5101c5cc2fd45a6 | [
"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,334 | 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.ScopedEnvExtension
import Lean.Util.Recognizers
import Lean.Util.ReplaceExpr
namespace Lean.Compiler
namespace CSimp
structure Entry where
f... |
908903e766da9a5c6c65ec50b1fbbef8430e8fcd | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/triv_sq_zero_ext.lean | 5e8b40b4a58e48255790b17e580ebb9bed221627 | [
"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 | 17,060 | 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.basic
import linear_algebra.prod
/-!
# Trivial Square-Zero Extension
Given a module `M` over a ring `R`, the trivial square-zero extension of `M` over... |
a4122daefb79c0f96110da70dc2013753fca5d68 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Init/Conv.lean | f9585878b32c5393459ae4545f026a486cf1394c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 12,958 | 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
Notation for operators defined at Prelude.lean
-/
prelude
import Init.NotationExtra
namespace Lean.Parser.Tactic.Conv
/-- `conv` is the syntax category for ... |
614d7743b2127c0b664825f67051e030336c62d5 | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/algebra/numeral.lean | 53728bad017bb3bd017a52f8c6082fe4cb89eb58 | [
"Apache-2.0"
] | permissive | YHVHvx/lean | 732bf0fb7a298cd7fe0f15d82f8e248c11db49e9 | 038369533e0136dd395dc252084d3c1853accbf2 | refs/heads/master | 1,610,701,080,210 | 1,449,128,595,000 | 1,449,128,595,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 10,268 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import algebra.ordered_field
open algebra
namespace norm_num
variable {A : Type}
definition add1 [s : has_add A] [s' : has_one A] (a : A) : A := add a one
... |
d61fae1facb13a1117945087ba10c1610067fa19 | f083c4ed5d443659f3ed9b43b1ca5bb037ddeb58 | /data/fintype.lean | f1ee407d3a0dbfe169ad74f7e187d6ea54a43f31 | [
"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 | 19,211 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Finite types.
-/
import data.finset algebra.big_operators data.array.lemmas data.vector2
universes u v
variables {α : Type*} {β : Type*} {γ : Type*}
/-- `fintype α` me... |
78b930c881ff1d2d728f24d87a2c98c9ea47623d | 675b8263050a5d74b89ceab381ac81ce70535688 | /src/category_theory/limits/preserves/basic.lean | 5b70bb4a1616daafd4e8f0675eebec6b9689e0fd | [
"Apache-2.0"
] | permissive | vozor/mathlib | 5921f55235ff60c05f4a48a90d616ea167068adf | f7e728ad8a6ebf90291df2a4d2f9255a6576b529 | refs/heads/master | 1,675,607,702,231 | 1,609,023,279,000 | 1,609,023,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,024 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Reid Barton, Bhavik Mehta
-/
import category_theory.limits.limits
/-!
# Preservation and reflection of (co)limits.
There are various distinct notions of "preserving l... |
aab62ee99a4a410e02864fd72fa33d52b6459af4 | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/commutative_algebra/local_integers.lean | 4bf4599258058a640cde5ba12f34ca38ba64f328 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,934 | lean | import algebra.ring data.rat data.real.basic data.complex.basic
import data.nat.prime ring_theory.subring
import tactic.ring
def local_denom (p : ℕ) (b : ℤ) := (p : ℤ) * b + 1
def denom_prod (p : ℕ) (b₀ b₁ : ℤ) := (p : ℤ) * b₀ * b₁ + b₀ + b₁
def is_local (p : ℕ) (q : ℚ) : Prop :=
∃ a b : ℤ, q * (local_denom p b) =... |
42b4c0cd09b68230b4dd9383efeaee6ab0e89f23 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/Spa/stalk_valuation.lean | ed5f0252882da29251961eb68f2283a88cd6fb67 | [
"Apache-2.0"
] | permissive | leanprover-community/lean-perfectoid-spaces | 16ab697a220ed3669bf76311daa8c466382207f7 | 95a6520ce578b30a80b4c36e36ab2d559a842690 | refs/heads/master | 1,639,557,829,139 | 1,638,797,866,000 | 1,638,797,866,000 | 135,769,296 | 96 | 10 | Apache-2.0 | 1,638,797,866,000 | 1,527,892,754,000 | Lean | UTF-8 | Lean | false | false | 10,864 | lean | import Spa.localization_Huber
import Spa.presheaf
import sheaves.stalk_of_rings
/-!
# The valuation on the stalk
We define the valuations on the stalks of the structure presheaf of the adic spectrum.
The strategy is as follows:
1. Recall that a point in the adic spectrum is an equivalence class of valuations.
We pi... |
443141a6e9280196edc3c71adcc27ccc190ec2af | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/instances/empty_scheme.lean | 0f2d189033c18c5fc5226a32920fdd80000142bf | [] | no_license | alreadydone/lean-scheme | 04c51ab08eca7ccf6c21344d45d202780fa667af | 52d7624f57415eea27ed4dfa916cd94189221a1c | refs/heads/master | 1,599,418,221,423 | 1,562,248,559,000 | 1,562,248,559,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,264 | lean | import scheme
import spectrum_of_a_ring.properties
universe u
open topological_space
local attribute [instance] classical.prop_decidable
-- The scheme Spec((0)). I could also just treat is an affine scheme.
variables (R : Type u) [comm_ring R] (HR : subsingleton R)
lemma Spec_empty : Spec R → false :=
λ x, Spe... |
ca5c9d5024b3e78278ed941b70e0366b847951b1 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/representation_theory/maschke.lean | bae267f565493c7a14077b8108b357e2e9498f8b | [
"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,320 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import algebra.monoid_algebra
import algebra.char_p.invertible
import algebra.regular
import linear_algebra.basis
/-!
# Maschke's theorem
We prove Maschke's theorem... |
e87b049b644a170b2011b8db2a4574fd070110e8 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/category/Ring/basic.lean | 88a25fe86d1330913b09f933133ec929f84db244 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 9,801 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Johannes Hölzl, Yury Kudryashov
-/
import algebra.category.Group.basic
import category_theory.concrete_category.reflects_isomorphisms
import category_theory.elementwise... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.