chars int64 40 24k | content_type stringclasses 9
values | id stringlengths 13 64 | source stringclasses 5
values | subset stringclasses 31
values | text stringlengths 40 24k |
|---|---|---|---|---|---|
23,963 | lean_file_chunk | bd44220267ccdab87b8155e374428ac3e48f3887ed0c9abdb814518ec4552346 | lean_source_file | pkg_mathlib_source_file_chunks | public import Mathlib.Topology.Category.Profinite.Nobeling.Basic
public import Mathlib.Topology.Category.Profinite.Nobeling.Induction
public import Mathlib.Topology.Category.Profinite.Nobeling.Span
public import Mathlib.Topology.Category.Profinite.Nobeling.Successor
public import Mathlib.Topology.Category.Profinite.Nob... |
2,871 | lean_file_chunk | 15840917d58d9ec9ada7f20701ed9720d6ece767cd20793cf973d06dcff2d27a | lean_source_file | pkg_mathlib_source_file_chunks | import Archive.Arithcc
import Archive.Examples.Eisenstein
import Archive.Examples.IfNormalization.Result
import Archive.Examples.IfNormalization.Statement
import Archive.Examples.IfNormalization.WithoutAesop
import Archive.Examples.Kuratowski
import Archive.Examples.MersennePrimes
import Archive.Examples.PropEncodable
... |
52 | lean_file_chunk | 022fc07dc627b42c16fd790058eca91560d924a6bd4a184635857af580539d00 | lean_source_file | pkg_mathlib_source_file_chunks | import docs.Conv.Guide
import docs.Conv.Introduction |
6,119 | lean_file_chunk | 638d5aa53aafe2874ca837320d7efe477ced65133b8d8b1838ca2d2c475e1b88 | lean_source_file | pkg_mathlib_source_file_chunks | import Lake
open Lake DSL
/-!
## Mathlib dependencies on upstream projects
-/
require "leanprover-community" / "batteries" @ git "v4.30.0-rc2"
require "leanprover-community" / "Qq" @ git "v4.30.0-rc2"
require "leanprover-community" / "aesop" @ git "v4.30.0-rc2"
require "leanprover-community" / "proofwidgets" @ git "... |
1,260 | lean_file_chunk | 2dfee3773c9ebbed5ae199c0438c77df275844bec36054bacc9487a2d08a0a93 | lean_source_file | pkg_mathlib_source_file_chunks | import Counterexamples.AharoniKorman
import Counterexamples.CanonicallyOrderedCommSemiringTwoMul
import Counterexamples.CharPZeroNeCharZero
import Counterexamples.CliffordAlgebraNotInjective
import Counterexamples.Cyclotomic105
import Counterexamples.DimensionPolynomial
import Counterexamples.DirectSumIsInternal
import... |
6,783 | lean_file_chunk | 44675fc4e83903110a26b0dea88c388fae0f7e3ba6acb7490e392efd9e779a3a | lean_source_file | pkg_mathlib_source_file_chunks | module -- shake: keep-all, shake: keep-downstream
public import Lean.Linter.Sets -- for the definition of linter sets
public import Lean.LibrarySuggestions.Default -- for `+suggestions` modes in tactics
public import Mathlib.Lean.Linter -- linter utilities; will be transitively imported in #31134
public import Mathli... |
15,009 | lean_file_chunk | d945a6aece3e71266c226f33ca4777bf0359264c7f475d2c4b6b6528f8d055dd | lean_source_file | pkg_mathlib_source_file_chunks | module -- shake: keep-all
public import Mathlib.Tactic.Abel
public import Mathlib.Tactic.AdaptationNote
public import Mathlib.Tactic.Algebra.Basic
public import Mathlib.Tactic.Algebra.Lemmas
public import Mathlib.Tactic.Algebraize
public import Mathlib.Tactic.ApplyAt
public import Mathlib.Tactic.ApplyCongr
public imp... |
8,932 | lean_file_chunk | 1a6c442173be06e1ea2aa8bf13a245324c7d479e83677887cd868036789039f6 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jeremy Tan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Tan
-/
import Mathlib.Analysis.InnerProductSpace.PiL2
import Mathlib.Combinatorics.SimpleGraph.UnitDistance.Basic
/-!
# A simple planar unit-distance embedding of the Heawood graph... |
1,270 | lean_file_chunk | 88ed6b885857c39a7384d7dbd433492e7a6d0dd9c8e6a49acdec5a11bfa4bcdb | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Seewoo Lee. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Seewoo Lee
-/
import Mathlib.Analysis.SpecialFunctions.Pow.NNReal
import Mathlib.NumberTheory.Real.Irrational
/-!
# An irrational power of an irrational number need not be irrational
Thi... |
14,946 | lean_file_chunk | d799fcabbfb55442840a8a2c20262b5e3b87ea41721127d47a5c6cceef5b0773 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
import Mathlib.Analysis.Real.Cardinality
import Mathlib.Order.Interval.Set.Monotone
import Mathlib.Topology.Baire.Lemmas
import Mathlib.Topology.Baire.LocallyCompac... |
1,821 | lean_file_chunk | 9b2e7f8ed5eaffcd5f9a541efe3b2e29a1fecccb940bb55345100d73abaaa6e1 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import Mathlib.LinearAlgebra.QuadraticForm.Basic
/-!
# `QuadraticForm R M` and `Subtype LinearMap.IsSymm` are distinct notions in characteristic 2
The main result of this... |
2,197 | lean_file_chunk | 8970ac3119a9338a031e5f1f613f5a1e5d81d3189646464438b18fcc4e66b463 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Mathlib.Logic.Basic
import Mathlib.Data.Set.Defs
/-!
# Girard's paradox
Girard's paradox is a proof that `Type : Type` entails a contradiction. We can't say ... |
1,102 | lean_file_chunk | 24ea3a75cc83dbbd166aa1ed2bfd0bd93ca223fcb1b09ff593c8ad0adc790476 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa, Eric Wieser
-/
import Mathlib.Algebra.CharP.Lemmas
import Mathlib.Algebra.Ring.PUnit
/-! # `CharP R 0` and `CharZero R` need not coincide for semirings
For rings, the t... |
12,879 | lean_file_chunk | 74784962b870820de42b1595201b20c006f2548bd8448258bfb378ff7efb4ad2 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import Mathlib.Algebra.CharP.Pi
import Mathlib.Algebra.CharP.Quotient
import Mathlib.LinearAlgebra.CliffordAlgebra.Contraction
import Mathlib.RingTheory.MvPolynomial.Basic
... |
12,448 | lean_file_chunk | 85b9e2e226d628c4803f83702c53de241f3eb0dc686495ecef8d7915080c0303 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Weiyi Wang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Weiyi Wang
-/
import Mathlib.Analysis.Real.Pi.Bounds
import Mathlib.Topology.Algebra.InfiniteSum.TsumUniformlyOn
/-!
# Weierstrass function: a function that is continuous everywhere but d... |
9,969 | lean_file_chunk | 008dfec0f3be8765a8f1980020be98219f43519018fafc3b9041a5b51e3649e7 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Daniele Bolla. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Daniele Bolla, David Loeffler
-/
import Mathlib.Analysis.SpecialFunctions.Trigonometric.Inverse
import Mathlib.Topology.Connected.PathConnected
/-!
# The "topologist's sine curve" is c... |
5,610 | lean_file_chunk | 38f2cb4b59216f7ebf7bf35cef7b9524cfa85d5dda10803d4a49cc29f70bee7b | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jingting Wang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jingting Wang
-/
import Mathlib.RingTheory.KrullDimension.Polynomial
import Mathlib.RingTheory.KrullDimension.LocalRing
import Mathlib.FieldTheory.RatFunc.AsPolynomial
import Mathlib.Ri... |
5,105 | lean_file_chunk | 8b389fb7725155e9adcb990e9a298eb26ce09a0419ca595bb3a66b4462d57efd | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import Mathlib.CategoryTheory.Abelian.Pseudoelements
import Mathlib.Algebra.Category.ModuleCat.Biproducts
/-!
# Pseudoelements and pullbacks
Borceux claims in Prop... |
1,624 | lean_file_chunk | 9b69f44b096e4673dbafc419d83e22d2343f742c934edac2a4016fb3dc8e3d23 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Vasilii Nesterov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Vasilii Nesterov
-/
import Mathlib.Analysis.Complex.Tietze
import Mathlib.Topology.MetricSpace.HausdorffAlexandroff
/-!
# Peano curve
This file proves the existence of a Peano curve... |
23,976 | lean_file_chunk | 95aa428d2fa6090f1d4215194bdd3d9cf10cbe4af6a421df7d85d89c4086a728 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Bhavik Mehta. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Bhavik Mehta
-/
import Mathlib.Algebra.Order.Field.Basic
import Mathlib.Algebra.Order.Field.Rat
import Mathlib.Data.Setoid.Partition
import Mathlib.Order.Filter.AtTopBot.Basic
import Mat... |
23,956 | lean_file_chunk | 4a4092f4bc1a1c570d913cb63fe24e230a755e333977c224c6ce9a8684cf80fb | lean_source_file | pkg_mathlib_source_file_chunks | variable {f : SpinalMap C}
/-! ### Explicit chains
In this section we construct an explicit chain in ℕ × ℕ that will be useful later.
These comprise part of 5.8(iv) from [hollom2025]: the full strength of that observation is not
actually needed.
-/
section make_chains
open Finset
/--
An explicit contiguous chain bet... |
8,802 | lean_file_chunk | 89ce1cf6bb3b69f97a53ab0a8bc87a40952c5b32dbce0cc64cbab8585162e816 | lean_source_file | pkg_mathlib_source_file_chunks | have h0j : h(x0 n C, y0 n C, n + 1) ≤ j := hj'.trans' (by simp [ha, hb])
have : line h(a, b, n + 1) = line h(x0 n C, a + b - x0 n C, n + 1) := by simp; lia
-- Then we have `f(a, b, n + 1) = f(x0, a + b - x0, n + 1)` since they are at the same line
have : f h(a, b, n + 1) = f h(x0 n C, a + b - x0 n C, ... |
2,589 | lean_file_chunk | cccf729b7fd7dd8a423d410bbd00b3fc5a2e8e0a566014237fd4d9f39fbd0092 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu
-/
import Mathlib.Algebra.GroupWithZero.TransferInstance
import Mathlib.Algebra.Order.Ring.Nat
import Mathlib.Algebra.Ring.Equiv
import Mathlib.RingTheory.Polynomial.Opposites
/-... |
10,403 | lean_file_chunk | eb4f35ac709f2e799db7f28ad8a11c6af1c6725e0106c9c1703740e6a2fdda8f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Mathlib.Algebra.Group.UniqueProds.Basic
import Mathlib.Algebra.MonoidAlgebra.Defs
import Mathlib.Algebra.Ring.GeomSum
import Mathlib.Data.Finsupp.Lex
import Math... |
23,952 | lean_file_chunk | 544de7fa0cdbbd77dffeb8f727c39db3425b44015c92fbdd4da51d8292af3f7a | lean_source_file | pkg_mathlib_source_file_chunks | /-
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 Mathlib.Analysis.Normed.Module.HahnBanach
import Mathlib.MeasureTheory.Integral.Bochner.Set
import Mathlib.MeasureTheory.Measure.Lebesgue.Basic
import Ma... |
3,843 | lean_file_chunk | 166c7654dab7afcb6285ee34ea000bd1055d217721a09fbbdd329ef295c985fb | lean_source_file | pkg_mathlib_source_file_chunks | φ (f Hcont x) = φ.toBoundedAdditiveMeasure.continuousPart univ := by
set ψ := φ.toBoundedAdditiveMeasure
have : φ (f Hcont x) = ψ (spf Hcont x) := rfl
have U : univ = spf Hcont x ∪ univ \ spf Hcont x := by simp only [union_univ, union_diff_self]
rw [this, eq_add_parts, discretePart_apply, hx, ψ.empty, zero_add,... |
3,522 | lean_file_chunk | eaeea48354a19f15dcb9338e18a31a3d4eec77008c65f850f665f8556ce42c3c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser, Kevin Buzzard
-/
import Mathlib.Algebra.DirectSum.Module
import Mathlib.Algebra.Group.ConjFinite
import Mathlib.Data.Fintype.Lattice
import Mathlib.Tactic.FinCases
/-!
# Not... |
1,081 | lean_file_chunk | 2fd2feb059ca0d2d0ec2fb0afc5eb0dc4a68a3134b9dc30977abf053050df84f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jeremy Tan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Tan, Heather Macbeth
-/
import Mathlib.Tactic.LinearCombination
import Mathlib.Tactic.Positivity
/-!
# The Motzkin polynomial
The Motzkin polynomial is a well-known counterexample... |
7,290 | lean_file_chunk | a9c3bfe35a955c9662594ce30a5af67787e5283f04bc030eaa86b775e3817bfe | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Snir Broshi. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Snir Broshi, Michael Stoll
-/
import Mathlib.NumberTheory.FLT.Three
/-!
# Euler's sum of powers conjecture
Euler's sum of powers conjecture says that at least n nth powers of positive i... |
15,534 | lean_file_chunk | 8d4b5d342b161a83602b2cb56bb0f71e1775909f655c64352b113ff7bc446d58 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Filippo A. E. Nuccio. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Filippo A. E. Nuccio
-/
import Mathlib.Analysis.SpecificLimits.Basic
/-!
# Discrete uniformities and discrete topology
Exactly as different metrics can induce equivalent topolog... |
7,225 | lean_file_chunk | 9614f9ab8b81fee1084342c3c14a489e7b9e58e9870a590cff18361e4fbd8930 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Mathlib.Algebra.Ring.Subsemiring.Order
import Mathlib.Data.ZMod.Basic
/-!
# A canonically ordered commutative semiring where multiplication by 2 is not injectiv... |
905 | lean_file_chunk | 2dbe04e4fdc992c402d9673f1b3651316fd4ef550cc75a3d55fbb95b1482c02e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Martin Dvorak. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Martin Dvorak
-/
import Mathlib.Algebra.Order.Monoid.Defs
import Mathlib.Order.BoundedOrder.Lattice
/-!
# Do not combine OrderedCancelAddCommMonoid with BoundedOrder
This file shows t... |
5,213 | lean_file_chunk | 081ccc8145b27c415b4e286d538de5a46b685c9b20b0f284ad3c8f782465761c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Jujian Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Eric Wieser, Jujian Zhang
-/
import Mathlib.Algebra.Divisibility.Finite
import Mathlib.Algebra.Divisibility.Prod
import Mathlib.Data.Fintype.Units
import Mathlib.RingTheo... |
2,685 | lean_file_chunk | 3cd6f058492ca1e13636cbe855372e7667d9bef98af363a2e6382bd93b30c426 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Pierre-Alexandre Bazin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Pierre-Alexandre Bazin
-/
import Mathlib.Analysis.Seminorm
/-!
# The lattice of seminorms is not distributive
We provide an example of three seminorms over the ℝ-vector space... |
3,721 | lean_file_chunk | 880543576856535a8ddab6b10abdc97a5ab3f27d470c7e36a097f3c4018696f3 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Riccardo Brasca. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Riccardo Brasca
-/
import Mathlib.RingTheory.Polynomial.Cyclotomic.Basic
import Mathlib.Tactic.NormNum.Prime
/-!
# Not all coefficients of cyclotomic polynomials are -1, 0, or 1
We ... |
4,912 | lean_file_chunk | fa79da5968073c09c6a27fff583d1fa7205100df987426a0fcf5cb617c444217 | lean_source_file | pkg_mathlib_source_file_chunks | /-
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 Mathlib.Algebra.Order.Round
import Mathlib.Algebra.Order.Group.PiLex
import Mathlib.Algebra.Order.Hom.Ring
import Mathlib.Algebra.Polynomial.Reverse
/-!
# Floors ... |
2,528 | lean_file_chunk | aa41ca299f37c6e6dd45eab4c70f5fa475da8599fbe02fffa952d410162f6215 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Junyan Xu
-/
import Mathlib.Algebra.TrivSqZeroExt.Basic
import Mathlib.Data.DFinsupp.Module
import Mathlib.RingTheory.PicardGroup
/-!
# A class of examples of invertible modules that are n... |
3,121 | lean_file_chunk | 94919039ff14809d02f259d990d727f4049531bf590b9753b243d9b7ddee71e6 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Mathlib.Algebra.Polynomial.Monic
/-!
# `Monic` does not necessarily imply `IsRegular` in a `Semiring` with no opposites
This counterexample shows that the hyp... |
2,431 | lean_file_chunk | 3e884d67350079feea3514ebfda93fd7b04c8385f5bccdb48f7e255085d13732 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Yury G. Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury G. Kudryashov
-/
import Mathlib.Analysis.Real.Cardinality
/-!
# Example of a linear order which is a separable space but is not a second countable topology
In this file we p... |
23,891 | lean_file_chunk | 9129113f48e544ca2b25a3726388db1e059339585785c6d8b5e4476e1306fdce | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Jon Eugster
-/
import Std.Data.TreeSet
import Cache.Lean
variable {α : Type}
open Lean
namespace Cache.IO
open System (FilePath)
/-- Target directory for build fil... |
23,948 | lean_file_chunk | a263bf490d2a4aec4839488010c5a384b8ddeb89907b228689f4c4229c24f625 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino
-/
import Batteries.Data.String.Matcher
import Cache.Hashing
import Cache.Init
import Lake.Load.Manifest
namespace Cache.Requests
open System (FilePath)
/-- The full... |
17,410 | lean_file_chunk | 81a454809a52dd82b2f61e31430aecf9533ca9ebd095d4536c7279eac10e9f64 | lean_source_file | pkg_mathlib_source_file_chunks | (isMathlibRoot : Bool := false) (mathlibDepPath : FilePath := ".") : IO Nat := do
let hashMap ← if forceDownload then pure hashMap else hashMap.filterExists false
if hashMap.isEmpty then IO.println "No files to download"; return 0
let size := hashMap.size
IO.FS.createDirAll IO.CACHEDIR
IO.println s!"Attemptin... |
2,900 | lean_file_chunk | 8092334a4e1d6d8abb8354327015441ac80afe8f60106b7e7a4d8cb9a36bd8e2 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jon Eugster. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jon Eugster, Arthur Paulino
-/
import Lean.Data.Json
import Lean.Util.Path
/-!
# Helper Functions
This file contains helper functions that could potentially be upstreamed to Lean
or re... |
698 | lean_file_chunk | ba5d36abad36114cdcd199f6c258a4b091f3d8887f4cf2b42a87a5638ed42a10 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino
-/
namespace Cache.Requests
open System (FilePath)
-- Cloudflare cache may be flaky: https://leanprover.zulipchat.com/#narrow/channel/113488-general/topic/The.20cache... |
6,498 | lean_file_chunk | fc04a3d02c3e71edca7e25b3d3924d5b17a83761562f1fedaa8cf1bbf97186f2 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Jon Eugster
-/
import Cache.IO
import Lean.Elab.ParseImportsFast
namespace Cache.Hashing
open Lean IO
open System hiding SearchPath
/--
The `HashMemo` contains all ... |
7,492 | lean_file_chunk | 1222ab6480aef5c6acc1316168edc0f759d4953f262181193b70eb16694fbd95 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Jon Eugster
-/
import Cache.Requests
def help : String := "Mathlib4 caching CLI
Usage: cache [OPTIONS] [COMMAND]
Commands:
# No privilege required
get [ARGS] ... |
9,865 | lean_file_chunk | 93e92929e1903cb26ca99e8ae1e2dce4b82a2925949bcd183313044ebc43adeb | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2026 Jeremy Tan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Tan
-/
import Mathlib.Order.BooleanAlgebra.Basic
import Mathlib.Tactic.NthRewrite
/-!
# Minimal Sheffer stroke axioms for Boolean algebra
The Sheffer stroke `a | b` is `(a ⊓ b)ᶜ`,... |
15,898 | lean_file_chunk | 79dccdad8c2c3a92d1138151d8e5d2026cbbfa24f57a076e9ea3fadb80a9ed2a | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2019 Reid Barton, Johan Commelin, Jesse Michael Han, Chris Hughes, Robert Y. Lewis,
Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Reid Barton, Johan Commelin, Jesse Michael Han, Chris Hughes, Robert Y. Lewis,
Patrick Massot
-/
import... |
8,186 | lean_file_chunk | b699a7235eba3513386823584f679671fed172f3111e1626802d9fddc2b971a4 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Jeremy Tan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jeremy Tan, Thomas Browning
-/
import Mathlib.GroupTheory.Perm.Cycle.Type
import Mathlib.Tactic.Linarith
/-!
# Zagier's "one-sentence proof" of Fermat's theorem on sums of two squares
"T... |
4,468 | lean_file_chunk | 3243006f00e2133cc76ba7e08553f2893b335abd426c6b0c0345626e4adf4344 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jan Förster, Leon Müller, Luis Sand, and Junyan Xu. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jan Förster, Leon Müller, Luis Sand, Junyan Xu
-/
import Mathlib.Data.Set.Card
import Mathlib.Topology.Closure
/-!
# The Kuratowski closure-complem... |
5,418 | lean_file_chunk | 13d8c84aa5185d6e0f844f6454c635510fa01449cf1894e07e6769cd76c9be94 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Sébastien Gouëzel, Patrick Massot, Ruben Van de Velde, Floris van Doorn,
Junyan Xu
-/
import Mathlib.Algebra.MvPolynomial.Funext
import Mathlib.Analysis.Analytic.Poly... |
11,479 | lean_file_chunk | 92b803bdd441d6578debe9cdc9edea2536684ee8bda4051f8ece8fd0665c5bf1 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2020 Xi Wang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Xi Wang
-/
import Mathlib.Data.Nat.Basic
import Mathlib.Order.Basic
import Mathlib.Tactic.Common
/-!
# A compiler for arithmetic expressions
A formalization of the correctness of a compiler... |
13,604 | lean_file_chunk | 327cf7f00e39148ae490c013d933f361cc94a3755c3136bd7fe01600bbb82a0e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Michael Rothgang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Rothgang
-/
import Lake.CLI.Main
import Lean.Elab.ParseImportsFast
import Batteries.Data.String.Basic
import Mathlib.Tactic.Linter.TextBased
import ImportGraph.Imports.FromS... |
4,792 | lean_file_chunk | 33c7e479690ca6898d1ec61c8df9c46b0a7c4f8f46abd7f6b2cf957fdf062250 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Yaël Dillies, Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies, Damiano Testa
-/
import Cli.Basic
import Lake.CLI.Main
import Mathlib.Util.GetAllModules
-- The `style.header` linter flags `import Lake.CLI.Main` as a pote... |
23,937 | lean_file_chunk | ebcfb98e3241b5e4aeb1f111217fd92dbfd8c89101a3fed32d33c394e563616c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2026 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
import Cli.Basic
/-!
# Nightly testing checklist
`lake exe nightly-testing-checklist` reports the current state of the `nightly-testing` branches
at Batteries and Math... |
390 | lean_file_chunk | 9a9bf5dc41b8ffe22a461998e04af675d2e482eac75fd38ab3bb42298215d1d1 | lean_source_file | pkg_mathlib_source_file_chunks | "no-build"; "Do not run lake build in cloned repositories."
"fix"; "Actually commit and push fixes (default is dry-run: generate patch only)."
"watch"; "Wait for in-progress CI runs to complete before proceeding."
]
/-- The entrypoint to the `lake exe nightly-testing-checklist` command. -/
def main (ar... |
1,680 | lean_file_chunk | bb5189d73132f53530577a0a3bc22fe4f5859f398458455895b9a1e26b3bd284 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import Mathlib.Lean.CoreM
import Mathlib.Tactic.ToExpr
/-! # Script to check `undergrad.yaml`, `overview.yaml`, `100.yaml` and `1000.yaml`
This assumes `yaml_check.py` ha... |
2,683 | lean_file_chunk | 36029bf4044447e983809da40a481a709f0ce0b752fce854fb66616b039bc7b1 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2026 Adomas Baliuka. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adomas Baliuka
-/
import Batteries
import Mathlib.Data.String.Defs
/-!
This script extracts all unique non-ascii characters from what is given via stdin
(and deliberately excludes a f... |
18,864 | lean_file_chunk | 32b54f1608d88d6bdfef430d5cfd0c6578bc40475bbee33b919de936f589b094 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jon Eugster, Damiano Testa
-/
import Lean.Elab.Command
/-!
# Automatic labelling of PRs
This file contains the script to automatically assign a GitHub label to a PR.
## Label definit... |
3,632 | lean_file_chunk | 7c98b7530dd5179fbcd3b1889b0a35886586fb5c9da371f999209288e263c041 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2026 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
import Lean.Parser.Module
import Lean.Util.Path
/-!
# Find command range
A standalone helper script that finds the byte range of the top-level command containing a giv... |
19,261 | lean_file_chunk | 335e30d3b03694207e91eb08a29e553a95b14a6549b1bdb377819a624a766bee | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
--import Mathlib.Init
import Mathlib.Tactic.Linter.DeprecatedModule
import Std.Time.Zoned
import Lean.Meta.Tactic.TryThis
-- a comment here to test `keepTrailing
/-!
... |
2,060 | lean_file_chunk | a981853793753e5b2117a2da6ccdabbaad8edca4d1323ac907fe68d19109fd5f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Michael Rothgang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Rothgang
-/
import Cli.Basic
import Mathlib.Tactic.Linter.ValidatePRTitle
/-!
# Checker for well-formed title and labels
This script checks if a PR title matches some of
[... |
15,336 | lean_file_chunk | becdd6e14ef101793d0b8b5c3d82304c39bbb38119f90d8adc6d95da225f21c1 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
module
public meta import Lean.Util.Heartbeats
public meta import Lean.Server.InfoUtils
public meta import Mathlib.Lean.Elab.Tactic.Meta
public meta import Lean.Compiler... |
1,061 | lean_file_chunk | 01dc4c1b326a5aff1fc95d805d7adcabe7894e4236d25dc43bacaa2808ada37e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Miyahara Kō. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Miyahara Kō
-/
module
public import Mathlib.Tactic.Translate.ToAdditive
/-!
## `@[to_additive]` attributes for basic types
-/
public meta section
set_option linter.privateModule false... |
14,781 | lean_file_chunk | b6ae13b67584e85781d5ad3d26dde725ffe1fdf3f570224312abe93863b13810 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Calle Sönne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin, Nick Kuhn, Arend Mellendijk, Christian Merten, Calle Sönne, Adam Topaz
-/
module
public import Mathlib.Algebra.Algebra.Tower
public meta import Mathlib.Tactic.Attr.Core
p... |
5,299 | lean_file_chunk | 1b82e0afbb1e808b3ae2554194bbc3ea1c2252b4929d1718e79e576e0b8722e5 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Basic
public meta import Lean.PrettyPrinter
public meta import Lean.Elab.SyntheticMVars
public meta i... |
1,658 | lean_file_chunk | 36d24657ef4a8171e00c2205415fb47baa7fcb1096d44b5b2d1ca756d2e3a6ca | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Binders
public meta import Lean.Elab.Tactic.ElabTerm
public meta import Lean.Meta.Tactic.Generalize
/-!
... |
1,881 | lean_file_chunk | 6a23776dea1df9a3c08e292869a414cbfe62e7a5fbdf776adf23977ffcd5c3ac | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
module
public meta import Lean.Elab.SyntheticMVars
public import Mathlib.Init
/-!
# The `without_cdot()` elaborator
-/
public meta section
namespace Lean.Elab.Term
ope... |
8,436 | lean_file_chunk | cd94d10750f3c83cb05130d9b30dcdd8a7de988c1e5e47f20de92dad1da97704 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2017 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon, Kyle Miller, Damiano Testa
-/
module
public meta import Lean.Elab.Term
public meta import Lean.Elab.Tactic.ElabTerm
public meta import Lean.Meta.Tactic.Cleanup
public meta i... |
2,568 | lean_file_chunk | afece47128c912131400d7e95d1455f2ce319efa24d2f30abc9b3deb82b06245 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Simon Hudon, Sébastien Gouëzel, Kim Morrison, Thomas Murrills
-/
module
public meta import Lean.Elab.Eval
public meta import Lean.Elab.Tactic.BuiltinTactic
public impo... |
824 | lean_file_chunk | 6f18db2f923b10f861b9f15f23e8babe8a6bef8eb31ec831fdfdafafa610063c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Joshua Clune. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joshua Clune
-/
module
public import Mathlib.Init
public meta import Lean.Meta.Tactic.Clear
public meta import Lean.Elab.Tactic.Basic
/-! # `clear_` tactic -/
public meta section
nam... |
2,269 | lean_file_chunk | 7dc0da092d96476fef29ca8309a5e6c306029b7fbaa36c8b8f7b5981f879e298 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
module
public import Mathlib.Init
public meta import Lean.Meta.Tactic.TryThis
public meta import Lean.Elab.Tactic.ElabTerm
public meta import Lean.Meta.Tactic.Librar... |
1,459 | lean_file_chunk | bb46e15b37758deddecce58051117443299a7314fba164d809de2358c606615b | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2017 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Mario Carneiro
-/
module
public import Mathlib.Tactic.Have
/-!
# Extending `replace`
This file extends the `replace` tactic from `Batteries` to allow the addition of... |
4,315 | lean_file_chunk | df3d7bb1726ff7306f9188e195c93182370eab19dcf9186f451b0553f192fc0b | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
module
public meta import Lean.Elab.Command
public import Mathlib.Init
/-!
# The `#find_syntax` command
The `#find_syntax` command takes as input a string `str` and ... |
1,732 | lean_file_chunk | 799110bc2210f304de5e6428ee019ff90c1b1a900ed80f408dc9928ee1711db8 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
module
public import Aesop
public import Mathlib.Tactic.FunProp
/-!
# Tactics for the continuous functional calculus
At the moment, these tactics are just wrappers,... |
9,454 | lean_file_chunk | 1ef0c0a3f43e40c7785d4bdb9ec1838c7398d52a9d59a4a98e531c41638e40b3 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Aurélien Saue, Mario Carneiro
-/
module
public meta import Lean.Elab.PreDefinition.Basic
public meta import Lean.Elab.Tactic.ElabTerm
public meta import Lean.Meta.Tact... |
638 | lean_file_chunk | 595831f95faf4124ef7d18ba7444e760d92e9b4ecd78700af89557e2e4e86365 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Basic
/-!
A tactic stub file for the `guard_goal_nums` tactic.
-/
public meta section
op... |
619 | lean_file_chunk | a9d5d8f02c62b2b0c6410a2cdfc26441c32a5c268f23ee634300b81389c60c7f | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public import Mathlib.Tactic.PPWithUniv
/-! # `ToLevel` class
This module defines `Lean.ToLevel`, which is the `Lean.Level` analogue to `Lean.ToExpr`.
**Warning:... |
6,067 | lean_file_chunk | 45aafdeff872e5cf52cbb64320a4f7e795fabe62f95b79393885c04307747ef5 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
module
public meta import Std.Time.Format
public import Batteries.Tactic.Alias
public import Mathlib.Init
/-!
# `deprecate to` -- a deprecation tool
Writing
```lean
... |
2,957 | lean_file_chunk | 0a328ef8169a60d1d6abb79ac6c54f85819611e9d188d8b951ac41969528228e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Moritz Doll, Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll, Gabriel Ebner, Damiano Testa, Kyle Miller
-/
module
public meta import Lean.Meta.Tactic.Rfl
public import Mathlib.Tactic.TermCongr
/-!
# The `congrm` tactic
... |
8,620 | lean_file_chunk | ce13bc474b012b9904628d57ccb74d21898f4c932d1ac155650490d4675015ca | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
module
public meta import Lean.Elab.Tactic.Induction
public meta import Batteries.Data.List.Basic
public meta import Batteries.Lean.Expr
import all Lean.Elab.Tactic.... |
850 | lean_file_chunk | 0f030a34e4af67f945a022029f8d47f1b86ca1265b8913ad84cad1ec6e5f7566 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Basic
/-!
A tactic stub file for the `guard_hyp_nums` tactic.
-/
public meta section
open ... |
11,721 | lean_file_chunk | b33dc55c0072cd1e54fb2e273fc2aec9eb88c600dd0428eb0c4d1d3b2c6db38a | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Evgenia Karunus, Kyle Miller
-/
module
public meta import Lean.Elab.Command
public meta import Lean.PrettyPrinter
public meta import Mathlib.Tactic.Explode.Datatypes
p... |
23,973 | lean_file_chunk | aec98ee517a595045ae213f70879bdc69e3c9a15839259bdf8f5b78f819204ab | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
public import Mathlib.Init
public meta import Mathlib.Lean.MessageData.Trace
/-!
# The `#defeq_abuse` tactic and command combinators
**WARNING:** `#defeq_abuse... |
2,423 | lean_file_chunk | 11ef86d0b04c3fa162dfc82de834f6ced36df25b9ff177a5f81c2c179292f2cc | lean_source_file | pkg_mathlib_source_file_chunks | | .internal id ref => throw (.internal id ref)
| e => pure (Except.error e.toMessageData)
let newMsgs := ((← get).messages.toList).drop savedMsgCount
return (result, newMsgs)
-- We set `Elab.async false` to force synchronous proof checking,
-- otherwise `theorem` proofs are elaborated in a b... |
391 | lean_file_chunk | 69dae6fe62361af5615d55c4d7a1f7eb8fbc302dcd5327a8947b58a2643f26d0 | lean_source_file | pkg_mathlib_source_file_chunks | module
public import Mathlib.Data.Rat.Cast.Order
public import Mathlib.Tactic.NormNum.Abs
public import Mathlib.Tactic.NormNum.Basic
public import Mathlib.Tactic.NormNum.DivMod
public import Mathlib.Tactic.NormNum.Eq
public import Mathlib.Tactic.NormNum.Ineq
public import Mathlib.Tactic.NormNum.Inv
public import Mathl... |
1,475 | lean_file_chunk | d52c6f104f596534fb8410a917cb1c41b00670ecfa218f7e5853e90399be98b3 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
module
public import Mathlib.Init
/-!
# Variants of `haveI`/`letI` for use in do-notation.
This file implements the `haveI'` and `letI'` macros which have the... |
3,296 | lean_file_chunk | c0e114e5d53ebe88f1914f0ee5195ad6b56502b15fbdd88cac9705949ef58769 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Vasilii Nesterov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Vasilii Nesterov
-/
module
public import Mathlib.Data.ENat.Basic
public meta import Mathlib.Tactic.ToAdditive
/-!
# `enat_to_nat`
This file implements the `enat_to_nat` tactic tha... |
2,642 | lean_file_chunk | b11401e85338b17ee6d4e1c4de7707a2cd8f33b36c81a3509cd2e34dc37f76a9 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Eval
public meta import Lean.Elab.Tactic.ElabTerm
public import Lean.Elab.Tactic.Config
/-!
# The `ap... |
3,423 | lean_file_chunk | bac31fd9fd8838be2287a823bac33177a2b0acc712b05b8163d92f8b67d415ab | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Miyahara Kō. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Miyahara Kō
-/
module
public import Mathlib.Tactic.FunProp.Decl
public import Mathlib.Tactic.Measurability.Init
/-!
# Measurability
We define the `measurability` tactic using `aesop`. ... |
23,915 | lean_file_chunk | 471ad20519a028071c889be4ee45af06b62c66c735fc8d806eadf55e58874e19 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
module
public import Mathlib.Algebra.Algebra.Tower
public import Mathlib.Algebra.BigOperators.GroupWithZero.Action
public import Mathlib.Tactic.Ring
public import ... |
9,379 | lean_file_chunk | db8158cedd730e344139c8d51e8ee13ed3d0ebb8f1e1afe82a805fac86b7c80a | lean_source_file | pkg_mathlib_source_file_chunks | /- if one of the lists is empty and the other one is not, recurse down the nonempty one,
forming goals that each of the listed coefficients is equal to
zero -/
| [], ((a, x), _) ::ᵣ L =>
let mvar : Q((0:$R) = $a) ← mkFreshExprMVar q((0:$R) = $a)
let (mvars, pf) ← reduceCoefficientwise iRM [] L
pur... |
127 | lean_file_chunk | e0ad5071b8d0273fb449bab787b65111b94af45998baee298c5da956ecee459c | lean_source_file | pkg_mathlib_source_file_chunks | module
public import Mathlib.Tactic.Ring.Basic
public import Mathlib.Tactic.Ring.PNat
public import Mathlib.Tactic.Ring.RingNF |
13,606 | lean_file_chunk | aa13d74e3cfe2d48e097e6408716826608d327d394653b08efcd2a5c3802ce68 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Conv.Basic
/-! # Tactics that transform types into definitionally equal types
This module defines a... |
6,406 | lean_file_chunk | bef532f04933339e30c7deb8ef15e1d64b4b450e89b4ae0cb0c82cd3fe4cda8d | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Rewrite
/-!
# The `erw?` tactic
`erw? [r, ...]` calls `erw [r, ...]` (at hypothesis `h` if writt... |
6,411 | lean_file_chunk | 35bffdf6750d038dbd8bd1cd64af2c174e83f7839acb05db8a8df46c98142f97 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Tactic.Conv.Basic
public meta import Lean.Elab.Command
/-!
Additional `conv` tactics.
-/
public meta s... |
1,536 | lean_file_chunk | 06bc8d9a654159d649e16611b054a261084ca4dd6b54882e3216030e200d5229 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Kim Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kim Morrison, Newell Jensen
-/
module
public import Mathlib.Init
public meta import Lean.Elab.SyntheticMVars
public meta import Lean.Meta.Tactic.Constructor
/-!
# The `fconstructor` an... |
2,541 | lean_file_chunk | 38ba78f32db236c521d21e8e391657a8a49784763874833e1d5a6c2745428a51 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
module
public import Batteries.Tactic.Init
public import Mathlib.Tactic.Push
/-!
# The `by_contra` tactic
The `by_contra!` tactic is a variant of the `by_contra` tac... |
3,601 | lean_file_chunk | 2dc425e0ccfd5f146b4474538a6ed6d3f72618c76856e26631901a969f5a6242 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2020 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Massot
-/
module
public import Mathlib.Algebra.Group.Commutator -- shake: keep (tactic dependency)
public import Mathlib.Algebra.Order.Sub.Basic -- shake: k... |
6,134 | lean_file_chunk | cb632c4a4017fcce9d07643ad80fec029bb15244510b82809d38cc97b71830d5 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2018 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, David Renshaw
-/
module
public meta import Lean.Elab.Tactic.Location
public meta import Lean.Meta.Tactic.SplitIf
public meta import Lean.Elab.Tactic.Simp
public import M... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.