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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
192d59da4d0238e0340f21bdc96b9e62ab3670f9 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/algebra/order/floor.lean | 45197af099ff3fe65069459408eaf93a233bf1b7 | [
"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,626 | lean | /-
Copyright (c) 2020 Anatole Dedecker. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anatole Dedecker
-/
import algebra.order.floor
import topology.algebra.order.group
/-!
# Topological facts about `int.floor`, `int.ceil` and `int.fract`
> THIS FILE IS SYNCHRONIZED... |
5e457491b8d3e14df9da4fa2dec644376e00646c | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /tests/lean/scopedMacros.lean | 5cba5154684e1607f2e9f88a5bc70c50e467efaf | [
"Apache-2.0"
] | permissive | collares/lean4 | 861a9269c4592bce49b71059e232ff0bfe4594cc | 52a4f535d853a2c7c7eea5fee8a4fa04c682c1ee | refs/heads/master | 1,691,419,031,324 | 1,618,678,138,000 | 1,618,678,138,000 | 358,989,750 | 0 | 0 | Apache-2.0 | 1,618,696,333,000 | 1,618,696,333,000 | null | UTF-8 | Lean | false | false | 530 | lean | namespace Foo
scoped macro "foo!" x:term:max : term => `($x + 1)
#check foo! 10
theorem ex1 : foo! 10 = 11 := rfl
end Foo
#check foo! 10 -- Error
open Foo
#check foo! 10 -- works
theorem ex2 : foo! 10 = 11 := rfl
scoped macro "bla!" x:term:max : term => `($x * 2) -- Error scoped macros must be used inside name... |
6ec690a8190713b161cdca0bc9a3481cf47097fa | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/fun.lean | dd3bb56eff138a41ef35a553b14104c7ce3593dd | [
"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 | 390 | lean | new_frontend
open Function Bool
constant f : Nat → Bool := arbitrary _
constant g : Nat → Nat := arbitrary _
#check f ∘ g ∘ g
#check (id : Nat → Nat)
constant h : Nat → Bool → Nat := arbitrary _
#check swap h
#check swap h false Nat.zero
#check (swap h false Nat.zero : Nat)
constant f1 : Nat → Nat → Bool := ar... |
201971ccdcaebc501695216012a33ed72511ca9e | aa2345b30d710f7e75f13157a35845ee6d48c017 | /data/real/cau_seq.lean | ff76b765501ef294cf38d7d24efcdaa0576b38a9 | [
"Apache-2.0"
] | permissive | CohenCyril/mathlib | 5241b20a3fd0ac0133e48e618a5fb7761ca7dcbe | a12d5a192f5923016752f638d19fc1a51610f163 | refs/heads/master | 1,586,031,957,957 | 1,541,432,824,000 | 1,541,432,824,000 | 156,246,337 | 0 | 0 | Apache-2.0 | 1,541,434,514,000 | 1,541,434,513,000 | null | UTF-8 | Lean | false | false | 23,381 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
A basic theory of Cauchy sequences, used in the construction of the reals.
Where applicable, lemmas that will be reused in other contexts have
been stated in extra gene... |
45ba38de7652f3c25bb400ae9f968004562c0edd | e30ff3aabdac29f8ea40ad76887544d0f9be9018 | /ircbot/types.lean | 6d0af70247a0b8e16cfbfbebbbce2b84e61c2990 | [] | no_license | forked-from-1kasper/leanbot | bdef0efa3e4d0eb75b06c1707fb4e35086bb57fa | c61c8c7fdad7b05877e0d232719ce23d2999557f | refs/heads/master | 1,651,846,081,986 | 1,646,404,009,000 | 1,646,404,009,000 | 127,132,795 | 12 | 1 | null | 1,605,183,650,000 | 1,522,237,998,000 | Lean | UTF-8 | Lean | false | false | 2,699 | lean | import system.io
import ircbot.base64
namespace types
inductive message : Type
| notice | privmsg | mode | quit | nick | join | kick
inductive person : Type
| unidentified : string → person
| user : string → string → person
notation `~` nick `!` ident := person.user nick ident
structure normal_message :=
(object : ... |
a4ed779d056a30508c06dd84fa7758100174d45e | c777c32c8e484e195053731103c5e52af26a25d1 | /src/linear_algebra/free_module/ideal_quotient.lean | ab6d4937ceef99dd5a5f10a58e6cf065c50bd85e | [
"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 | 4,642 | lean | /-
Copyright (c) 2022 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import data.zmod.quotient
import linear_algebra.free_module.finite.basic
import linear_algebra.free_module.pid
import linear_algebra.quotient_pi
/-! # Ideals in free modu... |
55fc2aa7255f8eefd6b4b13dc0534b04092e3297 | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /src/data/zmod/basic.lean | ee92644ae21cf8a7d2e80c1a01a8618534631592 | [
"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 | 15,358 | lean | /-
Copyright (c) 2018 Chris Hughes. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Chris Hughes
-/
import data.int.modeq data.int.gcd data.fintype data.pnat.basic
open nat nat.modeq int
def zmod (n : ℕ+) := fin n
namespace zmod
instance (n : ℕ+) : has_neg (zmod n) :... |
cd701fc2fc96d79ce06926af280d2ea2bc2b9b02 | 7cef822f3b952965621309e88eadf618da0c8ae9 | /src/tactic/elide.lean | cdc43dc04cd4a32cfaaa39290197e9ea89d2b9ae | [
"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 | 2,385 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon
-/
import logic.basic tactic.core
namespace tactic
namespace elide
meta def replace : ℕ → expr → tactic expr
| 0 e := do
t ← infer_type e,
expr.sort ... |
cec3133fb5e2cf8f5750a02cb033d748ec0a2aa8 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/instances/irrational.lean | dade2c4757ce08a128f93fa0f1e00191a9e0d415 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,493 | lean | /-
Copyright (c) 2021 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import data.real.irrational
import data.rat.encodable
import topology.metric_space.baire
/-!
# Topology of irrational numbers
> THIS FILE IS SYNCHRONIZED WI... |
1a7b04ae8f095dfbf6608a0150b1e0ffe936d6c4 | dce2ec26258c35f21c8a5318a7a2ed297ddba7c6 | /Scratches/testcat.lean | 2524fd8f35e9ce4eaff5286ee9feac20911450eb | [] | no_license | nedsu/lean-category-theory-pr | c151c4f95d58a2d3b33e8f38ff7734d85d82e5ee | 8d72f4645d83c72d15afaee7a2df781b952417e9 | refs/heads/master | 1,625,444,569,743 | 1,597,056,476,000 | 1,597,056,476,000 | 145,738,350 | 0 | 0 | null | 1,534,957,201,000 | 1,534,957,201,000 | null | UTF-8 | Lean | false | false | 2,103 | lean | import categories.category
import categories.isomorphism
import categories.tactics
open categories
open categories.isomorphism
open tactic
--delaration of universes and variables
universes u₁ v₁
variables p q r s: Prop
lemma t₁ : p → q → p ∧ q := λ hp hq, and.intro hp hq
lemma t₁' : p ∧ q → q ∧ p := λ h, ⟨ h.right... |
6996b469628cfcbcd47e8c85b76c743f90619543 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/measure_theory/outer_measure.lean | 3d7aae88d52b9426ffbf3c8230fd688c05231415 | [
"Apache-2.0"
] | permissive | kmill/mathlib | ea5a007b67ae4e9e18dd50d31d8aa60f650425ee | 1a419a9fea7b959317eddd556e1bb9639f4dcc05 | refs/heads/master | 1,668,578,197,719 | 1,593,629,163,000 | 1,593,629,163,000 | 276,482,939 | 0 | 0 | null | 1,593,637,960,000 | 1,593,637,959,000 | null | UTF-8 | Lean | false | false | 20,990 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Outer measures -- overapproximations of measures
-/
import analysis.specific_limits
import measure_theory.measurable_space
/-!
# Outer Measures
An out... |
4a360b1e003a6c54b66d8aa682d27f8b2e0ddc41 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/Reformat.lean | 0961b736ced533997cef789313475d7ee3d381ed | [
"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 | 994 | lean | import Lean.PrettyPrinter
/-! Parse and reformat file -/
open Lean
open Lean.Elab
open Lean.Elab.Term
open Std.Format open Std
unsafe def main (args : List String) : IO Unit := do
let (debug, f) : Bool × String := match args with
| [f, "-d"] => (true, f)
| [f] => (false, f)
| _ => panic! "usage: f... |
875f2deec9d5e3c11241663fe2e3d0495dcb5da6 | 7b66d83f3b69dae0a3dfb684d7ebe5e9e3f3c913 | /src/exercises_sources/thursday/afternoon/category_theory/exercise1.lean | 4b7d5554e3edad6cc05ed70c3ae8b494600936bf | [] | permissive | dpochekutov/lftcm2020 | 58a09e10f0e638075b97884d3c2612eb90296adb | cdfbf1ac089f21058e523db73f2476c9c98ed16a | refs/heads/master | 1,669,226,265,076 | 1,594,629,725,000 | 1,594,629,725,000 | 279,213,346 | 1 | 0 | MIT | 1,594,622,757,000 | 1,594,615,843,000 | null | UTF-8 | Lean | false | false | 1,790 | lean | import algebra.category.CommRing
import category_theory.yoneda
open category_theory
open opposite
open polynomial
noncomputable theory
/-!
# Exercise 1
We show that the forgetful functor `CommRing ⥤ Type` is (co?)representable.
There are a sequence of hints available in
`hints/thursday/afternoon/category_theory/hi... |
861c65d9abe4804e54bc01c8c088364605d50926 | ba4794a0deca1d2aaa68914cd285d77880907b5c | /src/game/world3/level6.lean | 901d59f6ea82b6f9b0e7dc1c3ece7744d1418ee2 | [
"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,260 | lean | import game.world3.level5 -- hide
import mynat.mul -- hide
namespace mynat -- hide
/-
# Multiplication World
## Level 6: `succ_mul`
We now begin our journey to `mul_comm`, the proof that `a * b = b * a`.
We'll get there in level 8. Until we're there, it is frustrating
but true that we cannot assume commutativity. W... |
2aeb80df9fc0868239f908b73422623ad8cf1c84 | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Init/Data/List/Basic.lean | a1828dd3395edc0cc5f5e5a01929ab8c4922cc75 | [
"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 | 19,774 | 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.SimpLemmas
import Init.Data.Nat.Basic
open Decidable List
universe u v w
variable {α : Type u} {β : Type v} {γ : Type w}
namespace Lis... |
accc5eee3e6e5f3efe61728a44746f695fa4a364 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/algebra/order/floor.lean | 4c38e55e3fb122a0d0097ee3573905fc4c0788ac | [
"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 | 37,095 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Kevin Kappelmann
-/
import tactic.abel
import tactic.linarith
/-!
# Floor and ceil
## Summary
We define the natural- and integer-valued floor and ceil functions on l... |
489bf34516ecf05c5efefdb3bd297527f5a3e39b | 624f6f2ae8b3b1adc5f8f67a365c51d5126be45a | /stage0/src/Init/Lean/Delaborator.lean | 1b12b95279e233d9fa1060534452d7355848f160 | [
"Apache-2.0"
] | permissive | mhuisi/lean4 | 28d35a4febc2e251c7f05492e13f3b05d6f9b7af | dda44bc47f3e5d024508060dac2bcb59fd12e4c0 | refs/heads/master | 1,621,225,489,283 | 1,585,142,689,000 | 1,585,142,689,000 | 250,590,438 | 0 | 2 | Apache-2.0 | 1,602,443,220,000 | 1,585,327,814,000 | C | UTF-8 | Lean | false | false | 14,822 | lean | /-
Copyright (c) 2020 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
/-!
The delaborator is the first stage of the pretty printer, and the inverse of the
elaborator: it turns fully elaborated `Expr` core terms back into surf... |
8a49be803e31647c7a7b81559494bc46b7c8367e | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/UnaryOperation.lean | 375ea9a18cd93a84a25d7332d3d61449079a5d39 | [] | 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 | 5,377 | 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 UnaryOperation
structure UnaryOperation (A : Type) : Type :=
(prim : (A → A))
open UnaryOperation
structure Sig (AS : Type) : Type :=
(primS : (AS → A... |
a098b91cea5eab795a355e764f382dbd15a1c064 | 80746c6dba6a866de5431094bf9f8f841b043d77 | /src/logic/function.lean | d5912dec9edb5009892b47868996275bf6feaad6 | [
"Apache-2.0"
] | permissive | leanprover-fork/mathlib-backup | 8b5c95c535b148fca858f7e8db75a76252e32987 | 0eb9db6a1a8a605f0cf9e33873d0450f9f0ae9b0 | refs/heads/master | 1,585,156,056,139 | 1,548,864,430,000 | 1,548,864,438,000 | 143,964,213 | 0 | 0 | Apache-2.0 | 1,550,795,966,000 | 1,533,705,322,000 | Lean | UTF-8 | Lean | false | false | 8,676 | lean | /-
Copyright (c) 2016 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro
Miscellaneous function constructions and lemmas.
-/
import logic.basic data.option.defs
universes u v w
namespace function
section
variables {α : Sor... |
14ecf256b21fdd49c3b103c892d457f5ea1a0610 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/beginend.lean | e9ec1c93245bb427b524cd5c1223c703b8afca30 | [
"Apache-2.0"
] | permissive | codyroux/lean | 7f8dff750722c5382bdd0a9a9275dc4bb2c58dd3 | 0cca265db19f7296531e339192e9b9bae4a31f8b | refs/heads/master | 1,610,909,964,159 | 1,407,084,399,000 | 1,416,857,075,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 170 | lean | import tools.tactic logic.eq
open tactic
theorem foo (A : Type) (a b c : A) (Hab : a = b) (Hbc : b = c) : a = c :=
begin
apply eq.trans,
apply Hab,
apply Hbc,
end
|
d3004e72bb2d8f866cde2bb8a580fe540d1da37c | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/topology/algebra/infinite_sum.lean | 9044545cc5c927a64750b339cd2696ca8f665c57 | [
"Apache-2.0"
] | permissive | aestriplex/mathlib | 77513ff2b176d74a3bec114f33b519069788811d | e2fa8b2b1b732d7c25119229e3cdfba8370cb00f | refs/heads/master | 1,621,969,960,692 | 1,586,279,279,000 | 1,586,279,279,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 31,635 | 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
Infinite sum over a topological monoid
This sum is known as unconditionally convergent, as it sums to the same value under all possible
permutations. For Euclidean spa... |
62a31c46f1534ed2a4db518b0b2f234b2b135c9b | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /library/logic/cast.lean | 6291b7bb8eacc3d2a3b2368c780026fa81c3ac75 | [
"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 | 7,543 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: cast.lean
Author: Leonardo de Moura
Casts and heterogeneous equality. See also init.datatypes and init.logic.
-/
import logic.eq logic.quantifiers
open eq.ops
section
unive... |
0ecc2b823af202c200b6ca7c5ced1906369ab16b | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/analysis/inner_product_space/spectrum.lean | df1dc284dbe4a1a01b3834546272b6debf5e7f64 | [
"Apache-2.0"
] | permissive | jcommelin/mathlib | d8456447c36c176e14d96d9e76f39841f69d2d9b | ee8279351a2e434c2852345c51b728d22af5a156 | refs/heads/master | 1,664,782,136,488 | 1,663,638,983,000 | 1,663,638,983,000 | 132,563,656 | 0 | 0 | Apache-2.0 | 1,663,599,929,000 | 1,525,760,539,000 | Lean | UTF-8 | Lean | false | false | 12,319 | lean | /-
Copyright (c) 2021 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
import analysis.inner_product_space.rayleigh
import analysis.inner_product_space.pi_L2
/-! # Spectral theory of self-adjoint operators
This file covers the spectr... |
6a3e0bc667ea4c3d7db269e8b550641170a4250c | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /library/hott/set.lean | 5ffcf0dd5cfb041d1636551161277dc92f3f08e4 | [
"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 | 320 | 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
definition is_set (A : Type) := Π (x y : A) (p q : x = y), p = q
inductive hset : Type :=
| hset_intro : Π (A : Type), is_set A → hset
|
9d64095683251a362ed9b1b60f5ab745db3648c9 | 130c49f47783503e462c16b2eff31933442be6ff | /src/Init/NotationExtra.lean | 16820bd6bb7a3ab89fb62eec3af9108da83d7154 | [
"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 | 8,048 | 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
Extra notation that depends on Init/Meta
-/
prelude
import Init.Meta
import Init.Data.Array.Subarray
import Init.Data.ToString
namespace Lean
syntax "Macro.t... |
ecf95c98033658c90b8090955c175308fa781a47 | 193da933cf42f2f9188bb47e3c973205bc2abc5c | /temp.lean | 30e0ca4ce43bbaef075db9180edad438702842fe | [] | no_license | pandaman64/cs-dm | aa4e2621c7a19e2dae911bc237c33e02fcb0c7a3 | bfd2f5fd2612472e15bd970c7870b5d0dd73bd1c | refs/heads/master | 1,647,620,340,607 | 1,570,055,187,000 | 1,570,055,187,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,815 | lean | example : ∀ P Q : Prop, P → Q → P ∧ Q :=
begin
assume P Q : Prop,
assume p,
assume q,
show P ∧ Q,
apply and.intro,
exact p,
exact q,
end
example : ∀ P Q : Prop, P ∧ Q → P :=
begin
assume P Q,
assume pandq,
apply and.elim_left pandq,
end
example : ∀ P : Prop, P → ¬ ¬ P :=
begin
assume P,
assume p,
show ¬ ¬ P,
from
... |
dddbb95de09080abe4c2bff1a40b65f5523d3961 | fecda8e6b848337561d6467a1e30cf23176d6ad0 | /src/category_theory/monoidal/category.lean | 72135487de57de7e045415821240299eb57d2f68 | [
"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 | 19,247 | 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
-/
import category_theory.products.basic
open category_theory
universes v u
open category_theory
open category_theory.category
open category_the... |
42ceab072c1b98a8dd3b858ce12049c015b17616 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/sigma/basic.lean | 5a66a059731b74d93f6c0afda29b24fd52940379 | [
"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 | 6,960 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Johannes Hölzl
-/
import tactic.lint
import tactic.ext
section sigma
variables {α α₁ α₂ : Type*} {β : α → Type*} {β₁ : α₁ → Type*} {β₂ : α₂ → Type*}
namespace sigma
instance [inhabit... |
207d926f63a98557c16979e697d7574e0ce63730 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/topology/uniform_space/compact_separated.lean | e226a3b7e569e873739f73d7c8ec72a7ad10e011 | [
"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 | 11,369 | lean | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
import topology.uniform_space.separation
import topology.uniform_space.uniform_convergence
/-!
# Compact separated uniform spaces
## Main statements
* `compact_spac... |
7760c2cfd6c4ba1e4479c20001d54571734f6a78 | 92b50235facfbc08dfe7f334827d47281471333b | /hott/types/eq2.hlean | 45941a45778ee47a771a44b1014a9dcc6b716b61 | [
"Apache-2.0"
] | permissive | htzh/lean | 24f6ed7510ab637379ec31af406d12584d31792c | d70c79f4e30aafecdfc4a60b5d3512199200ab6e | refs/heads/master | 1,607,677,731,270 | 1,437,089,952,000 | 1,437,089,952,000 | 37,078,816 | 0 | 0 | null | 1,433,780,956,000 | 1,433,780,955,000 | null | UTF-8 | Lean | false | false | 4,295 | 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
Theorems about 2-dimensional paths
-/
import .cubical.square
open function
namespace eq
variables {A B C : Type} {f : A → B} {a a' a₁ a₂ a₃ a₄ : A} {b b' : B}
... |
c0e6b118e0878c9eea881ef77f1c54094abc58d6 | d9d511f37a523cd7659d6f573f990e2a0af93c6f | /src/order/closure.lean | 9a3377919bc3dc773ac37a255d83a4f4cb6a17c5 | [
"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 | 17,285 | lean | /-
Copyright (c) 2020 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta, Yaël Dillies
-/
import data.set_like.basic
import order.basic
import order.preorder_hom
import order.galois_connection
import tactic.monotonicity
/-!
# Closure operators b... |
ba9eb9cf0723d5aa2ac50cd00c822f8ca0d0c509 | bb31430994044506fa42fd667e2d556327e18dfe | /src/linear_algebra/span.lean | 004f7e0b618bf3e3cf5118718068f479071f54a4 | [
"Apache-2.0"
] | permissive | sgouezel/mathlib | 0cb4e5335a2ba189fa7af96d83a377f83270e503 | 00638177efd1b2534fc5269363ebf42a7871df9a | refs/heads/master | 1,674,527,483,042 | 1,673,665,568,000 | 1,673,665,568,000 | 119,598,202 | 0 | 0 | null | 1,517,348,647,000 | 1,517,348,646,000 | null | UTF-8 | Lean | false | false | 35,775 | 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, Frédéric Dupuis,
Heather Macbeth
-/
import linear_algebra.basic
import order.compactly_generated
import order.omega_co... |
2712319fbb5f655c5674b17474bdc13a25a51d80 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/G_delta.lean | e67fa7e8bee4738b0ebae518677919aa3ff267ac | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 7,597 | 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, Yury Kudryashov
-/
import topology.uniform_space.basic
import topology.separation
import order.filter.countable_Inter
/-!
# `Gδ` sets
> THIS FILE IS SYNCHRONIZE... |
ded75b24475a4aeb6686ed6b6c3ac3181414e4e3 | 75db7e3219bba2fbf41bf5b905f34fcb3c6ca3f2 | /hott/algebra/hott.hlean | 53bddbf99b594b7cf45779b931892d958b8ba0a0 | [
"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 | 2,989 | 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
Theorems about algebra specific to HoTT
-/
import .group arity types.pi hprop_trunc types.unit .bundled
open equiv eq equiv.ops is_trunc unit
namespace algebra
... |
680f6e065649d7055961f89f83c0b38ba97aa25d | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/linear_algebra/matrix/reindex.lean | 0df5c98bf91af9c7c478801c3734dc0891ba0993 | [
"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 | 5,527 | lean | /-
Copyright (c) 2019 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Patrick Massot, Casper Putz, Anne Baanen
-/
import linear_algebra.matrix.determinant
/-!
# Changing the index type of a matrix
This file concerns the map `matrix.rei... |
31091dbe814e0e242438ee44a7d3f1bedc3391a4 | 562dafcca9e8bf63ce6217723b51f32e89cdcc80 | /src/super/superposition.lean | a920fb87ce914eb839cdfa29e057737c69b766d3 | [] | no_license | digama0/super | 660801ef3edab2c046d6a01ba9bbce53e41523e8 | 976957fe46128e6ef057bc771f532c27cce5a910 | refs/heads/master | 1,606,987,814,510 | 1,498,621,778,000 | 1,498,621,778,000 | 95,626,306 | 0 | 0 | null | 1,498,621,692,000 | 1,498,621,692,000 | null | UTF-8 | Lean | false | false | 4,862 | lean | /-
Copyright (c) 2017 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import .clause .prover_state .utils
open tactic monad expr
namespace super
def position := list ℕ
meta def get_rwr_positions : expr → list position
| (app a b) := [[... |
eb7287fdfe96d81456d349f3b39646f93b202b45 | 78269ad0b3c342b20786f60690708b6e328132b0 | /src/library_dev/theories/set_theory.lean | bed8b4db925fda64348ef87d5ea18a919a0debce | [] | no_license | dselsam/library_dev | e74f46010fee9c7b66eaa704654cad0fcd2eefca | 1b4e34e7fb067ea5211714d6d3ecef5132fc8218 | refs/heads/master | 1,610,372,841,675 | 1,497,014,421,000 | 1,497,014,421,000 | 86,526,137 | 0 | 0 | null | 1,490,752,133,000 | 1,490,752,132,000 | null | UTF-8 | Lean | false | false | 27,716 | lean | import data.set.basic
universes u v
def arity (α : Type u) : nat → Type u
| 0 := α
| (n+1) := α → arity n
inductive pSet : Type (u+1)
| mk (α : Type u) (A : α → pSet) : pSet
namespace pSet
def type : pSet → Type u
| ⟨α, A⟩ := α
def func : Π (x : pSet), x.type → pSet
| ⟨α, A⟩ := A
def mk_type_func :... |
6d80f1dfede5dbe361f04dceb5136977f78746f3 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/group_theory/subgroup.lean | bd83d24942ebc3843dfa8f38bd0cc7bffa2170fa | [
"Apache-2.0"
] | permissive | uniformity1/mathlib | 829341bad9dfa6d6be9adaacb8086a8a492e85a4 | dd0e9bd8f2e5ec267f68e72336f6973311909105 | refs/heads/master | 1,588,592,015,670 | 1,554,219,842,000 | 1,554,219,842,000 | 179,110,702 | 0 | 0 | Apache-2.0 | 1,554,220,076,000 | 1,554,220,076,000 | null | UTF-8 | Lean | false | false | 27,052 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mitchell Rowett, Scott Morrison, Johan Commelin, Mario Carneiro
-/
import group_theory.submonoid
open set function
variables {α : Type*} {β : Type*} {a a₁ a₂ b c: α}
... |
f5689bd20e5d4113315763f3e3b3adadcf5cf4ba | 5fbbd711f9bfc21ee168f46a4be146603ece8835 | /lean/natural_number_game/proposition/7.lean | a7ea667fe0fd189e4561f58ddbd40cef426d6531 | [
"LicenseRef-scancode-warranty-disclaimer"
] | no_license | goedel-gang/maths | 22596f71e3fde9c088e59931f128a3b5efb73a2c | a20a6f6a8ce800427afd595c598a5ad43da1408d | refs/heads/master | 1,623,055,941,960 | 1,621,599,441,000 | 1,621,599,441,000 | 169,335,840 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 92 | lean | lemma imp_trans (P Q R : Prop) : (P → Q) → ((Q → R) → (P → R)) :=
begin
cc,
end
|
44bf26fa6598b846bf32dcd937cb24fd240416d7 | 56e5b79a7ab4f2c52e6eb94f76d8100a25273cf3 | /src/tools/filter_defs.lean | 44e2f325cc245fc8878e803e3091457b447ec1b4 | [
"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 | 1,134 | lean | import ..utils.util
import all
section main
meta def main : io unit := do {
args ← io.cmdline_args,
names_file ← args.nth_except 0 "names_file",
dest ← args.nth_except 1 "dest",
nm_strs ← (io.mk_file_handle names_file io.mode.read >>= λ f,
(string.split (λ c, c = '\n') <$> buffer.to_string <$> io.fs.read_... |
5c61e354237c8c0cb3cdb3a5a5b67bcdd0dd2761 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/topology/sheaves/sheaf.lean | 4c0ccff4690173d4506e8be0f9430b16efbca247 | [
"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,427 | 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.sites.sheaf
import category_theory.sites.spaces
/-!
# Sheaves
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> A... |
6d4d7e17af0c263fefdbd465310ed7286e7e58ca | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/group/arithmetic.lean | 8425505e590cfeaa6332b9681488812cf456799e | [
"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 | 32,540 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import measure_theory.measure.ae_measurable
/-!
# Typeclasses for measurability of operations
In this file we define classes `has_measurable_mul` etc and prove do... |
028a0d1283e7ec7475755a53200c00dfa815328e | 36c7a18fd72e5b57229bd8ba36493daf536a19ce | /library/data/stream.lean | dbe66ed195916a23be048e4d92c8b414ffe811b9 | [
"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 | 22,539 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
-/
import data.nat data.list data.equiv
open nat function option algebra
definition stream (A : Type) := nat → A
namespace stream
variables {A B C : Type}
de... |
4c5d21fdf613d3a50c0d6e87c417a4782a5e2779 | 5ee26964f602030578ef0159d46145dd2e357ba5 | /src/valuation/topology.lean | 624867ffdc689cc1645c4f0ee479df2fff85a851 | [
"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 | 4,993 | lean | /-
In this file, we define the topology induced by a valuation on a ring
valuation.topology {Γ : Type*} [linear_ordered_comm_group Γ] {R : Type*} [ring R] :
valuation R Γ → topological_space R
-/
import for_mathlib.nonarchimedean.is_subgroups_basis
import valuation.canonical -- we need the canonical valuation for ... |
ec7cc1c3047c0afe442ee8c39ddf594bc081b377 | b7b549d2cf38ac9d4e49372b7ad4d37f70449409 | /src/LeanLLVM/TypeContext.lean | 6d7cb1948f4d71779968e24720230196fc4a6fa0 | [
"Apache-2.0"
] | permissive | GaloisInc/lean-llvm | 7cc196172fe02ff3554edba6cc82f333c30fdc2b | 36e2ec604ae22d8ec1b1b66eca0f8887880db6c6 | refs/heads/master | 1,637,359,020,356 | 1,629,332,114,000 | 1,629,402,464,000 | 146,700,234 | 29 | 1 | Apache-2.0 | 1,631,225,695,000 | 1,535,607,191,000 | Lean | UTF-8 | Lean | false | false | 6,815 | lean | import Init.Data.Array
import Init.Data.List
import Std.Data.RBMap
import LeanLLVM.AST
import LeanLLVM.Alignment
import LeanLLVM.DataLayout
open Std (RBMap)
namespace LLVM
structure fieldInfo (α:Type) :=
(value : α)
(offset : Nat) -- offset from the beginning of the struct
(padding : Nat) -- number of padding by... |
6ebcb93ce284ad7f3e74313d263ed23075d9d0b0 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /stage0/src/Lean/Meta/Tactic/Intro.lean | 51be4d32e188efac8488f868fbb9f6c7a7a33c56 | [
"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 | 4,973 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Tactic.Util
namespace Lean.Meta
@[inline] private partial def introNImp {σ} (mvarId : MVarId) (n : Nat) (mkName : LocalContext → Name → B... |
ca4a22f0ef8ecb4e73729036ce9a072d64f6a2be | 8c9f90127b78cbeb5bb17fd6b5db1db2ffa3cbc4 | /trying_things.lean | ba5f2f909b97482bd80983e7d22402e6d7bd72a4 | [] | no_license | picrin/lean | 420f4d08bb3796b911d56d0938e4410e1da0e072 | 3d10c509c79704aa3a88ebfb24d08b30ce1137cc | refs/heads/master | 1,611,166,610,726 | 1,536,671,438,000 | 1,536,671,438,000 | 60,029,899 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 138 | lean | def my_lt_add_right: ∀ n k : nat, n <= n + k
| n 0 := nat.le_refl n
| n (nat.succ j) := nat.le_succ_of_le (my_lt_add_right n j) |
db4e49c7870677d62113ea9c6f19e781b6186e0c | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/algebra/algebra/operations.lean | 3ba846243c719b404fbc011fdf8dcc6c7e744699 | [
"Apache-2.0"
] | permissive | mcncm/mathlib | 8d25099344d9d2bee62822cb9ed43aa3e09fa05e | fde3d78cadeec5ef827b16ae55664ef115e66f57 | refs/heads/master | 1,672,743,316,277 | 1,602,618,514,000 | 1,602,618,514,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 11,540 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau
-/
import algebra.algebra.basic
/-!
# Multiplication and division of submodules of an algebra.
An interface for multiplication and division of sub-R-modules of an R-algebra A is... |
811a39cc55fd2e834c8e47e1cac4cd9e1a856efd | 38bf3fd2bb651ab70511408fcf70e2029e2ba310 | /test/tactics.lean | 3257b11ebb6079e10adcad6a8e3e620c99c65c31 | [
"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 | 10,088 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Scott Morrison
-/
import tactic.interactive tactic.finish tactic.ext tactic.lift tactic.apply
example (m n p q : nat) (h : m + n = p) : true :=
begin
have : m + n = q,
... |
46ce9ba1d2b813f77480975771b8583093994371 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /library/init/meta/interactive_base.lean | 3f3ea538d08d57ea34b2ee996bdd1c5f6c749765 | [
"Apache-2.0"
] | permissive | GaloisInc/lean | aa1e64d604051e602fcf4610061314b9a37ab8cd | f1ec117a24459b59c6ff9e56a1d09d9e9e60a6c0 | refs/heads/master | 1,592,202,909,807 | 1,504,624,387,000 | 1,504,624,387,000 | 75,319,626 | 2 | 1 | Apache-2.0 | 1,539,290,164,000 | 1,480,616,104,000 | C++ | UTF-8 | Lean | false | false | 8,125 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.data.option.instances
import init.meta.lean.parser init.meta.tactic init.meta.has_reflect
open lean
open lean.parser
local postfix `?`... |
04be99c48c6f539435fbc3e56455960ec42bcea0 | a0e23cfdd129a671bf3154ee1a8a3a72bf4c7940 | /stage0/src/Lean/Data/Lsp/Capabilities.lean | a582b16a0bf8f56d4e6e8fca80d665e2845c36e8 | [
"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,267 | lean | /-
Copyright (c) 2020 Marc Huisinga. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Marc Huisinga, Wojciech Nawrocki
-/
import Lean.Data.JsonRpc
import Lean.Data.Lsp.TextSync
import Lean.Data.Lsp.LanguageFeatures
/-! Minimal LSP servers/clients do not have to impleme... |
a2f61707fc2a8caf193a40d00fbe4806d439fc36 | 22e97a5d648fc451e25a06c668dc03ac7ed7bc25 | /src/algebra/module.lean | d88e249d18c0e4240ade10cbbffad03a4f349835 | [
"Apache-2.0"
] | permissive | keeferrowan/mathlib | f2818da875dbc7780830d09bd4c526b0764a4e50 | aad2dfc40e8e6a7e258287a7c1580318e865817e | refs/heads/master | 1,661,736,426,952 | 1,590,438,032,000 | 1,590,438,032,000 | 266,892,663 | 0 | 0 | Apache-2.0 | 1,590,445,835,000 | 1,590,445,835,000 | null | UTF-8 | Lean | false | false | 27,156 | 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
-/
import group_theory.group_action
/-!
# Modules over a ring
In this file we define
* `semimodule R M` : an additi... |
fce38717c6b30e7273a5623d3364e075b683e492 | 05f637fa14ac28031cb1ea92086a0f4eb23ff2b1 | /tests/lean/elab7.lean | ee6b506d7e35032f4f3de270b6a9d9f7b6fcda1d | [
"Apache-2.0"
] | permissive | codyroux/lean0.1 | 1ce92751d664aacff0529e139083304a7bbc8a71 | 0dc6fb974aa85ed6f305a2f4b10a53a44ee5f0ef | refs/heads/master | 1,610,830,535,062 | 1,402,150,480,000 | 1,402,150,480,000 | 19,588,851 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 855 | lean | variables A B C : (Type U)
variable P : A -> Bool
variable F1 : A -> B -> C
variable F2 : A -> B -> C
variable H : forall (a : A) (b : B), (F1 a b) = (F2 a b)
variable a : A
check eta (F2 a)
check funext (fun a : A,
(trans (symm (eta (F1 a)))
(trans (funext (fun (b : B), H a b))
... |
4708636539d08b8db1c34f2126e60fe16a6bdc36 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/bad_print.lean | d11b42dcb89f40c07d67fcfb84e3b9385af03acf | [
"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 | 68 | lean | constant boo : nat
print definition boo
print 2
print fields nat
|
2ffccc1c7d3c8a57b8b78c166cb86481121d3a7e | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /stage0/src/Lean/Compiler/CSE.lean | c470cd6d2fcfdce38aaa15e7033af7481ab0e33d | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | EdAyers/lean4 | 57ac632d6b0789cb91fab2170e8c9e40441221bd | 37ba0df5841bde51dbc2329da81ac23d4f6a4de4 | refs/heads/master | 1,676,463,245,298 | 1,660,619,433,000 | 1,660,619,433,000 | 183,433,437 | 1 | 0 | Apache-2.0 | 1,657,612,672,000 | 1,556,196,574,000 | Lean | UTF-8 | Lean | false | false | 1,766 | 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.CompilerM
import Lean.Compiler.Decl
namespace Lean.Compiler
/-! Common Sub-expression Elimination -/
namespace CSE
structure State ... |
4802daa28a691e44efab3866f2f6aab85e39a93b | 94e33a31faa76775069b071adea97e86e218a8ee | /src/topology/noetherian_space.lean | 5c8b274ddcdafc4e0ebfdfc1352bf2f43d0fdd19 | [
"Apache-2.0"
] | permissive | urkud/mathlib | eab80095e1b9f1513bfb7f25b4fa82fa4fd02989 | 6379d39e6b5b279df9715f8011369a301b634e41 | refs/heads/master | 1,658,425,342,662 | 1,658,078,703,000 | 1,658,078,703,000 | 186,910,338 | 0 | 0 | Apache-2.0 | 1,568,512,083,000 | 1,557,958,709,000 | Lean | UTF-8 | Lean | false | false | 9,135 | lean | /-
Copyright (c) 2022 Andrew Yang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Andrew Yang
-/
import order.compactly_generated
import order.order_iso_nat
import topology.sets.compacts
/-!
# Noetherian space
A Noetherian space is a topological space that satisfies ... |
736cd7db0a7d73fb52b8d778d999ff0cecbfeac2 | 63abd62053d479eae5abf4951554e1064a4c45b4 | /src/algebra/module/pi.lean | 7cb5d3db01a70f7713c73106692aea94de6d8c10 | [
"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 | 3,784 | lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Patrick Massot
-/
import algebra.module.basic
import algebra.ring.pi
/-!
# Pi instances for module and multiplicative actions
This file defines instances for module, mul_ac... |
624b2bad8dbcaed1d0f89ceac868caab081ff3c7 | f4bff2062c030df03d65e8b69c88f79b63a359d8 | /src/game/sets/sets_level08.lean | 173932300911304ef3b7589ff561424166465a51 | [
"Apache-2.0"
] | permissive | adastra7470/real-number-game | 776606961f52db0eb824555ed2f8e16f92216ea3 | f9dcb7d9255a79b57e62038228a23346c2dc301b | refs/heads/master | 1,669,221,575,893 | 1,594,669,800,000 | 1,594,669,800,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,356 | lean | import kb_real_defs --hide
/-
# Chapter 1 : Sets
## Level 8
-/
/-
This is a very basic example of working with intervals of real numbers in Lean.
An interval `[a, b]` that is closed at both endpoints $a$ and $b$ can be
constructed using `set.Icc a b`. For an open-closed interval `(a, b]`,
the notation
is `set.Ioc... |
cc5c4a20b0167949657561b5d67d4854dbe2150f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/transform_decl.lean | 250636360026037b37fadb0d77858d1f0c580651 | [
"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,283 | lean | /-
Copyright (c) 2017 Mario Carneiro All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Floris van Doorn
-/
import tactic.core
namespace tactic
open expr
/-- Auxilliary function for `additive_test`. The bool argument *only* matters when applied
to exactly... |
96323b45b8618873682748a42de7772abbc485e4 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/combinatorics/simple_graph/connectivity.lean | e20549e032766309c4b1ceab5a9e94aa0eb338b6 | [
"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 | 44,937 | lean | /-
Copyright (c) 2021 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import combinatorics.simple_graph.basic
import combinatorics.simple_graph.subgraph
import data.list
/-!
# Graph connectivity
In a simple graph,
* A *walk* is a finite se... |
0e466f98a1b934d792a3c24d318f77d241923cba | e0f9ba56b7fedc16ef8697f6caeef5898b435143 | /src/group_theory/eckmann_hilton.lean | 10a8835c6b9545cab5d0fbd3243f02da70d093a9 | [
"Apache-2.0"
] | permissive | anrddh/mathlib | 6a374da53c7e3a35cb0298b0cd67824efef362b4 | a4266a01d2dcb10de19369307c986d038c7bb6a6 | refs/heads/master | 1,656,710,827,909 | 1,589,560,456,000 | 1,589,560,456,000 | 264,271,800 | 0 | 0 | Apache-2.0 | 1,589,568,062,000 | 1,589,568,061,000 | null | UTF-8 | Lean | false | false | 1,909 | lean | /-
Copyright (c) 2018 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Kenny Lau, Robert Y. Lewis
-/
import tactic.basic
universe u
namespace eckmann_hilton
variables {X : Type u}
local notation a `<`m`>` b := m a b
class is_unital (m : X →... |
d99a1797fb350fdccb99e502cf1e304a0ef6698b | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/equiv/fintype.lean | 7c6042a9c1c4eb20eca52a9b1e795f54f75363c6 | [
"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,639 | lean | /-
Copyright (c) 2021 Yakov Pechersky. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yakov Pechersky
-/
import data.equiv.basic
import data.set.finite
import group_theory.perm.sign
/-! # Equivalence between fintypes
This file contains some basic results on equivale... |
d5640b2a375f8c0d92f2dda252242fce4c924c5b | dd0f5513e11c52db157d2fcc8456d9401a6cd9da | /11_Tactic-Style_Proofs.org.36.lean | af3d99baa396473824dca04235b57e302b0148d8 | [] | 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 | 148 | lean | import standard
open nat
variables (f : nat → nat) (k : nat)
example (H₁ : f 0 = 0) (H₂ : k = 0) : f k = 0 :=
begin
rewrite [H₂, H₁]
end
|
81cd73440d063f3eab28172f026dd2d38cd89853 | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /library/init/meta/unfold_tactic.lean | b0cb43a2c904957149248ce8ac0cd668e2e176f5 | [
"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 | 1,169 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta.relation_tactics init.meta.occurrences
namespace tactic
/- (rewrite_core m use_instances occs symm H) -/
meta_constant unfold_expr... |
f881f0c1fb07d941c8ccb9de0ec1f5ca3e25a172 | 968e2f50b755d3048175f176376eff7139e9df70 | /examples/prop_logic_theory/unnamed_2586.lean | c674fb6b6fdc1242b00e94d69cd975d39eb9ee36 | [] | no_license | gihanmarasingha/mth1001_sphinx | 190a003269ba5e54717b448302a27ca26e31d491 | 05126586cbf5786e521be1ea2ef5b4ba3c44e74a | refs/heads/master | 1,672,913,933,677 | 1,604,516,583,000 | 1,604,516,583,000 | 309,245,750 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 765 | lean | import logic.basic
variables {p q : Prop}
local attribute [instance] classical.prop_decidable
-- BEGIN
example : ¬(p ∧ q) → ¬p ∨ ¬ q :=
begin
assume h₁ : ¬(p ∧ q), -- Assume `h₁ : ¬(p ∧ q)`. It sfufice to prove `¬p ∨ ¬q`.
have h₂ : ¬¬(¬p ∨ ¬q) ↔ ¬p ∨ ¬q, from not_not, -- By double negation, we have `¬¬(¬p ∨ ¬q) ↔ ¬... |
b90b8137938dc483aefb57fd58c7c81d9f702166 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/algebra/add_torsor.lean | cb175ffbb8011e7a5fed1842d21a5bd9361014a3 | [
"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 | 16,457 | lean | /-
Copyright (c) 2020 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers, Yury Kudryashov
-/
import algebra.group.prod
import algebra.group.type_tags
import algebra.group.pi
import algebra.pointwise
import data.equiv.basic
import data.set.finite
... |
f6ce89dd00882a940a32431a2f3d8605b616beec | a9d0fb7b0e4f802bd3857b803e6c5c23d87fef91 | /tests/lean/t2.lean | 19f8e82c64d73a21d2f1ee441d5d6aa87669d090 | [
"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 | 36 | lean | print "hello world"
print "testing"
|
52bb53304e686cc1327f0ddf4cbb871282f77b57 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/order/filter/germ.lean | c6f8199fe217295cbfcfcbf860500b06a9802b75 | [
"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,915 | lean | /-
Copyright (c) 2020 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov, Abhimanyu Pallavi Sudhir
-/
import order.filter.basic
import algebra.module.pi
/-!
# Germ of a function at a filter
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.... |
841d996c3cab5c021b844f8c29e6d3579f2b1570 | f1dc39e1c68f71465c8bf79910c4664d03824751 | /library/init/meta/well_founded_tactics.lean | 590dca1ef7f75394a95ffec84e43067694c1b1a5 | [
"Apache-2.0"
] | permissive | kckennylau/lean-2 | 6504f45da07bc98b098d726b74130103be25885c | c9a9368bc0fd600d832bd56c5cb2124b8a523ef9 | refs/heads/master | 1,659,140,308,864 | 1,589,361,166,000 | 1,589,361,166,000 | 263,748,786 | 0 | 0 | null | 1,589,405,915,000 | 1,589,405,915,000 | null | UTF-8 | Lean | false | false | 6,533 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
prelude
import init.meta init.data.sigma.lex init.data.nat.lemmas init.data.list.instances
import init.data.list.qsort
/- TODO(Leo): move this lemma, or de... |
4b96096471385f245eb3f70ce878342a57c1d8a9 | 947b78d97130d56365ae2ec264df196ce769371a | /stage0/src/Lean/Meta/Reduce.lean | 5f60df5268afd348eda0a1b7318c2ec21025988b | [
"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 | 1,464 | lean | /-
Copyright (c) 2019 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
-/
import Lean.Meta.Basic
import Lean.Meta.FunInfo
namespace Lean
namespace Meta
partial def reduceAux (explicitOnly : Bool) (skipTypes : Bool) (skipProofs :... |
229ace8ac97020c8b4b515a0bb370675013c5dda | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/category_theory/limits/shapes/finite_products.lean | 17db52fbee3d9abb4dfb0972154c071804d486d7 | [
"Apache-2.0"
] | permissive | alreadydone/mathlib | dc0be621c6c8208c581f5170a8216c5ba6721927 | c982179ec21091d3e102d8a5d9f5fe06c8fafb73 | refs/heads/master | 1,685,523,275,196 | 1,670,184,141,000 | 1,670,184,141,000 | 287,574,545 | 0 | 0 | Apache-2.0 | 1,670,290,714,000 | 1,597,421,623,000 | Lean | UTF-8 | Lean | false | false | 3,074 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import category_theory.limits.shapes.finite_limits
import category_theory.limits.shapes.products
/-!
# Categories with finite (co)products
Typeclasses representing ... |
fa33a803d1ed44135668082af85a389ea5d3213d | 80cc5bf14c8ea85ff340d1d747a127dcadeb966f | /test/norm_num.lean | b6e12e446826718a7248b6d7fad950cf15ae47ba | [
"Apache-2.0"
] | permissive | lacker/mathlib | f2439c743c4f8eb413ec589430c82d0f73b2d539 | ddf7563ac69d42cfa4a1bfe41db1fed521bd795f | refs/heads/master | 1,671,948,326,773 | 1,601,479,268,000 | 1,601,479,268,000 | 298,686,743 | 0 | 0 | Apache-2.0 | 1,601,070,794,000 | 1,601,070,794,000 | null | UTF-8 | Lean | false | false | 11,957 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
Tests for norm_num
-/
import tactic.norm_num
import data.complex.basic
-- constant real : Type
-- notation `ℝ` := real
-- @[instance] constant real.linear_or... |
0f155be303d0d50d737486596eefc9676ce49093 | 2b2a05a7af89c79da194505bf88205a6c4e05d68 | /src/mynat/definition.lean | 8bc6162393b8a921ec895ce2da669c7eac113de9 | [] | no_license | lacrosse/natural_number_game | 6401a11a8c965da3903ae6695f84586edf6fac85 | 400179cde1d3fcc9744901dabff98813ba2b544f | refs/heads/master | 1,677,566,006,582 | 1,612,576,917,000 | 1,612,576,917,000 | 335,655,947 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 844 | lean | import tactic.structure_helper
import tactic.nat_num_game
/-
mynat/definition.lean -- definition of mynat.
Supplies:
constants zero : mynat and one : mynat
function S : mynat → mynat
notation 0 for zero and 1 for one.
The below code will be *invisible to the player*
-/
-- definition of "the natural number... |
666dfc7bcac643bf6c898a7836ec6203572a3a33 | 86f6f4f8d827a196a32bfc646234b73328aeb306 | /examples/logic/unnamed_1924.lean | 6339108901fc1a1473c6cd9beb1b05dd96195ac0 | [] | no_license | jamescheuk91/mathematics_in_lean | 09f1f87d2b0dce53464ff0cbe592c568ff59cf5e | 4452499264e2975bca2f42565c0925506ba5dda3 | refs/heads/master | 1,679,716,410,967 | 1,613,957,947,000 | 1,613,957,947,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 246 | lean | import data.real.basic
variables {x y : ℝ}
-- BEGIN
example : x < abs y → x < y ∨ x < -y :=
begin
cases le_or_gt 0 y with h h,
{ rw abs_of_nonneg h,
intro h, left, exact h },
rw abs_of_neg h,
intro h, right, exact h
end
-- END |
bb479dd5ac8c7a8791f0e7fe86df1c39ff865773 | 3dd1b66af77106badae6edb1c4dea91a146ead30 | /tests/lean/run/univ1.lean | 5ec2c524c4542f88aa3060e82266868d0a1a1cf3 | [
"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 | 672 | lean | import standard
namespace S1
hypothesis I : Type
definition F (X : Type) : Type := (X → Prop) → Prop
hypothesis unfold.{l} : I.{l} → F I.{l}
hypothesis fold.{l} : F I.{l} → I.{l}
hypothesis iso1 : ∀x, fold (unfold x) = x
end
namespace S2
universe u
hypothesis I : Type.{u}
definition F (X : Type) : Type := (X → Prop... |
e75bc585e06f95fade3b631c72546c4c8184365b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/algebra/algebra/ordered.lean | 6845e7fb8d5c629179bcc323e157b25de01b99ad | [] | 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,557 | 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 Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.algebra.basic
import Mathlib.algebra.module.ordered
import Mathlib.PostPort
univer... |
bf3e5ffe0f3e58b230a83b0cf6aa97020e9ea4bc | e94d3f31e48d06d252ee7307fe71efe1d500f274 | /hott/homotopy/connectedness.hlean | 802d5475cd0496abfdfe01ff1b06f8dd9c59ab79 | [
"Apache-2.0"
] | permissive | GallagherCommaJack/lean | e4471240a069d82f97cb361d2bf1a029de3f4256 | 226f8bafeb9baaa5a2ac58000c83d6beb29991e2 | refs/heads/master | 1,610,725,100,482 | 1,459,194,829,000 | 1,459,195,377,000 | 55,377,224 | 0 | 0 | null | 1,459,731,701,000 | 1,459,731,700,000 | null | UTF-8 | Lean | false | false | 10,020 | hlean | /-
Copyright (c) 2015 Ulrik Buchholtz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Ulrik Buchholtz, Floris van Doorn
-/
import types.trunc types.arrow_2 types.fiber
open eq is_trunc is_equiv nat equiv trunc function fiber funext pi
namespace is_conn
definition ... |
38e788857b4c39586b86496e7adaf42a5fd995b9 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/793.lean | 20f5a618f1a4c778aa30dde730ad99034edd2433 | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 265 | lean | macro "foo" x:ident : command =>
`(structure Foo where
val : Nat
prop : val = 42
def f (x : Foo) := x.val
def g : Foo := { val := 42, prop := by decide }
theorem $x:ident (x : Foo) : f x = 42 := by simp [f, x.prop] )
foo test
#print test
|
10563cc45d3ead8454c83f0e89d6c900430fdfd2 | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/types/trunc.hlean | 5a741e82777a37db0293d6a437e7d9b8493c69e0 | [
"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 | 5,384 | hlean | /-
Copyright (c) 2015 Jakob von Raumer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: types.trunc
Authors: Jakob von Raumer, Floris van Doorn
Properties of is_trunc
-/
import types.pi types.eq
open sigma sigma.ops pi function eq equiv eq funext
namespace is_trunc
... |
a829850c1f0bc77b133dda67bf0cd02badfeda47 | 27a31d06bcfc7c5d379fd04a08a9f5ed3f5302d4 | /stage0/src/Init/Meta.lean | 13dd2f1f08d8e0ebcb87a09e661158e2c52be165 | [
"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 | joehendrix/lean4 | 0d1486945f7ca9fe225070374338f4f7e74bab03 | 1221bdd3c7d5395baa451ce8fdd2c2f8a00cbc8f | refs/heads/master | 1,640,573,727,861 | 1,639,662,710,000 | 1,639,665,515,000 | 198,893,504 | 0 | 0 | Apache-2.0 | 1,564,084,645,000 | 1,564,084,644,000 | null | UTF-8 | Lean | false | false | 34,634 | 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 and Sebastian Ullrich
Additional goodies for writing macros
-/
prelude
import Init.Data.Array.Basic
namespace Lean
@[extern c inline "lean_box(LEAN_VERSION_... |
986f9634bee7f8b40e85da8f702a4ec8b1c63cc3 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/erased.lean | 6831006f1592701dd754727291aa38cfc76565e3 | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 3,865 | 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 logic.equiv.defs
/-!
# A type for VM-erased data
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this file require a corresponding PR to mathlib4... |
841acfdc3e186c22058a0b979f4ae3bfd7536443 | 1b8f093752ba748c5ca0083afef2959aaa7dace5 | /src/category_theory/sheaves.lean | e9163df64e49fef1cb67e1957542d7112d063235 | [] | no_license | khoek/lean-category-theory | 7ec4cda9cc64a5a4ffeb84712ac7d020dbbba386 | 63dcb598e9270a3e8b56d1769eb4f825a177cd95 | refs/heads/master | 1,585,251,725,759 | 1,539,344,445,000 | 1,539,344,445,000 | 145,281,070 | 0 | 0 | null | 1,534,662,376,000 | 1,534,662,376,000 | null | UTF-8 | Lean | false | false | 4,175 | lean | import category_theory.opposites
import category_theory.full_subcategory
import category_theory.universal.types
import category_theory.examples.topological_spaces
open category_theory
open category_theory.limits
open category_theory.examples
universes u v u₁ v₁ u₂ v₂
section
variables (C : Type u₁) [𝒞 : category.{u... |
c39033b80e83a41e9e54b0cb7881fe8dc0e07e07 | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/real/ennreal.lean | 6b34745e1cbc7cf3f54179a6e3b0906e02d2486a | [
"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 | 70,990 | 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.real.nnreal
import data.set.intervals
/-!
# Extended non-negative reals
We define `ennreal = ℝ≥0∞ := with_top ℝ≥0` to be the type of ex... |
b76f1890c90f66fcf6125b1be48f4e85734ea716 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/measure_theory/integral/set_to_l1.lean | 89e71330ffbc1dd9c38f6a885c3b0557ef2696b2 | [
"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 | 88,444 | lean | /-
Copyright (c) 2021 Rémy Degenne. 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.function.simple_func_dense_lp
/-!
# Extension of a linear function from indicators to L1
Let `T... |
f58651cf7e38d4aef073bcfff61eaf4e654e4f3f | cc060cf567f81c404a13ee79bf21f2e720fa6db0 | /lean/20170903-refl.lean | e5c24bd2c2b108265f53e4c671061fa641c865bf | [
"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 | 4,364 | lean | notation `♮` := by admit
notation `♯` := by admit
structure {u v} Category :=
( Obj : Type u )
( Hom : Obj → Obj → Type v )
( identity : Π X : Obj, Hom X X )
( compose : Π { X Y Z : Obj }, Hom X Y → Hom Y Z → Hom X Z )
( left_identity : ∀ { X Y : Obj } (f : Hom X Y), compose (identity X) f = f )
( righ... |
e9ff9e7b7e1a66a71360cce224750be3c700b4cf | 01f6b345a06ece970e589d4bbc68ee8b9b2cf58a | /src/seminorm_from_bounded.lean | 1619895e57669ece137327bed4746758d989f9ba | [] | no_license | mariainesdff/norm_extensions_journal_submission | 6077acb98a7200de4553e653d81d54fb5d2314c8 | d396130660935464fbc683f9aaf37fff8a890baa | refs/heads/master | 1,686,685,693,347 | 1,684,065,115,000 | 1,684,065,115,000 | 603,823,641 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 23,302 | lean | /-
Copyright (c) 2023 María Inés de Frutos-Fernández. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: María Inés de Frutos-Fernández
-/
import ring_seminorm
import analysis.special_functions.pow
/-!
# seminorm_from_bounded
In this file, we prove [BGR, Proposition 1.2.1... |
100c08048ff23b060850bb5348e1f61fcf047b2d | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast_discr_tree_annot_bug.lean | 734523e9076b28a0f22d1ca217144d276ae5b974 | [
"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 | 128 | lean | constants (P : ℕ → Prop) (Q : Prop)
lemma foo [intro!] [forward] : (: P 0 :) → Q := sorry
example : P 0 → Q :=
by grind
|
0fa1dc30d0426b510fce80fec9d07746689514d1 | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/nat/sqrt.lean | 00c1ef7c68c3e3e5a54ec37a5f64faa4a3375240 | [
"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 | 6,354 | 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, Johannes Hölzl, Mario Carneiro
An efficient binary implementation of a (sqrt n) function that
returns s s.t.
s*s ≤ n ≤ s*s + s + s
-/
import data.nat.bas... |
d87bfd0122a5b516938802229da4ee98fe01eb2f | fc086f79b20cf002d6f34b023749998408e94fbf | /src/tidy/scratch_1.lean | 8c1cb53f03a801dacfaa9ab8ae8bf8307be54eba | [] | no_license | semorrison/lean-tidy | f039460136b898fb282f75efedd92f2d5c5d90f8 | 6c1d46de6cff05e1c2c4c9692af812bca3e13b6c | refs/heads/master | 1,624,461,332,392 | 1,559,655,744,000 | 1,559,655,744,000 | 96,569,994 | 9 | 4 | null | 1,538,287,895,000 | 1,499,455,306,000 | Lean | UTF-8 | Lean | false | false | 2,283 | lean | -- import .repeat_at_least_once
-- import .recover
-- open tactic
-- variables {α : Type} [has_to_format α]
-- meta inductive synthetic_goal
-- | none
-- | goals (original synthetic type : expr) : synthetic_goal
-- meta def synthetic_goal.new : tactic synthetic_goal :=
-- (do g :: gs ← get_goals,
-- t ← infer_ty... |
b23828b3aafafac20e2e7e3a2692f2ad78837c45 | d1a52c3f208fa42c41df8278c3d280f075eb020c | /tests/lean/run/nativeReflBackdoor.lean | 65f7cfd7e7853291dd6bae14f840817bc02e1230 | [
"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,003 | lean | --
/-
This example demonstratea that when we are using `nativeDecide`,
we are also trusting the correctness of `implementedBy` annotations,
foreign functions (i.e., `[extern]` annotations), etc.
-/
def g (b : Bool) := false
/-
The following `implementedBy` is telling the compiler
"trust me, `g` does implement `f`"
wh... |
2a8d1518431874bf8041edb30beeb8a5b1753334 | 8d65764a9e5f0923a67fc435eb1a5a1d02fd80e3 | /counterexamples/phillips.lean | fda6455e1d45e73ae3a14cec2b64afb20f2b0b9d | [
"Apache-2.0"
] | permissive | troyjlee/mathlib | e18d4b8026e32062ab9e89bc3b003a5d1cfec3f5 | 45e7eb8447555247246e3fe91c87066506c14875 | refs/heads/master | 1,689,248,035,046 | 1,629,470,528,000 | 1,629,470,528,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 28,516 | lean | /-
Copyright (c) 2021 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.normed_space.hahn_banach
import measure_theory.measure.lebesgue
/-!
# A counterexample on Pettis integrability
There are several theories of i... |
f6ed6a27ebaefcf435b77b73605bf170b81c2d85 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/geometry/manifold/bump_function.lean | 8a6e5638480abf6837a9959d95a4111fcf15919c | [
"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 | 14,438 | lean | /-
Copyright (c) 2021 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import analysis.calculus.specific_functions
import geometry.manifold.diffeomorph
import geometry.manifold.instances.real
/-!
# Smooth bump functions on a smooth ma... |
349b1835ba74cc10c38bc7ef3cd51695c902261c | 8b9f17008684d796c8022dab552e42f0cb6fb347 | /hott/init/reserved_notation.hlean | acbc6c5e3dcf6808b3266d4ad25f225d691f0d7a | [
"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 | 2,394 | hlean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.reserved_notation
Authors: Leonardo de Moura
-/
prelude
import init.datatypes
notation `assume` binders `,` r:(scoped f, f) := r
notation `take` binders `,` r:(scoped f,... |
a992e2b14ca31f4bd7b82ffdbfeb96e7b4df60ac | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/group_theory/group_action/sum.lean | a789126c6b049e73658b4a1be55256b9923bc3fe | [
"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,583 | 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 group_theory.group_action.defs
/-!
# Sum instances for additive and multiplicative actions
This file defines instances for additive and multiplicative actions on... |
3f74aa66c26112513387168d40d74cba31af47cd | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /algebra/ring.lean | e93e8119c53b14019983c7d9a6fd8da31e8a908f | [
"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 | 8,194 | 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, Floris van Doorn
-/
import algebra.group data.set.basic
universes u v
variable {α : Type u}
section
variable [semiring α]
theorem mul_two (n : α) : ... |
1e09ab8bf6fb04b4f4525106ba126af58311d81a | bdb33f8b7ea65f7705fc342a178508e2722eb851 | /data/finset.lean | c44117f1a63dfc86c01511718adfb185b1d7ff21 | [
"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 | 42,551 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura, Jeremy Avigad, Minchao Wu, Mario Carneiro
Finite sets.
-/
import data.multiset order.boolean_algebra algebra.order_functions data.sigma.basic
open multiset su... |
9bdfc86d18da05e38648b22967bac9176443ba88 | bd12a817ba941113eb7fdb7ddf0979d9ed9386a0 | /src/category_theory/limits/shapes/products.lean | 79943ed635b8b38ca46eec731f9005940ff10f4d | [
"Apache-2.0"
] | permissive | flypitch/mathlib | 563d9c3356c2885eb6cefaa704d8d86b89b74b15 | 70cd00bc20ad304f2ac0886b2291b44261787607 | refs/heads/master | 1,590,167,818,658 | 1,557,762,121,000 | 1,557,762,121,000 | 186,450,076 | 0 | 0 | Apache-2.0 | 1,557,762,289,000 | 1,557,762,288,000 | null | UTF-8 | Lean | false | false | 920 | lean | -- Copyright (c) 2018 Scott Morrison. All rights reserved.
-- Released under Apache 2.0 license as described in the file LICENSE.
-- Authors: Scott Morrison
import category_theory.limits.cones
import category_theory.discrete_category
universes v u
open category_theory
namespace category_theory.limits
variables {β ... |
76ac5e1aa15239afba2f6c07002f48aa3338b98f | c777c32c8e484e195053731103c5e52af26a25d1 | /src/tactic/norm_num.lean | eaeb50dd01860c90927f35ccc9d07782307d9c6a | [
"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 | 69,911 | lean | /-
Copyright (c) 2017 Simon Hudon All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Mario Carneiro
-/
import data.rat.cast
import data.rat.meta_defs
import data.int.lemmas
/-!
# `norm_num`
Evaluating arithmetic expressions including `*`, `+`, `-`, `^`, `≤`.... |
6489897725241511e8888a40195fd4d097aa72b5 | 367134ba5a65885e863bdc4507601606690974c1 | /src/linear_algebra/linear_independent.lean | d0fdcbf365091b8e218739bccca79bd771643f9f | [
"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 | 44,164 | lean | /-
Copyright (c) 2020 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Alexander Bentkamp, Anne Baanen
-/
import linear_algebra.finsupp
import linear_algebra.prod
import order.zorn
import data.finset.order
import data.equiv.fi... |
7a8584e9b9311e566401d6c7314bbaa9a93a8c7d | 9d2e3d5a2e2342a283affd97eead310c3b528a24 | /src/hints/thursday/afternoon/category_theory/exercise1/hint1.lean | 6579b029d0b10f2f90a3b7f8d3a98aa6093f0a6c | [] | permissive | Vtec234/lftcm2020 | ad2610ab614beefe44acc5622bb4a7fff9a5ea46 | bbbd4c8162f8c2ef602300ab8fdeca231886375d | refs/heads/master | 1,668,808,098,623 | 1,594,989,081,000 | 1,594,990,079,000 | 280,423,039 | 0 | 0 | MIT | 1,594,990,209,000 | 1,594,990,209,000 | null | UTF-8 | Lean | false | false | 709 | lean | import category_theory.isomorphism
import category_theory.yoneda
open category_theory
open opposite
variables {C : Type*} [category C]
def iso_of_hom_iso_attempt_1 (X Y : C) (h : yoneda.obj X ≅ yoneda.obj Y) : X ≅ Y :=
-- We're trying to construct an isomorphism, so our first task is to write a stub for the structur... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.