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 |
|---|---|---|---|---|---|
2,156 | lean_file_chunk | 0a2eaa32045b7be91c811840afa8e1ab87e632dcd3537dfbc7789c446b2f816e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
module
public import Mathlib.Tactic.Widget.SelectPanelUtils
public import ProofWidgets.Component.Basic
public import ProofWidgets.Component.OfRpcMethod
/-! # CongrM... |
12,749 | lean_file_chunk | 1a4c9b019cb5f42c393be1d99d517049166262cc1664ea350c957c8c7dd78559 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Robin Böhne. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robin Böhne, Wojciech Nawrocki, Patrick Massot, Aaron Liu
-/
module
public import Mathlib.Lean.Name
public import Mathlib.Tactic.Widget.SelectPanelUtils
public import ProofWidgets.Compon... |
11,064 | lean_file_chunk | cd8682ccf3e353086cb9f7c6e0fd4b4f3cc2f04f4b1a9b3645b03bfb3cadffb2 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid
-/
module
public meta import Mathlib.Tactic.Widget.SelectPanelUtils
public meta import Mathlib.Lean.GoalsLocation
public meta import Mathlib.Lean.Meta.KAbstractPosi... |
5,332 | lean_file_chunk | 09823a08eb073f945668ac245ed325dc6ac0a928c2cd5510fe7eb7c3bb4b71f0 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
module
public meta import Lean.Meta.ExprLens
public meta import Mathlib.Tactic.Widget.SelectInsertParamsClass
public import Mathlib.Tactic.Widget.SelectInsertParamsC... |
4,855 | lean_file_chunk | 94cb4bf03ef557b1ee092bc78d1f67dafadf82b9ee00997be4eece333a2bd8e9 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Wojciech Nawrocki. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Wojciech Nawrocki
-/
module
public import Aesop
public import Mathlib.CategoryTheory.Category.Basic
public meta import Mathlib.Tactic.ToDual
public import ProofWidgets.Component.Pe... |
23,969 | lean_file_chunk | 99f2d72e760d61d85292eb0c6947694b514f6962ec1611ef346c25853bddc24a | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid, Anand Rao
-/
module
public meta import Mathlib.Lean.Meta.RefinedDiscrTree
public import Mathlib.Lean.Meta.RefinedDiscrTree
public import Mathlib.Tactic.Widget.Inte... |
2,072 | lean_file_chunk | e12ae59a69d30d201bee2ddb8a6a47b9f6d3a4a845ed917a47a38c4d4eedb965 | lean_source_file | pkg_mathlib_source_file_chunks | /-- Represent a `Rewrite` as `MessageData`. -/
def Rewrite.toMessageData (rw : Rewrite) (name : Name) : MetaM MessageData := do
let extraGoals ← rw.extraGoals.filterMapM fun (mvarId, bi) => do
if bi.isExplicit then
return some m! "⊢ {← mvarId.getType}"
return none
let list := [m! "{rw.replacement}"]
... |
17,017 | lean_file_chunk | dd3842c8617c3ca54f9d95e33a686907098aa3791cad4d578e5a86e60e088e50 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Yuma Mizuno. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yuma Mizuno
-/
module
public meta import ProofWidgets.Component.PenroseDiagram
public meta import ProofWidgets.Component.Panel.Basic
public meta import Mathlib.Data.List.Defs
public impo... |
2,265 | lean_file_chunk | be8849c27e585d147791ed58a6f9e1242a813f837e7645a278896d865043ae5d | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
module
public import Mathlib.Tactic.Widget.SelectPanelUtils
public import ProofWidgets.Component.Basic
public import ProofWidgets.Component.OfRpcMethod
/-! # GCongr... |
1,862 | lean_file_chunk | 8e43e793baadfddb92d02686a66a9cac5ab313a2f8cb0585f0189d076be13ffd | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot
-/
module
public import Mathlib.Init
public meta import Lean.Widget.InteractiveGoal
public meta import Lean.Elab.Deriving.Basic
public import Lean.Widget.InteractiveGoa... |
18,217 | lean_file_chunk | 7a0e8bcba9c7cd5d1769ba560fdb1202a66e434a1e65bae1bcf06829b015fcae | 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, Yury Kudryashov, Floris van Doorn, Jon Eugster, Bryan Gin-ge Chen,
Jovan Gerbscheid
-/
module
public import Mathlib.Tactic.Translate.Core
/-!
# The `@[to_additive]` a... |
23,988 | lean_file_chunk | 52918925917bbd94012a87a713265f14f09ca4f45591c8eb769682d531c64a53 | 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, Yury Kudryashov, Floris van Doorn, Jon Eugster, Bryan Gin-ge Chen,
Jovan Gerbscheid
-/
module
public meta import Lean.Compiler.NoncomputableAttr
public meta import Lea... |
23,965 | lean_file_chunk | c81e2e6726c2185a333ad199b67af82ed1b5361ea34dd8c06dbd7e26e7648958 | lean_source_file | pkg_mathlib_source_file_chunks | if h : relevantArg < args.size then
if let some fixed ← shouldTranslate (← getEnv) t args[relevantArg] then
trace[translate_detail]
"The application of {n₀} contains the fixed type {fixed} so it is not changed."
return mkAppN f (← args.mapM visit)
-- If the number o... |
15,849 | lean_file_chunk | ee96f892813c06cbac19e84c0d26b2aabb32a1c8f795084c44485522731fad0c | lean_source_file | pkg_mathlib_source_file_chunks | Also try to autogenerate the `reorder` option for this translation. -/
partial def checkExistingType (t : TranslateData) (src tgt : Name) (cfg : Config) :
MetaM (Reorder × RelevantArg) := withoutExporting do
let srcDecl ← getConstInfo src
let tgtDecl ← getConstInfo tgt
unless srcDecl.levelParams.length == tgt... |
7,347 | lean_file_chunk | f38553eef45569ac9cde08fa079cb26215304a55c9dcdfcf5815f1f91bd13fb6 | 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, Yury Kudryashov, Floris van Doorn, Jon Eugster
-/
module
public meta import Std.Data.TreeMap.Basic
public meta import Mathlib.Data.String.Defs
public import Mathlib.In... |
6,753 | lean_file_chunk | 9632b0bc5d6b4a86d575b2d55ffda9c6ea4e40648223815fe708de0e5ccd152c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid
-/
module
public import Mathlib.Tactic.Translate.Core
public meta import Mathlib.Tactic.Translate.Core
/-!
# Tagging of unfold boundaries for translation attribute... |
16,859 | lean_file_chunk | 4b9715bce4ad4d86763301f93d84cf56714a20ad3d800d5e2ea8531841f2c9e5 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2026 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid
-/
module
public import Mathlib.Init
/-!
# Reordering arguments in a translation
This module defines reorders, which are used by `to_dual (reorder := ...)` and
`t... |
10,540 | lean_file_chunk | af266aca48304da0beedfbac440504d34e584eeec379356f7f9bd0bf7600df41 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid, Bryan Gin-ge Chen
-/
module
public import Mathlib.Tactic.Translate.TagUnfoldBoundary
/-!
# The `@[to_dual]` attribute.
The `@[to_dual]` attribute is used to tran... |
1,112 | lean_file_chunk | 132353f3346e657291232e0acd398e4d222c0c0df0a53fc0c1182b8d22ba9344 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2026 Jovan Gerbsheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbsheid
-/
module
public import Mathlib.Init
/-!
# Combining attributes that generate declarations with translation attributes
This file defines extensible support for writ... |
8,201 | lean_file_chunk | f068f608f8a8a39eef0c8b75d39c2207bb47ad95242452f442307dc36521d64d | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Jovan Gerbscheid. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jovan Gerbscheid
-/
module
public meta import Lean.Meta.Tactic.Delta
public import Mathlib.Init
public import Lean.Meta.Tactic.Simp
/-!
# Modify proof terms so that they don't rely... |
23,942 | lean_file_chunk | b9972c9ea5a21619655476a1e7fccc3b59e01d04a79c95fa57a12caf30584422 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
module
public meta import Lean.Elab.Tactic.Simp
public meta import Lean.Elab.App
public meta import Mathlib.Lean.Expr.Basic
public import Mathlib.Util.AddRelated... |
23,991 | lean_file_chunk | 885a65e698ff43f7d4d48bf160ea0249d6e2dcb22222c5d6e045e75fbf6b6ce0 | lean_source_file | pkg_mathlib_source_file_chunks | -- flag is true when the remaining part is nonempty and starts with a digit.
let flag := ret.toString.toList.head?.elim false Char.isDigit
if flag then none else some ret
/-- A variant of `String.isPrefixOf` that does not consider `toFoo` to be a prefix to `toFoo_1`. -/
private def isPrefixOfAndNotNumber (s p : St... |
14,913 | lean_file_chunk | 30bbea77fce1b6a1332500581c97f68ed80c8ef6da46c1218512e7b0fbd28e2f | lean_source_file | pkg_mathlib_source_file_chunks | let ctx ← mkSimpContext
let (rhs2, _) ← dsimp rhs ctx
if rhs != rhs2 then
trace[simps.debug] "`dsimp` simplified rhs to{indentExpr rhs2}"
else
trace[simps.debug] "`dsimp` failed to simplify rhs"
let (result, _) ← simp rhs2 ctx
if rhs2 != result.expr then
trace[simps.debug] "`simp` ... |
6,118 | lean_file_chunk | 18f651c53024a775736d17c9ada1192781c1540de86228b088323a3a69e418df | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
module
public import Mathlib.Init
public meta import Lean.Elab.Exception
public meta import Batteries.Lean.NameMapAttribute
/-!
# `@[notation_class]` attribute ... |
8,509 | lean_file_chunk | 074b4052b35638382cb7290cb53c165643698e6316d1d54173dca526abb259b8 | 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
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module docstring.
public meta import Mathlib.Tactic.Linter.Header ... |
4,129 | lean_file_chunk | 547a92b468531c142744e5387652e2526733e977d9538bdd29154958045bfe38 | 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: Floris van Doorn
-/
module
-- This module imports all of `Batteries.Tactic.Lint`, not just `Batteries.Tactic.Lint.Basic`.
-- It is responsible for making `#lint` available through `... |
6,475 | lean_file_chunk | c24cc23401064eca499a8fca3d57049f1724d207949ab83734878c8fed2ba8af | 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 "ppRoundtrip" linter
The "ppRoundtrip" linter emits a warning when the syntax of a c... |
23,945 | lean_file_chunk | 306383fd84b4de3ac13726d378f102c32bd8cafada19a011fc5f54def13783f1 | 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.Elab.Command
public meta import Lean.Elab.ParseImportsFast
public meta import Lean.Linter.Basic
public meta import Lean.Elab.AssertExists
... |
9,206 | lean_file_chunk | 48fa2743862f0113bd51b64350f8fa45a87bc74549a4c10e26c3e1f075d39bdc | lean_source_file | pkg_mathlib_source_file_chunks | (`Mathlib.Probability, `Mathlib.Geometry.RingedSpace),
(`Mathlib.Probability, `Mathlib.InformationTheory),
(`Mathlib.Probability, `Mathlib.ModelTheory),
(`Mathlib.Probability, `Mathlib.RepresentationTheory),
(`Mathlib.Probability, `Mathlib.Testing),
(`Mathlib.RepresentationTheory, `Mathlib.AlgebraicGeometry),... |
7,591 | lean_file_chunk | b9a2d13749911eb4baa7fd9a237fab073b72ad9cb30c2a9d323f74d6099b21bc | 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
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module docstring.
public meta... |
13,578 | lean_file_chunk | 5c6ef3e1bda4e75682a4e8996584aa666f7cc83a463c8916708e2f8970b0dd4e | 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
-/
module
public import Mathlib.Init
public import Lean.Elab.Import
/-!
# The `#clear_deprecations` command
This file defines the `#clear_deprecations date₁ date₂ reall... |
5,057 | lean_file_chunk | be59e017132c6094a3c760629c9aed72b42bcefd58fc330ecf793f728418a08e | 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, Anne Baanen
-/
module
public import Mathlib.Init
public import ImportGraph.Tools.FindHome
/-! # The `upstreamableDecl` linter
The `upstreamableDecl` linter detects dec... |
3,173 | lean_file_chunk | 14d1076e44c36db8c4c0bebd07a6c32f108f7dea0fd1d0ea0ced315d59f61356 | 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
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module docstring.
public meta... |
1,869 | lean_file_chunk | a5438cc25f075c2ee09ebe6178fb28bdcb702d59373b53b56901685127e83020 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
module
public meta import Lean.Elab.Tactic.Doc
public meta import Lean.Parser.Tactic.Doc
public import Mathlib.Tactic.Linter.Header -- shake: keep
public import Batteries... |
23,998 | lean_file_chunk | 3525e2adc9bb1c44b81a7f2c6a187b0757d9e2955c132bed5e6e22bfbdc898ac | 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, Jon Eugster, Adomas Baliuka
-/
module
public meta import Batteries.Data.String.Matcher
public meta import Lake.Util.Casing
public import Batteries.Data.String.Basi... |
6,461 | lean_file_chunk | 4a94de08975a51ed60b9740fdbf759de6318796e455385278bc796556913ea8f | lean_source_file | pkg_mathlib_source_file_chunks | `mode` specifies what kind of output this script should produce,
`fix` configures whether fixable errors should be corrected in-place. -/
public
def lintModules (opts : LinterOptions) (nolints : Array String) (moduleNames : Array Lean.Name)
(style : ErrorFormat) (fix : Bool) : IO UInt32 := do
let styleExceptions ... |
4,410 | lean_file_chunk | 6a1bfa9881edcabcb8864caa8e2e9556b6da9ac887b4f72cb477a081e2208c9e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Thomas R. Murrills. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas R. Murrills
-/
module
public meta import Lean.Elab.Command
public import Lean.Environment
-- Import this linter explicitly to ensure that
-- this file has a valid copyright... |
3,722 | lean_file_chunk | f5a9100426402932a492d04bf7fbd540f2e145258da4e3785d791f4eb6b79b3f | 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
-/
module
import Mathlib.Init
import Std.Internal.Parsec.String
/-!
# Checker for well-formed title and labels
This script checks if a PR title matches
[mathlib's... |
4,163 | lean_file_chunk | fb25e4bed4ec53d96d3bb1ed921627ce1b0d6049554b43589d964ffa3623ce52 | 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, Damiano Testa
-/
module
public meta import Lean.Elab.Command
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module d... |
15,504 | lean_file_chunk | e29f5893f1bb4ee0439753e25d01410e9b665b9b0f05581039e16ad727d27ea7 | 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
-/
module
public import Mathlib.Tactic.Linter.Header -- shake: keep
/-!
# The `whitespace` linter
The `whitespace` linter emits a warning if
* either a command does no... |
18,466 | lean_file_chunk | 59d5eeef34ecc931f473035d4fe1bdc22a539073876ac7d0b7f566ddbae18cd5 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Thomas R. Murrills. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas R. Murrills
-/
module
public meta import Mathlib.Lean.Expr.Basic
public meta import Mathlib.Lean.Environment
public meta import Mathlib.Lean.Elab.InfoTree
public meta impor... |
23,960 | lean_file_chunk | 517678c8f0656ea6798dcd50edaec2f0e8fd4191ad4015af9cd0a9af691f393d | 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 meta import Lean.Elab.Tactic.Simp
public meta import Lean.Meta.Tactic.TryThis
public meta import Lean.Server.InfoUti... |
251 | lean_file_chunk | b642230ed4bea1cb28de3aee630342aa8b0350d3fd9229473af642f0bb40c4fa | lean_source_file | pkg_mathlib_source_file_chunks | liftCoreM <| Lean.Meta.Tactic.TryThis.addSuggestion stainStx
{ suggestion := .tsyntax (kind := `tactic) ⟨suggStx⟩ } (origSpan? := stainStx)
logInfoAt s m!"'{s}' uses '{d}'!"
initialize addLinter flexibleLinter
end Mathlib.Linter.Flexible |
3,287 | lean_file_chunk | a0733dc766081fafd0f2b02dd289dad211844c0442ace30790ef33a131df278f | 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
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module docstring.
public meta... |
7,157 | lean_file_chunk | fbea20b0894a6afa52a8ab1b8c1cd0223c4ed3c9104599a3c7f7b6289c02fde0 | 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: Michael Rothgang, Damiano Testa
-/
module
public meta import Mathlib.Tactic.Linter.Header -- shake: keep
public import Lean.Parser.Command
/-!
# The "DocString" style linter
The "Do... |
20,293 | lean_file_chunk | 1c25bf4886f3ede8a0ef61652369a46d1d6a5fc7fe944c1b111100b829d418f3 | 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: Michael Rothgang, Damiano Testa
-/
module
public meta import Lean.Elab.Command
public meta import Lean.Elab.ParseImportsFast
public meta import Init
public import Lean.Parser.Module
pu... |
4,207 | lean_file_chunk | 986c0fd2bd892bfdc5e17e4981abbf7b26dd700982583599e1d8325e510edcfb | 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
-/
module
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module docstring.
public meta import Mathlib.Tactic.Linter.Header... |
155 | lean_file_chunk | ca96d83a96fabe3040098eb43fecd6667681e703190286709becf464ff018605 | lean_source_file | pkg_mathlib_source_file_chunks | module -- shake: keep-all
import Mathlib.Tactic.Linter.DeprecatedModule
import Mathlib.Tactic.Linter.Whitespace
deprecated_module (since := "2026-01-07") |
5,880 | lean_file_chunk | 96dfda985d72f291056c6b55f4e6d88ad19b221ff61e868f37578e2109a845a8 | 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
-/
module
public meta import Mathlib.Tactic.Linter.Header -- shake: keep
public import Lean.Parser.Command
/-!
# The "emptyLine" linter
The "emptyLine" linter emits a ... |
6,558 | lean_file_chunk | 53664d074d464be627e4ac660182f54f8610cd7cceb8879e3894db9b941c0606 | 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
-/
module
public meta import Std.Time.Format
public import Mathlib.Init
public import Std.Time.Date
/-!
# The `deprecated.module` linter
The `deprecated.module` linter ... |
3,198 | lean_file_chunk | 5f4d12f000fe54f21b156bbaf052c8e8f52616cdd17c88e6a83b1e4699df6f6c | 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
-/
module
public meta import Lean.Elab.Command
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and module docstring.
publi... |
5,128 | lean_file_chunk | fb521fa0fa4ff4ce64ffd4f446d3869e46e7952778196823a350dc80345dc879 | 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 import Mathlib.Init
public meta import Lean.Elab.Command
public meta import Lean.Server.InfoUtils
/-!
# The `have` vs `let` linter
The `have` vs `let` ... |
23,979 | lean_file_chunk | 491e4defbe8ff58b19f01fd6ed97a95cb997b932418c1058beb6bf8906789636 | 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
-/
module
public meta import Lean.Elab.Command
public meta import Lean.Server.InfoUtils
-- Import this linter explicitly to ensure that
-- this file has a valid cop... |
1,578 | lean_file_chunk | c097a2630d10132f27fdfdc08741b9de2e14d9a7da595d7439eac28a1080c674 | lean_source_file | pkg_mathlib_source_file_chunks | `change` should be preferred.
-/
public register_option linter.style.show : Bool := {
defValue := false
descr := "enable the show linter"
}
namespace Style.show
@[inherit_doc Mathlib.Linter.linter.style.show]
def showLinter : Linter where run := withSetOptionIn fun stx => do
unless getLinterValue linter.style... |
8,300 | lean_file_chunk | 6006b41246b6f93400bee1a3a78e2283379dd1b180a27dd6e6d9337b35ee2af5 | 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 ImportGraph.Imports.ImportGraph
public meta import ImportGraph.Graph.TransitiveClosure
public import Mathlib.Tactic.MinImports
/-! # The `mi... |
1,998 | lean_file_chunk | e255d757608bc127c85769730078018fecabb054d91b5f1a0e6ab4f514c03051 | 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
-/
module
public import Mathlib.Init -- `import Lean.Elab.Command` is enough
/-!
# The "commandRanges" linter
The "commandRanges" linter simply logs the `getRange?` and... |
11,083 | lean_file_chunk | a468b006172dda1422ce17085628440ab2f855598dca6ff1f4ff5a3c6c4c4289 | 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, Jeremy Tan, Adomas Baliuka
-/
module
public meta import Lean.Elab.Command
-- Import this linter explicitly to ensure that
-- this file has a valid copyright header and m... |
18,636 | lean_file_chunk | c146b7d3f4346c47c40ffe6f367045b17676abe23015ad588f0628ff55f631b8 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Michael Rothgang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth, Arend Mellendijk, Michael Rothgang
-/
module
public import Mathlib.Algebra.BigOperators.Group.List.Basic
public import Mathlib.Algebra.Field.Power -- shake: keep (... |
548 | lean_file_chunk | e7dd4b414105e9bf61c122496831a53e2989e40a85eba61538f560b9ceaed8a4 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Heather Macbeth
-/
module
public import Mathlib.Init
/-! # Attribute grouping the `field_simp` simprocs -/
public meta section
open Lean Meta
/-- Initialize the attribute `field`... |
4,730 | lean_file_chunk | 310a7a62a60534b200513e598f2db56bf8908086dcd69c96fcc61d800762b55c | lean_source_file | pkg_mathlib_source_file_chunks | /-
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, David Renshaw
-/
module
import all Lean.Meta.Tactic.Simp.Rewrite
public import Mathlib.Tactic.Positivity.Core
public import Mathlib.Util.DischargerAsTactic
/-!
... |
1,112 | lean_file_chunk | a81b13c5ca62cff9da011502b9ba5aa6b48d0c781f26e9e4a98a40cd34e7f3a6 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Concordance Inc. dba Harmonic. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
module
public import Mathlib.Data.Int.ModEq
public import Mathlib.Tactic.NormNum.DivMod
/-!
# `norm_num` extensions for `Nat.ModEq` and `Int.ModEq`
... |
7,375 | lean_file_chunk | 7468e8281fed6b90e43d043f4dc0f62cb95850b92228fd920c8743e5d5417a17 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Mario Carneiro
-/
module
public import Mathlib.Tactic.NormNum.Ineq
/-!
# `norm_num` extension for integer div/mod and divides
This file adds support for the `%`, `/`, and ... |
15,644 | lean_file_chunk | 896c6633300eb0d6fea57b9e2ee75eb65736ab7628c669d157faae5285919764 | 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.Algebra.Order.Invertible
public import Mathlib.Algebra.Order.Ring.Cast
public import Mathlib.Tactic.NormNum.Eq
public meta import Mathli... |
4,716 | lean_file_chunk | aa0388c939250bb5f1392b95d8f8d0ce20452eb3383f6bffceeea0004bcea06b | 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, Mario Carneiro
-/
module
public meta import Mathlib.Data.Nat.Fib.Basic
public import Mathlib.Data.Nat.Fib.Basic
public import Mathlib.Tactic.NormNum
/-! # `norm_num` extens... |
13,456 | lean_file_chunk | 5feede3ca2affc0f3dac35490b25d3b8513f6eff82685cc0a5e2ca28b98e9b45 | 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, Thomas Murrills
-/
module
public import Mathlib.Data.Int.Cast.Lemmas
public import Mathlib.Tactic.NormNum.Basic
/-!
## `norm_num` plugin for `^`.
-/
public meta sect... |
10,996 | lean_file_chunk | 85561ccbf1c0848dec2fd40bf88e312745bd4b3675d297c681cbb078e155f10f | 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, Kyle Miller, Eric Wieser
-/
module
public meta import Mathlib.Data.Int.GCD
public import Mathlib.Algebra.Ring.Divisibility.Basic
public import Mathlib.Tactic.NormNum
... |
15,691 | lean_file_chunk | 72dd16859f6f9a54f7cd2b1a2e7287dc9b6aee7993e6146ed44ac4d6853b9a3d | 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 Mathlib.Lean.Expr.Rat
public import Mathlib.Tactic.Hint
public import Mathlib.Tactic.NormNum.Result
public import Mathlib.Util.Qq
/-!
## `... |
4,877 | lean_file_chunk | 1284694437aecf3a38b640b93f69dda20990c08c9da14329d20931a575f69470 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Markus Himmel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Markus Himmel
-/
module
public import Mathlib.Tactic.NormNum.Pow
/-!
# `norm_num` handling for expressions of the form `a ^ b % m`.
These expressions can often be evaluated efficient... |
1,904 | lean_file_chunk | c5326df0ee3b3d4d2cd6fc1fe9422a11ee5822b9ec9bea00f7853eacf446332f | 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, Kyle Miller
-/
module
public meta import Batteries.Data.Nat.Basic
public import Mathlib.Tactic.NormNum
/-! # `norm_num` extension for `Nat.sqrt`
This module defines ... |
17,568 | lean_file_chunk | 35423c085d70923e6f13c02937852764be8dddbe795570905b3e355c4f3caace | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2022 Michael Stoll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Michael Stoll
-/
module
public meta import Mathlib.NumberTheory.LegendreSymbol.JacobiSymbol
public import Mathlib.NumberTheory.LegendreSymbol.JacobiSymbol
/-!
# A `norm_num` extension... |
23,994 | lean_file_chunk | 0df97adfd4cde0a0dd34291f0aa694bafc9b01f7a3e0a9227800c1fd19f15802 | 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, Thomas Murrills
-/
module
public import Mathlib.Algebra.Group.Invertible.Defs
public import Mathlib.Algebra.Ring.Defs
public import Mathlib.Algebra.Ring.Int.Defs
publi... |
10,449 | lean_file_chunk | 1a80673ab26cf34cd0d96111f2af017cd4e3c0ed6e8e593bae4492c3b0bb194f | lean_source_file | pkg_mathlib_source_file_chunks | let r1 : Q(Int.mul $na $nb = Int.mul $k $nc) :=
(q(Eq.refl (Int.mul $na $nb)) : Expr)
have t2 : Q(ℕ) := mkRawNatLit dd
let r2 : Q(Nat.mul $da $db = Nat.mul $k $dc) := (q(Eq.refl $t2) : Expr)
return .isRat dα qc nc dc q(isRat_mul (.refl _) $pa $pb $r1 $r2)
match ra, rb with
| .isBool .., _ | _, .is... |
2,173 | lean_file_chunk | 8fb6ec3b085e675b1d0d98108ec12a711568f174243f3cb01069cbcce417de0e | 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.RingTheory.Coprime.Lemmas
public import Mathlib.Tactic.NormNum.GCD
/-! # `norm_num` extension for `IsCoprime`
This module defines a `norm_nu... |
2,668 | lean_file_chunk | ddbe7fb9c5f8f4754202c8fb8407c023c6f81d17ca4596823537ad20f7624723 | 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, Thomas Murrills
-/
module
public import Mathlib.Data.Rat.Cast.Lemmas
public import Mathlib.Tactic.NormNum.Basic
/-!
## `norm_num` plugin for scientific notation.
-/
... |
23,930 | lean_file_chunk | 918963ca8d8e7987ff33cade9398617e011621edca4e696eb55326e200838cd8 | 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.Algebra.Field.Defs
public import Mathlib.Algebra.GroupWithZero.Invertible
public import Mathlib.Algebra.Ring.Nat
public import Mathlib.D... |
1,350 | lean_file_chunk | 0ac2efa86edf842eb5050f724a2f48deda7ab08c0e83d186e5b0be8d4ede4078 | lean_source_file | pkg_mathlib_source_file_chunks | Note that `BoolResult p b` is definitionally equal to `Expr`, and if you write `match b with ...`,
then in the `true` branch `BoolResult p true` is reducibly equal to `Q($p)` and
in the `false` branch it is reducibly equal to `Q(¬ $p)`. -/
abbrev BoolResult (p : Q(Prop)) (b : Bool) : Type :=
Q(Bool.rec (¬ $p) ($p... |
9,069 | lean_file_chunk | 642871ee722af9074718aaa1c944d443333da6b1b089a149b38a9877ab23bd6c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Miyahara Kō. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Miyahara Kō
-/
module
public meta import Mathlib.Algebra.Group.Nat.Defs
public import Mathlib.SetTheory.Ordinal.Exponential
public import Mathlib.Tactic.NormNum.Basic
/-!
# `norm_num` e... |
6,966 | lean_file_chunk | 9718f4d94c6507094d6f43b9968dd60013275d2344e870d0389f0a9d96764619 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Harmonic. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
module
public meta import Batteries.Data.Nat.Basic
public import Mathlib.Tactic.NormNum.GCD
/-!
# `norm_num` extension for `IsSquare`
The extension in this file handles... |
5,597 | lean_file_chunk | ae18e451d1a91a1ccfa4250ec6ee16d23ace3352344852a51199fb8406797ee3 | 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.Tactic.NormNum.Inv
/-!
# `norm_num` extension for equalities
-/
public meta section
variable {α : Type*}
open Lean Meta Qq
namespac... |
4,791 | lean_file_chunk | 33c7b3c020e71f5ca25ecfe07bb9658ca42a719299c5c09469c865e2d33f4602 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Frédéric Dupuis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Frédéric Dupuis
-/
module
public import Mathlib.Data.Real.Sqrt
/-! # `norm_num` extension for `Real.sqrt`
This module defines a `norm_num` extension for `Real.sqrt` and `NNReal.sqr... |
18,035 | lean_file_chunk | 679e1a797a47c9214279b0352e7ce4ba6461bbcd75c193ebaf0884fc079e1240 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen, Floris van Doorn
-/
module
public import Mathlib.Algebra.BigOperators.Group.Finset.Basic -- shake: keep (Qq dependency)
public import Mathlib.Tactic.NormNum.Basic
/-!
# `n... |
12,113 | lean_file_chunk | fa7d9c15b63429eae38e0af50c3358cf51fe43118446182bd4efd87898dec696 | 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.Analysis.SpecialFunctions.Pow.Real
public import Mathlib.NumberTheory.Real.Irrational
public import Mathlib.Tactic.NormNum.GCD
publi... |
8,446 | lean_file_chunk | 463115c275c42e9a389bc7fe7136d79633010b4f31995b1237bc25324f94da7e | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2015 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Jeremy Avigad, Mario Carneiro
-/
module
public import Mathlib.Data.Nat.Prime.Basic
public meta import Mathlib.Data.Nat.Prime.Defs
public import Mathlib.Tacti... |
1,596 | lean_file_chunk | c28a0860bd6a1c85cc2691e427f8a6748d32509985c91d4514955d0ef3ed2215 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Concordance Inc. dba Harmonic. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov
-/
module
public import Mathlib.Algebra.Ring.Int.Parity -- shake: keep (Qq dependency)
public import Mathlib.Tactic.NormNum.Core
/-!
# `norm_num` exte... |
4,760 | lean_file_chunk | 845f1a1301e9b23e73acedafb0e5d0e9d913f4fac010e1440272e9f3cba83d4c | 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, Andreas Gittis
-/
module
public meta import Mathlib.Data.Nat.Log
public import Mathlib.Data.Nat.Log
public import Mathlib.Tactic.NormNum
/-! # `norm_num` extensions for `Na... |
5,532 | lean_file_chunk | 89d60bc8bed10269439ffa599c37ade77962488dccef3a0e7bce9b4bb738c669 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2023 Sebastian Zimmer. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Zimmer
-/
module
public meta import Mathlib.Data.Nat.Factorial.Basic
public import Mathlib.Tactic.NormNum
/-! # `norm_num` extensions for factorials
Extensions for `norm... |
2,959 | lean_file_chunk | fe9136918ed89936a54a08f2289390e640507d935fa9265b2e93043d323bf43c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 David Renshaw. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: David Renshaw
-/
module
public import Mathlib.Data.Nat.Cast.Order.Ring
public import Mathlib.Tactic.NormNum.Basic
/-!
# `norm_num` plugin for `abs`
TODO: plugins for `mabs`, `norm`,... |
8,823 | lean_file_chunk | 684828e27a1f6e8a13441801f5f64d6ae995d6d1571171bee9357845a7e16b97 | 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.Data.Rat.Cast.CharZero
public import Mathlib.Tactic.NormNum.Basic
/-!
# `norm_num` plugins for `Rat.cast` and `⁻¹`.
-/
public meta sec... |
5,509 | lean_file_chunk | cb81c566181cea13099f52aea266d26fef62b3ea76eae12fca0e58fc35f57913 | lean_source_file | pkg_mathlib_source_file_chunks | /-
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, Mario Carneiro
-/
module
public meta import Qq.MetaM
public import Mathlib.Logic.Nontrivial.Basic -- shake: keep (tactic dependency)
public meta import Mathlib.T... |
23,993 | lean_file_chunk | 4a377f285d4770f4948bb9550c7b55b588087306f2182b652b9721a35868017a | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public meta import Mathlib.Tactic.FunProp.Theorems
public meta import Mathlib.Tactic.FunProp.ToBatteries
public meta import Mathlib.Tactic.FunProp.Types
public ... |
1,656 | lean_file_chunk | a9595b51bde74e2dd73476fbbb4ae8d95b3b8df66b68bcf7ead4d48a4d18b505 | lean_source_file | pkg_mathlib_source_file_chunks | else
cacheFailure e
return none
/-- Main `funProp` function. Returns proof of `e`. -/
private partial def main (e : Expr) : FunPropM (Option Result) := do
let some (funPropDecl, f) ← getFunProp? e
| return none
increaseSteps
-- if function starts with let bindings move the... |
1,125 | lean_file_chunk | 294e97a000f3d04a24abf92b6afad39f3c9316dcf6feba444b68b93cc7f86697 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public meta import Mathlib.Tactic.FunProp.Decl
public import Mathlib.Tactic.FunProp.Theorems
/-!
## `funProp` attribute
-/
public meta section
namespace Math... |
9,687 | lean_file_chunk | f73265bcafa699d8158f9fa9452bfaf82b8f4cda2a11aa5f74b9a1f310de3575 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public meta import Mathlib.Tactic.FunProp.Mor
public import Mathlib.Tactic.FunProp.Mor
public import Mathlib.Tactic.FunProp.ToBatteries
public meta import Std.... |
4,627 | lean_file_chunk | 8aaee6871e6822724bb34f8f8405c10aed59c6fb87aa32c7cbb72693a9f59ebf | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public import Mathlib.Init
/-!
## `funProp` missing function from standard library
-/
public meta section
namespace Mathlib
open Lean Meta
namespace Meta.Fu... |
5,301 | lean_file_chunk | 3a293970c4e83d379b114417ac19bfddefa3fc7a7c608bf05680d8bacb977f8c | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public import Mathlib.Init
public meta import Lean.Meta.CoeAttr
public import Lean.Meta.CoeAttr
/-!
## `funProp` Meta programming functions like in Lean.Expr.*... |
14,328 | lean_file_chunk | 2c113bd31cd694ce323b56f774c233ecfa8086117cecf69ada7a58aef28f0829 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public meta import Mathlib.Tactic.FunProp.Decl
public meta import Mathlib.Tactic.FunProp.Types
public meta import Mathlib.Tactic.FunProp.FunctionData
public met... |
5,717 | lean_file_chunk | ee7496307f863aaf2c8285b74d7264129a53dbb61639c41e269bcd62404032a9 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public import Mathlib.Tactic.FunProp.Core
/-!
## `funProp` tactic syntax
-/
public meta section
namespace Mathlib
open Lean Meta Elab Tactic
namespace Meta.... |
4,829 | lean_file_chunk | bb789bb4568d377d1b660edb6a669159b20f8dbbb56c37cc3fbddf2a7d1f52cb | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public import Mathlib.Init
/-!
## `funProp` environment extension that stores all registered function properties
-/
public meta section
namespace Mathlib
op... |
7,235 | lean_file_chunk | 8709e7eedc719656be70e2544bf5c0c510a5919be44c3ae52aa80fc93da14caf | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2024 Tomáš Skřivan. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Tomáš Skřivan
-/
module
public meta import Mathlib.Lean.Meta.RefinedDiscrTree.Basic
public import Mathlib.Tactic.FunProp.FunctionData
/-!
## `funProp`
this file defines environment e... |
2,172 | lean_file_chunk | 233dd75aebdfdcdc83bb3d0d6f0e24c7ce9de404e3987d55dc6021eb6a1d35d5 | lean_source_file | pkg_mathlib_source_file_chunks | /-
Copyright (c) 2025 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz, Thomas R. Murrills
-/
module
public import Mathlib.Init
/-!
# Support for `Category* C`.
In the category theory library, it is common to introduce a (universe polymorphic) g... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.