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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a03abbaf91e3463a56097434641941fd986e7e1e | 2eab05920d6eeb06665e1a6df77b3157354316ad | /src/analysis/convex/function.lean | 662027edb76e4599a70f52046f75892fa32aaa25 | [
"Apache-2.0"
] | permissive | ayush1801/mathlib | 78949b9f789f488148142221606bf15c02b960d2 | ce164e28f262acbb3de6281b3b03660a9f744e3c | refs/heads/master | 1,692,886,907,941 | 1,635,270,866,000 | 1,635,270,866,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 37,430 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, François Dupuis
-/
import analysis.convex.basic
import order.order_dual
import tactic.field_simp
import tactic.linarith
import tactic.ring
/-!
# Convex and con... |
bb842fea6ee2bd84b7370f2989440eb6b5303137 | 302b541ac2e998a523ae04da7673fd0932ded126 | /tests/playground/nat.lean | 56ca73c1945599425335cbee5dc79ada53d2f336 | [] | no_license | mattweingarten/lambdapure | 4aeff69e8e3b8e78ea3c0a2b9b61770ef5a689b1 | f920a4ad78e6b1e3651f30bf8445c9105dfa03a8 | refs/heads/master | 1,680,665,168,790 | 1,618,420,180,000 | 1,618,420,180,000 | 310,816,264 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 654 | lean | set_option trace.compiler.ir.init true
def add (x : Nat) (y : Nat ) :Nat := x + y
def sub (x : Nat) (y : Nat ) :Nat := x - y
def mul (x : Nat) (y : Nat ) :Nat := x * y
def div (x : Nat) (y : Nat ) :Nat := x / y
def lt (x : Nat) (y : Nat) : Bool := x > y
def eq (x : Nat) (y : Nat) : Bool := x == y
def le (x : Nat)... |
0e20e7dc7c4ba6f725d8fe3797d0c21b5f3dbc31 | 5f83eb0c32f15aeed5993a3ad5ededb6f31fe7aa | /lean/attic/natutil.lean | 31af08a0cdb4c50bd7858e98f411a9596648154c | [] | no_license | uw-unsat/jitterbug | 45b54979b156c0f5330012313052f8594abd6f14 | 78d1e75ad506498b585fbac66985ff9d9d05952d | refs/heads/master | 1,689,066,921,433 | 1,687,061,448,000 | 1,688,415,161,000 | 244,440,882 | 46 | 5 | null | null | null | null | UTF-8 | Lean | false | false | 11,437 | lean | -- nat helpers
namespace nat
lemma eq_zero_of_lt_one {n : nat} (h : n < 1) : n = 0 :=
begin
apply eq_zero_of_le_zero,
apply le_of_lt_succ h,
end
theorem sub_eq_zero_of_lt {n m : ℕ} (h : n < m) : n - m = 0 :=
by { apply sub_eq_zero_of_le (le_of_lt h) }
theorem eq_sub_of_add_eq {a b c : ℕ} (h : a + c = b) : a =... |
322edcd0b9c21ddee6c414a92c8c5a5f0bc487d2 | fe84e287c662151bb313504482b218a503b972f3 | /src/combinatorics/fibonacci.lean | f9167f6bd6e7e8da317de79e46adbe293f4c9f6f | [] | no_license | NeilStrickland/lean_lib | 91e163f514b829c42fe75636407138b5c75cba83 | 6a9563de93748ace509d9db4302db6cd77d8f92c | refs/heads/master | 1,653,408,198,261 | 1,652,996,419,000 | 1,652,996,419,000 | 181,006,067 | 4 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 5,162 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
This file defines Fibonacci numbers and their reductions mod `n`.
It was intended to make computation efficient, but does not
succeed very well. Some better approach... |
4c32287d2d173fa9d34146f64ed040e8cc2ab698 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /test/traversable.lean | 6adc03f87b4114f8cef75a8c0c923fd0bdd8556e | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 1,962 | lean | import control.traversable.derive
import control.traversable.instances
universes u
/- traversable -/
open tactic.interactive
run_cmd do
lawful_traversable_derive_handler' `test ``(is_lawful_traversable) ``list
-- the above creates local instances of `traversable` and `is_lawful_traversable`
-- for `list`
-- do not p... |
2f3e9852adaee90a7af64707df3ffbfbe13bbeb9 | 02005f45e00c7ecf2c8ca5db60251bd1e9c860b5 | /src/order/filter/bases.lean | 7480d36f4222344ca3c57762098496644443b69e | [
"Apache-2.0"
] | permissive | anthony2698/mathlib | 03cd69fe5c280b0916f6df2d07c614c8e1efe890 | 407615e05814e98b24b2ff322b14e8e3eb5e5d67 | refs/heads/master | 1,678,792,774,873 | 1,614,371,563,000 | 1,614,371,563,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 36,536 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Yury Kudryashov, Johannes Hölzl, Mario Carneiro, Patrick Massot
-/
import order.filter.basic
import data.set.countable
/-!
# Filter bases
A filter basis `B : filter_basis α` on a typ... |
b43be4a0f3c63a923a457e2ff1200a50466fb78d | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /src/Std/Data/RBMap.lean | 07d25a63d2cbc4270cf11a53fda58c1bd75493b2 | [
"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 | 13,410 | 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
-/
namespace Std
universes u v w w'
inductive Rbcolor where
| red | black
inductive RBNode (α : Type u) (β : α → Type v) where
| leaf ... |
c617bed09d6c7f40aad49cd62e472b6b4ad193af | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/category_theory/limits/kan_extension.lean | 7fdb3dc909db4cd1a90c2439d8bb41f6c57be1aa | [
"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 | 8,209 | lean | /-
Copyright (c) 2021 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Adam Topaz
-/
import category_theory.punit
import category_theory.structured_arrow
import category_theory.limits.functor_category
import category_theory.limits.shapes.termina... |
700c3b0deaeb56313ec782ef1ec8aa04d0056f67 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/number_theory/bertrand.lean | dd790a5440843dc048a4b66288bd5bfb2be4139e | [
"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 | 11,244 | lean | /-
Copyright (c) 2020 Patrick Stevens. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Stevens, Bolton Bailey
-/
import data.nat.choose.factorization
import number_theory.primorial
import analysis.convex.specific_functions
/-!
# Bertrand's Postulate
This file ... |
7b279cdfeaee64617349e2285c2e073bcbd56f52 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/meta/backward.lean | 882ea3e31d0fbc3910ff972e8b99e5a46f6cc7e1 | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 3,067 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.tactic init.meta.set_get_option_tactics
namespace tactic
meta_constant back_lemmas : Type
/- Create a datastructure containing al... |
4b2da98360077f29c91ec6d299a04ca5176b2f86 | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /stage0/src/Std/Data/PersistentHashMap.lean | e47c704c41e51adee12d30ee8525d1ec5289f347 | [
"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 | 13,294 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
namespace Std
universes u v w w'
namespace PersistentHashMap
inductive Entry (α : Type u) (β : Type v) (σ : Type w) where
| entry (key : α) (val : β) : ... |
cd43fcf64020cdcd5cfcded4fd0a48c63ab914ae | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebra/homology/single.lean | 82ff2975d8030e1dd528796be556e6637855afb7 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 11,286 | 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.homology.homology
/-!
# Chain complexes supported in a single degree
We define `single V j c : V ⥤ homological_complex V c`,
which constructs complex... |
ae4565315bf740feee24a2c734dfae7a0e7c9093 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Elab/Tactic/Delta.lean | 5a7dcb6a0519443b64c3ffa654835a12f2a0d0b3 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,404 | 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.Meta.Tactic.Delta
import Lean.Elab.Tactic.Basic
import Lean.Elab.Tactic.Location
namespace Lean.Elab.Tactic
open Meta
def deltaLocalDecl (decl... |
1469f959dc3bd08cc462cbb9b961bc480cfd1208 | 6e41ee3ac9b96e8980a16295cc21f131e731884f | /library/data/nat/order.lean | c5f4ff17a32a3b5d7a3251953893f27da78cfcbc | [
"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,342 | lean | /-
Copyright (c) 2014 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: data.nat.order
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad
The order relation on the natural numbers.
-/
import data.nat.basic data.nat.comm_semiring algebra.ordere... |
2b08afc17b182d85d2468fbad65e601a52ee8276 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/ind_cnst_params.lean | 86c745fd9d740c4d19826b2dce7d8cac72665990 | [
"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 | 276 | lean | inductive foo
| mk (a : nat) (b : nat) : bool → foo
#print foo.mk
#check foo.mk 0 0 tt
universe variables u
inductive List (α : Type u)
| nil {} (a : nat) : List
| cons (hd : α) (tail : List) : List
#check List.cons "a" (List.nil 1)
#check List.cons "a" (List.nil 2)
|
e7b99d5db709e124c6e2e16efe0d463c932457d2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/auxDeclIssue.lean | f1e114499725be463e7cbb8b1abdfaa498ac3642 | [
"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 | 376 | lean | --
theorem ex1 : False :=
by {
assumption -- should not use the auxiliary declaration `ex1 : False`
}
variable (x y : Nat) in
theorem ex2 : x = y :=
by {
subst x; -- should not use the auxiliary declaration `ex2 : x = y`
exact rfl
}
set_option pp.auxDecls true in
theorem ex3 : False :=
by {
assumption -- s... |
9d844fbaeb330214e89de1d9f43445223937ff50 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/real/nnreal.lean | 5a93d29ec1d57f12fcd8f48b42bfa98236d6f85c | [
"Apache-2.0"
] | permissive | AntoineChambert-Loir/mathlib | 64aabb896129885f12296a799818061bc90da1ff | 07be904260ab6e36a5769680b6012f03a4727134 | refs/heads/master | 1,693,187,631,771 | 1,636,719,886,000 | 1,636,719,886,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 29,670 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.big_operators.ring
import data.real.basic
import algebra.indicator_function
import algebra.algebra.basic
import algebra.order.nonneg
/-!
# Nonnegative... |
11d52cb75cd4674df25aba6977e0819151a1238f | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/algebra/basic.lean | 09c2879bf97411d486c750539d947beb681d9f8c | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 44,770 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Yury Kudryashov
-/
import tactic.nth_rewrite
import data.matrix.basic
import linear_algebra.tensor_product
import ring_theory.subring
import deprecated.subring
/-!
# Algebra ove... |
a140e80fa4d73cc5a43825d01c5c9acf0280337d | 6db8061629f55e774dd3d03be5bf005ffb485e48 | /BetterNumLits/Numerals.lean | cb6ff9a6a15ea4bd7f6151457c14516f23c179c0 | [] | no_license | tydeu/lean4-betterNumLits | 21fd5717d1b62ecb021c73e8cfaa0e3d19005690 | 45e3b79214b3e1f81f8e034dd12257e993ddc578 | refs/heads/master | 1,683,103,070,685 | 1,621,717,131,000 | 1,621,717,131,000 | 369,368,844 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,203 | lean | universe u
class Zero (A : Type u) := zero : A
class One (A : Type u) := one : A
class Two (A : Type u) := two : A
class Three (A : Type u) := three : A
class Four (A : Type u) := four : A
class Five (A : Type u) := five : A
class Six (A : Type u) := ... |
50c4e0a2764f47b184fa0b046d9f3ee5adcfc6bb | 94e33a31faa76775069b071adea97e86e218a8ee | /src/analysis/convex/basic.lean | 5a4cf4f7b91f8001e20eb9ec541e980b1a64e728 | [
"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 | 42,041 | lean | /-
Copyright (c) 2019 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov, Yaël Dillies
-/
import algebra.order.invertible
import algebra.order.module
import linear_algebra.affine_space.midpoint
import linear_algebra.a... |
607b77f4f8b199631671ef7c11612dda2c7e1436 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/779.hlean | 204cc370a5c30054089dfcaac23d637835b4fb78 | [
"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 | 78 | hlean | definition foo (x : empty) : empty :=
by try exact _;contradiction
print foo
|
471c317b79f831aef45ee7f749400a3512cfaed6 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/lint/frontend.lean | ce2225e8e8fabed9cdc91010105aad8d89666f59 | [
"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 | 12,696 | 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, Robert Y. Lewis, Gabriel Ebner
-/
import tactic.lint.basic
/-!
# Linter frontend and commands
This file defines the linter commands which spot common mistakes in ... |
94ad692bbfdbde34a7a17c60c0806b4c16d3d30f | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/order/order_iso_nat.lean | 6db6b072f1d94645cfe21943d8e02b396cf71793 | [
"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 | 8,963 | 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.equiv.denumerable
import order.preorder_hom
import order.conditionally_complete_lattice
/-!
# Relation embeddings from the naturals
This file allows tra... |
125b05aaacea69f0a3484af2953399f016d96814 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/char.lean | f9654c3c0a24dee7a5c8c0bb39515938532c0abf | [
"Apache-2.0"
] | permissive | soonhokong/lean-osx | 4a954262c780e404c1369d6c06516161d07fcb40 | 3670278342d2f4faa49d95b46d86642d7875b47c | refs/heads/master | 1,611,410,334,552 | 1,474,425,686,000 | 1,474,425,686,000 | 12,043,103 | 5 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 851 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
prelude
import init.fin
open nat
definition char_sz : nat := succ 255
definition char := fin char_sz
namespace char
/- We cannot use tactic dec_trivial he... |
0738bace51a7f5070db9671f19815453a59dbea9 | 0c1546a496eccfb56620165cad015f88d56190c5 | /library/init/meta/converter.lean | 220a2ad0ab6670528deb43903dbee3e2a9e3b3cf | [
"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 | 9,025 | 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
Converter monad for building simplifiers.
-/
prelude
import init.meta.tactic init.meta.simp_tactic
import init.meta.congr_lemma init.meta.match_tactic
open ta... |
062da5acd8d596f7e554db020e47dc1175c2bd3e | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/geometry/manifold/complex.lean | 506672ce6f86f30c04ccb408111cdc484d41932a | [
"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 | 6,006 | lean | /-
Copyright (c) 2022 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.complex.abs_max
import analysis.locally_convex.with_seminorms
import geometry.manifold.mfderiv
import topology.locally_constant.basic
/-! # Holomor... |
33f901537ca196caae6a8da99011360c9228e9d6 | 367134ba5a65885e863bdc4507601606690974c1 | /src/order/galois_connection.lean | 8927c76e47835dd88095ec64705d678544c1a9ba | [
"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 | 25,266 | 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
-/
import order.complete_lattice
import order.rel_iso
/-!
# Galois connections, insertions and coinsertions
Galois connections are order theoretic adjoints, i.e. a pair ... |
ba4971f943838ab0601c7a54160c383dda47e488 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/quadratic_discriminant.lean | a1f62bd32b9ebe3a1accf8c62d9beb815282d3af | [
"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,750 | 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 algebra.char_p.invertible
import order.filter.at_top_bot
import tactic.linarith
/-!
# Quadratic discriminants and roots of a quadratic
This file defines the di... |
1a1384efb1743e4b120bd3da268d635d60dcf5a2 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Data/RBTree.lean | 3bcd15f477d868b3ebe2e26d7f779408c951890f | [
"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 | 3,768 | 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
-/
import Lean.Data.RBMap
namespace Lean
universe u v w
def RBTree (α : Type u) (cmp : α → α → Ordering) : Type u :=
RBMap α Unit cmp
instance : Inhabited ... |
fdb16e8fead66b00978475fac8a6806b10c76649 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/data/rat/basic.lean | 4f73818a1d510a4da5fcd3fc28b8698901279c03 | [
"Apache-2.0"
] | permissive | waynemunro/mathlib | e3fd4ff49f4cb43d4a8ded59d17be407bc5ee552 | 065a70810b5480d584033f7bbf8e0409480c2118 | refs/heads/master | 1,693,417,182,397 | 1,634,644,781,000 | 1,634,644,781,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 30,790 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
-/
import data.equiv.encodable.basic
import algebra.euclidean_domain
import data.nat.gcd
import data.int.cast
/-!
# Basics for the Rational Numbers
## ... |
25d721eda929ba97e182053f182bb3f1329a6f23 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/right_assoc_dollar.lean | 8439ba1fb3056a54e0cf1badf7a9117ae0cba6bf | [
"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 | 69 | lean | constant f : nat → nat → nat
open nat
check f $ succ $ 10 + 20
|
a7fed393d2bbd7adfc64046bfda1b9e7407af696 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/matrix/symmetric.lean | 108fb0f1d3e67e91f66cdb97e6750cbf38651cf9 | [
"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 | 4,263 | lean | /-
Copyright (c) 2021 Lu-Ming Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lu-Ming Zhang
-/
import data.matrix.block
/-!
# Symmetric matrices
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
This ... |
d80e9648a43f51c75ac96681c7ef3b4bf666e291 | 761d983a78bc025071bac14a3facced881cf5e53 | /new_affine/affine_coordinate_basis.lean | 6d28b1903360ec9e18663de0cedb7f9d9728d813 | [] | no_license | rohanrajnair/affine_lib | bcf22ff892cf74ccb36a95bc9b7fff8e0adb2d0d | 83076864245ac547b9d615bc6a23804b1b4a8f70 | refs/heads/master | 1,673,320,928,343 | 1,603,036,653,000 | 1,603,036,653,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,082 | lean | import .affine_coordinate_space .list_as_k_tuple
import data.real.basic linear_algebra.affine_space.basic
import linear_algebra.basis
universes u v w x
variables (X : Type u) (K : Type v) (V : Type w) (n : ℕ) (k : K)
[inhabited K] [field K] [add_comm_group V] [vector_space K V] [affine_space V X]
open vecl
abbrevi... |
646db41a0e65767e452b77911d21d16c8fc65923 | c39706ea6783f804f4403b8f001320a502de6f5a | /folklore/real_axiom.lean | 665a3533b716593074ae9e015fd37838a5eb3d26 | [
"CC-BY-4.0"
] | permissive | semorrison/formalabstracts | bb888dc605e789f4ef1d83635f3b8b9540dd0157 | e547f5939875ac6677b01ec6086d40992fa92629 | refs/heads/master | 1,609,531,064,153 | 1,501,856,066,000 | 1,501,856,066,000 | 98,728,403 | 0 | 0 | null | 1,501,327,991,000 | 1,501,327,991,000 | null | UTF-8 | Lean | false | false | 5,649 | lean | /-
axiomatic development of the complete ordered field
of real numbers in classical logic.
At some point this should be replaced with an actual
construction.
T.Hales, July 15, 2017
-/
import meta_data data.list
noncomputable theory
namespace real_axiom
open classical nat int list vector
local attribute [instance]... |
fb33fa4ce17f974681d62e5d957c3972f6b2b9e3 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/holor.lean | 8d1be3c4daa773256d9262695da7364e564f91a0 | [
"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 | 14,189 | lean | /-
Copyright (c) 2018 Alexander Bentkamp. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp
-/
import algebra.module.pi
import algebra.big_operators.basic
/-!
# Basic properties of holors
Holors are indexed collections of tensor coefficients. Confusin... |
48d17f674d7cfe18241d3a553197119239953f53 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/lake/test/clone/test/lakefile.lean | 74934abef2567f805b94b17db194bbf6a27ba72a | [
"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 | 265 | lean | import Lake
import Lean.Meta
open System Lake DSL
package test
def url : String :=
match get_config? url with
| some url => url
| none => (FilePath.mk ".." / "hello").toString
require hello from git url
@[default_target]
lean_exe test {
root := `Main
}
|
ba1a6b12efc281e429b688d51830006f310cfdeb | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/simp29.lean | d8951d69650d5a7986d0b05ef83c3e9d741c957e | [
"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 | 364 | lean | rewrite_set simple
add_rewrite eq_id imp_truel imp_truer Nat::add_zeror : simple
variables a b : Nat
variable f {A : Type} : A → Bool
axiom fNat (a : Nat) : f a = (a > 0)
add_rewrite fNat : simple
(*
local t = parse_lean('(∀ x : Nat, f x) ∧ (∀ x : Bool, f x)')
local t2, pr = simplify(t, "simple")
print(t2)
print(pr)
... |
6d2b68713389b1d77ba471d23b7437c48b25709f | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/dedekind_domain.lean | cb0ac9405e13ed99954b418e05a180e3b72a0026 | [
"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 | 44,415 | lean | /-
Copyright (c) 2020 Kenji Nakagawa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenji Nakagawa, Anne Baanen, Filippo A. E. Nuccio
-/
import ring_theory.discrete_valuation_ring
import ring_theory.fractional_ideal
import ring_theory.ideal.over
import ring_theory.int... |
0aad0b72f9ec9f4b91604fd013d3854beb9f74d7 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/group_theory/abelianization.lean | df7dc9e81030bacb77279dbe42a6c68e1103faf0 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 2,526 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Michael Howes
The functor Grp → Ab which is the left adjoint
of the forgetful functor Ab → Grp.
-/
import group_theory.quotient_group
import tactic.group
universes u v
-- let... |
b42929b89bcb9f5247d92b60f1b94651e42d9882 | 853df553b1d6ca524e3f0a79aedd32dde5d27ec3 | /src/topology/bases.lean | d9d268c7e06c743a652ba1a5ce1e9e8cb40c41ca | [
"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 | 12,431 | 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
Bases of topologies. Countability axioms.
-/
import topology.constructions
open set filter classical
open_locale topological_space filter
namespace to... |
ce70843bce1f550aea0ef28eca6db6dacec9d039 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/meta/expr.lean | bf556b9393c31e020f0635ee46d8344df86a97a9 | [
"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 | 48,475 | lean | /-
Copyright (c) 2019 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek, Robert Y. Lewis, Floris van Doorn
-/
import data.string.defs
import tactic.derive_inhabited
/-!
# Additional operations on ex... |
df116e7db67225aa06f6bb5977b3735e2ec4677f | 4a092885406df4e441e9bb9065d9405dacb94cd8 | /src/for_mathlib/data/set/finite.lean | 9b0d6178c497ef6583df67623c30cb0d897cdb4f | [
"Apache-2.0"
] | permissive | semorrison/lean-perfectoid-spaces | 78c1572cedbfae9c3e460d8aaf91de38616904d8 | bb4311dff45791170bcb1b6a983e2591bee88a19 | refs/heads/master | 1,588,841,765,494 | 1,554,805,620,000 | 1,554,805,620,000 | 180,353,546 | 0 | 1 | null | 1,554,809,880,000 | 1,554,809,880,000 | null | UTF-8 | Lean | false | false | 88 | lean |
import data.set.finite
attribute [instance] set.fintype_seq -- should move to mathlib
|
d082c90f6c6a4c54f91d450e12c31aede67034c3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/oxford_invariants/2021summer/week3_p1.lean | cf1d4fe0e3ed0cd3a06806499446a2f83c3f53ff | [
"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,906 | lean | /-
Copyright (c) 2021 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.order
import algebra.big_operators.ring
import algebra.char_zero.lemmas
import data.rat.cast
/-!
# The Oxford In... |
a5407af7424e237eede0df6e697bb62d09152a3a | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/linear_algebra/finite_dimensional.lean | 7e7bea062fa8ef2b06013afb2f199065c24c25db | [
"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 | 16,954 | 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 linear_algebra.dimension
import ring_theory.principal_ideal_domain
/-!
# Finite dimensional vector spaces
Definition and basic properties of finite dimensional v... |
1be6afb999f282d8f5095b8054c2493eae19dc5e | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/playground/cmdparsertest1.lean | 44a7e0f1a328cd743e766d199554607976108794 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 1,195 | lean | import Lean.Parser.Command
open Lean
open Lean.Parser
def testParser (input : String) : IO Unit :=
do
env ← mkEmptyEnvironment;
cmdPTables ← builtinCommandParsingTable.get;
stx ← IO.ofExcept $ runParser env cmdPTables input "<input>" "command";
IO.println stx
def test (is : List String) : IO Unit :=
is.mfor $ fun inp... |
b0a3341aa4047bb08e96ca6ec8daeb678715aa9b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/ring_theory/local_properties.lean | cb3e04017c5dbb47042e22aba51c8ab865f1d201 | [
"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 | 28,809 | 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 group_theory.submonoid.pointwise
import logic.equiv.transfer_instance
import ring_theory.finiteness
import ring_theory.localization.at_prime
import ring_theory.local... |
0d074637fe39f12cfc664e56d38498eaaa5f183c | b147e1312077cdcfea8e6756207b3fa538982e12 | /algebra/group_power.lean | fe9a3f14b6317f13adb647779c20b6f49af8cfc5 | [
"Apache-2.0"
] | permissive | SzJS/mathlib | 07836ee708ca27cd18347e1e11ce7dd5afb3e926 | 23a5591fca0d43ee5d49d89f6f0ee07a24a6ca29 | refs/heads/master | 1,584,980,332,064 | 1,532,063,841,000 | 1,532,063,841,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 16,654 | lean | /-
Copyright (c) 2015 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Robert Y. Lewis
The power operation on monoids and groups. We separate this from group, because it depends on
nat, which in turn depends on other parts of algebra.
We h... |
5427fc01b7605436370a6771d3fd88dd30286149 | 36938939954e91f23dec66a02728db08a7acfcf9 | /old-lean4/json.lean | ed99ff0ba71e9c67d28b87bd367ecd9f9f81c4c6 | [] | no_license | pnwamk/reopt-vcg | f8b56dd0279392a5e1c6aee721be8138e6b558d3 | c9f9f185fbefc25c36c4b506bbc85fd1a03c3b6d | refs/heads/master | 1,631,145,017,772 | 1,593,549,019,000 | 1,593,549,143,000 | 254,191,418 | 0 | 0 | null | 1,586,377,077,000 | 1,586,377,077,000 | null | UTF-8 | Lean | false | false | 8,978 | lean | import hex
import rbnode
import reader
namespace json
-- Scientific notation (note this does not maintain a normal form for now)
structure Scientific :=
(numerator : Int)
(exponent : Int)
namespace Scientific
def toString (s:Scientific) : String :=
let e := s.exponent
in toString (s.numerator) ++ (if e == 0 then "... |
7c91e4d247029ee04e1e0fe5b1c4b1afa9c342bd | cc62cd292c1acc80a10b1c645915b70d2cdee661 | /src/category_theory/universal/monic.lean | 99f3b0896e8a1861caad554029d8693fd84a3db5 | [] | no_license | RitaAhmadi/lean-category-theory | 4afb881c4b387ee2c8ce706c454fbf9db8897a29 | a27b4ae5eac978e9188d2e867c3d11d9a5b87a9e | refs/heads/master | 1,651,786,183,402 | 1,565,604,314,000 | 1,565,604,314,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,020 | lean | -- -- Copyright (c) 2017 Scott Morrison. All rights reserved.
-- -- Released under Apache 2.0 license as described in the file LICENSE.
-- -- Authors: Scott Morrison
-- import category_theory.limits.equalizers
-- import category_theory.abelian.monic
-- open category_theory
-- open category_theory.limits
-- namespace... |
2a9bcb9492efb2da5aacc12de9ab012088cdab68 | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/examples/groups/forgetful.lean | e0bd60a1bb1f9722896b2d7900e0bb8e0d4eb408 | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 2,040 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.examples.groups
import category_theory.types
import category_theory.representable
import algebra.group_power
namespace category_theory.exa... |
bde636fb1ba808142c1b982205c8f0742684e097 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Elab/PreDefinition/Main.lean | 1440adee0bf683ef4713bf1353d088a0158f7a64 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 3,550 | 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.Elab.PreDefinition.Basic
import Lean.Elab.PreDefinition.Structural
import Lean.Elab.PreDefinition.WF
namespace Lean.Elab
open Meta
open Term
pr... |
b6ae94a1145faa7fe150872eea0768b5dc013b1f | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/equiv/ring.lean | d92caeec931193574552644c795c2ab4b295a436 | [
"Apache-2.0"
] | permissive | spolu/mathlib | bacf18c3d2a561d00ecdc9413187729dd1f705ed | 480c92cdfe1cf3c2d083abded87e82162e8814f4 | refs/heads/master | 1,671,684,094,325 | 1,600,736,045,000 | 1,600,736,045,000 | 297,564,749 | 1 | 0 | null | 1,600,758,368,000 | 1,600,758,367,000 | null | UTF-8 | Lean | false | false | 11,036 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Callum Sutton, Yury Kudryashov
-/
import data.equiv.mul_add
import algebra.field
import algebra.opposites
/-!
# (Semi)ring equivs
In this file we define extension of ... |
166160bb042484b4723fe859fe844363fed31859 | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/string_imp2.lean | 28c75e262d17bf1cf2284fe4acb4a9acdc8e23df | [
"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 | 1,694 | lean |
def f (s : String) : String :=
s ++ " " ++ s
def g (s : String) : String :=
s.push ' ' ++ s.push '-'
def h (s : String) : String :=
let it₁ := s.mkIterator;
let it₂ := it₁.next;
it₁.remainingToString ++ "-" ++ it₂.remainingToString
#eval "hello" ++ "hello"
#eval f "hello"
#eval (f "αβ").length
#eval "hello".toList
... |
3e8a68f380a9e13662034d9d51edca17ade9ba07 | 7b02c598aa57070b4cf4fbfe2416d0479220187f | /algebra/free_group.hlean | 125332d7deba2027fc7983a27db9e8e35a951afd | [
"Apache-2.0"
] | permissive | jdchristensen/Spectral | 50d4f0ddaea1484d215ef74be951da6549de221d | 6ded2b94d7ae07c4098d96a68f80a9cd3d433eb8 | refs/heads/master | 1,611,555,010,649 | 1,496,724,191,000 | 1,496,724,191,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,824 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Egbert Rijke
Constructions with groups
-/
import algebra.group_theory hit.set_quotient types.list types.sum
open eq algebra is_trunc set_quotient relation sigma ... |
4db92695709c6e069a09610262c99d62e434dcca | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /library/data/int/gcd.lean | 48715c573ada5725833a5d5647f4e531438b1dca | [
"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 | 14,605 | 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
Definitions and properties of gcd, lcm, and coprime.
-/
import .div data.nat.gcd
open eq.ops
namespace int
/- gcd -/
definition gcd (a b : ℤ) : ℤ :=... |
819f4bc30df87660b12fe823a68cdbfd577d8d3f | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /Exercises week 6/23_exercise_sheet.lean | bc842b5812c37ad633e4bf084e53921f7580a5e9 | [] | no_license | KjellZijlemaker/Logical_Verification_VU | ced0ba95316a30e3c94ba8eebd58ea004fa6f53b | 4578b93bf1615466996157bb333c84122b201d99 | refs/heads/master | 1,585,966,086,108 | 1,549,187,704,000 | 1,549,187,704,000 | 155,690,284 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,108 | lean | /- Exercise 2.3: Functional Programming — Monads -/
namespace exercise
/- Question 1: A state monad with failure -/
/- As usual, we start by repeating some material from the lecture. -/
class monad (M : Type → Type) extends has_bind M, has_pure M : Type 1 :=
(pure_bind {α β} (a : α) (f : α → M β) :
pure a >>= f ... |
d435d35cf24290d82870af791d531270c91ef203 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/dottedNameBug.lean | 92040ac6c79179357ab5306dbc7c2eb7b2a5833a | [
"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 | 695 | lean | inductive AltCore (α : Type)
| default (val : α)
| alt (name : String) (val : α)
inductive Code where
| cases (alt: AltCore Code)
| return (id : Nat)
abbrev Alt := AltCore Code
def AltCore.getCode : Alt → Code
| .default c => c
| .alt _ c => c
def AltCore.update (alt : Alt) (c : Code) : Alt :=
match a... |
e6d2bef2323fdf501ee876a284774c47c20da739 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/slow/nat_wo_hints.lean | 6a81dce99bf70edd164c3b69f8d2c9e61c74e378 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 49,706 | lean | ----------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 Floris van Doorn. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Floris van Doorn
-----------------------------------------------------------... |
f0719c710b5b02a2b51f77aca6ca74129fe2f443 | 87a08a8e9b222ec02f3327dca4ae24590c1b3de9 | /src/set_theory/cardinal.lean | ecd3106ff6ee38f6b57c414c9a7a36d249341462 | [
"Apache-2.0"
] | permissive | naussicaa/mathlib | 86d05223517a39e80920549a8052f9cf0e0b77b8 | 1ef2c2df20cf45c21675d855436228c7ae02d47a | refs/heads/master | 1,592,104,950,080 | 1,562,073,069,000 | 1,562,073,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 39,713 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl, Mario Carneiro
Cardinal arithmetic.
Cardinals are represented as quotient over equinumerous types.
-/
import data.set.countable data.quot logic.function set_theory.sc... |
1408fa14e8a13d41e1c12d15e314297181e28ca9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebraic_topology/dold_kan/homotopy_equivalence.lean | 8db3a58d5be9b44699d607aa44ed522e52194a29 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,808 | lean | /-
Copyright (c) 2022 Joël Riou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joël Riou
-/
import algebraic_topology.dold_kan.normalized
/-!
# The normalized Moore complex and the alternating face map complex are homotopy equivalent
> THIS FILE IS SYNCHRONIZED WI... |
92dc6365f6505c1f7f8d0e03a9eca3eb052afb4b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/geometry/euclidean/monge_point.lean | 9bffce455ca4bfdb07f0eda371bc36e0a335507c | [
"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 | 38,624 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import geometry.euclidean.circumcenter
/-!
# Monge point and orthocenter
This file defines the orthocenter of a triangle, via its n-dimensional
generalization, the Mong... |
58291d48e464546cc7b365e26936f27d5241d953 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/ring_theory/integral_domain.lean | d1b93bd0ba86945a0a347cbe7b4532f6b26243c0 | [
"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 | 6,779 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Chris Hughes
-/
import data.fintype.card
import data.polynomial.ring_division
import group_theory.order_of_element
import algebra.geom_sum
/-!
# Integral domains
-/
... |
2d847acc3a324c5c482ea07d872067e7a27a22ee | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/analysis/convex/topology.lean | 2dc0866f40c4fad89d3f9dce52156b54feac9776 | [
"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 | 8,575 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import analysis.convex.basic
import analysis.normed_space.finite_dimension
import topology.path_connected
/-!
# Topological and metric properti... |
23ae231d250af2cee16898bd44e4c964db9e2f40 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/tensor_product.lean | c5f504961e7b404d2ef55c150650af3d2c773150 | [
"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 | 43,472 | 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
-/
import group_theory.congruence
import algebra.module.submodule.bilinear
/-!
# Tensor product of modules over commutative semirings.
This file constructs the ... |
35e7c62850b0f367b0ee81b6783bff3e72b48295 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/match_anonymous_constructor.lean | f66adfc7494f852ac30f89c01e76ff4fa7204210 | [
"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 | 172 | lean | definition p1 := (10, 20, 30)
definition v2 : nat :=
match p1 with
⟨a, b⟩ := a
end
example : v2 = 10 := rfl
definition v3 : nat :=
match p1 with
⟨a, b⟩ := a
end
|
702a6b71674fbb798bf7bdab34e7c9525da1b9dc | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/linear_algebra/sesquilinear_form.lean | 90ed4b404fe954dbf4591bfb838761ea1b9e959b | [
"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 | 27,293 | lean | /-
Copyright (c) 2018 Andreas Swerdlow. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andreas Swerdlow
-/
import algebra.module.linear_map
import linear_algebra.bilinear_map
import linear_algebra.matrix.basis
import linear_algebra.linear_pmap
/-!
# Sesquilinear form
... |
dc8d94f561f52a21916e90d3ccef34805a8e0f45 | a523fc1740c8cb84cd0fa0f4b52a760da4e32a5c | /src/missing_mathlib/set_theory/cardinal.lean | 7f93a2bad83648b0384504c8507a2243b789e7c9 | [] | no_license | abentkamp/spectral | a1aff51e85d30b296a81d256ced1d382345d3396 | 751645679ef1cb6266316349de9e492eff85484c | refs/heads/master | 1,669,994,798,064 | 1,597,591,646,000 | 1,597,591,646,000 | 287,544,072 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 956 | lean | import set_theory.cardinal
open function lattice set
local attribute [instance] classical.prop_decidable
universes u v w x
variables {α β : Type u}
namespace cardinal
lemma mk_zero_iff_empty_set (s : set α) : cardinal.mk s = 0 ↔ s = ∅ :=
begin
rw [←set.not_nonempty_iff_eq_empty, iff_not_comm, set.nonempty,
←... |
a7506e2277c85d5716d1fb633210b0e3049a1c9d | 86d328c7fd9114507f3e8380e2b3d2f83ef6c647 | /lambda/parsing.lean | 37b5c45d2c96eb0baec03671b3de009318e19cd1 | [] | no_license | forked-from-1kasper/lambda | 05ada15e7abdaa5f453bfe3792c086f04f363f76 | 696363514f3730951a90e86474940135a2339c0b | refs/heads/master | 1,623,388,766,920 | 1,607,249,080,000 | 1,607,249,080,000 | 128,524,636 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 2,320 | lean | import data.buffer.parser
import lambda.types
open parser types
namespace parsing
def whitespaces := " \t\n\x0d".to_list
def reserved_chars :=
[' ', ',', 'λ', '(', ')', ':', '-']
def WordChar : parser char :=
sat (λ c, list.all (reserved_chars ++ whitespaces) (≠ c))
def LF := ch $ char.of_nat 10
def CR := ch $ char... |
010590f4e3440430c31ad1d0bc295a73b94dc8ee | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/group_with_zero/units/lemmas.lean | 2f0ecc5d24a700a3cf563704abe079761c940ac0 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,558 | lean | /-
Copyright (c) 2020 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.group_with_zero.commute
import algebra.hom.units
import group_theory.group_action.units
/-!
# Further lemmas about units in a `monoid_with_zero` or a ... |
a2d9d127a3c9873095c03bbed46119215c67eb1c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /test/linarith.lean | 365273aecad63b8038966ce022d7348a2f12e3cf | [
"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 | 11,319 | lean | import tactic.linarith
example : ∀ (y : ℕ), y ≤ 37 → y < 40 :=
begin
refine λ y hy, _,
-- The type of `hy` is a (solved but not instantiated) metavariable
do { tactic.get_local `hy >>= tactic.infer_type >>= guardb ∘ expr.is_mvar },
-- But linarith should still work
linarith
end
example {α : Type} (_inst : Π... |
061086cc81e781a13115b0af6db37ab8ce38594f | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/noetherian_space.lean | 18d85a615a0f175e603a8a86b43ba18c6fa8cda7 | [
"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 | 9,233 | 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 topology.sets.closeds
/-!
# Noetherian space
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corre... |
d367dde49680c1a7b0fde9333ab4017882ed4467 | 33340b3a23ca62ef3c8a7f6a2d4e14c07c6d3354 | /nat.lean | 3244ecc0a54c6cce6e8d5b0879749b0095c64fbc | [] | no_license | lclem/cooper | 79554e72ced343c64fed24b2d892d24bf9447dfe | 812afc6b158821f2e7dac9c91d3b6123c7a19faf | refs/heads/master | 1,607,554,257,488 | 1,578,694,133,000 | 1,578,694,133,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 964 | lean | import data.nat.gcd data.int.basic
namespace nat
lemma gt_zero_of_ne_zero (n) : n ≠ 0 → n > 0 :=
begin
intro h, cases n, exfalso, apply h, refl,
apply nat.zero_lt_succ
end
lemma mul_nonzero {m n : nat} : m ≠ 0 → n ≠ 0 → m * n ≠ 0 :=
begin
intros hm hn hc, apply hm,
apply eq.trans, apply eq.symm,
apply nat... |
a3315be334c5334f0633a68908d2e978b5b9df39 | 137c667471a40116a7afd7261f030b30180468c2 | /src/topology/subset_properties.lean | cfb35e682c41704496664394bdd1b354fc34c21c | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 65,655 | 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, Yury Kudryashov
-/
import topology.bases
import data.finset.order
import data.set.accumulate
/-!
# Properties of subsets of topological spaces
In this... |
8e01bb439defe601104459f4b537475a42c6bbcf | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/free_group.lean | 8c477a913ba274453e2bcc48e6bd10e1172b1006 | [
"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 | 42,439 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import data.fintype.basic
import group_theory.subgroup.basic
/-!
# Free groups
This file defines free groups over a type. Furthermore, it is shown that the free group constru... |
4687dcd9db464d89797a4e7b9fc4aa7ad3abcdfb | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/addition/3.lean | 546212d1873d509659aaa1aabd76816672557e93 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 153 | lean | lemma succ_add (a b : mynat) : succ a + b = succ (a + b) :=
begin
induction b with n hn,
repeat {rw add_zero},
repeat {rw add_succ},
rwa hn,
end
|
ce1a932102167b5bdfa96a8b736710ec37e7ff74 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/omega_complete_partial_order.lean | fb4484124088ea475ecf077a5174961813438f28 | [] | 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 | 29,436 | 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.pfun
import Mathlib.order.preorder_hom
import Mathlib.tactic.wlog
import Mathlib.tactic.monot... |
4f8b629992874619de4d3f6c4dab6adb32a9184c | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/native_run/hello_world.lean | 6986a54ceb542382082425f6a799bd64345e94f6 | [
"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 | 75 | lean | import system.IO
definition main : IO unit :=
put_str "Hello Lean!\n"
|
a9bedb1925cd67f82821c64dc3a5721f5b532695 | c777c32c8e484e195053731103c5e52af26a25d1 | /archive/imo/imo2011_q5.lean | abf6897ad352d6705ce9e3d445e71352d2e92304 | [
"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 | 2,087 | lean | /-
Copyright (c) 2021 Alain Verberkmoes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alain Verberkmoes
-/
import data.int.dvd.basic
/-!
# IMO 2011 Q5
Let `f` be a function from the set of integers to the set
of positive integers. Suppose that, for any two integer... |
340217a2ad8c11c41010075e994745a1e11795ac | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/control/combinators_auto.lean | 3ad073eac0c6dc5268e0a1b5a77435022cf756ad | [] | 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,892 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
Monad combinators, as in Haskell's Control.Monad.
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.control.monad
import Mathlib.Lean3Lib.... |
397e49b8ea573b4bf3e678dc34bbd8fa5dca6ac6 | 302c785c90d40ad3d6be43d33bc6a558354cc2cf | /src/data/equiv/transfer_instance.lean | d439a1e07940e1e3defc3c9e71e3e97680a32fbb | [
"Apache-2.0"
] | permissive | ilitzroth/mathlib | ea647e67f1fdfd19a0f7bdc5504e8acec6180011 | 5254ef14e3465f6504306132fe3ba9cec9ffff16 | refs/heads/master | 1,680,086,661,182 | 1,617,715,647,000 | 1,617,715,647,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,041 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import data.equiv.basic
import algebra.field
import algebra.module
import algebra.algebra.basic
import algebra.group.type_tags
import ring_theory.ideal.basic
/-!
# T... |
a7214462b023a4383ec5880adae8f021cd79195a | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/int/parity.lean | 7c5184bc1a61018051053a9419fde7addc3fcc15 | [
"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 | 6,997 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Benjamin Davidson
-/
import data.int.modeq
import data.nat.parity
/-!
# Parity of integers
This file contains theorems about the `even` and `odd` predicates on the inte... |
0e20e4699f8aec109f2fc1e7d8b7377a1d5ab7d8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/factorial/big_operators.lean | e31c5f242280bb6ee441b6443aab7468b10e3a11 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 1,216 | lean | /-
Copyright (c) 2022 Pim Otte. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller, Pim Otte
-/
import data.nat.factorial.basic
import algebra.big_operators.order
/-!
# Factorial with big operators
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to t... |
ffbc56784b99f726eba6a12109cf2079a16dbaa7 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/open_namespaces.lean | aebd8185134122eec178d1f4bd776ad7be5d25af | [
"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 | 92 | lean | open nat
namespace foo
open int
run_command tactic.open_namespaces >>= tactic.trace
end foo
|
e3454c50b571b82702cd1e93d5643868435f4a42 | 2fbe653e4bc441efde5e5d250566e65538709888 | /src/tactic/linarith.lean | 79b015a0cc0c497568dbb644c4aa20a45094040d | [
"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 | 33,018 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Robert Y. Lewis
-/
import tactic.ring data.nat.gcd data.list.basic meta.rb_map data.tree
/-!
A tactic for discharging linear arithmetic goals using Fourier-Motzkin elimination.
`li... |
ffa0473af41130a52d57167576987643589ba3e6 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/category_theory/preadditive/biproducts.lean | 1cf7658ff7818b271d2471f487fc65a9e94b6bd8 | [
"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 | 11,481 | 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 tactic.abel
import category_theory.limits.shapes.biproducts
import category_theory.preadditive
/-!
# Basic facts about morphisms between biproducts in preaddi... |
3d3969b39f797052ecb20d624d5a3294f1198795 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/linear_algebra/charpoly/basic.lean | 7fc3fd13a2b60bd672df264cad3d762c7dd9f60a | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,784 | lean | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import linear_algebra.free_module.finite.basic
import linear_algebra.matrix.charpoly.coeff
import field_theory.minpoly.field
/-!
# Characteristic polynomial
> T... |
18c58f0fc2bda021779df8a445b295743ccf64e4 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/measure_theory/outer_measure.lean | 4fad3def18186c82a9b92ec321228f00265e7991 | [
"Apache-2.0"
] | permissive | rmitta/mathlib | 8d90aee30b4db2b013e01f62c33f297d7e64a43d | 883d974b608845bad30ae19e27e33c285200bf84 | refs/heads/master | 1,585,776,832,544 | 1,576,874,096,000 | 1,576,874,096,000 | 153,663,165 | 0 | 2 | Apache-2.0 | 1,544,806,490,000 | 1,539,884,365,000 | Lean | UTF-8 | Lean | false | false | 19,576 | 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
Outer measures -- overapproximations of measures
-/
import algebra.big_operators algebra.module
topology.instances.ennreal analysis.specific_lim... |
576ea6b99b8d4fd014868525d17a7cf866b9a8cb | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /stage0/src/Lean/Elab/Deriving/Repr.lean | 2b5289bd963dc8b43ef2146564ad1ebd8a21a608 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | tobiasgrosser/lean4 | ce0fd9cca0feba1100656679bf41f0bffdbabb71 | ebdbdc10436a4d9d6b66acf78aae7a23f5bd073f | refs/heads/master | 1,673,103,412,948 | 1,664,930,501,000 | 1,664,930,501,000 | 186,870,185 | 0 | 0 | Apache-2.0 | 1,665,129,237,000 | 1,557,939,901,000 | Lean | UTF-8 | Lean | false | false | 5,213 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Transform
import Lean.Meta.Inductive
import Lean.Elab.Deriving.Basic
import Lean.Elab.Deriving.Util
namespace Lean.Elab.Deriving.Repr
open... |
c7818a2fcc85e9efe32593dc5dc718a23ba081ed | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/num/basic.lean | b01298f9d5e83b2e7d7f0463b1d7e1b8d2bd340e | [
"Apache-2.0"
] | permissive | rwbarton/mathlib | 939ae09bf8d6eb1331fc2f7e067d39567e10e33d | c13c5ea701bb1eec057e0a242d9f480a079105e9 | refs/heads/master | 1,584,015,335,862 | 1,524,142,167,000 | 1,524,142,167,000 | 130,614,171 | 0 | 0 | Apache-2.0 | 1,548,902,667,000 | 1,524,437,371,000 | Lean | UTF-8 | Lean | false | false | 13,779 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
Binary representation of integers using inductive types.
Note: Unlike in Coq, where this representation is preferred because of
the reliance ... |
5b3560e5d7ef36f5a17af444664945cdeaec6cb5 | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/rules/pullConstantThroughUnion.lean | eba3e255ae816bc2b19ef4e97f7ee8ecb364a4f9 | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 1,331 | lean | import ..sql
import ..tactics
import ..u_semiring
import ..extra_constants
import ..ucongr
import ..TDP
import ..UDP
set_option profiler true
open Expr
open Proj
open Pred
open SQL
open tree
notation `int` := datatypes.int
constant integer_2 : const int
theorem rule:
forall ( Γ scm_emp: Schema) (rel_emp: rela... |
007a48c0ee498f2ca4039e0586462e8c92e8fd31 | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/decomposition/lebesgue.lean | eb1a19d20703b088b267ade2125ded0db779484c | [
"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 | 63,329 | lean | /-
Copyright (c) 2021 Kexing Ying. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kexing Ying
-/
import measure_theory.measure.complex
import measure_theory.measure.sub
import measure_theory.decomposition.jordan
import measure_theory.measure.with_density_vector_measure... |
061ecc51a2ccaf357afcc9bf5172f5c16ed42ebd | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/category_theory/preadditive/schur.lean | 67119508cb93dc948ef486c646dc3e680b08cc05 | [
"Apache-2.0"
] | permissive | hikari0108/mathlib | b7ea2b7350497ab1a0b87a09d093ecc025a50dfa | a9e7d333b0cfd45f13a20f7b96b7d52e19fa2901 | refs/heads/master | 1,690,483,608,260 | 1,631,541,580,000 | 1,631,541,580,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,923 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Scott Morrison
-/
import category_theory.simple
import category_theory.linear
import category_theory.endomorphism
import field_theory.algebraic_closure
/-!
# Schur's le... |
277d50a936aa984b2ed765fdd17477953b630047 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /tests/lean/tactic_state_pp.lean | f2ee7bbd6f52532e5bd8e678a41f70a8ceb1d4d6 | [
"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 | 1,062 | lean | universe variables u
inductive Vec (α : Type u) : nat → Type u
| nil : Vec 0
| cons : ∀ {n}, α → Vec n → Vec (nat.succ n)
constant f {α : Type u} {n : nat} : Vec α n → nat
axiom fax1 (α : Type u) : f (Vec.nil α) = 0
axiom fax2 {α : Type u} {n : nat} (v : Vec α (nat.succ n)) : f v = 1
open tactic
meta def pp_state_c... |
a261aa8a988d03f0f81f796450f66b0de381c31f | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/ring_theory/noetherian.lean | 2d8a97fdb6a8b7778e6e7c3cff71c60bc1b622b9 | [] | 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 | 15,816 | lean | /-
Copyright (c) 2018 Mario Carneiro and Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Buzzard
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebraic_geometry.prime_spectrum
import Mathlib.data.mult... |
baa6e92c10ce661cdfb6faf11f6776f7e7bc3cb3 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/lambdaLiftCache.lean | b4bfceb137582f8d572253a32e4f6a15813a53b3 | [
"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 | 209 | lean | def map (f : Nat → Nat) (xs : List Nat) :=
xs.map f
set_option trace.Compiler.saveMono true
def foo (x : Nat) (xs : List Nat) :=
map (· + x) xs
def boo (x : Nat) (xs : List Nat) :=
map (· + x) xs
|
fbebf26ae9be4303d0ad788b313e42eb94eb1382 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/data/nat/div.lean | ed5f911dbfa619ef257617fc9990ea8d6c0421bf | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,365 | lean | --- Copyright (c) 2014 Jeremy Avigad. All rights reserved.
--- Released under Apache 2.0 license as described in the file LICENSE.
--- Author: Jeremy Avigad, Leonardo de Moura
-- div.lean
-- ========
--
-- This is a continuation of the development of the natural numbers, with a general way of
-- defining recursive fun... |
bd29277b4c477d8be677a0c602fc50f517663cda | c777c32c8e484e195053731103c5e52af26a25d1 | /src/order/category/Frm.lean | 61e67e1efa97e97a68650d1985572d973cdefe1d | [
"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 | 2,411 | lean | /-
Copyright (c) 2022 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
import order.category.Lat
import order.hom.complete_lattice
import topology.category.CompHaus.basic
import topology.sets.opens
/-!
# The category of frames
This file de... |
3e533d1ca9db1bfb8b7b5b0368748c50a608255e | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/tactic/core.lean | afca69fcb5c32e5bb14f0c5d500e1bb6819ce3e6 | [
"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 | 83,855 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Scott Morrison, Keeley Hoek
-/
import data.dlist.basic
import control.basic
import meta.expr
import meta.rb_map
import data.bool
import tactic.lean_core_do... |
5c6f77f478294fc9f56cc6f1042e489c3d15e409 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/linear_algebra/finsupp.lean | 9845106e0b2dc695e9b5e25027ae5ce2bf5e6473 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 19,348 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
Linear structures on function with finite support `α →₀ M`.
-/
import data.monoid_algebra
noncomputable theory
open set linear_map submodule
open_locale classical
na... |
f17cf2a9c12c75cdebec6156b18c98d979a703b4 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/function/ae_eq_fun.lean | 9e969f4c8068e0d612562321bed687d51fd287a1 | [
"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 | 31,854 | lean | /-
Copyright (c) 2019 Johannes Hölzl, Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Zhouhang Zhou
-/
import measure_theory.integral.lebesgue
import order.filter.germ
import topology.continuous_function.algebra
import measure_theory.funct... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.