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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
224ad6c975d563cccc19a61f1909e60f5a769fd4 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/number_theory/cyclotomic/gal.lean | 42b0de42698bf1c2c7668f7f16f59d2a447f83ad | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 7,269 | lean | /-
Copyright (c) 2022 Eric Rodriguez. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Rodriguez
-/
import number_theory.cyclotomic.primitive_roots
import field_theory.polynomial_galois_group
/-!
# Galois group of cyclotomic extensions
In this file, we show the r... |
9e5b98368d5727284f09e661d11ff875bcf4a3be | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /hott/types/bool.hlean | 1532cf2d9ec6da50d040b1f6d7aa3872e151bf84 | [
"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 | 1,592 | 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
Theorems about the booleans
-/
open is_equiv eq equiv function is_trunc option unit decidable
namespace bool
definition ff_ne_tt : ff = tt → empty
| [none]
... |
58cad90c17dbe82818d0c08631656aeb80dd3a6c | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/algebra/module.lean | c26e055f480e7f09c55ad3ce1ad3101246eee74c | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 16,048 | lean | /-
Copyright (c) 2015 Nathaniel Thomas. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Nathaniel Thomas, Jeremy Avigad, Johannes Hölzl, Mario Carneiro
Modules over a ring.
## Implemetation notes
Throughout the `linear_map` section implicit `{}` brackets are often u... |
d3914c98ff3effce774a6d172594bf36058ef6d6 | d642a6b1261b2cbe691e53561ac777b924751b63 | /src/analysis/asymptotics.lean | 0ddb78585090695311b5a7323fdc4f56d1ca90a2 | [
"Apache-2.0"
] | permissive | cipher1024/mathlib | fee56b9954e969721715e45fea8bcb95f9dc03fe | d077887141000fefa5a264e30fa57520e9f03522 | refs/heads/master | 1,651,806,490,504 | 1,573,508,694,000 | 1,573,508,694,000 | 107,216,176 | 0 | 0 | Apache-2.0 | 1,647,363,136,000 | 1,508,213,014,000 | Lean | UTF-8 | Lean | false | false | 29,358 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jeremy Avigad
We introduce these relations:
`is_O f g l` : "f is big O of g along l"
`is_o f g l` : "f is little o of g along l"
Here `l` is any filter on the domain of `f` and `g... |
b386f6a3ca46aff3f2fbd4a073ce02c98b1205f7 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/data/buffer/parser/numeral.lean | ab7b0a4ea1ecc3b7ca3e05a95578f6f63967f092 | [
"Apache-2.0"
] | permissive | hamdysalah1/mathlib | b915f86b2503feeae268de369f1b16932321f097 | 95454452f6b3569bf967d35aab8d852b1ddf8017 | refs/heads/master | 1,677,154,116,545 | 1,611,797,994,000 | 1,611,797,994,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,238 | lean | /-
Copyright (c) 2020 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.fintype.card
/-!
# Numeral parsers
This file expands on the existing `nat : parser ℕ` to provide parsers into any type `α` that
can be represented by ... |
b8b7a6f0addd99152015215386d2675659daa387 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/topology/sheaves/local_predicate.lean | 2b8747ce3a40ac0eeb9206adefafe917aaca901b | [] | 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,248 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.topology.sheaves.sheaf_of_functions
import Mathlib.topology.she... |
6df3c52e688882daf159fc6615c2f44a8e36e74f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/real/cau_seq.lean | f988d639e7caade8fd36a1d5cbb27fb0f9a0e19b | [
"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 | 33,426 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.group_power.lemmas
import algebra.order.absolute_value
import algebra.order.group.min_max
import algebra.order.field.basic
/-!
# Cauchy sequences
A b... |
a7a7c69b06e95ac16ff7c7a07b948ab977423794 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/data/nat/div.lean | 63d1f1f7061ab2548a8bef4db85e9ee671e51683 | [] | 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,005 | 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.wf
import Mathlib.Lean3Lib.init.data.nat.basic
namespace Mathlib
namespace nat
protected def div (... |
105d49eefdeca86483ea87eb6c3480d175c35a17 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /tests/lean/run/tc_cache2.lean | 9f6e266da43f6469dd043970a590a5ecd7d6f03c | [
"Apache-2.0"
] | permissive | kbuzzard/lean | ae3c3db4bb462d750dbf7419b28bafb3ec983ef7 | ed1788fd674bb8991acffc8fca585ec746711928 | refs/heads/master | 1,620,983,366,617 | 1,618,937,600,000 | 1,618,937,600,000 | 359,886,396 | 1 | 0 | Apache-2.0 | 1,618,936,987,000 | 1,618,936,987,000 | null | UTF-8 | Lean | false | false | 841 | lean | class succeeds_w_cache (α : Type) := (a : α)
class fails_quickly_w_cache (α : Type) extends succeeds_w_cache α
class loops_wo_cache (α : Type) := (a : α)
class has_no_inst (α : Type)
instance loops_wo_cache.loop {α} [loops_wo_cache α] [inhabited α] :
loops_wo_cache α :=
‹loops_wo_cache α›
instance inhabited.to_lo... |
8b5277c2b4389321806b3eb3761c8710ceb536c7 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/topology/metric_space/lipschitz.lean | 5b62a0720bfda1ef7ec5d6679d99ba98e927a59d | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 5,507 | lean | /-
Copyright (c) 2018 Rohan Mitta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rohan Mitta, Kevin Buzzard, Alistair Tucker, Johannes Hölzl
Lipschitz functions and the Banach fixed-point theorem
-/
import topology.metric_space.basic analysis.specific_limits
open fil... |
c8f1a319ad89ba6975f59fe50e72eb606d905a06 | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/mwe2.lean | f08cb486b381c2be45283983fdedc8b6953ff0d2 | [
"Apache-2.0"
] | permissive | semorrison/proof | cf0a8c6957153bdb206fd5d5a762a75958a82bca | 5ee398aa239a379a431190edbb6022b1a0aa2c70 | refs/heads/master | 1,610,414,502,842 | 1,518,696,851,000 | 1,518,696,851,000 | 78,375,937 | 2 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,563 | lean | import standard
meta def blast : tactic unit :=
using_smt $ return ()
structure Category (Obj : Type) (Hom : Obj -> Obj -> Type) :=
(identity : Π A : Obj, Hom A A)
(compose : Π ⦃A B C : Obj⦄, Hom A B → Hom B C → Hom A C)
attribute [class] Category
open Category
structure MonoidalCategory (Obj : Type) (Hom : O... |
38b56defa0e10e777f54ddd65f95e1c50c9a61c8 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/hott/id_tac5.hlean | e23ad67e14dc2fa926a16a186011fabac80c2026 | [
"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 | 293 | hlean | open equiv
constant rec_on_ua {A B : Type} {P : A ≃ B → Type}
(f : A ≃ B) (H : Π(q : A = B), P (equiv_of_eq q)) : P f
set_option pp.universes true
set_option pp.implicit true
set_option pp.notation false
check @rec_on_ua
attribute rec_on_ua [recursor]
print [recursor] rec_on_ua
|
88af60115ec6a060bf46d74d51905daf56ea84ee | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /tests/lean/notation2.lean | 25372a35627ffe851d6b5a9609bc567dcb924b05 | [
"Apache-2.0"
] | permissive | tjiaqi/lean | 4634d729795c164664d10d093f3545287c76628f | d0ce4cf62f4246b0600c07e074d86e51f2195e30 | refs/heads/master | 1,622,323,796,480 | 1,422,643,069,000 | 1,422,643,069,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 272 | lean | import data.num
inductive list (T : Type) : Type := nil {} : list T, cons : T → list T → list T open list notation h :: t := cons h t notation `[` l:(foldr `,` (h t, cons h t) nil) `]` := l
infixr `::` := cons
check 1 :: 2 :: nil
check 1 :: 2 :: 3 :: 4 :: 5 :: nil
|
7938936fcb1b0022978e99a37ebeb5916741e797 | abd85493667895c57a7507870867b28124b3998f | /src/number_theory/quadratic_reciprocity.lean | cb1f337851154fd9d9f8873f1a44b1aa5bbfcda1 | [
"Apache-2.0"
] | permissive | pechersky/mathlib | d56eef16bddb0bfc8bc552b05b7270aff5944393 | f1df14c2214ee114c9738e733efd5de174deb95d | refs/heads/master | 1,666,714,392,571 | 1,591,747,567,000 | 1,591,747,567,000 | 270,557,274 | 0 | 0 | Apache-2.0 | 1,591,597,975,000 | 1,591,597,974,000 | null | UTF-8 | Lean | false | false | 25,076 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import field_theory.finite
import data.zmod.basic
import data.nat.parity
/-!
# Quadratic reciprocity.
This file contains results about quadratic residues modulo a prim... |
13246e793b763b64a7768cbe0c277951edaec53e | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/cases_tac.lean | cb7456f2c5fce026990ebd6177c8830bfb4e3726 | [
"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 | 412 | lean | inductive foo {A : Type} : A → Type :=
mk : Π a : A, foo a
example (A : Type) (B : A → Type) (a : A) (H : foo a) (Hb : B a) : A :=
begin
cases H,
state,
assumption
end
inductive foo₂ {A : Type} : A → A → Type :=
mk : Π a b : A, foo₂ a b
example (A : Type) (B : A → Type) (f : A → A) (a : A) (H : foo₂ (f a) a) (... |
79d8dd99e325ef0d20b4c7315cc293b822d5174e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/special_functions/complex/log_deriv.lean | 6c9fa17a0181ed3d11a6c415e00f475a3de86630 | [
"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 | 6,381 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes, Abhimanyu Pallavi Sudhir, Jean Lo, Calle Sönne, Benjamin Davidson
-/
import analysis.special_functions.complex.log
import analysis.special_functions.exp_deriv
/-!
# Differ... |
a78101e1d5c05579daa8b56192877e87eebad445 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /tests/lean/run/termParserAttr.lean | 0a6ea1d13b6eb816a345b90777145d3b37176e7a | [
"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 | 2,133 | lean | import Lean
open Lean
open Lean.Elab
def runCore (input : String) (failIff : Bool := true) : CoreM Unit := do
let env ← getEnv;
let opts ← getOptions;
let (env, messages) ← liftIO $ process input env opts;
messages.toList.forM $ fun msg => liftIO (msg.toString >>= IO.println);
when (failIff && messages.hasErrors) $ ... |
888a6aeb46a08211ba036d154bb756b9ead41646 | 097294e9b80f0d9893ac160b9c7219aa135b51b9 | /assignments/hw4/hw4.lean | ccbc686ec788984aaec3dc53705cb5d357314021 | [] | no_license | AbigailCastro17/CS2102-Discrete-Math | cf296251be9418ce90206f5e66bde9163e21abf9 | d741e4d2d6a9b2e0c8380e51706218b8f608cee4 | refs/heads/main | 1,682,891,087,358 | 1,621,401,341,000 | 1,621,401,341,000 | 368,749,959 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 6,371 | lean | /-
Here we import the dm_option type defined in class
from the instructor directory. This line shows how
to include a file from the parent of the parent of
the current directory (one dot = current, two dots
= parent, three = parent of parent), descending into
several subdirectories before finding the file that
we want ... |
d1a5b20df4bf9354477d309337c1cfd331e41f24 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/omega/term.lean | 8b48371ce4446c2660f90fb99b6c07da4cc3699e | [
"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,734 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Normalized linear integer arithmetic terms.
-/
import tactic.omega.coeffs
namespace omega
/-- Shadow syntax of normalized terms. The first element
represents the con... |
3e38b44f6ff24a555c751a15e35d742cb54dce50 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/755.lean | e39bcf6ffe2a14b6b6a8e170aebcc8b76d0ab51c | [
"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,204 | lean | def Additive (α : Type) := α
instance [OfNat α 1] : OfNat (Additive α) (nat_lit 0) := ⟨(1 : α)⟩
example : (0 : Nat) = (0 : Additive Nat) := rfl -- Error
def toA (a : Nat) : Additive Nat := a
def Foo (α : Type) := α
instance [OfNat α n] : OfNat (Foo α) n :=
inferInstanceAs (OfNat α n)
instance [HAdd α α α] : HMu... |
fa05502ce317fe4de3a16e23b5f644f1dfdf4445 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/set_theory/ordinal/principal.lean | a79c5847169721f3f8ec192de431eed89b00a347 | [
"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 | 16,464 | lean | /-
Copyright (c) 2022 Violeta Hernández Palacios. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Violeta Hernández Palacios
-/
import set_theory.ordinal.fixed_point
/-!
### Principal ordinals
We define principal or indecomposable ordinals, and we prove the standard ... |
f765a0e7179236a279fb5d3a0f265708d4fb8455 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/finiteness.lean | f6f9f4f4390687ec2cc1f3f1df591d2e77f3c904 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 9,980 | 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 data.set.finite
import data.finset
import group_theory.submonoid.operations
import group_theory.subgroup.basic
/-!
# Finitely generated monoids and groups
... |
56b021b12f0378fa8553e96f45c8c9d3b7c4f6b1 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/init/logic.hlean | 348fdc4f5d66cc8c130e27d889d7b9c04a69ed42 | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,773 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.logic
Authors: Leonardo de Moura
-/
prelude
import init.datatypes init.reserved_notation
definition not.{l} (a : Type.{l}) := a → empty.{l}
prefix `¬` := not
definition ... |
b7b92b759d8732ca7523878704828e3c2c5a1897 | 5d166a16ae129621cb54ca9dde86c275d7d2b483 | /library/init/data/bool/lemmas.lean | da0bbd7df2c9bbb98d972c12f989363fe12f1836 | [
"Apache-2.0"
] | permissive | jcarlson23/lean | b00098763291397e0ac76b37a2dd96bc013bd247 | 8de88701247f54d325edd46c0eed57aeacb64baf | refs/heads/master | 1,611,571,813,719 | 1,497,020,963,000 | 1,497,021,515,000 | 93,882,536 | 1 | 0 | null | 1,497,029,896,000 | 1,497,029,896,000 | null | UTF-8 | Lean | false | false | 2,624 | 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.bool.basic init.meta
attribute [simp] cond bor band bnot bxor
@[simp] lemma {u} cond_a_a {α : Type u} (b : bool) (a : α) : cond b... |
807385ed063b87c4abe030405eaabcfdcfb9bab9 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/converter/binders_auto.lean | ee64529aef3d9eae063bd4170c3bb61705ef1d4e | [] | 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,836 | 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
Binder elimination
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.order.default
import Mathlib.PostPort
universes u v
namespace Mathli... |
3000b3b4db8499a23b49e0fdb1a6fdf1ed70c93b | 556aeb81a103e9e0ac4e1fe0ce1bc6e6161c3c5e | /src/starkware/cairo/lean/semantics/air_encoding/range_check_builtin.lean | cb732346453eaee55b506e445a579f0fe02664a4 | [
"Apache-2.0"
] | permissive | starkware-libs/formal-proofs | d6b731604461bf99e6ba820e68acca62a21709e8 | f5fa4ba6a471357fd171175183203d0b437f6527 | refs/heads/master | 1,691,085,444,753 | 1,690,507,386,000 | 1,690,507,386,000 | 410,476,629 | 32 | 9 | Apache-2.0 | 1,690,506,773,000 | 1,632,639,790,000 | Lean | UTF-8 | Lean | false | false | 3,442 | lean | import starkware.cairo.lean.semantics.cpu
variables {F : Type*} [field F]
-- number of 16-bit range-checked values
variable {rc16_len : ℕ}
-- number of 128-bit range-checked values
variables {rc_len : ℕ}
-- this is public data
variable {initial_rc_addr : F}
-- this comes from range check constraints
variable {rc16... |
fb505a475a72112fc901c1856f8dad9d17210618 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/algebra/groupoid.hlean | 3cea3268a31d190194e0c6850e31dd346fb37e2d | [
"Apache-2.0"
] | permissive | chubbymaggie/lean | 0d06ae25f9dd396306fb02190e89422ea94afd7b | d2c7b5c31928c98f545b16420d37842c43b4ae9a | refs/heads/master | 1,611,313,622,901 | 1,430,266,839,000 | 1,430,267,083,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,054 | hlean | /-
Copyright (c) 2014 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: algebra.groupoid
Author: Jakob von Raumer
Ported from Coq HoTT
-/
import .precategory.iso .group
open eq is_trunc iso category path_algebra nat unit
namespace category
structu... |
ce5ccbd54bbf85b0f88a05dd927888e4881bd602 | 4aca55eba10c989f0d58647d3c2f371e7da44355 | /src/monoid_hom.lean | af3acfe5d145ad455241a7d0909ddda32b9f4fa0 | [] | no_license | eric-wieser/l534zhan-my_project | f9fc75fb5454405e1a2fa9b56cf96c355f6f2336 | febc91e76b7b00fe2517f258ca04d27b7f35fcf3 | refs/heads/master | 1,689,218,910,420 | 1,630,439,440,000 | 1,630,439,440,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 881 | lean | import group_theory.subgroup
/-!
This file supplements two instances relavant to monoid homomorphisms
-/
namespace monoid_hom
variables {G N: Type*} [group G] [group N]
/-- If the equality in `N` is decidable and `f : G →* N` is a `monoid_hom`,
then the membership of `f.ker.carrier` is decidable. -/
... |
521bc0c0b8351ff25859b335172463d858d8dbdb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/interactive/stdOutput.lean | 856a63b5898e8b51ca3a2920e0bba2a5715b3375 | [
"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 | 68 | lean | import Lean
elab "foo" : command => IO.println "hi"
#eval "ho"
foo
|
99271a2f65996e908398d9667e208f009fff75c7 | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love08_operational_semantics_exercise_sheet.lean | ba379880c7cd07f53b38143f20742dd3ecb36441 | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 5,000 | lean | /- LoVe Exercise 8: Operational Semantics -/
import .love08_operational_semantics_demo
namespace LoVe
/- Question 1: Program Equivalence -/
/- For this question, we introduce the notation of program equivalence
`p₁ ≈ p₂`. -/
def program_equiv (S₁ S₂ : program) : Prop :=
∀s t, (S₁, s) ⟹ t ↔ (S₂, s) ⟹ t
local infi... |
f489b62338220faa067a2849da7c57877d1ee58b | da3a76c514d38801bae19e8a9e496dc31f8e5866 | /library/init/meta/quote.lean | 73ddb72439dfa1342e782a4f5c8d3795c88415d8 | [
"Apache-2.0"
] | permissive | cipher1024/lean | 270c1ac5781e6aee12f5c8d720d267563a164beb | f5cbdff8932dd30c6dd8eec68f3059393b4f8b3a | refs/heads/master | 1,611,223,459,029 | 1,487,566,573,000 | 1,487,566,573,000 | 83,356,543 | 0 | 0 | null | 1,488,229,336,000 | 1,488,229,336,000 | null | UTF-8 | Lean | false | false | 2,020 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
prelude
import init.meta.tactic
open tactic
meta class has_quote (α : Type) :=
(quote : α → pexpr)
@[inline] meta def quote {α : Type} [has_quote α] : α ... |
c35dc4935e81877962cc19666ed8be83636bc140 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/omega/nat/preterm.lean | 0a052e624ddecb11738543484257c36897baccee | [] | 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,624 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Seul Baek
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.omega.term
import Mathlib.PostPort
universes l
namespace Mathlib
/-
Linear natural number a... |
9899e301c882a512cafbf7c281aa7c3895be17f3 | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /03_Propositions_and_Proofs.org.38.lean | 7e141cfca7f290dc2ccb30ed26e9616a2f5f1c3a | [] | no_license | cjmazey/lean-tutorial | ba559a49f82aa6c5848b9bf17b7389bf7f4ba645 | 381f61c9fcac56d01d959ae0fa6e376f2c4e3b34 | refs/heads/master | 1,610,286,098,832 | 1,447,124,923,000 | 1,447,124,923,000 | 43,082,433 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 949 | lean | /- page 45 -/
import standard
open classical
variables p q r : Prop
-- distributivity
example : p ∧ (q ∨ r) ↔ (p ∧ q) ∨ (p ∧ r) :=
iff.intro
(assume H : p ∧ (q ∨ r),
have Hp : p, from and.left H,
or.elim (and.right H)
(assume Hq : q,
show (p ∧ q) ∨ (p ∧ r), from or.inl (and.intro Hp Hq))
(assume Hr : r,
show (p ∧ q)... |
22259269307d8bd8e4932aa1689097aafe6c7151 | 5c7fe6c4a9d4079b5457ffa5f061797d42a1cd65 | /src/library/src_real_field_lemmas.lean | c5c9b7fb74eb10f36072b69b4c39ad9b53688c0a | [] | no_license | gihanmarasingha/mth1001_tutorial | 8e0817feeb96e7c1bb3bac49b63e3c9a3a329061 | bb277eebd5013766e1418365b91416b406275130 | refs/heads/master | 1,675,008,746,310 | 1,607,993,443,000 | 1,607,993,443,000 | 321,511,270 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,593 | lean | import .src_real_field
import .src_ordered_field_lemmas
import data.set.basic
import tactic
namespace mth1001
namespace myreal
open myreal_field myordered_field classical
open_locale classical
variables {R : Type} [myreal_field R]
def has_upper_bound (S : set R) := ∃ u : R, upper_bound u S
def has_lower_bound (S... |
3c25c4459d4699842b9967a0420c5e6c3c6d16c5 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/standard/decidable.lean | 3546956ab24f8f6fb238e7ba3fd99239a179045a | [
"Apache-2.0"
] | permissive | silky/lean | 79c20c15c93feef47bb659a2cc139b26f3614642 | df8b88dca2f8da1a422cb618cd476ef5be730546 | refs/heads/master | 1,610,737,587,697 | 1,406,574,534,000 | 1,406,574,534,000 | 22,362,176 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 2,891 | lean | -- Copyright (c) 2014 Microsoft Corporation. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Author: Leonardo de Moura
import logic
namespace decidable
inductive decidable (p : Prop) : Type :=
| inl : p → decidable p
| inr : ¬p → decidable p
theorem induction_on {p : Pr... |
5251c45e3af9bd812337c08fd6455fc3c3fd0691 | 618003631150032a5676f229d13a079ac875ff77 | /src/tactic/tauto.lean | 9b0274f472d6b595768985e4e441bcc214ee390d | [
"Apache-2.0"
] | permissive | awainverse/mathlib | 939b68c8486df66cfda64d327ad3d9165248c777 | ea76bd8f3ca0a8bf0a166a06a475b10663dec44a | refs/heads/master | 1,659,592,962,036 | 1,590,987,592,000 | 1,590,987,592,000 | 268,436,019 | 1 | 0 | Apache-2.0 | 1,590,990,500,000 | 1,590,990,500,000 | null | UTF-8 | Lean | false | false | 9,702 | 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.hint
namespace tactic
open expr
open tactic.interactive ( casesm constructor_matching )
/--
find all assumptions of the shape `¬ (p ∧ q)` or `¬ (p ∨ q)` ... |
63bad01ae7364d2309af48f97c56c86385888bd3 | 2c41ae31b2b771ad5646ad880201393f5269a7f0 | /Lean/Qualities/Speed.lean | 49390551268609295b3809f3a4597d3bd0b738c6 | [] | no_license | kevinsullivan/Boehm | 926f25bc6f1a8b6bd47d333d936fdfc278228312 | 55208395bff20d48a598b7fa33a4d55a2447a9cf | refs/heads/master | 1,586,127,134,302 | 1,488,252,326,000 | 1,488,252,326,000 | 32,836,930 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 538 | lean | -- Speed
/-
[Speed] is parameterized by an instance of type [SystemType], and it's a sub-attribute to [MissionEffective].
-/
import SystemModel.System
inductive Speed (sys_type: SystemType): Prop
| intro : (exists speed: sys_type ^.Contexts -> sys_type ^.Phases -> sys_type ^.Stakeholders -> @SystemInstance... |
c1e2255e86fe0fc977dfb3a895168ba43517e5ca | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/data/set/intervals/basic.lean | 50b06d79a57e5f3d96daa97dde640391c0af7bc2 | [
"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 | 20,743 | 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
-/
import order.lattice algebra.order_functions algebra.ordered_field tactic.tauto
/-!
# Intervals
In any preorder `α`, we define inte... |
422a8dde32787f2869755901c16370756bf2e237 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/topology/instances/add_circle.lean | 008031f3968c7244f1eeb5e4e30ce1d52ed4f1d0 | [
"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,143 | lean | /-
Copyright (c) 2022 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Oliver Nash
-/
import group_theory.divisible
import group_theory.order_of_element
import ring_theory.int.basic
import algebra.order.floor
import algebra.order.to_interval_mod
import topol... |
2498feb942232c0755b210fa7d10d6eaac08e47f | b2fe74b11b57d362c13326bc5651244f111fa6f4 | /src/analysis/specific_limits.lean | fbee36253c7cd14907fb3b599c02fdd9404da399 | [
"Apache-2.0"
] | permissive | midfield/mathlib | c4db5fa898b5ac8f2f80ae0d00c95eb6f745f4c7 | 775edc615ecec631d65b6180dbcc7bc26c3abc26 | refs/heads/master | 1,675,330,551,921 | 1,608,304,514,000 | 1,608,304,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 24,670 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import analysis.normed_space.basic
import algebra.geom_sum
import order.filter.archimedean
import order.iterate
import topology.instances.ennreal
import tactic.ring_e... |
da69e384c2ec311bcf62f5ce4717fe17859b0d7d | c777c32c8e484e195053731103c5e52af26a25d1 | /src/measure_theory/function/ae_eq_of_integral.lean | 9ab0cfcf0be01546c1f0431efc7c2fdf8ab54404 | [
"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 | 29,220 | lean | /-
Copyright (c) 2021 Rémy Degenne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Rémy Degenne
-/
import analysis.normed_space.dual
import measure_theory.function.strongly_measurable.lp
import measure_theory.integral.set_integral
/-! # From equality of integrals to ... |
b9a58fd128aaee6c74280319c43954b7db3f03ed | dfd42d30132c2867977fefe7edae98b6dc703aeb | /src/complex_analysis_prep.lean | c28ecd83014f01ddb74a847e11ce03fc8e53d0de | [] | no_license | justadzr/lean-2021 | 1e42057ac75c794c94b8f148a27a24150c685f68 | dfc6b30de2f27bdba5fbc51183e2b84e73a920d1 | refs/heads/master | 1,689,652,366,522 | 1,630,313,809,000 | 1,630,313,809,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 26,992 | lean | --- Will clean up these imports
import tactic
import analysis.calculus.iterated_deriv
import topology.continuous_function.polynomial
import topology.separation
import topology.path_connected
import analysis.complex.basic
import analysis.calculus.tangent_cone
import analysis.normed_space.units
import analysis.asymptotic... |
c0c0328d3408496f938cdceb36cda8d4401f7835 | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world9/level4.lean | 999bb784b5bcad6ebc73015f66bcd06150811a3e | [
"Apache-2.0"
] | permissive | ChrisHughes24/natural_number_game | c7c00aa1f6a95004286fd456ed13cf6e113159ce | 9d09925424da9f6275e6cfe427c8bcf12bb0944f | refs/heads/master | 1,600,715,773,528 | 1,573,910,462,000 | 1,573,910,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,288 | lean | import game.world9.level3 -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 4: `mul_left_cancel`
This is the last of the bonus multiplication levels.
`mul_left_cancel` will be useful in inequality world.
It might be worth noting that `revert` is the opposite of `intro`.
`revert` can be a convenient... |
c1c8a38d1126de3d28bb07ba6722375cec010e68 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /src/Lean/Data/Name.lean | c853d9b55c99e7bd0204b26d1ce92522da896cca | [
"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 | 5,465 | lean | /-
Copyright (c) 2018 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import Std.Data.HashSet
import Std.Data.RBMap
import Std.Data.RBTree
namespace Lean
instance : Coe String Name := ⟨Name.mkSimple⟩
namespace Name
@[export ... |
3493215bd310c031e6724b8d3759506d196ec346 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/cc_ac_bug.lean | a55367e8701b68f190415b2d9d110fa8ac508dee | [
"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 | 349 | lean | instance aa : is_associative ℕ (+) := ⟨nat.add_assoc⟩
instance ac : is_commutative ℕ (+) := ⟨nat.add_comm⟩
instance ma : is_associative ℕ (*) := ⟨nat.mul_assoc⟩
instance mc : is_commutative ℕ (*) := ⟨nat.mul_comm⟩
example (a b c : nat) (f : nat → nat → nat) : f (b * c) (c * b * a) = f (c * b) (a * c * b) :=
by ac_refl... |
93affb9e0e48c09ce467cef941531dce382b3a4b | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/nary_overload2.lean | 483cc9271e2d064bdc284019c18e8f693e132c8b | [
"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 | 366 | lean | import data.list data.examples.vector
open nat list vector
check [1, 2, 3]
check ([1, 2, 3] : vector nat _)
check ([1, 2, 3] : list nat)
check (#list [1, 2, 3])
check (#vector [1, 2, 3])
example : (#vector [1, 2, 3]) = [1, 2, 3] :=
rfl
example : (#vector [1, 2, 3]) = ([1, 2, 3] : vector nat _) :=
rfl
example : (#li... |
3ab197b18666d94cf7de78dc157c154d1f801a20 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Compiler/LCNF/MonoTypes.lean | f3a1e7e6afd9cffc839fbe57f5a9244661848627 | [
"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 | 1,557 | lean | /-
Copyright (c) 2022 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Compiler.LCNF.InferType
namespace Lean.Compiler.LCNF
/--
Convert a LCNF type from the base phase to the mono phase.
LCNF types in the mono ph... |
325bab44f77ee6200388668150b86af163ff2884 | 42610cc2e5db9c90269470365e6056df0122eaa0 | /hott/algebra/category/iso.hlean | cec39ec3197527fc4658bd385a73b05e665a2837 | [
"Apache-2.0"
] | permissive | tomsib2001/lean | 2ab59bfaebd24a62109f800dcf4a7139ebd73858 | eb639a7d53fb40175bea5c8da86b51d14bb91f76 | refs/heads/master | 1,586,128,387,740 | 1,468,968,950,000 | 1,468,968,950,000 | 61,027,234 | 0 | 0 | null | 1,465,813,585,000 | 1,465,813,585,000 | null | UTF-8 | Lean | false | false | 16,906 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Floris van Doorn, Jakob von Raumer
-/
import .precategory types.sigma arity
open eq category prod equiv is_equiv sigma sigma.ops is_trunc
namespace iso
structure split_mono [clas... |
01d0a9ee88eebffe1e2907f21874fcc96e0b1d75 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /tests/lean/run/hmul2.lean | 2dfceddb128c02e97e630ce84a3f76fa77fbc1a4 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 652 | lean | instance [Mul α] : HMul α (Array α) (Array α) where
hMul a as := as.map (a * .)
#check fun x => x * 2
#check fun y : Int => let x := 1; x * y
#check fun y : Int => let* x := 1; x * y
def f1 (n : Nat) (i : Int) :=
i * n
def f2 (n : Nat) (i : Int) :=
n * i
def f3 (n : Nat) (i : Int) :=
n * (n * (n * (n * i))... |
c4b55d83e34a389b6d041493b52d9c256632ba5e | af6139dd14451ab8f69cf181cf3a20f22bd699be | /library/init/native/default.lean | 0a5e8fe4c4d0720acd92454e961b5dc2a53a7c7c | [
"Apache-2.0"
] | permissive | gitter-badger/lean-1 | 1cca01252d3113faa45681b6a00e1b5e3a0f6203 | 5c7ade4ee4f1cdf5028eabc5db949479d6737c85 | refs/heads/master | 1,611,425,383,521 | 1,487,871,140,000 | 1,487,871,140,000 | 82,995,612 | 0 | 0 | null | 1,487,905,618,000 | 1,487,905,618,000 | null | UTF-8 | Lean | false | false | 23,794 | lean | /-
Copyright (c) 2016 Jared Roesch. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jared Roesch
-/
prelude
import init.meta.format
import init.meta.expr
import init.category.state
import init.data.string
import init.data.list.instances
import init.native.ir
import in... |
6a4e1771d23dcbedf920439e3d4af7cbcf3a1544 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/analysis/convex/krein_milman.lean | e1f8047f531c47d3a9e023486a132e86d5c5b659 | [
"Apache-2.0"
] | permissive | ramonfmir/mathlib | c5dc8b33155473fab97c38bd3aa6723dc289beaa | 14c52e990c17f5a00c0cc9e09847af16fabbed25 | refs/heads/master | 1,661,979,343,526 | 1,660,830,384,000 | 1,660,830,384,000 | 182,072,989 | 0 | 0 | null | 1,555,585,876,000 | 1,555,585,876,000 | null | UTF-8 | Lean | false | false | 5,438 | 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 analysis.convex.exposed
import analysis.normed_space.hahn_banach.separation
/-!
# The Krein-Milman theorem
This file proves the Krein-Milman lemma and the Krein-... |
f7c47cae1685e2aa48611229e0cb50200bd8e4c3 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/analysis/calculus/parametric_integral.lean | 1e03a079d2c31afe08250ace973404643b4d1a9f | [
"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 | 14,570 | lean | /-
Copyright (c) 2021 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import measure_theory.integral.set_integral
import analysis.calculus.mean_value
/-!
# Derivatives of integrals depending on parameters
A parametric integral is a fu... |
b6bcfdb2f861eac0f4fda3a303a4abb9ccd7c19a | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/algebra/ring.lean | ab1d561c0a80ca7c1c8e73f89663e7afd10e6017 | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 7,876 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Leonardo de Moura
-/
prelude
import init.algebra.group
/- Make sure instances defined in this file have lower priority than the ones
defined for concrete stru... |
ce943479a407e9da65fb6a6905745438ec7b335e | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/topology/continuous_function/bounded.lean | 97d79c627990e05e3e6afc68bd34ba484deace25 | [
"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 | 52,315 | lean | /-
Copyright (c) 2018 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Mario Carneiro, Yury Kudryashov, Heather Macbeth
-/
import analysis.normed_space.operator_norm
import analysis.normed_space.star.basic
import topology.continuous_... |
b69f29ccc1e82fddc201dce314f456dbb5fc859b | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/constructor_cases.lean | 590f151539ce97c9a5737c46a8dc6155bc37df23 | [
"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 | 910 | lean | example (p q r : Prop) : p → q → r → r ∧ p ∧ q :=
begin
intros hp hq hr,
with_cases { repeat { constructor } },
case left { exact hr },
case right left { exact hp },
case right right { exact hq }
end
example (p q r : Prop) : p → q → r → r ∧ p ∧ q :=
begin
intros hp hq hr,
with_cases { repeat { constructo... |
17cae0a0daced66ae928ca4fe8261aa2dd015e77 | 649957717d58c43b5d8d200da34bf374293fe739 | /src/data/equiv/denumerable.lean | 091a74b63a4dfe3d05b3dc82d4a562b365ced53a | [
"Apache-2.0"
] | permissive | Vtec234/mathlib | b50c7b21edea438df7497e5ed6a45f61527f0370 | fb1848bbbfce46152f58e219dc0712f3289d2b20 | refs/heads/master | 1,592,463,095,113 | 1,562,737,749,000 | 1,562,737,749,000 | 196,202,858 | 0 | 0 | Apache-2.0 | 1,562,762,338,000 | 1,562,762,337,000 | null | UTF-8 | Lean | false | false | 8,833 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
Denumerable (countably infinite) types, as a typeclass extending
encodable. This is used to provide explicit encode/decode functions
from nat, where the functions are kn... |
9fdd61d63cb41cf9c44c62be8774a766c316f7eb | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Test/importMathbin/ImportMathbin.lean | e83c9558f59518fbb32c95f4e0da6c59a8bcd47d | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 83 | lean | import Mathbin
#lookup3 algebraic_geometry.Scheme
#check AlgebraicGeometry.Scheme
|
136675b3a101306859731bf08f2eaf319e534869 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/do_eqv_proofs.lean | 6b822d3dd1ee2b44e3c70edd4277e81e460dd755 | [
"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 | 612 | lean | theorem ex1 [Monad m] [LawfulMonad m] (b : Bool) (ma : m α) (mb : α → m α) :
(do let mut x ← ma
if b then
x ← mb x
pure x)
=
(ma >>= fun x => if b then mb x else pure x) := by
cases b <;> simp
attribute [simp] map_eq_pure_bind seq_eq_bind_map
theorem ex2 [Monad m] [LawfulMonad ... |
a62fc8201c0b01615a3315214a7bf03865f54c7c | 130c49f47783503e462c16b2eff31933442be6ff | /stage0/src/Lean/Server/Rpc/Basic.lean | 9254288f160bf5927b670b0baa082f035e6632ea | [
"Apache-2.0"
] | permissive | Hazel-Brown/lean4 | 8aa5860e282435ffc30dcdfccd34006c59d1d39c | 79e6732fc6bbf5af831b76f310f9c488d44e7a16 | refs/heads/master | 1,689,218,208,951 | 1,629,736,869,000 | 1,629,736,896,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,541 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
import Lean.Data.Lsp.Extra
/-! Allows LSP clients to make Remote Procedure Calls to the server.
The single use case for these is to allow the infoview UI... |
d900c258dd98dedac7d2f443ffa9cd8a2c42bb24 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/algebra/module/submodule_lattice.lean | 65ee4271dab8487ddc01f85a4cd090c1a4827f54 | [
"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 | 8,783 | 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, Kevin Buzzard, Yury Kudryashov
-/
import algebra.module.submodule
import algebra.punit_instances
/-!
# The lattice structure on `submodule`s
This file... |
3282ab6907a1a41bfef1001d253fa67ebc7226f2 | 7cdf3413c097e5d36492d12cdd07030eb991d394 | /src/game/world3/level5.lean | 0cb4dc6f77a214dbb3a3cd2581ce2f6abd721097 | [] | 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 | 1,158 | lean | import game.world3.level4 -- hide
import mynat.mul -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 5: `mul_assoc`
Currently our tools for multiplication include the
following:
* `mul_zero m : m * 0 = 0`
* `zero_mul m : 0 * m = 0`
* `mul_succ a b : a * succ b = a * b + a`
* `mul_add t a b : t * ... |
4fe7862cda0bce79f94b06ba3148cd9b057faf43 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/fresh_names_auto.lean | d9924f8ad83b8a729be39fc28533d9a86f9dffea | [] | 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 | 987 | lean | /-
Copyright (c) 2020 Jannis Limperg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Jannis Limperg
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.sum
import Mathlib.meta.rb_map
import Mathlib.tactic.dependencies
import Mathlib.PostPo... |
c7a9aa1fb38eb8dd08da502ed27d9e183b3f38ad | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/ring_theory/witt_vector/identities.lean | 5c98a4fe921e888a88e7d161f20e558d3d611910 | [
"Apache-2.0"
] | permissive | robertylewis/mathlib | 3d16e3e6daf5ddde182473e03a1b601d2810952c | 1d13f5b932f5e40a8308e3840f96fc882fae01f0 | refs/heads/master | 1,651,379,945,369 | 1,644,276,960,000 | 1,644,276,960,000 | 98,875,504 | 0 | 0 | Apache-2.0 | 1,644,253,514,000 | 1,501,495,700,000 | Lean | UTF-8 | Lean | false | false | 5,750 | 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.frobenius
import ring_theory.witt_vector.verschiebung
import ring_theory.witt_vector.mul_p
/-!
## Identities between operations on th... |
8df022f9fa1556bf0c070e63dd4c880661152fe2 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Parser/StrInterpolation.lean | 25322b4825f9b906e79e4081a6c4b0f84c7f1610 | [
"Apache-2.0"
] | permissive | williamdemeo/lean4 | 72161c58fe65c3ad955d6a3050bb7d37c04c0d54 | 6d00fcf1d6d873e195f9220c668ef9c58e9c4a35 | refs/heads/master | 1,678,305,356,877 | 1,614,708,995,000 | 1,614,708,995,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,786 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Parser.Basic
namespace Lean.Parser
def isQuotableCharForStrInterpolant (c : Char) : Bool :=
c == '{' || isQuotableCharDefault c
partial def ... |
b3fd9717309ce7c4b7c620e7d9e15b048224d100 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/inner_product_space/of_norm.lean | 7c36dba00df14b273e17f36689d81e9f1c3d41bb | [
"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 | 16,022 | lean | /-
Copyright (c) 2020 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import topology.algebra.algebra
import analysis.inner_product_space.basic
/-!
# Inner product space derived from a norm
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4... |
9b993d370cd3237c69644586dca2ccea485fe6fe | 1446f520c1db37e157b631385707cc28a17a595e | /stage0/src/Init/Lean/Elab/Quotation.lean | 26d0d9491d128afdbcf649718b6630ebcee372f5 | [
"Apache-2.0"
] | permissive | bdbabiak/lean4 | cab06b8a2606d99a168dd279efdd404edb4e825a | 3f4d0d78b2ce3ef541cb643bbe21496bd6b057ac | refs/heads/master | 1,615,045,275,530 | 1,583,793,696,000 | 1,583,793,696,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 22,461 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
Elaboration of syntax quotations as terms and patterns (in `match_syntax`). See also `./Hygiene.lean` for the basic
hygiene workings and data types.
-/
prelud... |
9ff083ed57d738179d58241ded5766781f642efa | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/finset/sum.lean | 8933dd3cdc3e6073583b0931e8c550fd376e559e | [
"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,824 | 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 data.finset.card
import data.multiset.sum
/-!
# Disjoint sum of finsets
This file defines the disjoint sum of two finsets as `finset (α ⊕ β)`. Beware not to confu... |
035258348d3bd7579b532594b33cb4e6cc4bc85d | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/topology/sheaves/sheaf_condition/opens_le_cover.lean | 42427fa1f5c9236fa0da853f117c7e21c6009f11 | [
"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 | 9,457 | 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 topology.sheaves.presheaf
import category_theory.limits.final
import topology.sheaves.sheaf_condition.pairwise_intersections
/-!
# Another version of the shea... |
89f8c28d1cd1903d82a6607c1515ed2c3186c67d | 2c096fdfecf64e46ea7bc6ce5521f142b5926864 | /src/Lean/Elab/ElabRules.lean | a47bab0bfc2c8e5dad47763a8d91ec022d16b867 | [
"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 | Kha/lean4 | 1005785d2c8797ae266a303968848e5f6ce2fe87 | b99e11346948023cd6c29d248cd8f3e3fb3474cf | refs/heads/master | 1,693,355,498,027 | 1,669,080,461,000 | 1,669,113,138,000 | 184,748,176 | 0 | 0 | Apache-2.0 | 1,665,995,520,000 | 1,556,884,930,000 | Lean | UTF-8 | Lean | false | false | 5,630 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Elab.MacroArgUtil
import Lean.Elab.AuxDef
namespace Lean.Elab.Command
open Lean.Syntax
open Lean.Parser.Term hiding macroArg
open Lean.Parser.C... |
7da1ba012d78f586051dedf431b0ea6dbfbd9ac5 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/topology/algebra/infinite_sum.lean | 3656c1706bba2851b1447be320ba062bcb8d199f | [
"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 | 50,757 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.big_operators.intervals
import topology.instances.real
import topology.algebra.module
import algebra.indicator_function
import data.equiv.encodable.lat... |
92c0aca8851c005d383dda89ce12fb2e9ea8e0c2 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /analysis/real.lean | e12e7fd14582225fc0b6c74f663220235eaae650 | [
"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 | 15,142 | 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
The real numbers ℝ.
They are constructed as the topological completion of ℚ. With the following steps:
(1) prove that ℚ forms a uniform space.
(2) subt... |
3d71940c528b79370ecc9d464a138706203309d1 | 037dba89703a79cd4a4aec5e959818147f97635d | /src/2020/logic/logic_video.lean | 643b5fa0e3f29f9786be11ab30b2989fff9f39d9 | [] | no_license | ImperialCollegeLondon/M40001_lean | 3a6a09298da395ab51bc220a535035d45bbe919b | 62a76fa92654c855af2b2fc2bef8e60acd16ccec | refs/heads/master | 1,666,750,403,259 | 1,665,771,117,000 | 1,665,771,117,000 | 209,141,835 | 115 | 12 | null | 1,640,270,596,000 | 1,568,749,174,000 | Lean | UTF-8 | Lean | false | false | 2,102 | lean | import tactic
-- Definition: a Proposition is a type `P`, where `P : Prop`.
variables (P Q R : Prop)
-- In Lean, `P → Q` means `P ⇒ Q`
example : P → P :=
begin
intro hP, -- let hP be the hypothesis that P is true
exact hP, -- our goal is exactly our hypothesis
end
example : P → (Q → P) :=
begin
intro hP, -- ... |
1fd8b7bfc53a117b9c5c5a15de87324655fa04f9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/algebra/group/commute.lean | b8227479be7cc704cf0c974a9a6d07566da16a5f | [
"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,662 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland, Yury Kudryashov
-/
import algebra.group.semiconj
/-!
# Commuting pairs of elements in monoids
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file ... |
195d11a0d7587105e4d2337d68e849456202512f | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /library/init/data/option/basic.lean | aa98a6cb1eab4084fce598a1e368fce2f0f7b26c | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,148 | 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
-/
prelude
import init.logic init.category
open decidable
universes u v
namespace option
def to_monad {m : Type → Type} [monad m] [alternative m] {A} : opti... |
33e62343f37416c336fb21249e495bf1a2855047 | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/let_elim_issue.lean | 6e002b596560260fba7b232e87b3ee362f8b404e | [
"Apache-2.0"
] | permissive | pacchiano/lean | 9324b33f3ac3b5c5647285160f9f6ea8d0d767dc | fdadada3a970377a6df8afcd629a6f2eab6e84e8 | refs/heads/master | 1,611,357,380,399 | 1,489,870,101,000 | 1,489,870,101,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 124 | lean | import system.io
open io
def tst : io unit :=
put_str "hello\n"
>> put_str "world\n"
>> put_str "from Lean\n"
#eval tst
|
c39a556af891428af39d24aaecef30061d00373e | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/linear_algebra/quadratic_form/basic.lean | d67715f33d6d6fd30c02efa162c4023bc6b58e81 | [
"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 | 36,605 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Kexing Ying, Eric Wieser
-/
import algebra.invertible
import linear_algebra.bilinear_form
import linear_algebra.matrix.determinant
import linear_algebra.special_linear_group... |
5a686746517161d5faeb6a7064210026b19aebac | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/data/padics/padic_norm.lean | 221f80a272163970df9ebdfa5c46be4fb2a51baf | [
"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 | 25,160 | lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import algebra.gcd_monoid
import algebra.field_power
import ring_theory.multiplicity
import data.real.cau_seq
import tactic.ring_exp
import tactic.basic
/-!
# p-ad... |
0527ac4c7a6e2e5dfb263464cf7a10fd112c9fd7 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/limits/colimit_limit.lean | 443a4fdc24ba3d612fa8b35019cc3ce20a1c5198 | [
"Apache-2.0"
] | permissive | Vierkantor/mathlib | 0ea59ac32a3a43c93c44d70f441c4ee810ccceca | 83bc3b9ce9b13910b57bda6b56222495ebd31c2f | refs/heads/master | 1,658,323,012,449 | 1,652,256,003,000 | 1,652,256,003,000 | 209,296,341 | 0 | 1 | Apache-2.0 | 1,568,807,655,000 | 1,568,807,655,000 | null | UTF-8 | Lean | false | false | 4,441 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.types
import category_theory.functor.currying
import category_theory.limits.functor_category
/-!
# The morphism comparing a colimit of ... |
72274d37a9d49517d4be9a1939f8ce16582664f3 | 1d265c7dd8cb3d0e1d645a19fd6157a2084c3921 | /src/lessons/lesson13.lean | 6f2c3bc05a28fa6623577a8b0b3e7f389dd342cd | [
"MIT"
] | permissive | hanzhi713/lean-proofs | de432372f220d302be09b5ca4227f8986567e4fd | 4d8356a878645b9ba7cb036f87737f3f1e68ede5 | refs/heads/master | 1,585,580,245,658 | 1,553,646,623,000 | 1,553,646,623,000 | 151,342,188 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 1,352 | lean | example : ∃ P Q : Prop, (P ∨ Q) ∧ (¬P ∨ ¬Q) ∧ (¬P ∨ Q) :=
begin
apply exists.intro false,
apply exists.intro true,
split,
show false ∨ true, from or.inr true.intro,
split,
show ¬false ∨ ¬true,
apply or.inl,
assume f, assumption,
show ¬false ∨ t... |
b8af3d2fe0633efddd9fa7eee332d6fe4f742cb7 | e00ea76a720126cf9f6d732ad6216b5b824d20a7 | /src/ring_theory/algebraic.lean | 71c34334bbd9a5a4c6827049d3410c0cf28c80bd | [
"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 | 3,408 | 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 ring_theory.integral_closure
/-!
# Algebraic elements and algebraic extensions
An element of an R-algebra is algebraic over R if it is the root of a nonzero... |
5dfafae195f516410a8800d61c54d5e44e6b3078 | 5ae26df177f810c5006841e9c73dc56e01b978d7 | /src/category/monad/cont.lean | 02c0fad9c53f542f75a4681d2f80963ccb01e5dc | [
"Apache-2.0"
] | permissive | ChrisHughes24/mathlib | 98322577c460bc6b1fe5c21f42ce33ad1c3e5558 | a2a867e827c2a6702beb9efc2b9282bd801d5f9a | refs/heads/master | 1,583,848,251,477 | 1,565,164,247,000 | 1,565,164,247,000 | 129,409,993 | 0 | 1 | Apache-2.0 | 1,565,164,817,000 | 1,523,628,059,000 | Lean | UTF-8 | Lean | false | false | 8,780 | lean | /-
Copyright (c) 2019 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Simon Hudon
Monad encapsulating continuation passing programming style, similar to
Haskell's `Cont`, `ContT` and `MonadCont`:
http://hackage.haskell.org/package/mtl-2.2.2/docs/Control-Mon... |
2a73497ed0ea25e2ce519b13668fe96b3f3081e2 | 4f643cce24b2d005aeeb5004c2316a8d6cc7f3b1 | /omin/cells.lean | b963796c492658228a270738b0594b5b082946e2 | [] | no_license | rwbarton/lean-omin | da209ed061d64db65a8f7f71f198064986f30eb9 | fd733c6d95ef6f4743aae97de5e15df79877c00e | refs/heads/master | 1,674,408,673,325 | 1,607,343,535,000 | 1,607,343,535,000 | 285,150,399 | 9 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,653 | lean | import o_minimal.o_minimal
import data.set.disjointed
import data.setoid.partition
namespace o_minimal
variables {R : Type*} [DUNLO R]
variables (S : struc R) [definable_constants S] [is_definable_le S R]
namespace struc
def cell : Π {n}, set (finvec n R) → Prop
| 0 s := s = set.univ
| (n+1) s := ∃ (s₀ : set (f... |
2a167eadf2349c331626bce67d57facea0afd16d | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /tests/lean/run/simp_tc_err.lean | f728247647101d114fd29a421a47db5177538fc5 | [
"Apache-2.0"
] | permissive | anfelor/lean | 584b91c4e87a6d95f7630c2a93fb082a87319ed0 | 31cfc2b6bf7d674f3d0f73848b842c9c9869c9f1 | refs/heads/master | 1,610,067,141,310 | 1,585,992,232,000 | 1,585,992,232,000 | 251,683,543 | 0 | 0 | Apache-2.0 | 1,585,676,570,000 | 1,585,676,569,000 | null | UTF-8 | Lean | false | false | 470 | lean | def c : ℕ := default _
def d : ℕ := default _
class foo (α : Type)
-- type class resolution for [foo α] will always time out
instance foo.foo {α} [foo α] : foo α := ‹foo α›
-- would break simp on any term containing c
@[simp] lemma c_eq_d [foo ℕ] : c = d := by refl
set_option trace.simplify.rewrite true
example : c ... |
bd94f385a3691392fc105ea67a75976044f2730f | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/nat/with_bot.lean | 6f1b74c9e3dae374dd3edb4e2d0154a9c3a66c76 | [
"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 | 2,164 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Chris Hughes
-/
import data.nat.order.basic
import algebra.order.monoid.with_top
/-!
# `with_bot ℕ`
Lemmas about the type of natural numbers with a bottom element adjoined.
-/
namespa... |
b4b2a4547d981fedf91bbacc2aaa65234ed2802b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/metric_space/baire.lean | 21e4a43a3f940d65bb1c6fe0795bbed4db01fa4f | [
"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 | 16,555 | lean | /-
Copyright (c) 2019 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel
-/
import analysis.specific_limits.basic
import topology.G_delta
import topology.sets.compacts
/-!
# Baire theorem
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
cbcbfc6fb26f06856026ae1d85c62ccd0f81266e | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/vector/default.lean | 971039cf36e177b978b49c987f4a8a45f87e7246 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 753 | lean | import .basic .simplify_eq .init_last .map_accum_lemmas .repeat_lemmas .rotate .tail_lemmas .zero_length_lemmas
universe variables u
namespace vector
variable {α : Type u}
section ind
open nat
parameter {α' : Type u}
variables {P : ∀ {n : ℕ}, vector α' n → Prop}
variables {n : ℕ} (v : vector α' n)
variables h₀ ... |
4ff2a4cd1f5bed2e09bdb96f36766a0d9e9d46d2 | da23b545e1653cafd4ab88b3a42b9115a0b1355f | /src/tidy/its.lean | 0c0b263a172e2a357e760f5aff063b467208de2f | [] | no_license | minchaowu/lean-tidy | 137f5058896e0e81dae84bf8d02b74101d21677a | 2d4c52d66cf07c59f8746e405ba861b4fa0e3835 | refs/heads/master | 1,585,283,406,120 | 1,535,094,033,000 | 1,535,094,033,000 | 145,945,792 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 574 | 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 .transport
namespace tactic
meta def its { α : Type } (e : expr) (discharger : tactic α) : tactic α := (`[refine (transport %%e _)] <|> `[refine ... |
f06d2067026f4279ef814f9d5d87f1a71a122c2b | 0851884047bb567d19e188e8f1ad959c5ae9c5ce | /src/M1P2/sheet-6.lean | c1610a8748826cb38209e3f9694c13b634f28b3e | [
"Apache-2.0"
] | permissive | yz5216/xena-UROP-2018 | 00d3f71a831324966d40d302544ed2cbbec3fd0f | 5e9da9dc64dc51897677f8b73ab9f94061a8d977 | refs/heads/master | 1,584,922,436,989 | 1,531,487,250,000 | 1,531,487,250,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,235 | lean | import algebra.order data.fintype group_theory.subgroup data.set.basic data.equiv
variables {G : Type*} [group G]
variables (H K : set G)
variables [is_subgroup H] [is_subgroup K]
-- sheet 6
-- 1. Let G be a group. For each of the following statements, say whether or not it is true in general, and give a proof or a ... |
4271957616fbbb184c69e98b85b9436c97474fe9 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/run/817.lean | f658ce79951478cb1e649367edaa3a0c0523da9d | [
"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 | 254 | lean | variables A B : Prop
premises (H₁ : A) (H₂ : A → B)
example : B :=
suffices A ∧ (A → B), from and.right this (and.left this),
and.intro H₁ H₂
example : B :=
suffices H : A ∧ (A → B), from and.right H (and.left H),
and.intro H₁ H₂
|
5e5424868352e93396d182ba82f985fcb6732913 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/cache.lean | 2616b6dbcfacfabad7e1290e454f81f04fe72757 | [] | 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,819 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.tactic.doc_commands
import Mathlib.PostPort
namespace Mathlib
/-!
# Instance cache tactic... |
a2712e05580d5a218e50d4329950da86b63285ab | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/enumNoConfusionIssue.lean | 5324dd263c5e5c029c6c921daf3f593598ba057a | [
"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 | 249 | lean | inductive MyBool :=
| MyTrue
| MyFalse
inductive T :=
| mk (b: MyBool) (u: Unit)
inductive isTrue: T → Type :=
| intro: isTrue (.mk .MyTrue ())
example {τ: T} (h: isTrue τ): Unit :=
match τ, h with
| .mk .MyTrue (), .intro => ()
|
ebb261d754217cf47d8402e172025189e66fa8b4 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/data/finsupp/pointwise.lean | 2daa18123b874af935745c3f4235a146e1a624e9 | [
"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 | 3,754 | 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 data.finsupp.basic
/-!
# The pointwise product on `finsupp`.
For the convolution product on `finsupp` when the domain has a binary operation,
see the type sy... |
7b3e86cd1956ff0ae2b96523af83c87abbd8b7bf | 0c2a1563358eee96560284575fc5cfbac6eddd09 | /src/polyomino/basic.lean | 73dfa67a4c3a3e22654d4b7f563baed5a4d05ee2 | [] | no_license | kendfrey/polyomino | 2f51d691418cf71180b8a938af66de2281694162 | a795101d85ee4d91aa33981381fbbcd10157dae7 | refs/heads/master | 1,670,925,213,201 | 1,598,668,120,000 | 1,598,668,120,000 | 291,185,915 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,632 | lean | import tactic
import tactic.nth_rewrite
namespace polyomino
inductive adjacent : ℤ × ℤ → ℤ × ℤ → Prop
| up {x y} : adjacent ⟨x, y⟩ ⟨x, y + 1⟩
| down {x y} : adjacent ⟨x, y⟩ ⟨x, y - 1⟩
| right {x y} : adjacent ⟨x, y⟩ ⟨x + 1, y⟩
| left {x y} : adjacent ⟨x, y⟩ ⟨x - 1, y⟩
@[symm] theorem adjacent.symm {x y} : adjacent x... |
6814d178a5986c9c1444a3c757f5bf850e9afa68 | d7189ea2ef694124821b033e533f18905b5e87ef | /galois/temporal/fixpoint.lean | a9ca3959f7756617b882e0d9dff744ff3ee82e29 | [
"Apache-2.0"
] | permissive | digama0/lean-protocol-support | eaa7e6f8b8e0d5bbfff1f7f52bfb79a3b11b0f59 | cabfa3abedbdd6fdca6e2da6fbbf91a13ed48dda | refs/heads/master | 1,625,421,450,627 | 1,506,035,462,000 | 1,506,035,462,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,555 | lean | import .temporal
.first
import galois.subset.fixpoint
open subset
namespace temporal
universes u v
def always_fixpoint {T : Type u} (P : tProp T) (X : tProp T) := P ∩ ◯ X
def until_fixpoint {T : Type u} (P Q : tProp T) (X : tProp T) :=
Q ∪ (P ∩ ◯ X)
lemma always_fixpoint_mono {T : Type u} (P : tProp T) :... |
09e5c0419605a9911e720dbee20c1c59a997f2fa | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/abelian/basic.lean | f720095bfa1e22b7508ee6f0f273add14ebd1183 | [
"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 | 30,092 | lean | /-
Copyright (c) 2020 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel, Johan Commelin, Scott Morrison
-/
import category_theory.limits.constructions.pullbacks
import category_theory.limits.shapes.biproducts
import category_theory.limits.sha... |
41e47038636f653bb8adc2de611ce4e295bcdb22 | 367134ba5a65885e863bdc4507601606690974c1 | /src/ring_theory/polynomial/vieta.lean | 84ea0f6e6513c278728ae68a706d605e4268f06e | [
"Apache-2.0"
] | permissive | kodyvajjha/mathlib | 9bead00e90f68269a313f45f5561766cfd8d5cad | b98af5dd79e13a38d84438b850a2e8858ec21284 | refs/heads/master | 1,624,350,366,310 | 1,615,563,062,000 | 1,615,563,062,000 | 162,666,963 | 0 | 0 | Apache-2.0 | 1,545,367,651,000 | 1,545,367,651,000 | null | UTF-8 | Lean | false | false | 4,419 | lean | /-
Copyright (c) 2020 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Hanting Zhang
-/
import ring_theory.polynomial.symmetric
/-!
# Vieta's Formula
The main result is `vieta.prod_X_add_C_eq_sum_esymm`, which shows that the product of linear terms
`λ + X... |
f8301c5808288a7f6455df5efda08e017cb52b55 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/tactic/rewrite_search/search_auto.lean | 752d4e99e49125cc32c36a334256fb36bad68a5a | [] | 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,096 | lean | /-
Copyright (c) 2020 Kevin Lacker, Keeley Hoek, Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Lacker, Keeley Hoek, Scott Morrison
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.data.buffer.basic
import Mathlib.meta... |
bb049402b22e0f09b1912291647efc0b0e064503 | 618003631150032a5676f229d13a079ac875ff77 | /src/analysis/asymptotics.lean | 79140b3cff90dd37d2ba0329526763a264a897c3 | [
"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 | 46,332 | lean | /-
Copyright (c) 2019 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad, Yury Kudryashov
-/
import analysis.normed_space.basic
import topology.local_homeomorph
/-!
# Asymptotics
We introduce these relations:
* `is_O_with c f g l` : "f is bi... |
a9e2fac135bb07311bba8e0ef5d5a46c7ad61641 | 4e3bf8e2b29061457a887ac8889e88fa5aa0e34c | /lean/love09_hoare_logic_homework_solution.lean | 7607800cddef3fae4fe29888abd7bb27ad9e1182 | [] | no_license | mukeshtiwari/logical_verification_2019 | 9f964c067a71f65eb8884743273fbeef99e6503d | 16f62717f55ed5b7b87e03ae0134791a9bef9b9a | refs/heads/master | 1,619,158,844,208 | 1,585,139,500,000 | 1,585,139,500,000 | 249,906,380 | 0 | 0 | null | 1,585,118,728,000 | 1,585,118,727,000 | null | UTF-8 | Lean | false | false | 1,261 | lean | /- LoVe Homework 9: Hoare Logic -/
import .love08_operational_semantics_exercise_sheet
import .love09_hoare_logic_demo
namespace LoVe
/- Question 1: Hoare Logic for Dijkstra's Guarded Command Language -/
/- Recall the definition of GCL from exercise 8: -/
#check gcl
namespace gcl
#check big_step
/- The definit... |
7487929a4c82a78177f638da37cf17ebaed06ae9 | 5756a081670ba9c1d1d3fca7bd47cb4e31beae66 | /Mathport/Syntax/Translate/Tactic/Mathlib/Congr.lean | 18ff30e90bed2280be6dc237c0b7e5bc8b1dbc2e | [
"Apache-2.0"
] | permissive | leanprover-community/mathport | 2c9bdc8292168febf59799efdc5451dbf0450d4a | 13051f68064f7638970d39a8fecaede68ffbf9e1 | refs/heads/master | 1,693,841,364,079 | 1,693,813,111,000 | 1,693,813,111,000 | 379,357,010 | 27 | 10 | Apache-2.0 | 1,691,309,132,000 | 1,624,384,521,000 | Lean | UTF-8 | Lean | false | false | 1,574 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathport.Syntax.Translate.Tactic.Basic
import Mathport.Syntax.Translate.Tactic.Lean3
import Mathport.Syntax.Translate.Tactic.Mathlib.RCases
open Lean
o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.