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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2655fd43742d73bee2d5da8d789d5e1560cbb81c | 9be442d9ec2fcf442516ed6e9e1660aa9071b7bd | /tests/lean/binop_lazy.lean | d3a3cfd1021dccd639d3b75dfa901a22b6189444 | [
"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 | 265 | lean | def f : IO Unit :=
(do IO.println "case 1"; throw (IO.userError "failed"))
<|>
(do IO.println "case 2"; throw (IO.userError "failed"))
<|>
(do IO.println "case 3")
<|>
(let x := dbg_trace "hello"; 1
IO.println x)
#eval f -- should not print hello
|
06a263e46baaa64273a6b66bee9b625a78bd5cc7 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/tactic/field_simp.lean | 799934c18998d835cec9b56c586a1a8a15d5d9bc | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,743 | 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 tactic.interactive
import tactic.norm_num
/-!
# `field_simp` tactic
Tactic to clear denominators in algebraic expressions, based on `simp` with a spec... |
688b51cb2207dc8f092bbbd1e0feae270ce35492 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/topology/instances/ennreal.lean | ebe99c6920a31c20d7b014751335713df7a5a747 | [
"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 | 38,430 | 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 topology.instances.nnreal data.real.ennreal
/-!
# Extended non-negative reals
-/
noncomputable theory
open classical set filter metric
open_locale classical
op... |
c72a33fb89a43226ac428f5503fc26afb029e6dc | 4727251e0cd73359b15b664c3170e5d754078599 | /src/measure_theory/measure/measure_space_def.lean | 6868f5d4042af85ab69974e205fa9f10a46a97b1 | [
"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 | 22,579 | 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
-/
import measure_theory.measure.outer_measure
import order.filter.countable_Inter
import data.set.accumulate
/-!
# Measure spaces
This file defines me... |
26e58c6e201f794c27d17e19748426f122dc8e22 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/set/finite.lean | d47ff606d49a42266db7227ebb5904843b527987 | [
"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 | 35,171 | 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
-/
import data.finset.sort
/-!
# Finite sets
This file defines predicates `finite : set α → Prop` and `infinite : set α → Prop` and proves some
basic f... |
1b18a0f5f862315cb9e40ad55a7e92c15f37b4c1 | cf39355caa609c0f33405126beee2739aa3cb77e | /tests/lean/run/univ1.lean | 5095b95be7a3dc631c01b582fdc6d6822b6fa204 | [
"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 | 650 | lean | namespace S1
axiom I : Type*
definition F (X : Type*) : Type* := (X → Prop) → Prop
axiom {u} unfoldd : I.{u} → F I.{u}
axiom {l} foldd : F I.{l} → I.{l}
axiom iso1 : ∀x, foldd (unfoldd x) = x
end S1
namespace S2
universe variables u
axiom I : Type.{u}
definition F (X : Type*) : Type* := (X → Prop) → Prop
axiom unfol... |
e6e794a9e30bd2af3cb8a4b31ffe4528af1f37da | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/data/num/basic.lean | d6f554625cec7b07a11eb6593f3f4ca25ecf1651 | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 17,287 | lean | /-
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Mario Carneiro
Binary representation of integers using inductive types.
Note: Unlike in Coq, where this representation is preferred because of
the reliance ... |
6f86780171d81abc72842e7547bbe2925d3b7fac | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/run/array1.lean | 4e98c3c25cf838f0ea675f2ce423b489e66b307b | [
"Apache-2.0",
"LLVM-exception",
"NCSA",
"LGPL-3.0-only",
"LicenseRef-scancode-inner-net-2.0",
"BSD-3-Clause",
"LGPL-2.0-or-later",
"Spencer-94",
"LGPL-2.1-or-later",
"HPND",
"LicenseRef-scancode-pcre",
"ISC",
"LGPL-2.1-only",
"LicenseRef-scancode-other-permissive",
"SunPro",
"CMU-Mach"... | permissive | leanprover/lean4 | 4bdf9790294964627eb9be79f5e8f6157780b4cc | f1f9dc0f2f531af3312398999d8b8303fa5f096b | refs/heads/master | 1,693,360,665,786 | 1,693,350,868,000 | 1,693,350,868,000 | 129,571,436 | 2,827 | 311 | Apache-2.0 | 1,694,716,156,000 | 1,523,760,560,000 | Lean | UTF-8 | Lean | false | false | 2,254 | lean | #check @Array.mk
def v : Array Nat := Array.mk [1, 2, 3, 4]
def w : Array Nat :=
(mkArray 9 1).push 3
#check @Array.casesOn
def f : Fin w.size → Nat :=
w.get
def arraySum (a : Array Nat) : Nat :=
a.foldl Nat.add 0
#eval mkArray 4 1
#eval Array.map (fun x => x+10) v
#eval f ⟨1, sorry⟩
#eval f ⟨9, sorry⟩
#eval ((... |
895e63a40cde6d0e4c8cf8c0ec7e43dca7aadbd9 | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /library/standard/logic/connectives/function.lean | b245ec02351977bbf7c24ce9f2fc7e0228287994 | [
"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 | 1,628 | 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
namespace function
section
parameters {A : Type} {B : Type} {C : Type} {D : Type} {E : Type}
abbreviation compose (f : B → C) (g : A → B) : A → C :=... |
7414b1f0dd05f343293e54aa0896b576070355b1 | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /tests/lean/baseIO.lean | 0c6f1284eba5b77d943b88ede5a2fce55568bbcd | [
"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 | 120 | lean | set_option trace.Compiler.saveBase true
def test : BaseIO UInt32 := do
let ref ← IO.mkRef 42
ref.set 10
ref.get
|
6e7fdf0ccb3d6ea9825b0ac2080ac446948d90b4 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/analytic/basic.lean | ce82b42524bcdfb15568d9773aa5d2f9a1eb8382 | [
"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 | 66,451 | lean | /-
Copyright (c) 2020 Sébastien Gouëzel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sébastien Gouëzel, Yury Kudryashov
-/
import analysis.calculus.formal_multilinear_series
import analysis.specific_limits.normed
import logic.equiv.fin
import topology.algebra.infini... |
03704a123056e01f53fb268aa2dc50224fdd979f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/let4.lean | 342198cc29206a92455ddeed5291280585106ab1 | [
"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 | 282 | lean | import data.num
constant f : num → num → num → num
check
let a := 10,
b := 10,
c := 10
in f a b (f a 10 c)
check
let a := 10,
b := let c := 10 in f a c (f a a (f 10 a c)),
d := 10,
e := f (f 10 10 d) (f d 10 10) a
in f a b (f e d 10)
|
7a68957f57d3d8d7884de9482447957a8c829def | 83c8119e3298c0bfc53fc195c41a6afb63d01513 | /tests/lean/run/slow_tc_synth.lean | 15673bc04fe06bc5c1b27a310b11499cdced2569 | [
"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 | 3,185 | lean | -- Generalized version of type classes with type class parameters that are
-- common in mathlib.
-- a could be topological_space, b could be ring, ...,
-- y is topological_ring, and z is topological_group
class a (α : Type)
instance a1 (α) : a α := ⟨α⟩
instance a2 (α) : a α := ⟨α⟩
instance a3 (α) : a α := ⟨α⟩
instanc... |
a65b668e5023782b075bb6d9dda0ce7dd1ea69dc | 76df16d6c3760cb415f1294caee997cc4736e09b | /lean/src/tactic/contra.lean | fe72624cd71598b12397b1a27135d3a1be1ada00 | [
"MIT"
] | permissive | uw-unsat/leanette-popl22-artifact | 70409d9cbd8921d794d27b7992bf1d9a4087e9fe | 80fea2519e61b45a283fbf7903acdf6d5528dbe7 | refs/heads/master | 1,681,592,449,670 | 1,637,037,431,000 | 1,637,037,431,000 | 414,331,908 | 6 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 401 | lean | import tactic.basic
open tactic.interactive
setup_tactic_parser
/-
`contra` is like `contradiction`, but it will `simp` a specified
hypothesis first (potentially with helping lemmas)
-/
@[interactive] meta def contra
(hs : parse tactic.simp_arg_list) (attr_names : parse with_ident_list) (locat : parse locatio... |
76385144d34e7bb2fabde317605de0181199104d | 55c7fc2bf55d496ace18cd6f3376e12bb14c8cc5 | /src/data/pnat/basic.lean | 2037d220fdce11f08a443904a86d5aae8045c51e | [
"Apache-2.0"
] | permissive | dupuisf/mathlib | 62de4ec6544bf3b79086afd27b6529acfaf2c1bb | 8582b06b0a5d06c33ee07d0bdf7c646cae22cf36 | refs/heads/master | 1,669,494,854,016 | 1,595,692,409,000 | 1,595,692,409,000 | 272,046,630 | 0 | 0 | Apache-2.0 | 1,592,066,143,000 | 1,592,066,142,000 | null | UTF-8 | Lean | false | false | 19,017 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro, Neil Strickland
-/
import data.nat.prime
/-- `ℕ+` is the type of positive natural numbers. It is defined as a subtype,
and the VM representation of `ℕ+` is the... |
0dd861790f06eb012cdeb52477bd1a3a67b13ddb | 6432ea7a083ff6ba21ea17af9ee47b9c371760f7 | /src/Lean/Elab/Tactic/Meta.lean | 30d3fefc2d4e1efa6f049f39e8a603f04402e5fa | [
"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 | 670 | 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.SyntheticMVars
import Lean.Elab.Tactic.Basic
namespace Lean.Elab
open Term
/-- Apply the give tactic code to `mvarId` in `MetaM`. -/
def ... |
77757de0bf55b6c86038572dfd11782938ac0483 | 95dcf8dea2baf2b4b0a60d438f27c35ae3dd3990 | /src/algebra/field.lean | d1eb2ddfda6108836da8e64b6956b0d7c09ef3f1 | [
"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 | 8,510 | 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
-/
import algebra.ring logic.basic
open set
universe u
variables {α : Type u}
instance division_ring.to_domain [s : division_ring α] : domain α :=
{ eq... |
e8bbfcaf87d81eb4d8c6e9a70376b0599de915b2 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/measure_theory/prod_group.lean | c82ab9cbb1cfa0ea102b4a294edfa376f79ade87 | [
"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 | 10,580 | lean | /-
Copyright (c) 2021 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.prod
import measure_theory.group
/-!
# Measure theory in the product of groups
In this file we show properties about measure theory in pro... |
a365a1c6599548fa6afa65f3f5b2045fac10f615 | a7eef317ddec01b9fc6cfbb876fe7ac00f205ac7 | /src/algebra/homology/homology.lean | 1bc3cb3e8b821024f88fac487e7dfb0073d7df32 | [
"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 | 5,008 | lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Markus Himmel
-/
import algebra.homology.chain_complex
import category_theory.limits.shapes.images
import category_theory.limits.shapes.kernels
/-!
# Cohomology groups... |
2cff2572f6237ae706e40604db97c705040cdeae | 75c54c8946bb4203e0aaf196f918424a17b0de99 | /src/cantor_space.lean | d60bf6d6a84caa3fc60e42f0517fcf8902b7f6f5 | [
"Apache-2.0"
] | permissive | urkud/flypitch | 261e2a45f1038130178575406df8aea78255ba77 | 2250f5eda14b6ef9fc3e4e1f4a9ac4005634de5c | refs/heads/master | 1,653,266,469,246 | 1,577,819,679,000 | 1,577,819,679,000 | 259,862,235 | 1 | 0 | Apache-2.0 | 1,588,147,244,000 | 1,588,147,244,000 | null | UTF-8 | Lean | false | false | 22,249 | lean | /-
Copyright (c) 2019 The Flypitch Project. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jesse Han, Floris van Doorn
-/
import .regular_open_algebra
universes u v
local attribute [instance] classical.prop_decidable
/- Some facts about Cantor spaces: topological sp... |
93f824fd05f61ad4d091d529ab373c47d44ffc9a | c45b34bfd44d8607a2e8762c926e3cfaa7436201 | /uexp/src/uexp/ucongr.lean | f7baedb474abd9a3c3f16de2a17a19574abd1209 | [
"BSD-2-Clause"
] | permissive | Shamrock-Frost/Cosette | b477c442c07e45082348a145f19ebb35a7f29392 | 24cbc4adebf627f13f5eac878f04ffa20d1209af | refs/heads/master | 1,619,721,304,969 | 1,526,082,841,000 | 1,526,082,841,000 | 121,695,605 | 1 | 0 | null | 1,518,737,210,000 | 1,518,737,210,000 | null | UTF-8 | Lean | false | false | 10,766 | lean | import .u_semiring
import .cosette_lemmas
import .cosette_tactics
/- congruence procedure for u-semiring -/
open tactic
private meta def flip_ueq : expr → tactic unit
| `(%%a * %%b) := flip_ueq a >> flip_ueq b
| `(%%t₁ ≃ %%t₂) :=
if t₁ > t₂ then return ()
else do h ← to_expr ``(eq_symm %%t₁ %%t₂),
... |
22e58062995b58efa84f5511286603e511e44199 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/CancellativeMonoid.lean | 5ad2152ab206c6c192930492d8faef4fcfbd004a | [] | 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 | 7,889 | 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 CancellativeMonoid
structure CancellativeMonoid (A : Type) : Type :=
(op : (A → (A → A)))
(e : A)
(lunit_e : (∀ {x : A} , (op e x) = x))
(runit_e ... |
f6154f64d0ec9d02c558e2b4333cd43ba5973183 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/analysis/convex/topology.lean | 5c6c9d9fa3dd3f69104435af93636ef4a6bd2b5c | [
"Apache-2.0"
] | permissive | jjgarzella/mathlib | 96a345378c4e0bf26cf604aed84f90329e4896a2 | 395d8716c3ad03747059d482090e2bb97db612c8 | refs/heads/master | 1,686,480,124,379 | 1,625,163,323,000 | 1,625,163,323,000 | 281,190,421 | 2 | 0 | Apache-2.0 | 1,595,268,170,000 | 1,595,268,169,000 | null | UTF-8 | Lean | false | false | 8,569 | lean | /-
Copyright (c) 2020 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alexander Bentkamp, Yury Kudriashov
-/
import analysis.convex.basic
import analysis.normed_space.finite_dimension
import topology.path_connected
/-!
# Topological and metric properti... |
1bdf1fc3b3d250ab0d100a465ccf9913887a80c3 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/data/fin/tuple/default.lean | 8254c590aabd20b7139b5c24c618bf78eb6b7545 | [
"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 | 28 | lean | import data.fin.tuple.basic
|
096cacd4edb44e7bb8054d6f3b6335b3e043a741 | 618003631150032a5676f229d13a079ac875ff77 | /src/ring_theory/subsemiring.lean | ec75aecece67bbc7fcf7f902ca23a1830c36522d | [
"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 | 22,434 | lean | /-
Copyright (c) 2020 Yury Kudryashov All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import ring_theory.prod
import group_theory.submonoid
import data.equiv.ring
/-!
# Bundled subsemirings
We define bundled subsemirings and some standard construct... |
d30059cb6f8b71010f47bac1fdd6ec1aff8aded4 | e151e9053bfd6d71740066474fc500a087837323 | /src/hott/algebra/group.lean | 9e386691ebc7767470fe1cfe360817c0e3aedd9b | [
"Apache-2.0"
] | permissive | daniel-carranza/hott3 | 15bac2d90589dbb952ef15e74b2837722491963d | 913811e8a1371d3a5751d7d32ff9dec8aa6815d9 | refs/heads/master | 1,610,091,349,670 | 1,596,222,336,000 | 1,596,222,336,000 | 241,957,822 | 0 | 0 | Apache-2.0 | 1,582,222,839,000 | 1,582,222,838,000 | null | UTF-8 | Lean | false | false | 7,492 | 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
Various multiplicative and additive structures. Partially modeled on Isabelle's library.
-/
import ..init .inf_group
universes u v w
hott_theory
set_... |
381257ac6188447f9aeb3b1b81972561aba09815 | bbecf0f1968d1fba4124103e4f6b55251d08e9c4 | /src/topology/continuous_function/algebra.lean | 8bde42566f7e98ceb83f675618075a509b188f16 | [
"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 | 24,226 | lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Nicolò Cavalleri
-/
import topology.algebra.module
import topology.continuous_function.basic
import algebra.algebra.subalgebra
import tactic.field_simp
/-!
# Algebraic... |
ee3f9bc14560f74743df2c81dd5057bf33a0539a | ae1e94c332e17c7dc7051ce976d5a9eebe7ab8a5 | /tests/lean/run/task_test_io.lean | 3a7bd2775ca6afe1bce4024d6b326f9c167d2615 | [
"Apache-2.0"
] | permissive | dupuisf/lean4 | d082d13b01243e1de29ae680eefb476961221eef | 6a39c65bd28eb0e28c3870188f348c8914502718 | refs/heads/master | 1,676,948,755,391 | 1,610,665,114,000 | 1,610,665,114,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 922 | lean | #lang lean4
#eval id (α := IO _) do
let t1 ← IO.asTask $ Nat.forM 10 fun _ => IO.println "hi";
let t2 ← IO.asTask $ Nat.forM 10 fun _ => IO.println "ho";
IO.ofExcept t1.get
#eval id (α := IO _) do
let t1 ← IO.mapTask IO.println (Task.spawn fun _ => "ha");
pure ()
#eval id (α := IO _) do
let t1 ← IO.bindTa... |
96784c8463b66c829cc1446b84da64ff3d2cbc5e | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/PreSemiring.lean | b26b6a27c1eb735c7d040bd5066f4c33e9773d05 | [] | 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 | 9,602 | 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 PreSemiring
structure PreSemiring (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(associative_times : (∀ {x y z : A} , (times (times... |
2fac244e3800e06b471ac84f05e4c3d4e045830f | 26ac254ecb57ffcb886ff709cf018390161a9225 | /src/measure_theory/borel_space.lean | 2872c50f41812ac8ee470312a694bade85d41e22 | [
"Apache-2.0"
] | permissive | eric-wieser/mathlib | 42842584f584359bbe1fc8b88b3ff937c8acd72d | d0df6b81cd0920ad569158c06a3fd5abb9e63301 | refs/heads/master | 1,669,546,404,255 | 1,595,254,668,000 | 1,595,254,668,000 | 281,173,504 | 0 | 0 | Apache-2.0 | 1,595,263,582,000 | 1,595,263,581,000 | null | UTF-8 | Lean | false | false | 29,479 | 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 measure_theory.measurable_space
import topology.instances.ennreal
import analysis.normed_space.basic
/-!
# Borel (measurable) space
## Main ... |
123e96fa74c516ae63d60d085c9c1c446ba8ae36 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /test/lint_simp_comm.lean | a2883c1b82978a51b170fc0146bd53403c819389 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 1,048 | lean | import tactic.lint
/-! ## Commutativity lemmas should be rejected -/
attribute [simp] add_comm add_left_comm
open tactic
#eval do
decl ← get_decl ``add_comm,
res ← linter.simp_comm.test decl,
-- linter complains
guard res.is_some
open tactic
#eval do
decl ← get_decl ``add_left_comm,
res ← linter.simp_comm.test dec... |
6bcee3e33618b686c74ca7059f91327782179ce9 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/run/blast10.lean | ec0073890f51865db467b0faa95c96b45705d77a | [
"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 | 181 | lean | import data.list
set_option blast.strategy "unit"
definition lemma1 : true :=
by blast
open perm
definition lemma2 (l : list nat) : l ~ l :=
by blast
print lemma1
print lemma2
|
298ea6ad99ce9f80a1b520d87f146d4441c083f0 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /src/Lean/Server/Utils.lean | bdb4404b348a5796032f3ec2a54fb06aabfe2e63 | [
"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 | 4,796 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Marc Huisinga
-/
import Lean.Data.Lsp.Communication
import Lean.Data.Lsp.Diagnostics
import Lean.Data.Lsp.Extra
import Lean.Data.Lsp.TextSync
import Lean.Server.... |
b386f9a5f95c6106cf61a1104fa91ab4a5a28b50 | 6dc0c8ce7a76229dd81e73ed4474f15f88a9e294 | /src/Lean/Elab/InfoTree.lean | 68b2935eea16822a7de3dc23d0ab098cc5d88d51 | [
"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 | 9,457 | lean | /-
Copyright (c) 2020 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki, Leonardo de Moura
-/
import Lean.Data.Position
import Lean.Expr
import Lean.Message
import Lean.Data.Json
import Lean.Meta.Basic
import Lean.Meta.PPGoal
namespa... |
252fcc6e25a4f7b6af7c0c7d6ab09e776b2c1881 | c512f72c3704cbf8f34addab0d4482633dc46bbe | /src/combinator.lean | f48c69767e26b7aeb84a24465a7fe9ece3c864e8 | [] | no_license | iehality/abstract-computability | 7479c2786ecac8e00f3d7be00cbd7cd4a4ae43fc | 19c1a32e748e733c65f3e9e6395e4e56e4330cca | refs/heads/main | 1,680,113,399,119 | 1,616,950,483,000 | 1,616,950,483,000 | 346,220,308 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 872 | lean | import pca
import re
namespace pca
universe variable u
variables {α : Type u}
variables [pca α]
def pair : α := 0 →∅ Λ 1, (Λ 2, (#2 * #0 * #1))
notation `⟪`a`, `b`⟫` := 𝚜 (𝚜 i (𝚔 a)) (𝚔 b)
def π₀ : α := 0 →∅ #0 * &submodel.k
def π₁ : α := 0 →∅ #0 * (&submodel.k * &submodel.i)
@[simp] lemma pair_e [pca α] (a b :... |
f1d2810bf80a5e5b8e19cbee7cb535983d1cdbc4 | 05b503addd423dd68145d68b8cde5cd595d74365 | /src/ring_theory/free_comm_ring.lean | 089f3891b918db8bd1a903b70f1627085a08dbea | [
"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 | 15,975 | lean | /-
Copyright (c) 2019 Kenny Lau. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kenny Lau, Johan Commelin
-/
import group_theory.free_abelian_group data.equiv.functor data.mv_polynomial
import ring_theory.ideal_operations ring_theory.free_ring
noncomputable theory
lo... |
60259ec398e9116bd8b3c2e5eb0f1814c78517bb | 9ad8d18fbe5f120c22b5e035bc240f711d2cbd7e | /src/algebra/convolution.lean | ff9b0f7ac5dfdc776dd0bcebca3674ca22c4fa63 | [] | no_license | agusakov/lean_lib | c0e9cc29fc7d2518004e224376adeb5e69b5cc1a | f88d162da2f990b87c4d34f5f46bbca2bbc5948e | refs/heads/master | 1,642,141,461,087 | 1,557,395,798,000 | 1,557,395,798,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 19,157 | lean | /-
Copyright (c) 2019 Neil Strickland. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Neil Strickland
This file sets up a framework for convolution. The first ingredient
is an additive monoid `M` with the property that for any `m ∈ M`, the
set `{⟨x,y⟩ : x + y = m}` i... |
afd8a680b9ffba46906ee9630f8f319929c68c86 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/interactive/num2.lean | 06c5e02270c16fb04a7edbec2fd4dace1b3de730 | [
"Apache-2.0"
] | permissive | soonhokong/lean | cb8aa01055ffe2af0fb99a16b4cda8463b882cd1 | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | refs/heads/master | 1,611,187,284,081 | 1,450,766,737,000 | 1,476,122,547,000 | 11,513,992 | 2 | 0 | null | 1,401,763,102,000 | 1,374,182,235,000 | C++ | UTF-8 | Lean | false | false | 1,453 | 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
-----------------------------------------------------... |
066d6c8d730a6fc66ef863cecbbb126cff25848c | a46270e2f76a375564f3b3e9c1bf7b635edc1f2c | /7.2.lean | 67649b0fc8dc794d1b9d8a42e106000216f47a0a | [
"CC0-1.0"
] | permissive | wudcscheme/lean-exercise | 88ea2506714eac343de2a294d1132ee8ee6d3a20 | 5b23b9be3d361fff5e981d5be3a0a1175504b9f6 | refs/heads/master | 1,678,958,930,293 | 1,583,197,205,000 | 1,583,197,205,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,212 | lean | #check option.cases_on
def comp {α β γ : Type*} (f: α -> option β) (g: β -> option γ) (x: α): option γ :=
option.cases_on (f x) option.none (λ y, g y)
#print comp
#reduce comp (λ x, some (x*x)) (λ x, some (x+1)) 10
example: comp (λ x, some (x*x)) (λ x, some (x+1)) 10 = some 101 := by rsimp
#reduce comp (λ... |
9d3a0ac9e8f4e80ca5db92f2ef84b74f94feba89 | b7f22e51856f4989b970961f794f1c435f9b8f78 | /hott/types/list.hlean | f5aee10151d2d8d83aced5fca6a9bab3656bae47 | [
"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 | 36,105 | hlean | /-
Copyright (c) 2014 Parikshit Khanna. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Parikshit Khanna, Jeremy Avigad, Leonardo de Moura, Floris van Doorn
Basic properties of lists.
Ported from the standard library (list.basic and list.comb)
Some lemmas are commented... |
6bc68a746e5027fc48615ff10aad447461d92131 | 07c76fbd96ea1786cc6392fa834be62643cea420 | /hott/homotopy/cylinder.hlean | 322018b53180d6fdf75afdcd6e4d2474a55b8a6e | [
"Apache-2.0"
] | permissive | fpvandoorn/lean2 | 5a430a153b570bf70dc8526d06f18fc000a60ad9 | 0889cf65b7b3cebfb8831b8731d89c2453dd1e9f | refs/heads/master | 1,592,036,508,364 | 1,545,093,958,000 | 1,545,093,958,000 | 75,436,854 | 0 | 0 | null | 1,480,718,780,000 | 1,480,718,780,000 | null | UTF-8 | Lean | false | false | 4,776 | hlean | /-
Copyright (c) 2015 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
Declaration of mapping cylinders
-/
import hit.quotient types.fiber
open quotient eq sum equiv fiber
namespace cylinder
section
parameters {A B : Type} (f : A... |
be939bde89c1f2d4ead78de02a98d205b2f4bb71 | 9028d228ac200bbefe3a711342514dd4e4458bff | /src/data/zmod/basic.lean | f99235a3cc05f0e55219a0b5e458d9b0e3fb92f1 | [
"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 | 28,901 | 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
import algebra.char_p
import data.nat.totient
import ring_theory.ideal.operations
/-!
# Integers mod `n`
Definition of the integers mod n, and the... |
f254e8bb23ade69ee3571f272a794ba9cecaccf4 | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/algebra/periodic.lean | 0542863bc8bf425a729b4e0f20400b89645484ac | [
"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 | 16,899 | lean | /-
Copyright (c) 2021 Benjamin Davidson. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Benjamin Davidson
-/
import algebra.field.opposite
import algebra.module.basic
import algebra.order.archimedean
import data.int.parity
import group_theory.coset
/-!
# Periodicity
... |
ba790af3d57e6b1729c5a5221ac3136d0cedc839 | 82b86ba2ae0d5aed0f01f49c46db5afec0eb2bd7 | /src/Init/Fix.lean | a01a955208f3170f3454c0a47ce73957559a0c17 | [
"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 | 5,915 | 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
-/
prelude
import Init.Data.UInt
universe u
def bfix1 {α β : Type u} (base : α → β) (rec : (α → β) → α → β) : Nat → α → β
| 0, a => base a
| n+1, a => r... |
829d7ea8f39a9ece73b4a51c6f7cc92cc87d007d | bb31430994044506fa42fd667e2d556327e18dfe | /src/algebra/order/to_interval_mod.lean | 3a7b1cb9762a4067915627cd3d0bc63780ba6662 | [
"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 | 26,130 | lean | /-
Copyright (c) 2022 Joseph Myers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joseph Myers
-/
import algebra.module.basic
import algebra.order.archimedean
import algebra.periodic
import group_theory.quotient_group
/-!
# Reducing to an interval modulo its length
... |
ff2e3f3ba62f6109164a133efe202e425e448679 | cf39355caa609c0f33405126beee2739aa3cb77e | /leanpkg/leanpkg/git.lean | 341de19aa0f264a764f7cbc8b9e5256a61c8615e | [
"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 | 1,444 | lean | /-
Copyright (c) 2017 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Gabriel Ebner
-/
import leanpkg.lean_version system.io
namespace leanpkg
def upstream_git_branch :=
if lean.is_release then
"lean-" ++ lean_version_string_core
else
"ma... |
5160431ae0fb165fe3a36d94bbd3fd5e41e1c8fa | 94e33a31faa76775069b071adea97e86e218a8ee | /src/algebra/big_operators/multiset.lean | a57e533d9e30f4263499ec9dced2ac1810b3698a | [
"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 | 15,079 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import algebra.group_with_zero.power
import data.list.big_operators
import data.multiset.basic
/-!
# Sums and products over multisets
In this file we define ... |
8fa008993784d9d72192396297be611d69c5ed5d | fcf3ffa92a3847189ca669cb18b34ef6b2ec2859 | /src/world5/level1.lean | a145a07336cad4b0a635eb3af0ae2cc93f4ed950 | [
"Apache-2.0"
] | permissive | nomoid/lean-proofs | 4a80a97888699dee42b092b7b959b22d9aa0c066 | b9f03a24623d1a1d111d6c2bbf53c617e2596d6a | refs/heads/master | 1,674,955,317,080 | 1,607,475,706,000 | 1,607,475,706,000 | 314,104,281 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 75 | lean | example (P Q : Type) (p : P) (h : P → Q) : Q :=
begin
exact h(p),
end |
50806ae2b837003c3cf337f383caa2f0c60ad307 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/normed/mul_action.lean | 9765c4e68b77f0698916032168e0afd2d78e296f | [
"Apache-2.0"
] | permissive | leanprover-community/mathlib | 56a2cadd17ac88caf4ece0a775932fa26327ba0e | 442a83d738cb208d3600056c489be16900ba701d | refs/heads/master | 1,693,584,102,358 | 1,693,471,902,000 | 1,693,471,902,000 | 97,922,418 | 1,595 | 352 | Apache-2.0 | 1,694,693,445,000 | 1,500,624,130,000 | Lean | UTF-8 | Lean | false | false | 4,552 | lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import topology.metric_space.algebra
import analysis.normed.field.basic
/-!
# Lemmas for `has_bounded_smul` over normed additive groups
> THIS FILE IS SYNCHRONIZED WITH M... |
d9e26251dc62a261a863ee44281ba24ca82f0130 | 592ee40978ac7604005a4e0d35bbc4b467389241 | /Library/generated/mathscheme-lean/SemiRng.lean | 4e55cf776e4c89ed9dce9279387867f9ffabda65 | [] | 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 | 10,735 | 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 SemiRng
structure SemiRng (A : Type) : Type :=
(times : (A → (A → A)))
(plus : (A → (A → A)))
(zero : A)
(lunit_zero : (∀ {x : A} , (plus zero x) ... |
c2bd809fbfb4312bf56e8eeccc5c83c8378306c8 | 206422fb9edabf63def0ed2aa3f489150fb09ccb | /src/measure_theory/haar_measure.lean | 23d9097b58b526367c1fe2039bd4ab977a98ada4 | [
"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 | 31,055 | lean | /-
Copyright (c) 2020 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import measure_theory.content
import measure_theory.prod_group
/-!
# Haar measure
In this file we prove the existence of Haar measure for a locally compact Haus... |
0796e4fcd28d0accf77ac9050a40499963b211c8 | 8cb37a089cdb4af3af9d8bf1002b417e407a8e9e | /library/init/meta/converter/conv.lean | 18a0d8c3313d20522edc27c2f3a9e065d642f1dd | [
"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 | 4,377 | lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura
Converter monad for building simplifiers.
-/
prelude
import init.meta.tactic init.meta.simp_tactic init.meta.interactive
import init.meta.congr_lemma init.met... |
73501b21eddf461f33701d469a32cf2a6f5ba266 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/analysis/convex/slope.lean | b8e68c71b0c0e03f47f8f6e48c712aa78dc3f13d | [
"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,321 | lean | /-
Copyright (c) 2021 Yury Kudriashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudriashov, Malo Jaffré
-/
import analysis.convex.function
import tactic.field_simp
import tactic.linarith
/-!
# Slopes of convex functions
> THIS FILE IS SYNCHRONIZED WITH MAT... |
ab71fc664b89c6aa207d240733b6c6002f9ad117 | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/data/finite/card.lean | 4adac16398fddbbf5bf83da96ec58db4bb2d52ca | [
"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 | 4,279 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import data.finite.basic
import set_theory.cardinal.finite
/-!
# Cardinality of finite types
The cardinality of a finite type `α` is given by `nat.card α`. This function... |
1dad5388409aef40db660d587dc857900136075b | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/group_theory/perm/concrete_cycle.lean | 55dc4f27eba1b9cbf8de2489843acd5b80faa47c | [
"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 | 19,615 | 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 group_theory.perm.list
import data.list.cycle
import group_theory.perm.cycle_type
/-!
# Properties of cyclic permutations constructed from lists/cycles
In... |
b4fea7a6695c061e6e1db86cabbb597c5931a701 | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/group_theory/commutator.lean | c8f5200998a4a54bf407e1247e661bf4376a8cb6 | [
"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 | 8,893 | lean | /-
Copyright (c) 2021 Jordan Brown, Thomas Browning, Patrick Lutz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jordan Brown, Thomas Browning, Patrick Lutz
-/
import data.bracket
import group_theory.subgroup.basic
import tactic.group
/-!
# Commutators of Subgroups
... |
1fab0f472b6939cc3b8e894cd527d4ac218e9d4c | 947b78d97130d56365ae2ec264df196ce769371a | /tests/lean/run/29.lean | 605f2ce0c4b122a84f15dbb8ed5c706ff25b4487 | [
"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 | 117 | lean | new_frontend
def foo : Nat -> Nat -> Nat -> List Nat
| _, _, 0 => [1]
| 0, _, _ => [2]
| n, d, k+1 => foo n d k
|
fb8e1b6facece4a46c17e8d85b5156973f41b3ba | 9dc8cecdf3c4634764a18254e94d43da07142918 | /src/topology/category/Top/limits.lean | e227bd9f53d48c69c82204c874f5d07e8dc7977a | [
"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 | 41,059 | lean | /-
Copyright (c) 2017 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Scott Morrison, Mario Carneiro, Andrew Yang
-/
import topology.category.Top.epi_mono
import category_theory.limits.preserves.limits
import category_theory.category.ulif... |
4e687b299ec82ca0e741c13fbddcc75db5b03baf | 94e33a31faa76775069b071adea97e86e218a8ee | /src/logic/equiv/transfer_instance.lean | 8613f86aa461064ebd1565feab1439bdf56987db | [
"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 | 16,127 | lean | /-
Copyright (c) 2018 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl
-/
import algebra.algebra.basic
import algebra.field.basic
import algebra.group.type_tags
import logic.equiv.basic
import ring_theory.ideal.local_ring
/-!
# Transfer al... |
f3e12f1f4f271ae45b415aec59a1ac996ae5b2ed | f10d66a159ce037d07005bd6021cee6bbd6d5ff0 | /to_multiset.lean | 237b4025841af25d5d63d489b1da5077bf8177bd | [] | no_license | johoelzl/mason-stother | 0c78bca183eb729d7f0f93e87ce073bc8cd8808d | 573ecfaada288176462c03c87b80ad05bdab4644 | refs/heads/master | 1,631,751,973,492 | 1,528,923,934,000 | 1,528,923,934,000 | 109,133,224 | 0 | 1 | null | null | null | null | UTF-8 | Lean | false | false | 11,356 | lean | import data.finsupp .to_finsupp
open classical
local attribute [instance] prop_decidable
noncomputable theory
local infix ^ := monoid.pow
universe u
variable α : Type u
namespace multiset
--simp correct?
theorem multiset.not_mem_empty (a : α) : a ∉ (∅ : finset α) := id --why does this work?
lemma map_id_eq {f : mult... |
f6ffebf650134cf86dbd6f3a29d5726168fc0b1e | 491068d2ad28831e7dade8d6dff871c3e49d9431 | /tests/lean/run/tree_height.lean | af93029df015984c4fc0c692c8eeaa23010252db | [
"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 | 1,096 | lean | import logic data.nat
open eq.ops nat
inductive tree (A : Type) :=
| leaf : A → tree A
| node : tree A → tree A → tree A
namespace tree
definition height {A : Type} (t : tree A) : nat :=
tree.rec_on t
(λ a, zero)
(λ t₁ t₂ h₁ h₂, succ (max h₁ h₂))
definition height_lt {A : Type} : tree A → tree A → Prop :=
inv_i... |
0ce11d9b9e6c5f310bd24a34618a93c1874e72c9 | 82e44445c70db0f03e30d7be725775f122d72f3e | /src/data/real/cau_seq_completion.lean | 69f6c32cf9c215dc8835ad312185abf058f93f45 | [
"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 | 10,025 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Robert Y. Lewis
-/
import data.real.cau_seq
/-!
# Cauchy completion
This file generalizes the Cauchy completion of `(ℚ, abs)` to the completion of a commutative ring
... |
6c2ff480628da0245c7af0f58bf20da52a855b3b | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/countable/basic.lean | f167ba762df1a5f33d1e0f00ddd64495d0acdf56 | [
"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,277 | lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import logic.equiv.nat
import logic.equiv.fin
import data.countable.defs
/-!
# Countable types
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> Any changes to this fi... |
f1b835fae40a09ec7277f887b54f9ac0f1cf809b | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/Lean3Lib/init/meta/widget/replace_save_info_auto.lean | a50427af4f981d9120411e6073da733c52f1245d | [] | 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 | 251 | lean | /-
Copyright (c) E.W.Ayers. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: E.W.Ayers
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.meta.widget.interactive_expr
namespace Mathlib
end Mathlib |
c21f1faa92848aae866a9f79a5ffed8361579e13 | 957a80ea22c5abb4f4670b250d55534d9db99108 | /tests/lean/quot_bug.lean | 814c14dc454db90ebb58d00832c646d6afd4f096 | [
"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 | 229 | lean | open quot
variables {A : Type} {B : A → Type}
variable f : Π a : A, B a
#reduce λ x, quot.lift_on ⟦f⟧ (λf : (Πx : A, B x), f) _ x
example (x : A) : quot.lift_on ⟦f⟧ (λf : (Πx : A, B x), f) sorry x = f x :=
rfl
|
b2c48f62f3bcc2198008fc02696fa4b2db1c44aa | 57aec6ee746bc7e3a3dd5e767e53bd95beb82f6d | /src/Init/Coe.lean | 20ea449df0a13cd9366921405c1d81958fa14f26 | [
"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 | 6,376 | 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
-/
prelude
import Init.Core
universes u v w w'
class Coe (α : Sort u) (β : Sort v) where
coe : α → β
/-- Auxiliary class that contains the transitive clos... |
7b8a05adc232adc24681aab1e572ceaea5828649 | 367134ba5a65885e863bdc4507601606690974c1 | /src/data/multiset/antidiagonal.lean | d8f3ce7cffb2c45123a50810aad9edc479c9381f | [
"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 | 2,986 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Mario Carneiro
-/
import data.multiset.powerset
/-!
# The antidiagonal on a multiset.
The antidiagonal of a multiset `s` consists of all pairs `(t₁, t₂)`
such that `t₁ + t₂ = s`. Thes... |
2376bf95552a9a2432fde4a5897a84a0fb290ba5 | 4efff1f47634ff19e2f786deadd394270a59ecd2 | /src/data/int/basic.lean | 278cee5e1c266a38eb6e32df9cb11d4707677b20 | [
"Apache-2.0"
] | permissive | agjftucker/mathlib | d634cd0d5256b6325e3c55bb7fb2403548371707 | 87fe50de17b00af533f72a102d0adefe4a2285e8 | refs/heads/master | 1,625,378,131,941 | 1,599,166,526,000 | 1,599,166,526,000 | 160,748,509 | 0 | 0 | Apache-2.0 | 1,544,141,789,000 | 1,544,141,789,000 | null | UTF-8 | Lean | false | false | 47,782 | lean | /-
Copyright (c) 2016 Jeremy Avigad. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Avigad
The integers, with addition, multiplication, and subtraction.
-/
import data.nat.basic
import algebra.order_functions
open nat
namespace int
instance : inhabited ℤ := ... |
d4de9de206ce5b3eabef81f410374e8577968c10 | 5382d69a781e8d7e4f53e2358896eb7649c9b298 | /util.lean | eaa8915576f954d24617a577024573972952a7ee | [] | no_license | evhub/lean-math-examples | c30249747a21fba3bc8793eba4928db47cf28768 | dec44bf581a1e9d5bf0b5261803a43fe8fd350e1 | refs/heads/master | 1,624,170,837,738 | 1,623,889,725,000 | 1,623,889,725,000 | 148,759,369 | 3 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,723 | lean | namespace util
open function nat
open classical (em prop_decidable)
local attribute [instance] prop_decidable
-- nat:
@[simp] theorem le_zero_elim {n: nat}:
n ≤ 0 ↔ n = 0 := begin
apply iff.intro,
apply eq_zero_of_le_zero,
intro h0,
rw [h0],
... |
084ba036035c435608edc5780348ee12b0d3c7e0 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/order/semiconj_Sup.lean | 3788b90f230dd867e660813246c91076f3bcbe85 | [
"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,396 | 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
-/
import order.conditionally_complete_lattice
import logic.function.conjugate
import order.ord_continuous
import data.equiv.mul_add
/-!
# Semiconjugate by `Sup... |
c53e9befbdb1159a808638ab7f84c6e3f322f673 | 6dacdff2020860f2468bb8dacf344e6b043d6a78 | /love/src/demo_group.lean | f4df69bdef808e837500b8735feec8ba691d1d2d | [] | no_license | alexjbest/talks | 514ca57af312a14cf68c30efa1c7228294edc190 | 84976b4329ea768c754da72cc15d5ce29332466d | refs/heads/master | 1,686,993,465,308 | 1,686,315,975,000 | 1,686,315,975,000 | 16,347,963 | 2 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,471 | lean | import algebra.group.basic
import data.bracket
import tactic.group
import tactic.gptf
/- Tactic : rw
## Summary
If `h` is a proof of `X = Y`, then `rw h,` will change
all `X`s in the goal to `Y`s.
Variants: `rw ← h` changes
`Y` to `X` and
`rw h at h2` changes `X` to `Y` in hypothesis `h2` instead
of the goal.
## De... |
370c64f4211d66beb448f07b8604a6be7f6eb41b | 947fa6c38e48771ae886239b4edce6db6e18d0fb | /src/category_theory/structured_arrow.lean | b478571ddaa5c3eec5df92b7164fe3ad8823f686 | [
"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 | 15,896 | lean | /-
Copyright (c) 2021 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Scott Morrison
-/
import category_theory.punit
import category_theory.comma
import category_theory.limits.shapes.terminal
/-!
# The category of "structured arrows"
For `T... |
ae8258de1315626655e3180dfade909bb6ca7ecd | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/error_pos_bug.lean | 46511afd7df58a0736b4f37728d269d891c1258c | [
"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 | 313 | lean | inductive category (ob : Type) : Type :=
mk : Π (hom : ob → ob → Type)
(comp : Π⦃a b c : ob⦄, hom b c → hom a b → hom a c),
category ob
inductive Category : Type := mk : Π (ob : Type), category ob → Category
definition MK (a b c : Category) : _ :=
Category.mk a (category.mk b c)
|
e96a41983fdc90a1a3d3ddb49437a5ec497853f7 | 94e33a31faa76775069b071adea97e86e218a8ee | /src/category_theory/limits/has_limits.lean | 37f6c18894d68d3a70c4aac5b1b3272e8568b26c | [
"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 | 43,178 | lean | /-
Copyright (c) 2018 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Mario Carneiro, Scott Morrison, Floris van Doorn
-/
import category_theory.limits.is_limit
import category_theory.category.ulift
/-!
# Existence of limits and colimits
I... |
8c23bb6715135e28408931f061cd198d27bcdbc1 | 74addaa0e41490cbaf2abd313a764c96df57b05d | /Mathlib/order/filter/pointwise.lean | 93454fa79871cffffd0a2614aefe6d207712fa19 | [] | no_license | AurelienSaue/Mathlib4_auto | f538cfd0980f65a6361eadea39e6fc639e9dae14 | 590df64109b08190abe22358fabc3eae000943f2 | refs/heads/master | 1,683,906,849,776 | 1,622,564,669,000 | 1,622,564,669,000 | 371,723,747 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 3,821 | lean | /-
Copyright (c) 2019 Zhouhang Zhou. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Zhouhang Zhou
-/
import Mathlib.PrePort
import Mathlib.Lean3Lib.init.default
import Mathlib.algebra.pointwise
import Mathlib.order.filter.basic
import Mathlib.PostPort
universes u v
... |
1ba66bb983db8b2a4fd5389ae752ee9c66be83fe | aa3f8992ef7806974bc1ffd468baa0c79f4d6643 | /tests/lean/run/fibrant_class1.lean | 270824c1c796d72dc690ee853af61aa132ecade7 | [
"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 | 566 | lean | import general_notation type
inductive fibrant [class] (T : Type) : Type :=
fibrant_mk : fibrant T
inductive path {A : Type'} [fA : fibrant A] (a : A) : A → Type :=
idpath : path a a
notation a ≈ b := path a b
axiom path_fibrant {A : Type'} [fA : fibrant A] (a b : A) : fibrant (path a b)
instance [persistent] path_... |
858332ebe068a623716f87a2c3f95d60d75715c9 | 4950bf76e5ae40ba9f8491647d0b6f228ddce173 | /src/topology/algebra/ordered.lean | fc7ef5ffcda12daac0c48c6491472bc5820d958d | [
"Apache-2.0"
] | permissive | ntzwq/mathlib | ca50b21079b0a7c6781c34b62199a396dd00cee2 | 36eec1a98f22df82eaccd354a758ef8576af2a7f | refs/heads/master | 1,675,193,391,478 | 1,607,822,996,000 | 1,607,822,996,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 155,023 | lean | /-
Copyright (c) 2017 Johannes Hölzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes Hölzl, Mario Carneiro, Yury Kudryashov
-/
import tactic.linarith
import tactic.tfae
import algebra.archimedean
import algebra.group.pi
import algebra.ordered_ring
import order... |
0f57457c62abcb7d91208a53b8dd943c81438127 | 31f556cdeb9239ffc2fad8f905e33987ff4feab9 | /tests/lean/lcnfTypes.lean | 3fbf4f118f9c7bfba2c5582cd9ed2c252cf32659 | [
"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 | 4,436 | lean | import Lean
notation "◾" => lcErased
notation "⊤" => lcAny
open Lean Compiler LCNF Meta
def test (declName : Name) : MetaM Unit := do
IO.println s!"{declName} : {← ppExpr (← LCNF.getOtherDeclBaseType declName [])}"
inductive Vec (α : Type u) : Nat → Type u
| nil : Vec α 0
| cons : α → Vec α n → Vec α (n+1)
d... |
3c06a717a4a80cceca55a47a9e7fc87a921cb56b | 4d2583807a5ac6caaffd3d7a5f646d61ca85d532 | /src/data/fintype/basic.lean | bf52d12d96ac9ded9c43d55c0d0c1fd4e16ada9e | [
"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 | 84,111 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import data.array.lemmas
import data.finset.option
import data.finset.pi
import data.finset.powerset
import data.finset.prod
import data.sym.basic
import data.ulift
i... |
40de64b19b9d136612e78bf449679c4c271f8568 | 8cae430f0a71442d02dbb1cbb14073b31048e4b0 | /src/data/nat/order/lemmas.lean | 84cddcf68ccce439b121eaff6166e52c1022aff5 | [
"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,107 | lean | /-
Copyright (c) 2014 Floris van Doorn (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn, Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
import data.nat.order.basic
import data.nat.units
import data.set.basic
import al... |
b967fe127dc2f989f984c3fe5845de08c9513e4f | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/data/real/nnreal.lean | 00a54cf758363d22ef1ece73fc0812e5a54046ed | [
"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 | 32,325 | lean | /-
Copyright (c) 2018 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import algebra.linear_ordered_comm_group_with_zero
import algebra.big_operators.ring
import data.real.basic
import algebra.indicator_function
import algebra.algebra.b... |
d6275f77a7d303d9dcf302f3d37d7fa519dd7683 | 453dcd7c0d1ef170b0843a81d7d8caedc9741dce | /group_theory/group_action.lean | e56691e60176893d914476400cc6335960f3bd61 | [
"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 | 4,156 | 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.set.finite group_theory.coset
universes u v
variables {α : Type u} {β : Type v}
class is_monoid_action [monoid α] (f : α → β → β) : Prop :=
(one : ∀ a : β, ... |
5fbbdb869f0a05661de07ed545ea586a94bca273 | 737dc4b96c97368cb66b925eeea3ab633ec3d702 | /src/Lean/Meta/IndPredBelow.lean | 04d6b985bee03b20f4570f0e6e088cc905a69b86 | [
"Apache-2.0"
] | permissive | Bioye97/lean4 | 1ace34638efd9913dc5991443777b01a08983289 | bc3900cbb9adda83eed7e6affeaade7cfd07716d | refs/heads/master | 1,690,589,820,211 | 1,631,051,000,000 | 1,631,067,598,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 25,609 | lean | /-
Copyright (c) 2021 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dany Fabian
-/
import Lean.Meta.Constructions
import Lean.Meta.Transform
import Lean.Meta.Tactic
import Lean.Meta.Match.Match
import Lean.Meta.Reduce
namespace Lean.Meta.IndPr... |
a177328976b58dc89013110cd3fc8985a304bc83 | d6aa76a731f5d0a2c72a62729e52996fe8ac81b3 | /src/friendship.lean | 1baf3d44d07fcb444cc8d404555ca5798cc4b083 | [] | no_license | jalex-stark/friendship-theorem | 88d30d3f4b17cc275a1a4bbc747eeb41f9e1b7a1 | d0e823b0b298c3fcfffe885cd6d2064a5757ef27 | refs/heads/master | 1,668,993,481,235 | 1,595,108,750,000 | 1,595,108,777,000 | 270,936,124 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 17,836 | lean | import data.zmod.basic
import adjacency_matrix sym_matrix double_counting data.fintype.basic
import changing_scalars
import data.int.modeq
import tactic
import char_poly
import number_theory.quadratic_reciprocity
open_locale classical
noncomputable theory
lemma exists_unique_rewrite {X:Type*} {p: X → Prop} {q: X → P... |
001470b9c5876f739d55a627c6352690c804e5e4 | b82c5bb4c3b618c23ba67764bc3e93f4999a1a39 | /src/formal_ml/real.lean | 970d48ff10029e9523c0287d7ff7130ebe98e037 | [
"Apache-2.0"
] | permissive | nouretienne/formal-ml | 83c4261016955bf9bcb55bd32b4f2621b44163e0 | 40b6da3b6e875f47412d50c7cd97936cb5091a2b | refs/heads/master | 1,671,216,448,724 | 1,600,472,285,000 | 1,600,472,285,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 13,669 | lean | /-
Copyright 2020 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
di... |
356872bd0a219c60ae9db153981f466f6271bfde | 4b846d8dabdc64e7ea03552bad8f7fa74763fc67 | /tests/lean/def_inaccessible_issue.lean | 1671a7a870789404cff6eda7143f3eae0dd923e4 | [
"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 | 384 | lean | open nat
set_option pp.binder_types true
inductive bv : nat → Type
| nil : bv 0
| cons : ∀ (n) (hd : bool) (tl : bv n), bv (n+1)
open bv
variable (f : bool → bool → bool)
definition map2 : ∀ {n}, bv n → bv n → bv n
| 0 nil nil := nil
| (n+1) (cons .n b1 v1) (cons .n b2 v2) := cons n (f ... |
74a6dea2ff6348b55a037b78840dda6f6fec294d | b3fced0f3ff82d577384fe81653e47df68bb2fa1 | /src/measure_theory/integration.lean | af52b10fc5d973a60a15cad8c2f476bc8adebdfb | [
"Apache-2.0"
] | permissive | ratmice/mathlib | 93b251ef5df08b6fd55074650ff47fdcc41a4c75 | 3a948a6a4cd5968d60e15ed914b1ad2f4423af8d | refs/heads/master | 1,599,240,104,318 | 1,572,981,183,000 | 1,572,981,183,000 | 219,830,178 | 0 | 0 | Apache-2.0 | 1,572,980,897,000 | 1,572,980,896,000 | null | UTF-8 | Lean | false | false | 46,329 | lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Johannes Hölzl
Lebesgue integral on `ennreal`.
We define simple functions and show that each Borel measurable function on `ennreal` can be
approximated by a sequence ... |
4202b463bc395e62a75740bd9a2abe0ec6d7aa1f | f7315930643edc12e76c229a742d5446dad77097 | /library/init/quot.lean | bd16be1b674695b160995cb104645511563a826f | [
"Apache-2.0"
] | permissive | bmalehorn/lean | 8f77b762a76c59afff7b7403f9eb5fc2c3ce70c1 | 53653c352643751c4b62ff63ec5e555f11dae8eb | refs/heads/master | 1,610,945,684,489 | 1,429,681,220,000 | 1,429,681,449,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 4,988 | lean | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Module: init.quot
Author: Leonardo de Moura
Quotient types.
-/
prelude
import init.sigma init.setoid init.logic
open sigma.ops setoid
constant quot.{l} : Π {A : Type.{l}}, setoid A ... |
be0b4c33c6dca3fbc59b0fedd0aac42b05a2cee5 | 35677d2df3f081738fa6b08138e03ee36bc33cad | /src/order/liminf_limsup.lean | 38e2d9f206cb87764721635266a9bed4b78653c6 | [
"Apache-2.0"
] | permissive | gebner/mathlib | eab0150cc4f79ec45d2016a8c21750244a2e7ff0 | cc6a6edc397c55118df62831e23bfbd6e6c6b4ab | refs/heads/master | 1,625,574,853,976 | 1,586,712,827,000 | 1,586,712,827,000 | 99,101,412 | 1 | 0 | Apache-2.0 | 1,586,716,389,000 | 1,501,667,958,000 | Lean | UTF-8 | Lean | false | false | 19,902 | 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, Johannes Hölzl
-/
import order.filter order.conditionally_complete_lattice order.bounds
/-!
# liminfs and limsups of functions and filters
Defines the Liminf/L... |
0a03e30aa74d180f8cf5d26e65259e0df5f84619 | 4727251e0cd73359b15b664c3170e5d754078599 | /src/category_theory/bicategory/strict.lean | 7cd3b4d8c3f89e60f7cf4c42594969133aeab7fa | [
"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 | 3,035 | lean | /-
Copyright (c) 2022 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
import category_theory.eq_to_hom
import category_theory.bicategory.basic
/-!
# Strict bicategories
A bicategory is called `strict` if the left unitors, the right unitors,... |
68ebfa671f4ab73f1c92087642f94d2c2ca67caa | d450724ba99f5b50b57d244eb41fef9f6789db81 | /src/mywork/Homework/hw6.lean | 1173b81e6ace5556b1276011cdf51a09f330e773 | [] | no_license | jakekauff/CS2120F21 | 4f009adeb4ce4a148442b562196d66cc6c04530c | e69529ec6f5d47a554291c4241a3d8ec4fe8f5ad | refs/heads/main | 1,693,841,880,030 | 1,637,604,848,000 | 1,637,604,848,000 | 399,946,698 | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 1,171 | lean | import data.set
/-
Exercise: Prove that for any set, L, L ∩ L = L.
-/
/-
Exercise: Give a formal statement and proof, then an
English language proof, that the union operator on
sets is commutative.
-/
/-
Exercise: Prove that ⊆ is reflexive and transitive.
Give a formal statement, a formal proof, and an English
l... |
549ad318ac61b85c4ad59a60d08f29768e67714f | b7f22e51856f4989b970961f794f1c435f9b8f78 | /tests/lean/revert_fail.lean | 33b635f44038b8ea04af1af059ae47bb759ceb8b | [
"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 | 218 | lean | import data.examples.vector
example (A : Type) (n : nat) (v : vector A n) : v = v :=
begin
revert n
end
example (n : nat) : n = n :=
begin
esimp,
revert n
end
example (n : nat) : n = n :=
begin
revert m
end
|
54f6b4613426f226282c761ab08d57a3087185ce | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/algebra/homology/short_exact/abelian.lean | 47f08a30936c659c5954bdd0649bbf24f2950c8e | [
"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 | 4,027 | lean | /-
Copyright (c) 2021 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Andrew Yang, Pierre-Alexandre Bazin
-/
import algebra.homology.short_exact.preadditive
import category_theory.abelian.diagram_lemmas.four
/-!
# Short exact sequences i... |
5119c76588eb7f7bf7c787cdcf2638cc159b7cf9 | 137c667471a40116a7afd7261f030b30180468c2 | /src/analysis/special_functions/pow.lean | 99b43511414eac9d168708af723ba8769ac9edbf | [
"Apache-2.0"
] | permissive | bragadeesh153/mathlib | 46bf814cfb1eecb34b5d1549b9117dc60f657792 | b577bb2cd1f96eb47031878256856020b76f73cd | refs/heads/master | 1,687,435,188,334 | 1,626,384,207,000 | 1,626,384,207,000 | null | 0 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 70,344 | 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, Sébastien Gouëzel,
Rémy Degenne
-/
import analysis.special_functions.trigonometric
import analysis.calculus.extend_deriv
... |
9886c8ba4e2a997775f4c508cc52bd788b55f8b5 | d406927ab5617694ec9ea7001f101b7c9e3d9702 | /src/data/finite/defs.lean | 8c66af8d3de5f744ab7f9443b4c0f792a4f4a4f8 | [
"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 | 4,491 | lean | /-
Copyright (c) 2022 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import logic.equiv.basic
/-!
# Definition of the `finite` typeclass
> THIS FILE IS SYNCHRONIZED WITH MATHLIB4.
> https://github.com/leanprover-community/mathlib4/pull/698... |
24ddda9d4559d02549932210d39c3b0d0d0068db | 57c233acf9386e610d99ed20ef139c5f97504ba3 | /src/analysis/inner_product_space/conformal_linear_map.lean | a2ba89447a81e4f13f46006f6c97a3bbd5fa54df | [
"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 | 1,778 | lean | /-
Copyright (c) 2021 Yourong Zang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yourong Zang
-/
import analysis.normed_space.conformal_linear_map
import analysis.inner_product_space.basic
/-!
# Conformal maps between inner product spaces
In an inner product space,... |
dcd1c814f31050053a18780eecc8a601bb3727c2 | 64874bd1010548c7f5a6e3e8902efa63baaff785 | /hott/init/priority.hlean | 8a23b069571a8dc8676749cc4a88cbf0c0e5e517 | [
"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 | 293 | hlean | /-
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.datatypes
definition std.priority.default : num := 1000
definition std.priority.max : num := 4294967295
|
b1ba94f4c0b80058207655da8fa81e8cafab8507 | ccb7cdf8ebc2d015a000e8e7904952a36b910425 | /src/heap/tactic.lean | 56abaac0d7662f7de014acaeba8fa68ca3a399b3 | [] | no_license | cipher1024/lean-pl | f7258bda55606b75e3e39deaf7ce8928ed177d66 | 829680605ac17e91038d793c0188e9614353ca25 | refs/heads/master | 1,592,558,951,987 | 1,565,043,356,000 | 1,565,043,531,000 | 196,661,367 | 1 | 0 | null | null | null | null | UTF-8 | Lean | false | false | 12,656 | lean |
import category.bitraversable.instances
import heap.basic
open memory
section disjoint
variables {val : Type}
inductive disj : list (list (heap val)) → Prop
| nil : disj []
| cons {xs : list (heap val)} {xss : list (list (heap val))} :
(∀ (x ∈ xs) (ys ∈ xss) (y ∈ ys), finmap.disjoint x y) →
disj xss → disj (xs... |
6e3bfef4594d91f696da14a1ca43c35346769fc7 | a45212b1526d532e6e83c44ddca6a05795113ddc | /src/order/order_iso.lean | 34ef9891c861653d3e30176b365fa2ab19ee74ad | [
"Apache-2.0"
] | permissive | fpvandoorn/mathlib | b21ab4068db079cbb8590b58fda9cc4bc1f35df4 | b3433a51ea8bc07c4159c1073838fc0ee9b8f227 | refs/heads/master | 1,624,791,089,608 | 1,556,715,231,000 | 1,556,715,231,000 | 165,722,980 | 5 | 0 | Apache-2.0 | 1,552,657,455,000 | 1,547,494,646,000 | Lean | UTF-8 | Lean | false | false | 13,463 | lean | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import order.basic logic.embedding data.nat.basic
open function
universes u v w
variables {α : Type*} {β : Type*} {γ : Type*}
{r : α → α → Prop} {s : β → β → Prop... |
aa0062689adadac0670ef45c17831fa785dbd791 | fa02ed5a3c9c0adee3c26887a16855e7841c668b | /src/tactic/omega/clause.lean | 19d00c572d840e6a6565110d555ff408839256de | [
"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 | 2,005 | lean | /-
Copyright (c) 2019 Seul Baek. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seul Baek
-/
/-
Definition of linear constrain clauses.
-/
import tactic.omega.term
namespace omega
/-- (([t₁,...tₘ],[s₁,...,sₙ]) : clause) encodes the constraints
0 = ⟦t₁⟧ ∧ ... ∧ 0 = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.