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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a3de2ff179873bb74c7a101134d11313a834d7ab | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /tests/lean/run/constr_tac4.lean | ad18713d7f11277899bbb5f0e901f3653ab4614c | [
"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 | 546 | lean | import data.nat
open nat
definition lt.trans {a b c : nat} (H₁ : a < b) (H₂ : b < c) : a < c :=
have aux : a < b → a < c, from
le.rec_on H₂
(λ h₁, lt.step h₁)
(λ b₁ bb₁ ih h₁, by constructor; exact ih h₁),
aux H₁
definition succ_lt_succ {a b : nat} (H : a < b) : succ a < succ b :=
le.rec_on H
(by constru... |
9559079a2d969afd71d6b81549371e0b26fc1600 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/lint/default.lean | 9253de92a8512647187b046bd8c31fe57d8955e6 | [
"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,169 | 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.to_additive
import tactic.lint.frontend
import tactic.lint.misc
import tactic.lint.simp
import tactic.lint.type_clas... |
92e092e0959b87955c95fd312d693dfdf1695f10 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/logic/hydra.lean | 7a51cf7b3f2467c0358fa3b2f71f9ebd64ce727c | [
"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 | 7,198 | lean | /-
Copyright (c) 2022 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu
-/
import data.multiset.basic
import order.game_add
import order.well_founded
/-!
# Termination of a hydra game
This file deals with the following version of the hydra game: eac... |
81fe854c44f2033e35ffb1b4107ab3eb5e8537ef | 969dbdfed67fda40a6f5a2b4f8c4a3c7dc01e0fb | /src/category_theory/sites/sieves.lean | b890267a824f09249f5069fea39ced83e6a58850 | [
"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 | 14,138 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, E. W. Ayers
-/
import category_theory.over
import category_theory.limits.shapes.finite_limits
import category_theory.yoneda
import order.complete_lattice
import data.set.l... |
b39ed951cf7427b4868247fdb653d1bbdc4b418c | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/measure_theory/integral/bochner.lean | cfe2e69980bfaa35d1ce8dc0f79834312bd88cae | [
"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 | 67,345 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou, Yury Kudryashov, Sébastien Gouëzel, Rémy Degenne
-/
import measure_theory.integral.set_to_l1
import measure_theory.group.basic
import analysis.normed_space.bounded_linear... |
3fa1eaa36b0a7fc707f2868a5d2c4104c92ee08c | ce89339993655da64b6ccb555c837ce6c10f9ef4 | /bluejam/chap5_exercise3.lean | 36f33d7bc1c3583c08aa2ba9057c7efa8e3c662c | [] | no_license | zeptometer/LearnLean | ef32dc36a22119f18d843f548d0bb42f907bff5d | bb84d5dbe521127ba134d4dbf9559b294a80b9f7 | refs/heads/master | 1,625,710,824,322 | 1,601,382,570,000 | 1,601,382,570,000 | 195,228,870 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 5,924 | lean | open classical
variables p q r s : Prop
theorem t1 : p → q → p :=
begin
intros hp hq,
exact hp
end
theorem t2 (h₁ : q → r) (h₂ : p → q) : p → r :=
begin
intro hp,
apply h₁,
apply h₂,
exact hp
end
-- commutativity of ∧ and ∨
example : p ∧ q ↔ q ∧ p :=
begin
apply iff.intro,
intro h,
cases h wit... |
07bc02e22ea6ecca276b2201211558e1820c19b6 | efa51dd2edbbbbd6c34bd0ce436415eb405832e7 | /20170116_POPL/super/clauses.lean | 0bc7b1fa9f50aa1ee88397e62a1ba11d986fcf2e | [
"Apache-2.0"
] | permissive | leanprover/presentations | dd031a05bcb12c8855676c77e52ed84246bd889a | 3ce2d132d299409f1de269fa8e95afa1333d644e | refs/heads/master | 1,688,703,388,796 | 1,686,838,383,000 | 1,687,465,742,000 | 29,750,158 | 12 | 9 | Apache-2.0 | 1,540,211,670,000 | 1,422,042,683,000 | Lean | UTF-8 | Lean | false | false | 1,994 | lean | import tools.super
open super tactic monad
meta def trivial_term_order (a b : expr) := ff -- most inferences in super require a term order
-- Let's look at how clauses are handled in super.
-- (I'm writing (¬¬q 4) instead of (q 4) here because otherwise super would pull
-- some tricks to produce intuitionist proofs.... |
dbfb1e0bc19cfc27b07b6a81c12849e49f3849f2 | 9dd3f3912f7321eb58ee9aa8f21778ad6221f87c | /tests/lean/run/doc_string3.lean | 454422266d0013454d8027eb1dcb20510bf2f0bd | [
"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 | 303 | lean | /-!
Documentation header for test module
-/
/-- Documentation for x -/
def x := 10
namespace foo
/-!
Another block of documentation
for this example.
-/
/-- Documentation for y -/
def y := 20
end foo
/-!
Documentation footer
testing
-/
open tactic
run_command module_doc_strings >>= trace
|
b6d5cedc899d4b3ec2c8a137fa052278275a5265 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Exception.lean | ff898eb1af0f46eb16afe6b6a700005714ad76a0 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 6,128 | 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.Message
import Lean.InternalExceptionId
import Lean.Data.Options
import Lean.Util.MonadCache
namespace Lean
/-- Exception type used in most Le... |
e45d281171e48287cd1a74d51518c6016812c2fe | 5d76f062116fa5bd22eda20d6fd74da58dba65bb | /src/general_lemmas/single_antidiagonal.lean | 88f753c8be9f8aa950793c81c9f5b4c03ba1ea6d | [] | no_license | brando90/formal_baby_snark | 59e4732dfb43f97776a3643f2731262f58d2bb81 | 4732da237784bd461ff949729cc011db83917907 | refs/heads/master | 1,682,650,246,414 | 1,621,103,975,000 | 1,621,103,975,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,785 | lean |
import data.finsupp.basic
import data.finset.basic
-- import ..vars
section
parameter {S : Type}
parameter [decidable_eq S]
/-- A general lemma about the anitdiagonal of a finsupp.single. -/
lemma single_antidiagonal_support (s : S) (n : ℕ) :
(finsupp.single s n).antidiagonal.support
= (finset.range (n+1)).im... |
e7080f8c90a54d20c7e0f8a8d37bba1c69b19b6a | 367134ba5a65885e863bdc4507601606690974c1 | /archive/imo/imo1988_q6.lean | b4fbd82c7a518de18a08d8af0467215f3a2b0671 | [
"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 | 13,855 | lean | /-
Copyright (c) 2019 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import data.nat.prime
import data.rat.basic
import order.well_founded
import tactic.linarith
import tactic.omega
/-!
# IMO 1988 Q6 and constant descent Vieta jumpin... |
3a5eda6e05fa67641d182d0750d54631a3db0c31 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /meta/expr.lean | d8bd012322f83041db156226b3f3fab4a88b35ee | [
"Apache-2.0"
] | permissive | amswerdlow/mathlib | 9af77a1f08486d8fa059448ae2d97795bd12ec0c | 27f96e30b9c9bf518341705c99d641c38638dfd0 | refs/heads/master | 1,585,200,953,598 | 1,534,275,532,000 | 1,534,275,532,000 | 144,564,700 | 0 | 0 | null | 1,534,156,197,000 | 1,534,156,197,000 | null | UTF-8 | Lean | false | false | 2,194 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Traversal for Lean expressions
-/
universes u v
section expr
open expr
variables {m : Type → Type u} [monad m]
variables {elab elab' : bool}
variables f : expr elab → m (expr... |
860daf4bdce4a4a45904122102d9e357f2564027 | 32025d5c2d6e33ad3b6dd8a3c91e1e838066a7f7 | /tests/lean/run/depElim1.lean | 273d186476f84a336857887130550a46100b228e | [
"Apache-2.0"
] | permissive | walterhu1015/lean4 | b2c71b688975177402758924eaa513475ed6ce72 | 2214d81e84646a905d0b20b032c89caf89c737ad | refs/heads/master | 1,671,342,096,906 | 1,599,695,985,000 | 1,599,695,985,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,602 | lean | import Lean.Meta.Match
open Lean
open Lean.Meta
open Lean.Meta.Match
/- Infrastructure for testing -/
universes u v
def check (x : Bool) : IO Unit :=
unless x $ throw $ IO.userError "check failed"
def inaccessible {α : Sort u} (a : α) : α := a
def val {α : Sort u} (a : α) : α := a
def As {α : Sort u} (v a : α) : α... |
576b153ee6e11074d431e5fc3719e249945f2a7e | d1a52c3f208fa42c41df8278c3d280f075eb020c | /src/Lean/Server/Watchdog.lean | 2b9cb98407a8150387169ff7e0b3ee861c4cdf0c | [
"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 | 26,347 | 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 Init.Data.ByteArray
import Std.Data.RBMap
import Lean.Elab.Import
import Lean.Data.Lsp
import Lean.Server.Utils
impor... |
2229a32ab1aab89008c8c40c8b8c94816eaeec80 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/algebra/iterate_hom.lean | 4e39f04e998975c8e64eb798b6ee8b4f1db7a145 | [
"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,927 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import algebra.group_power.basic
import logic.function.iterate
import group_theory.perm.basic
/-!
# Iterates of monoid and ring homomorphisms
Iterate of a monoid... |
e5bee588171a5d8e1e616243fbb98e401ca449c2 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/matrix.lean | 325ffc9467f232cafbf7f80fd8bd4da03ce172e8 | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 1,998 | lean | /-
Helper classes for Lean 3 users
-/
class One (α : Type u) where
one : α
instance [OfNat α (nat_lit 1)] : One α where
one := 1
instance [One α] : OfNat α (nat_lit 1) where
ofNat := One.one
class Zero (α : Type u) where
zero : α
instance [OfNat α (nat_lit 0)] : Zero α where
zero := 0
instance [Zero α] :... |
8fa2916704b50397489f753ded164907fa85f5ff | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/group/with_one/defs.lean | 3fc88f27803a39d6c0b2ce714e875a083447870c | [
"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 | 12,144 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johan Commelin
-/
import order.with_bot
import algebra.ring.defs
/-!
# Adjoining a zero/one to semigroups and related algebraic structures
This file contains differen... |
5ae02dc8882fe0a57e5da49ec787fdef2551eccd | 6fca17f8d5025f89be1b2d9d15c9e0c4b4900cbf | /src/game/world8/level8.lean | c007a90676bbc0cb21dd74984c4ae1c5725ebaee | [
"Apache-2.0"
] | permissive | arolihas/natural_number_game | 4f0c93feefec93b8824b2b96adff8b702b8b43ce | 8e4f7b4b42888a3b77429f90cce16292bd288138 | refs/heads/master | 1,621,872,426,808 | 1,586,270,467,000 | 1,586,270,467,000 | 253,648,466 | 0 | 0 | null | 1,586,219,694,000 | 1,586,219,694,000 | null | UTF-8 | Lean | false | false | 508 | lean | import game.world8.level7 -- hide
namespace mynat -- hide
/-
# Advanced Addition World
## Level 8: `eq_zero_of_add_right_eq_self`
The lemma you're about to prove will be useful when we want to prove that $\leq$ is antisymmetric.
There are some wrong paths that you can take with this one.
-/
/- Lemma
If $a$ and $b$... |
7cbe20aa5a083f3fdd6ac952770015f02fd1dd63 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/finsupp/antidiagonal.lean | 53bef39b2863528a23ee958fd28de6741c885f49 | [
"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 | 4,503 | 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, Yury Kudryashov
-/
import data.finsupp.basic
import data.multiset.antidiagonal
/-!
# The `finsupp` counterpart of `multiset.antidiagonal`.
The antidiagonal of `s : α ... |
4c601f070a3ee8fd8d62e0f908ee013e75d27889 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/for_mathlib/with_zero.lean | e7d60e52119898bd50751dcb21d51230b691f24e | [
"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 | 5,476 | lean | import data.equiv.basic
import group_theory.subgroup
universes u v
section
open tactic interactive (parse loc.wildcard) interactive.types (location) lean.parser (many ident)
run_cmd mk_simp_attr `with_zero_simp
meta def tactic.with_zero_cases : list expr → tactic unit
| (h::t) := seq (induction h [] (some `with_ze... |
d1aacf7e4629123435e38d6fdea5c588ff652946 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/topology/maps.lean | de55ec636a42d613e775fe5c43fff264b5a89c93 | [
"Apache-2.0"
] | permissive | JaredCorduan/mathlib | 130392594844f15dad65a9308c242551bae6cd2e | d5de80376088954d592a59326c14404f538050a1 | refs/heads/master | 1,595,862,206,333 | 1,570,816,457,000 | 1,570,816,457,000 | 209,134,499 | 0 | 0 | Apache-2.0 | 1,568,746,811,000 | 1,568,746,811,000 | null | UTF-8 | Lean | false | false | 14,813 | 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, Patrick Massot
Specific classes of maps between topological spaces: embeddings, open maps, quotient maps.
-/
import topology.order
open set filter lat... |
b228dd8778babd46e36a1b727b9ef035cb01b913 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /stage0/src/Lean/Util/MonadCache.lean | adde4a47f91746f7e1474c1bcb20025355ed9c44 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,482 | 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 Std.Data.HashMap
namespace Lean
/-- Interface for caching results. -/
class MonadCache (α β : Type) (m : Type → Type) :=
(findCached? : α → m (Opt... |
e73e900854fd0fc7d97cc8b8c107b56bba600377 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Lean/Util/PPGoal.lean | 385b88df95b8f49cb40afa445c13549c17c2ec08 | [
"Apache-2.0"
] | permissive | banksonian/lean4 | 3a2e6b0f1eb63aa56ff95b8d07b2f851072d54dc | 78da6b3aa2840693eea354a41e89fc5b212a5011 | refs/heads/master | 1,673,703,624,165 | 1,605,123,551,000 | 1,605,123,551,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,175 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Lean.Util.PPExt
namespace Lean
def ppAuxDeclsDefault := false
builtin_initialize
registerOption `pp.auxDecls { defValue := ppAuxDeclsDefault, grou... |
8b8703069a1faa5e2a1283b394a9fe5057a665ee | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/order/filter/basic.lean | 6df2eb929af5cffc640d635a3affe553edafb217 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 98,948 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad
-/
import order.galois_connection order.zorn order.copy
import data.set.finite
/-! # Theory of filters on sets
## Main definitions
* `filter` : filter ... |
6fba96f446c12fed8940b5fce15108e7f643718e | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/bytearray.lean | 4baad04f2032ae431e67fc78ecc9e1f2d82b7624 | [
"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 | 487 | lean |
def tst : IO Unit :=
do
let bs := [1, 2, 3].toByteArray;
IO.println bs;
let bs := bs.push 4;
let bs := bs.set! 1 20;
IO.println bs;
let bs₁ := bs.set! 2 30;
IO.println bs₁;
IO.println bs;
IO.println bs.size;
IO.println (bs ++ bs);
IO.println (bs.extract 1 3);
pure ()
#eval tst
#eval [0x11, 0x22, 0x33, 0x44, 0x55, 0x... |
0ff9244002ae40fa59443f828843a236e16b6c94 | 5e3548e65f2c037cb94cd5524c90c623fbd6d46a | /src_icannos_totilas/topologie-espaces-normés/cpge_ten_05a.lean | 9b3dc7c80dfa734727a8b4daf77c91aa5d12734f | [] | no_license | ahayat16/lean_exos | d4f08c30adb601a06511a71b5ffb4d22d12ef77f | 682f2552d5b04a8c8eb9e4ab15f875a91b03845c | refs/heads/main | 1,693,101,073,585 | 1,636,479,336,000 | 1,636,479,336,000 | 415,000,441 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 513 | lean | import data.set.basic
import topology.basic
import algebra.module.basic
import algebra.module.submodule
import order.complete_lattice
import analysis.normed_space.basic
-- Soit E une espace vectoriel normé.
-- (a) Soient F une partie fermée non vide de E et x ∈ E . Montrer
-- d(x, F ) = 0 ⇐⇒ x ∈ F .
theorem... |
b1d606c9947072b47b97ac9263da292d7038c8a4 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/quandle.lean | 15733942a6dfc6ead879da8933849c5e892eea4f | [
"Apache-2.0"
] | permissive | Lix0120/mathlib | 0020745240315ed0e517cbf32e738d8f9811dd80 | e14c37827456fc6707f31b4d1d16f1f3a3205e91 | refs/heads/master | 1,673,102,855,024 | 1,604,151,044,000 | 1,604,151,044,000 | 308,930,245 | 0 | 0 | Apache-2.0 | 1,604,164,710,000 | 1,604,163,547,000 | null | UTF-8 | Lean | false | false | 23,968 | lean | /-
Copyright (c) 2020 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.zmod.basic
import data.equiv.mul_add
import tactic.group
/-!
# Racks and Quandles
This file defines racks and quandles, algebraic structures for sets
that bij... |
660b6918d65fe69c629e743bdf809bca84c572b7 | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/487.hlean | 10e89c4a96e7fa3abe63b139804d0198cc814ed7 | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 450 | hlean | open eq is_trunc
structure is_retraction [class] {A B : Type} (f : A → B) :=
(sect : B → A)
(right_inverse : Π(b : B), f (sect b) = b)
definition foo
{A : Type}
{B : Type}
(f : A → B)
(g : B → A)
(ε : Πb, f (g b) = b)
(b b' : B)
: is_retraction (λ (q : g b = g b'), (ε b) ⁻¹ ⬝ ap f q ⬝ ε b') :=
begin
fapply is... |
fe1e132d85d61cb31f78a3cd0ed3f7141ee30151 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/category_theory/monoidal/category.lean | d475a9e130525f16aaed1f9963692985063ac24d | [
"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 | 20,844 | lean | /-
Copyright (c) 2018 Michael Jendrusch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Jendrusch, Scott Morrison, Bhavik Mehta, Jakob von Raumer
-/
import category_theory.products.basic
/-!
# Monoidal categories
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
f63677b9d4a780e2b942c12068b4305a5d3f5619 | ea5678cc400c34ff95b661fa26d15024e27ea8cd | /f2.lean | effd3cb8e3f47b6a255e4894381af73d0bde31d9 | [] | no_license | ChrisHughes24/leanstuff | dca0b5349c3ed893e8792ffbd98cbcadaff20411 | 9efa85f72efaccd1d540385952a6acc18fce8687 | refs/heads/master | 1,654,883,241,759 | 1,652,873,885,000 | 1,652,873,885,000 | 134,599,537 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,297 | lean | import tactic.ring data.int.modeq data.fintype group_theory.sylow
universe u
local attribute [instance, priority 0] classical.prop_decidable
open fintype finset nat
private def S (p : ℕ) : finset (ℕ × ℕ × ℕ) :=
((range p).product ((range p).product (range p))).filter
(λ v, v.1 ^ 2 + 4 * v.2.1 * v.2.2 = p)
lemma me... |
5589cef245fcf8c6435391db7457749143bc932b | 77c5b91fae1b966ddd1db969ba37b6f0e4901e88 | /src/topology/opens.lean | cda033c26cc177e8819e736756a4a42ace571634 | [
"Apache-2.0"
] | permissive | dexmagic/mathlib | ff48eefc56e2412429b31d4fddd41a976eb287ce | 7a5d15a955a92a90e1d398b2281916b9c41270b2 | refs/heads/master | 1,693,481,322,046 | 1,633,360,193,000 | 1,633,360,193,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,136 | 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, Floris van Doorn
-/
import topology.bases
import topology.homeomorph
/-!
# Open sets
## Summary
We define the subtype of open sets in a topological sp... |
ecd85324f04a65b0078cfd1234d048de2dc7087c | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/category/constructions/comma.hlean | f6477420ad198d16686543d90f92b68c7e3df4b1 | [
"Apache-2.0"
] | permissive | jroesch/lean | 30ef0860fa905d35b9ad6f76de1a4f65c9af6871 | 3de4ec1a6ce9a960feb2a48eeea8b53246fa34f2 | refs/heads/master | 1,586,090,835,348 | 1,455,142,203,000 | 1,455,142,277,000 | 51,536,958 | 1 | 0 | null | 1,455,215,811,000 | 1,455,215,811,000 | null | UTF-8 | Lean | false | false | 6,768 | 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
Comma category
-/
import ..functor.basic ..strict ..category
open eq functor equiv sigma sigma.ops is_trunc iso is_equiv
namespace category
structure comma_o... |
2c76b20bdb223c8267b38e9eb04dfee5217269c2 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/group4.lean | 12cb774747fdb0b51f1e53c86e163e5aeca6f928 | [
"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 | 4,049 | 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
-- algebra.group
-- =============
-- Various structures with 1, *, inv, including groups.
import logic.eq
import data.unit data.sigma data.prod... |
98a0ba6255a7c859f3e064b26881438a0f4dd13e | 618003631150032a5676f229d13a079ac875ff77 | /src/measure_theory/indicator_function.lean | 2ac21470a2de7e2f4bcb29e0e0e7f4d8ab9f3352 | [
"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 | 5,605 | lean | /-
Copyright (c) 2020 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import data.indicator_function
import measure_theory.measure_space
/-!
# Indicator function
Properties of indicator functions.
## Tags
indicator, characteristic
-/
... |
0c6c9dc8aa95cfa784496c6d5012500754f3f238 | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/tools/proof_replay.lean | e383f1513e92c6a83e93cd56fafe93d4658c212f | [
"Apache-2.0"
] | permissive | DyeKuu/lean-tpe-public | 3a9968f286ca182723ef7e7d97e155d8cb6b1e70 | 750ade767ab28037e80b7a80360d213a875038f8 | refs/heads/master | 1,682,842,633,115 | 1,621,330,793,000 | 1,621,330,793,000 | 368,475,816 | 0 | 0 | Apache-2.0 | 1,621,330,745,000 | 1,621,330,744,000 | null | UTF-8 | Lean | false | false | 5,850 | lean | import utils
import evaluation
import all
import basic.table
import system.io
section parse_nm
meta def parse_nm : string → tactic name := λ nm_str, do {
flip lean.parser.run_with_input nm_str $ iterate_until lean.parser.ident (λ nm, pure ∘ bnot $ nm = name.anonymous) 100
}
end parse_nm
meta def unpack_tactic_str... |
8fe8ccc271297f33036b359915b10959fab6f973 | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/data/multiset/powerset.lean | 8ba3dc84c3a5ff63608b738fb27172d4354fa760 | [
"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 | 9,218 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.multiset.basic
/-!
# The powerset of a multiset
-/
namespace multiset
open list
variables {α : Type*}
/-! ### powerset -/
/-- A helper function for th... |
510077bfd37a8604013b1b374ceaf9bcd6aa40ee | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/topology/subset_properties.lean | ef82990574710b194bb2c777c7dd189893987b11 | [
"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 | 66,639 | 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... |
6ce4d3a56d48e04a4436365f490e50d19b950790 | 437dc96105f48409c3981d46fb48e57c9ac3a3e4 | /src/data/list/defs.lean | 258d2e139aa76f2273ec0755fcbadfb7f7cc4fea | [
"Apache-2.0"
] | permissive | dan-c-k/mathlib | 08efec79bd7481ee6da9cc44c24a653bff4fbe0d | 96efc220f6225bc7a5ed8349900391a33a38cc56 | refs/heads/master | 1,658,082,847,093 | 1,589,013,201,000 | 1,589,013,201,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,562 | lean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn, Mario Carneiro
Extra definitions on lists.
-/
import data.option.defs
import logic.basic
import tactic.cache
n... |
4bf264ae2559a6b6ed5089c34c21038c0bfbbde3 | 36938939954e91f23dec66a02728db08a7acfcf9 | /lean4/app/MCStdLib.lean | 179f6f6e2b4c6bd8a8ba946d8f9df926d4389e10 | [] | 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 | 7,915 | lean | -- This file contains all the SMT symbols that the VCG expects to use,
-- incl. memory operations and stack bounds.
import SMTLIB.Syntax
import ReoptVCG.VCGBackend
import ReoptVCG.WordSize
namespace x86
namespace vcg
open SMT (sort term smtM command)
abbrev memory_t := SMT.sort.array (SMT.sort.bitvec 64) (SMT.sort.... |
b27212fa4eccbd6b1f0c4f263f4a74f6253f5e3b | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/tactic/interactive.lean | ec7e04bd573d4c6baa4579c61e0a48c0a05de88d | [
"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 | 41,769 | lean |
/-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sebastien Gouezel, Scott Morrison
-/
import tactic.lint
open lean
open lean.parser
local postfix `?`:9001 := optional
local postfix *:9001 := many
name... |
1b5872d538d531b13709ad8908b51ebefed9b378 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/data/buffer.lean | 50726917fad6a2167e0a7209280145de2abb1d5c | [
"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 | 4,118 | 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
-/
universes u w
def buffer (α : Type u) := Σ n, array α n
def mk_buffer {α : Type u} : buffer α :=
⟨0, {data := λ i, fin.elim0 i}⟩
def array.to_buffer {α :... |
63474fade54206148d3b8a2f853c14a5516f27a1 | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/backtrackable_estate.lean | 16c1365e37c789376c4ff28988c8538962682bdf | [
"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 | 700 | lean | import Init.System.IO
new_frontend
structure MyState :=
(bs : Nat := 0) -- backtrackable state
(ps : Nat := 0) -- non backtrackable state
instance : HasRepr MyState :=
⟨fun s => repr (s.bs, s.ps)⟩
instance : EStateM.Backtrackable Nat MyState :=
{ save := fun s => s.bs,
restore := fun s d => { s with bs := d } ... |
914182dba5ab54164ec4b75dc502951cd4d776d9 | 29cc89d6158dd3b90acbdbcab4d2c7eb9a7dbf0f | /Exercises 8/31_exercise_sheet.lean | 28563d22f44f7ffad094468fce0de5a6455b185b | [] | 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 | 11,413 | lean | /- Exercise 3.1: Program Semantics — Operational Semantics -/
/- We start by repeating some material from the lecture. We use the same `program` syntax and the
big-step semantics as presented in the lecture. -/
attribute [pattern] or.intro_left or.intro_right
inductive program (σ : Type) : Type
| skip {} : program
|... |
873b40428d95df86c64bba11d6c88f7e99c58ccf | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /hott/algebra/category/yoneda.hlean | 00152c60ec9390db5a518d8e15eff1c27274ded3 | [
"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,266 | 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
-/
--note: modify definition in category.set
import .constructions.functor .constructions.hset .constructions.product .constructions.opposite
.adjoint
open ... |
f25e2f7de63c3cc6bff80d954d94a054563ff1e8 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/logic/nontrivial.lean | c8ad9369628b3cc0ba6f5efad3983ff8c299edd5 | [
"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 | 7,272 | 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
-/
import data.prod.basic
import data.subtype
import logic.function.basic
import logic.unique
/-!
# Nontrivial types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
>... |
627589bb6c432e3b30689e8eedc0b8da6a6efc15 | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /src/Lean/Meta/WHNF.lean | da3dc0176dff17eb2f89eb9a07b19363ceb4faef | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 20,906 | 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.ToExpr
import Lean.AuxRecursor
import Lean.Meta.Basic
import Lean.Meta.LevelDefEq
import Lean.Meta.GetConst
import Lean.Meta.Match.MatcherInfo
... |
2b2ad8947b21e9b81ac1b95f404a150f37db6639 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/specific_limits/normed.lean | 6ae1ad1fc27b0718522551b78380aae043ef6083 | [
"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 | 30,266 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker, Sébastien Gouëzel, Yury G. Kudryashov, Dylan MacKenzie, Patrick Massot
-/
import algebra.order.field
import analysis.asymptotics.asymptotics
import analysis.specif... |
a72d7f879cf89c31cf2c325e8463a8c4db33f0dc | 5412d79aa1dc0b521605c38bef9f0d4557b5a29d | /stage0/src/Lean/Meta/ExprDefEq.lean | cc4a80fcf418f3d09f650fc16d2f8977f82fe278 | [
"Apache-2.0"
] | permissive | smunix/lean4 | a450ec0927dc1c74816a1bf2818bf8600c9fc9bf | 3407202436c141e3243eafbecb4b8720599b970a | refs/heads/master | 1,676,334,875,188 | 1,610,128,510,000 | 1,610,128,521,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 53,952 | 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.ProjFns
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.Meta.Check
import Lean... |
987e99fb81059913249ac6e4b4e3e90fda3581c1 | 9338c56dfd6ceacc3e5e63e32a7918cfec5d5c69 | /src/Kenny/projective_line.lean | 929684d2822e8f54069cb3265e2a81bcce77181f | [] | no_license | Project-Reykjavik/lean-scheme | 7322eefce504898ba33737970be89dc751108e2b | 6d3ec18fecfd174b79d0ce5c85a783f326dd50f6 | refs/heads/master | 1,669,426,172,632 | 1,578,284,588,000 | 1,578,284,588,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 97,709 | lean | import Kenny.sheaf_of_rings_on_opens instances.affine_scheme data.polynomial
universes u v w
open topological_space
theorem ring_equiv.bijective {α : Type u} {β : Type v} [ring α] [ring β] (e : α ≃+* β) :
function.bijective e :=
e.to_equiv.bijective
namespace localization
variables {R : Type u} [comm_ring R]
th... |
deea45788effb2762d037e049b22bf0eb4fc0468 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/simp_tactic_auto.lean | 81ac3513d3dc3eedbfce1dc93890f68ca74c5326 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,873 | 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
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
import Mathlib.Lean3Lib.init.meta.attribute
import Mathlib.Lean3Lib.init.meta.constructor_ta... |
f69f1fbe320ce50412207f5ee1896c78dd5c4bef | 682dc1c167e5900ba3168b89700ae1cf501cfa29 | /src/del/semantics/translationdefs.lean | d389c9ffee32caa7203404e28528818972f32e90 | [] | no_license | paulaneeley/modal | 834558c87f55cdd6d8a29bb46c12f4d1de3239bc | ee5d149d4ecb337005b850bddf4453e56a5daf04 | refs/heads/master | 1,675,911,819,093 | 1,609,785,144,000 | 1,609,785,144,000 | 270,388,715 | 13 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 963 | lean | /-
Copyright (c) 2021 Paula Neeley. All rights reserved.
Author: Paula Neeley
Following the textbook "Dynamic Epistemic Logic" by
Hans van Ditmarsch, Wiebe van der Hoek, and Barteld Kooi
-/
import del.languageDEL
variables {agents : Type}
-- Subformulas
def subformulas : formPA agents → set (formPA agents)
| (⊥)... |
14e4505c5d4f93f9d7704e152badf598a2814d07 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/ring_theory/graded_algebra/radical.lean | 8c72570374cc151b590ec1913c77badca15b105a | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 8,934 | lean | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jujian Zhang, Eric Wieser
-/
import ring_theory.graded_algebra.homogeneous_ideal
/-!
This file contains a proof that the radical of any homogeneous ideal is a homogeneous ideal
## Ma... |
c2663262ed5bffe7d0a1735eac6f7311a8173315 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/extra/616c.hlean | 2ddee385526d6a656cb11a1b4ea844e77674a2c3 | [
"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 | 235 | hlean | open eq
definition my_elim {A P : Type} {R : A → A → Type} (Pc : A → P)
(Pp : Π⦃a a' : A⦄ (H : R a a'), Pc a = Pc a') (x : quotient R) : P :=
begin
induction x,
exact (Pc a),
refine (pathover_of_eq _ (Pp H))
end
|
dd19588fd83d35cc90d084219792c6542165e1d2 | f57749ca63d6416f807b770f67559503fdb21001 | /hott/hit/trunc.hlean | c003079dc3ecd8be14294ee30278d29c08263d7e | [
"Apache-2.0"
] | permissive | aliassaf/lean | bd54e85bed07b1ff6f01396551867b2677cbc6ac | f9b069b6a50756588b309b3d716c447004203152 | refs/heads/master | 1,610,982,152,948 | 1,438,916,029,000 | 1,438,916,029,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,747 | 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
n-truncation of types.
Ported from Coq HoTT
-/
/- The hit n-truncation is primitive, declared in init.hit. -/
import types.sigma types.pointed
open is_trunc eq ... |
bea6077c51ecdc9cf6e63e9f17fcb7a8fb10712c | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/combinatorics/hales_jewett.lean | 47e62e3c183f60f92af517ab5c5465137f476583 | [
"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 | 15,441 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import data.fintype.basic
import algebra.big_operators.basic
import data.equiv.fin
/-!
# The Hales-Jewett theorem
We prove the Hales-Jewett theorem and deduce Van der Waerd... |
56b159f0e32cad2f42774269291a13d2df674640 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/injection_tactic_auto.lean | 6eaabbf74819ddec44c78e07656145245e36dd02 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,202 | 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, Jannis Limperg
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.tactic
namespace Mathlib
namespace tactic
/- Given a local constant `H : C x₁ .... |
ac3c3ebd16daf2a7ac945e581be85aa3ab794818 | bb31430994044506fa42fd667e2d556327e18dfe | /src/data/polynomial/ring_division.lean | bd861c1787f46c41b74542775e68c10d2695760d | [
"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 | 44,258 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Johannes Hölzl, Scott Morrison, Jens Wagemaker, Johan Commelin
-/
import algebra.char_zero.infinite
import data.polynomial.algebra_map
import data.polynomial.degree.lemmas
... |
00ca8d537c6060892119849ff54a3f7b163d4466 | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/prime.lean | 00d36a6009ae2680e4eeed6a2093661650cf30b7 | [
"Apache-2.0"
] | permissive | fpvandoorn/lean-perfectoid-spaces | 569b4006fdfe491ca8b58dd817bb56138ada761f | 06cec51438b168837fc6e9268945735037fd1db6 | refs/heads/master | 1,590,154,571,918 | 1,557,685,392,000 | 1,557,685,392,000 | 186,363,547 | 0 | 0 | Apache-2.0 | 1,557,730,933,000 | 1,557,730,933,000 | null | UTF-8 | Lean | false | false | 459 | lean | import algebra.char_p
import ring_theory.ideals
def Prime := { p : ℕ // nat.prime p}
instance : has_coe Prime ℕ := ⟨subtype.val⟩
instance monoid.prime_pow {α : Type*} [monoid α]: has_pow α Prime := ⟨λ x p, x^p.val⟩
noncomputable def Frobenius (α : Type*) [semiring α] : α → α := λ x, x^(ring_char α)
notation `Frob` R... |
f88fc31b969311809ccb577e6eaa2117062b8c11 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/algebra/ordered_field.lean | 69b13aebbd586604efd6e43d56368e7f6f99c010 | [
"Apache-2.0"
] | permissive | vaibhavkarve/mathlib | a574aaf68c0a431a47fa82ce0637f0f769826bfe | 17f8340912468f49bdc30acdb9a9fa02eeb0473a | refs/heads/master | 1,621,263,802,637 | 1,585,399,588,000 | 1,585,399,588,000 | 250,833,447 | 0 | 0 | Apache-2.0 | 1,585,410,341,000 | 1,585,410,341,000 | null | UTF-8 | Lean | false | false | 9,229 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.ordered_ring algebra.field
section linear_ordered_field
variables {α : Type*} [linear_ordered_field α] {a b c d : α}
lemma div_pos : 0 < a → 0 < b → ... |
d4e9103101b1e30fcc7a00e95c184938aa766bc7 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/order/filter/basic.lean | e88ddf35800066f04928f7b8a1a476ae6015f955 | [
"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 | 117,281 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad
-/
import data.set.finite
import order.copy
import order.zorn
import tactic.monotonicity
/-!
# Theory of filters on sets
## Main definitions
* `filter`... |
de1c947076c866bde7ecba92c9f4ea80498488dc | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/simplifier_norm_num.lean | 92d10e46fc3967629ff94c7708a5cc0e0263773f | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 1,885 | lean | import algebra.ring
set_option simplify.max_steps 5000000
-- TODO(dhs): we need to create the simplifier.numeral namespace incrementally.
-- Once it exists, we can uncomment the following line to use it simplify.
set_option simplify.numerals true
universe l
constants (A : Type.{l}) (A_comm_ring : comm_ring A)
attribut... |
03ade03fde78f2d26b945fe973f11c0f548e9000 | 70f8755415fa7a17f87402cde4651e9f4db1b5bb | /src/mvfunctor.lean | 74d0a3418b1ccb39e08f2fb25c38815ad5075b7f | [
"Apache-2.0"
] | permissive | shingarov/qpf | ab935dc2298db12c87ac011a2e4d2c27e0bdef4b | debe2eacb8cf46b21aba2eaf3f2e20940da0263b | refs/heads/master | 1,653,705,576,607 | 1,570,136,035,000 | 1,570,136,035,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,851 | lean | /-
Copyright (c) 2018 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad, Mario Carneiro
Tuples of types, and their categorical structure.
Features:
`typevec n` : n-tuples of types
`α ⟹ β` : n-tuples of maps
`f ⊚ g` : composition... |
f91957f2cfff2ea6adb496bb6d642c4420c40502 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /tests/wlog.lean | faba42cdec71e468541b9eb2ded2db7c2f4a0c26 | [
"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 | 1,857 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import tactic
example {a b : Prop} (h₀ : a → b) (h₁ : a) : b :=
begin
apply_assumption,
apply_assumption,
end
example {a b : Prop} (h₀ : a → b) (h₁ : a) : b :=
by sol... |
82d5b625475288229a85aaa44cf3bd20962bd15c | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/nat/sqrt.lean | 4d35d6e6a4b1d7506e0b9d116e9eab6c3f6931fe | [
"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 | 6,952 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Very simple (sqrt n) function that returns s s.t.
s*s ≤ n ≤ s*s + s + s
-/
import data.nat.order data.nat.sub
namespace nat
open decidable
open algebra
... |
7febbdf6a6d5a268ef525038aa4cbfcfef1a66e4 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/nat/parity.lean | 9d899182a0ad44ebb5d45f61969381b78df66542 | [
"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 | 8,008 | 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.nat.modeq
import algebra.parity
/-!
# Parity of natural numbers
This file contains theorems about the `even` and `odd` predicates on th... |
317d6191729670d98fc2598b1a6943278193e863 | 4fa118f6209450d4e8d058790e2967337811b2b5 | /src/Spa/rational_open_data.lean | 9566a5a4b536e9271eadc2a37123f9c5b44d8d40 | [
"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 | 11,602 | lean | import for_mathlib.group -- some stupid lemma about units
import Spa.space
import Huber_ring.localization
/-!
# Rational open subsets and their properties
We define a preorder on `rational_open_data` that will be used when
constructing the valuations on the stalks of the structure presheaf.
-/
open_locale classical... |
d89e7eaaaa0580e3aac5b2bf77543f80c47ac82f | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world2/level6.lean | e6709ddc46099970217c9ab264f3f83758fb7e17 | [] | no_license | alreadydone/natural_number_game | 3135b9385a9f43e74cfbf79513fc37e69b99e0b3 | 1a39e693df4f4e871eb449890d3c7715a25c2ec9 | refs/heads/master | 1,599,387,390,105 | 1,573,200,587,000 | 1,573,200,691,000 | 220,397,084 | 0 | 0 | null | 1,573,192,734,000 | 1,573,192,733,000 | null | UTF-8 | Lean | false | false | 4,315 | lean | import mynat.definition -- hide
import mynat.add -- hide
import game.world2.level5 -- hide
import tactic.ring -- hide
namespace mynat -- hide
/-
# World 2 -- Addition World
## Level 6 -- `add_right_comm`
You have (amongst other things) these:
* `add_assoc (a b c : mynat) : (a + b) + c = a + (b + c)`
* `add_c... |
3310e901735ef60644681b22aeef8508a1d00308 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /archive/imo/imo2011_q5.lean | 5bb51b977d729c2c110d5fdd9cac04baed31c59a | [
"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,198 | 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
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4.
Let... |
31e294e7d82fa0e73ed0082a19b1f3c46555e928 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/subobject/factor_thru.lean | adf579d3ea797aef0facf85c74806bc40e97b42a | [
"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 | 7,177 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Scott Morrison
-/
import category_theory.subobject.basic
import category_theory.preadditive
/-!
# Factoring through subobjects
The predicate `h : P.factors f`, for `P :... |
067694aa5e7b8259ca77646b1ed432c914f91f4e | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /tests/lean/run/trace.lean | d03c295fd3b51643dfbd5e07440845d70bd889dc | [
"Apache-2.0"
] | permissive | WojciechKarpiel/lean4 | 7f89706b8e3c1f942b83a2c91a3a00b05da0e65b | f6e1314fa08293dea66a329e05b6c196a0189163 | refs/heads/master | 1,686,633,402,214 | 1,625,821,189,000 | 1,625,821,258,000 | 384,640,886 | 0 | 0 | Apache-2.0 | 1,625,903,617,000 | 1,625,903,026,000 | null | UTF-8 | Lean | false | false | 1,488 | lean | import Lean.CoreM
open Lean
structure MyState :=
(traceState : TraceState := {})
(s : Nat := 0)
abbrev M := CoreM
def tst1 : M Unit :=
do trace[module] (m!"hello" ++ MessageData.nest 9 (m!"\n" ++ "world"));
trace[module.aux] "another message";
pure ()
def tst2 (b : Bool) : M Unit :=
traceCtx `module... |
99cdb740a00b0de0f4f17d368e53d6f9ebe68db4 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/shapes/pullbacks.lean | 1f0e6bc85aad4a4ec7591bc5a4466014ecc6fdab | [
"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 | 90,304 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel, Bhavik Mehta, Andrew Yang
-/
import category_theory.limits.shapes.wide_pullbacks
import category_theory.limits.shapes.binary_products
/-!
# Pullbacks
W... |
d192a88ffc409ec683fd14ac9c3aa97f64b4ea7d | 92b50235facfbc08dfe7f334827d47281471333b | /hott/hit/torus.hlean | 889ef24dafb5e77f77a39cde6e9f8d6f799c16e7 | [
"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 | 3,539 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of the torus
-/
import .two_quotient
open two_quotient eq bool unit relation
namespace torus
definition torus_R (x y : unit) := bool
local infi... |
7c8176074d3ba52a970ce0085b3b20b75fca4c77 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/list/pairwise.lean | ed96558f726767a567ec5d25e3211f5dd1e30c1d | [
"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 | 17,657 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.list.count
import data.list.lex
import data.list.sublists
import data.set.pairwise
/-!
# Pairwise relations on a list
This file provides basic results a... |
ab1911dfc8d17f137922de1667558c45eb441d7b | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/tree.lean | 6e3e388016a30d878d9f4a4fdec2040321ee2ccd | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 2,938 | lean | /-
Copyright (c) 2019 mathlib community. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Wojciech Nawrocki
-/
import data.rbtree.init
import data.num.basic
/-!
# Binary tree
Provides binary tree storage for values of any type, with O(lg n) retrieval.
S... |
e29224ab78b8ad629db69e62520ea265136f89ee | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/combinatorics/hales_jewett.lean | 908ce0e4d3b88cc5c86fb8ea86f6742470f3db38 | [
"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 | 15,423 | lean | /-
Copyright (c) 2021 David Wärn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Wärn
-/
import data.fintype.basic
import algebra.big_operators.basic
/-!
# The Hales-Jewett theorem
We prove the Hales-Jewett theorem and deduce Van der Waerden's theorem as a coro... |
61c614e9674ab964139b57a899225e6aea97de85 | 26bff4ed296b8373c92b6b025f5d60cdf02104b9 | /tests/lean/hott/433.hlean | 3d9d2f541220aeb26d5609dc986f3be683f1f954 | [
"Apache-2.0"
] | permissive | guiquanz/lean | b8a878ea24f237b84b0e6f6be2f300e8bf028229 | 242f8ba0486860e53e257c443e965a82ee342db3 | refs/heads/master | 1,526,680,092,098 | 1,427,492,833,000 | 1,427,493,281,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,854 | 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 pi-types (dependent function spaces)
-/
import types.sigma
open eq equiv is_equiv funext
namespace pi
universe variables l k
... |
c9a67951c68aefdd70a453f183de34c32859221c | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/Group.lean | b259ae41ef152a7ade042347dc412ea26bc42049 | [] | no_license | ysharoda/Deriving-Definitions | 3e149e6641fae440badd35ac110a0bd705a49ad2 | dfecb27572022de3d4aa702cae8db19957523a59 | refs/heads/master | 1,679,127,857,700 | 1,615,939,007,000 | 1,615,939,007,000 | 229,785,731 | 4 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 8,818 | lean | import init.data.nat.basic
import init.data.fin.basic
import data.vector
import .Prelude
open Staged
open nat
open fin
open vector
section Group
structure Group (A : Type) : Type :=
(e : A)
(op : (A → (A → A)))
(lunit_e : (∀ {x : A} , (op e x) = x))
(runit_e : (∀ {x : A} , (op x e) = ... |
78a9b57f0fe3bf0d8ba5d8cbf2e08305b3548cd4 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/interactive/goTo.lean | 5882374e2ffd3924597a1703da65a020f649a72c | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | cipher1024/lean4 | 6e1f98bb58e7a92b28f5364eb38a14c8d0aae393 | 69114d3b50806264ef35b57394391c3e738a9822 | refs/heads/master | 1,642,227,983,603 | 1,642,011,696,000 | 1,642,011,696,000 | 228,607,691 | 0 | 0 | Apache-2.0 | 1,576,584,269,000 | 1,576,584,268,000 | null | UTF-8 | Lean | false | false | 1,095 | lean | import Lean.Elab
structure Bar where
structure Foo where
foo₁ : Nat
foo₂ : Nat
bar : Bar
def mkFoo₁ : Foo := {
--v textDocument/definition
foo₁ := 1
--v textDocument/declaration
foo₂ := 2
--v textDocument/typeDefinition
bar := ⟨⟩
}
structure HandWrittenStruct where
n : Nat
-- def HandWrittenStruct.n... |
c83784234d45945f58caae9bf2e52656fec9b5eb | f20db13587f4dd28a4b1fbd31953afd491691fa0 | /library/init/data/list/basic.lean | da272096038810c5de1ab1ca3a05719e89793655 | [
"Apache-2.0"
] | permissive | AHartNtkn/lean | 9a971edfc6857c63edcbf96bea6841b9a84cf916 | 0d83a74b26541421fc1aa33044c35b03759710ed | refs/heads/master | 1,620,592,591,236 | 1,516,749,881,000 | 1,516,749,881,000 | 118,697,288 | 1 | 0 | null | 1,516,759,470,000 | 1,516,759,470,000 | null | UTF-8 | Lean | false | false | 9,906 | 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.logic init.data.nat.basic init.data.bool.basic init.propext
open decidable list
universes u v w
instance (α : Type u) : inhabited (list... |
0ce0548abc0cd3a891268e4dd9250e487e663fe5 | cf39355caa609c0f33405126beee2739aa3cb77e | /library/init/data/unsigned/default.lean | 76bee50c3ce5442329745d77c76937edb6ac480d | [
"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 | 227 | 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.data.unsigned.basic init.data.unsigned.ops
|
080a2d667e93bc6af24cb050b5e15ef36dd99982 | 7b4371534ac437ca8cfb325dd5c6638ff111d31a | /other_problems.lean | 29b49b5de3d20ea3aa1c4fe3887334a973bf225f | [] | no_license | Shamrock-Frost/boolean_rings | 6d78294568b6b9ad7b9c67b5de5e9545227826da | 5da11beeaa37ec186c1deff946f2dbf7594fceb4 | refs/heads/master | 1,588,394,857,485 | 1,553,973,949,000 | 1,553,973,949,000 | 177,757,941 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 9,827 | lean | import .algebra_util
section definitions
variables {R : Type _} [ring R]
def is_nilpotent (x : R) := ∃ n : ℕ, x^n = 0
def is_unit (u : R) := ∃ v, u*v = 1
def sequence (A : Type _) := nat → A
def convolve (a b : sequence R) :=
λ n, sum_over (λ j : fin (nat.succ n), a j.val * b (n - j.val))
infix ` ∗ `:70 := convolv... |
f7f825e064263531da0447212a8500edcbea5afe | 92b50235facfbc08dfe7f334827d47281471333b | /hott/init/path.hlean | 81f31f54d8ac607fd666ddf6f95a6a2761f7a827 | [
"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 | 25,449 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Jakob von Raumer, Floris van Doorn
Ported from Coq HoTT
-/
prelude
import .function .datatypes .relation .tactic
open function eq
/- Path equality -/
namespa... |
8bd5ce5ef09987005987645e096da45112788689 | d0664585e88edfefe384f2b01de54487029040bb | /solutions/covers_from_pseudometric.lean | 8fb9a9628f7909c2ce35c9f3a07bedcc2534fdd2 | [] | no_license | ImperialCollegeLondon/uniform-structures | acf0a092d764925564595c59e7347e066d2a78ab | a41a170ef125b36bdac1e2201f54affa958d0349 | refs/heads/master | 1,668,088,958,039 | 1,592,495,127,000 | 1,592,495,127,000 | 269,964,470 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,473 | lean | -- import the definitions of uniform space via covers
import uniform_structure.covers
-- import the definition of pseudometric space
import pseudometric_space
-- In this exercise we will show that a pseudometric on a set X
-- gives rise to a distinguished family of covers for X
-- which make X into a "uniform space... |
8b996fdb41a2cc38d628244e0fa6ff8fd38a304d | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Meta/ExprDefEq.lean | 84833631842ae4627fe69be1e7bc8ba521fff180 | [
"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 | 44,549 | 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.ProjFns
import Lean.Meta.WHNF
import Lean.Meta.InferType
import Lean.Meta.FunInfo
import Lean.Meta.LevelDefEq
import Lean.Meta.Check
import Lean... |
8174c4e62b2327f1374dce26bda6cb18edcf7f11 | d751a70f46ed26dc0111a87f5bbe83e5c6648904 | /Code/src/inst/primitives.lean | ff71d5a71276d82603352cc9c0daa09dc24dac34 | [] | no_license | marcusrossel/bachelors-thesis | 92cb12ae8436c10fbfab9bfe4929a0081e615b37 | d1ec2c2b5c3c6700a506f2e3cc93f1160e44b422 | refs/heads/main | 1,682,873,547,703 | 1,619,795,735,000 | 1,619,795,735,000 | 306,041,494 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,282 | lean | import data.finset
import order.lexicographic
import mathlib
-- The type of opaque values that can be passed between reactors and processed by reactions.
-- Their equality has to be decidable, but beyond that their values are of no interest.
variables (υ : Type*) [decidable_eq υ]
-- A list of state variables as used ... |
928e921916d80dafedea0a776b8a8ea8201302c8 | 7c92a46ce39266c13607ecdef7f228688f237182 | /src/for_mathlib/topology.lean | 8359f9d6d0da0826b69787e07c8f0e0ae7cbeaf7 | [
"Apache-2.0"
] | permissive | asym57/lean-perfectoid-spaces | 3217d01f6ddc0d13e9fb68651749469750420767 | 359187b429f254a946218af4411d45f08705c83e | refs/heads/master | 1,609,457,937,251 | 1,577,542,616,000 | 1,577,542,675,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 15,128 | lean | import topology.opens
import topology.algebra.continuous_functions
import for_mathlib.filter
import for_mathlib.data.set.basic
open topological_space function
local notation `𝓝` x:70 := nhds x
local notation f `∘₂` g := function.bicompr f g
-- We need to think whether we could directly use the class t2_space (whic... |
4959eaa6e35e83be6a5e6770cea08fce0205d9c9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/algebraic_topology/simplex_category.lean | 0445dbca20df55feb9d0522aee81d78f29373ecd | [
"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 | 26,922 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Scott Morrison, Adam Topaz
-/
import category_theory.skeletal
import tactic.linarith
import data.fintype.sort
import order.category.NonemptyFinLinOrd
import category_t... |
fb3333d06b1888192cae3b81fd2996aeefe67feb | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /src/analysis/mean_inequalities.lean | 2b3097964f715b7e84df50ff2da6b8fcd085a0d2 | [
"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 | 22,746 | lean | /-
Copyright (c) 2019 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Sébastien Gouëzel
-/
import analysis.convex.specific_functions
import analysis.special_functions.pow
import data.real.conjugate_exponents
import tactic.nth_rewrite
/... |
7f9f833c0e1bbadf494e07a0a38650356f9df3ba | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/limits/preserves/shapes/pullbacks.lean | e791e9be8db90bc6002e84aff8ac93cf617add7f | [
"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 | 10,599 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Andrew Yang
-/
import category_theory.limits.shapes.pullbacks
import category_theory.limits.preserves.basic
/-!
# Preserving pullbacks
Constructions to relate the notions... |
f47b4b8ccfe2b082516b414d273cad081653450c | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/combinatorics/simple_graph/regularity/lemma.lean | 88ae521886eaa8a5b9f4024bb3822bb5d048d7bf | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 8,433 | 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 combinatorics.simple_graph.regularity.increment
/-!
# Szemerédi's Regularity Lemma
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any c... |
ab629b712648da6b909314a6e07cd30ce01789e0 | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/order/filter/ultrafilter.lean | bd3ff140164bf85c9509b9bb57d34b7c613f2ebc | [
"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 | 12,568 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Jeremy Avigad
-/
import order.filter.cofinite
/-!
# Ultrafilters
An ultrafilter is a minimal (maximal in the set order) proper filter.
In this file we define
* `is_u... |
5240b8284ef512e0dd6fe7b0af8e64eef30d65ae | 274261f7150b4ed5f1962f172c9357591be8a2b5 | /src/downset.lean | 02b4bfad026e3ed2570b42373dbd928362863ab1 | [] | no_license | rspencer01/lean_representation_theory | 219ea1edf4b9897b2997226b54473e44e1538b50 | 2eef2b4b39d99d7ce71bec7bbc3dcc2f7586fcb5 | refs/heads/master | 1,588,133,157,029 | 1,571,689,957,000 | 1,571,689,957,000 | 175,835,785 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,820 | lean | import data.set
import data.set.lattice
import order.lattice
import .subsets
open classical
@[simp]
def downset (α : Type) [partial_order α] := {S : set α | ∀ (a : S) (b : α), b ≤ a → b ∈ S}
variables {α : Type} [partial_order α]
@[simp]
lemma empty_is_downset : ∅ ∈ downset α := by simp
@[simp]
lemma full_set_is_... |
1ca4e924a83ea0b0945ea951d5ea0e0cc2e279d9 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/analysis/ODE/gronwall.lean | 06a3849e4cc4b0d88922b032299683bb57055aa2 | [
"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,181 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.special_functions.exp_deriv
/-!
# Grönwall's inequality
The main technical result of this file is the Grönwall-like inequality
`norm_le_gronwall_b... |
510e79d8fb141c7f442d09361b50ccd56be885b0 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/control/bitraversable/instances.lean | 1b6bb4da9175d2f2106c8ba9c80c9c454552336b | [
"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,924 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import control.bitraversable.lemmas
import control.traversable.lemmas
/-!
# Bitraversable instances
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file ... |
3ebb0cd777f5456729d9cf4bad7da3d8dcec2561 | 8e381650eb2c1c5361be64ff97e47d956bf2ab9f | /src/spectrum_of_a_ring/structure_sheaf.lean | 7c1b93d6e67db7e4b2862790a617074e83d10512 | [] | 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 | 7,159 | lean | /-
The structure presheaf is a sheaf of rings.
https://stacks.math.columbia.edu/tag/01HR
-/
import topology.basic
import to_mathlib.localization.localization_alt
import sheaves.sheaf_on_standard_basis
import spectrum_of_a_ring.induced_homeomorphism
import spectrum_of_a_ring.quasi_compact
import spectrum_of_a_ring... |
fa9f0c7e8ff143f28db4cb6a112f109266bd2d08 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/real/cau_seq_completion.lean | e94562394011c6f97e4a1821dec4dd3d55ba8cfb | [
"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 | 9,898 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Robert Y. Lewis
Generalizes the Cauchy completion of (ℚ, abs) to the completion of a
commutative ring with absolute value.
-/
import data.real.cau_seq
namespace cau_s... |
03dc23f761d1057499db15d9c3197a9eddee90b3 | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/topology/category/Top/basic.lean | 4f9f87ebfa50aef91764cbb6f3f15c14f4770a38 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 1,408 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison, Mario Carneiro
-/
import category_theory.concrete_category.unbundled_hom
import topology.opens
open category_theory
open topological_space
universe u
... |
0f063f583b59b8bb52fb31de44868139040e69b5 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Meta/AbstractNestedProofs.lean | b76e65db624728710009bb18e5be9bc71523ccd3 | [
"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,203 | 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.Closure
namespace Lean.Meta
namespace AbstractNestedProofs
def getLambdaBody (e : Expr) : Expr :=
match e with
| .lam _ _ b _ => getL... |
e93e2b76d60d03902e4e4c364b8f171893b39569 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /doc/monads/transformers.lean | 3e6e907dfeb6af6d50b0f91c7b105e3973a9af92 | [
"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 | 12,217 | lean | /-!
# Monad Transformers
In the previous sections you learned about some handy monads [Option](monads.lean.md),
[IO](monads.lean.md), [Reader](readers.lean.md), [State](states.lean.md) and
[Except](except.lean.md), and you now know how to make your function use one of these, but what you
do not yet know is how to make... |
1c11aa0206882257b138d5aef3ab090422fb9de5 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/ring_theory/witt_vector/teichmuller.lean | 7553bdf899ddedb1e419ccc07637f3b87860ea7f | [
"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 | 4,473 | 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 ring_theory.witt_vector.basic
/-!
# Teichmüller lifts
This file defines `witt_vector.teichmuller`, a monoid hom `R →* 𝕎 R`, which embeds `r : R` as the
`0`... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.