path stringlengths 11 71 | content stringlengths 75 124k |
|---|---|
Tactic\AdaptationNote.lean | /-
Copyright (c) 2024 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Lean
/-!
# Adaptation notes
This file defines a `#adaptation_note` command.
Adaptation notes are comments that are used to indicate that a piece of code
has been c... |
Tactic\ApplyAt.lean | /-
Copyright (c) 2023 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import Lean.Elab.Tactic.ElabTerm
import Mathlib.Lean.Meta.Basic
/-!
# Apply at
A tactic for applying functions at hypotheses.
-/
open Lean Meta Elab Tactic Term
namespace... |
Tactic\ApplyCongr.lean | /-
Copyright (c) 2020 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Lucas Allen, Scott Morrison
-/
import Mathlib.Tactic.Conv
/-!
## Introduce the `apply_congr` conv mode tactic.
`apply_congr` will apply congruence lemmas inside `conv` mode.
It is p... |
Tactic\ApplyFun.lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Keeley Hoek, Patrick Massot, Scott Morrison
-/
import Mathlib.Lean.Expr.Basic
import Mathlib.Order.Monotone.Basic
import Mathlib.Order.Hom.Basic
/-!
# The `apply_fun` tactic.
Apply a... |
Tactic\ApplyWith.lean | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Lean.Elab.Eval
import Lean.Elab.Tactic.ElabTerm
/-!
# The `applyWith` tactic
The `applyWith` tactic is like `apply`, but allows passing a custom configuration... |
Tactic\ArithMult.lean | /-
Copyright (c) 2023 Arend Mellendijk. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arend Mellendijk
-/
import Mathlib.Tactic.Basic
import Mathlib.Tactic.ArithMult.Init
/-!
# Multiplicativity
We define the arith_mult tactic using aesop
-/
namespace ArithmeticFu... |
Tactic\Basic.lean | /-
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
-/
import Lean
import Mathlib.Tactic.PPWithUniv
import Mathlib.Tactic.ExtendDoc
import Mathlib.Tactic.Lemma
import Mathlib.Tactic.TypeStar
import Mathlib.Ta... |
Tactic\Bound.lean | /-
Copyright (c) 2024 Geoffrey Irving. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Geoffrey Irving
-/
import Aesop
import Mathlib.Tactic.Bound.Attribute
import Mathlib.Tactic.Lemma
import Mathlib.Tactic.Linarith.Frontend
import Mathlib.Tactic.NormNum.Core
/-!
## T... |
Tactic\ByContra.lean | /-
Copyright (c) 2022 Kevin Buzzard. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kevin Buzzard
-/
import Mathlib.Tactic.PushNeg
/-!
# The `by_contra` tactic
The `by_contra!` tactic is a variant of the `by_contra` tactic, for proofs of contradiction.
-/
open Lean ... |
Tactic\CancelDenoms.lean | import Mathlib.Tactic.CancelDenoms.Core
import Mathlib.Tactic.NormNum.Ineq
|
Tactic\Cases.lean | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Lean.Elab.Tactic.Induction
import Batteries.Tactic.OpenPrivate
import Mathlib.Lean.Expr.Basic
/-!
# Backward compatible implementation of lean 3 `cases` tact... |
Tactic\CasesM.lean | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Lean.Elab.Tactic.Conv.Pattern
/-!
# `casesm`, `cases_type`, `constructorm` tactics
These tactics implement repeated `cases` / `constructor` on anything satis... |
Tactic\CC.lean | /-
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Leonardo de Moura, Miyahara KΕ
-/
import Mathlib.Tactic.CC.Addition
/-!
# Congruence closure
The congruence closure tactic `cc` tries to solve the goal by chaining
equalities ... |
Tactic\Change.lean | /-
Copyright (c) 2023 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Lean.Elab.Tactic.ElabTerm
import Lean.Meta.Tactic.TryThis
/-!
# Tactic `change? term`
This tactic is used to suggest a replacement of the goal by a definition... |
Tactic\Check.lean | /-
Copyright (c) 2024 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Lean.Elab.Tactic.Basic
import Lean.PrettyPrinter
import Lean.Elab.SyntheticMVars
/-!
# `#check` tactic
This module defines a tactic version of the `#check` command... |
Tactic\Choose.lean | /-
Copyright (c) 2018 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, Floris van Doorn, Mario Carneiro, Reid Barton, Johan Commelin
-/
import Mathlib.Util.Tactic
import Mathlib.Logic.Function.Basic
/-!
# `choose` tactic
Performs Skolemi... |
Tactic\Clean.lean | /-
Copyright (c) 2018 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Michail Karatarakis, Kyle Miller
-/
import Lean.Elab.SyntheticMVars
/-!
# `clean%` term elaborator
Remove identity functions from a term.
-/
open Lean Meta Elab
nam... |
Tactic\ClearExcept.lean | /-
Copyright (c) 2022 Joshua Clune. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joshua Clune
-/
import Lean.Elab.Tactic.ElabTerm
/-!
# The `clear*` tactic
This file provides a variant of the `clear` tactic, which clears all hypotheses it can
besides a provided lis... |
Tactic\ClearExclamation.lean | /-
Copyright (c) 2022 Joshua Clune. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joshua Clune
-/
import Lean.Elab.Tactic.ElabTerm
/-! # `clear!` tactic -/
namespace Mathlib.Tactic
open Lean Meta Elab.Tactic
/-- A variant of `clear` which clears not only the given ... |
Tactic\Clear_.lean | /-
Copyright (c) 2022 Joshua Clune. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joshua Clune
-/
import Lean.Meta.Tactic.Clear
import Lean.Elab.Tactic.Basic
/-! # `clear_` tactic -/
namespace Mathlib.Tactic
open Lean Meta Elab.Tactic
/-- Clear all hypotheses start... |
Tactic\Coe.lean | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Lean.Elab.ElabRules
/-!
# Additional coercion notation
Defines notation for coercions.
1. `β t` is defined in core.
2. `(β)` is equivalent to the eta-reduction... |
Tactic\Common.lean | /-
Copyright (c) 2023 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
-- First import Aesop and Qq
import Aesop
import Qq
-- Tools for analysing imports, like `#find_home`, `#minimize_imports`, ...
import ImportGraph.Imports
-- Impor... |
Tactic\ComputeDegree.lean | /-
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.Degree.Lemmas
/-!
# `compute_degree` and `monicity`: tactics for explicit polynomials
This file defines two related tactics: `comp... |
Tactic\CongrExclamation.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Lean.Elab.Tactic.Config
import Lean.Elab.Tactic.RCases
import Lean.Meta.Tactic.Assumption
import Lean.Meta.Tactic.Rfl
import Mathlib.Lean.Meta.CongrTheorems
import M... |
Tactic\CongrM.lean | /-
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
-/
import Mathlib.Tactic.TermCongr
/-!
# The `congrm` tactic
The `congrm` tactic ("`congr` with matching")
is a con... |
Tactic\Constructor.lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Newell Jensen
-/
import Lean.Elab.SyntheticMVars
import Lean.Meta.Tactic.Constructor
/-!
# The `fconstructor` and `econstructor` tactics
The `fconstructor` and `econs... |
Tactic\Continuity.lean | /-
Copyright (c) 2023 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import Mathlib.Tactic.Continuity.Init
/-!
# Continuity
We define the `continuity` tactic using `aesop`. -/
attribute [aesop (rule_sets := [Continuous]) unfold norm] Fun... |
Tactic\ContinuousFunctionalCalculus.lean | /-
Copyright (c) 2024 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import Mathlib.Tactic.Core
import Mathlib.Tactic.FunProp
import Aesop
/-!
# Tactics for the continuous functional calculus
At the moment, these tactics are just wra... |
Tactic\Contrapose.lean | /-
Copyright (c) 2022 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import Mathlib.Tactic.PushNeg
/-! # Contrapose
The `contrapose` tactic transforms the goal into its contrapositive when that goal is an
implication.
* `contrapose` ... |
Tactic\Conv.lean | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Lean.Elab.Tactic.Conv.Basic
import Lean.Elab.Command
/-!
Additional `conv` tactics.
-/
namespace Mathlib.Tactic.Conv
open Lean Parser.Tactic Parser.Tactic.Conv... |
Tactic\Convert.lean | /-
Copyright (c) 2022 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Kyle Miller
-/
import Mathlib.Tactic.CongrExclamation
/-!
# The `convert` tactic.
-/
open Lean Meta Elab Tactic
/--
Close the goal `g` using `Eq.mp v e`,
where `v` i... |
Tactic\Core.lean | /-
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
-/
import Lean.Elab.PreDefinition.Basic
import Lean.Util.Paths
import Mathlib.Lean.Expr.Basic
import Batteries.Tactic.OpenPrivate
/-!
# G... |
Tactic\DefEqTransformations.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Mathlib.Tactic.Basic
/-! # Tactics that transform types into definitionally equal types
This module defines a standard wrapper that can be used to create tactics t... |
Tactic\DeprecateMe.lean | /-
Copyright (c) 2024 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Mathlib.Lean.Expr.Basic
import Mathlib.Tactic.Lemma
/-!
# `deprecate to` -- a deprecation tool
Writing
```lean
deprecate to new_name new_nameβ ... new_nameβ
... |
Tactic\DeriveFintype.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Mathlib.Tactic.ProxyType
import Mathlib.Data.Fintype.Basic
import Mathlib.Data.Fintype.Sigma
import Mathlib.Data.Fintype.Sum
/-!
# The `Fintype` derive handler
Thi... |
Tactic\DeriveToExpr.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Mathlib.Tactic.ToLevel
/-!
# A `ToExpr` derive handler
This module defines a `ToExpr` derive handler for inductive types. It supports mutually inductive
types as w... |
Tactic\DeriveTraversable.lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import Mathlib.Control.Traversable.Lemmas
import Lean.Elab.Match
import Lean.Elab.Deriving.Basic
import Lean.Elab.PreDefinition.Main
/-!
# Deriving handler for `Traversabl... |
Tactic\Eqns.lean | /-
Copyright (c) 2023 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import Lean.Meta.Eqns
import Batteries.Lean.NameMapAttribute
import Lean.Elab.Exception
import Lean.Elab.InfoTree.Main
/-! # The `@[eqns]` attribute
This file provides th... |
Tactic\Eval.lean | /-
Copyright (c) 2024 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/
import Qq.Macro
/-!
# The `eval%` term elaborator
This file provides the `eval% x` term elaborator, which evaluates the constant `x` at compile-time
in the interpreter, ... |
Tactic\ExistsI.lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Gabriel Ebner, Moritz Doll
-/
/-!
# The `existsi` tactic
This file defines the `existsi` tactic: its purpose is to instantiate existential quantifiers.
Internally, it app... |
Tactic\Explode.lean | /-
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
-/
import Lean.Elab.Command
import Lean.PrettyPrinter
import Mathlib.Tactic.Explode.Datatypes
import Mathlib.Tactic.Explode.Pretty
/-!
# E... |
Tactic\ExtendDoc.lean | /-
Copyright (c) 2023 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import Lean.Elab.ElabRules
import Lean.DocString
/-!
# `extend_doc` command
In a file where declaration `decl` is defined, writing
```lean
extend_doc decl
before ... |
Tactic\ExtractGoal.lean | /-
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
-/
import Lean.Elab.Tactic.ElabTerm
import Lean.Meta.Tactic.Cleanup
import Lean.PrettyPrinter
import Batteries.Lean.Meta.Inaccessible
/-!
# `extr... |
Tactic\ExtractLets.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Mathlib.Lean.Expr.Basic
import Mathlib.Tactic.Basic
/-!
# The `extract_lets at` tactic
This module defines a tactic `extract_lets ... at h` that can be used to (in... |
Tactic\FailIfNoProgress.lean | /-
Copyright (c) 2023 Thomas Murrills. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Murrills
-/
import Lean.Elab.Tactic.Basic
import Lean.Meta.Tactic.Util
/-!
# Fail if no progress
This implements the `fail_if_no_progress` tactic, which fails if no actual pr... |
Tactic\FBinop.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Mathlib.Tactic.ToExpr
/-! # Elaborator for functorial binary operators
`fbinop% f x y` elaborates `f x y` for `x : S Ξ±` and `y : S' Ξ²`, taking into account
any coe... |
Tactic\FieldSimp.lean | /-
Copyright (c) 2019 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel, David Renshaw
-/
import Lean.Elab.Tactic.Basic
import Lean.Meta.Tactic.Simp.Main
import Mathlib.Algebra.Group.Units
import Mathlib.Tactic.Positivity.Core
import ... |
Tactic\FinCases.lean | /-
Copyright (c) 2022 Hanting Zhang. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Hanting Zhang
-/
import Mathlib.Tactic.Core
import Mathlib.Lean.Expr.Basic
import Mathlib.Data.Fintype.Basic
/-!
# The `fin_cases` tactic.
Given a hypothesis of the fo... |
Tactic\Find.lean | /-
Copyright (c) 2021 Sebastian Ullrich. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Sebastian Ullrich
-/
import Batteries.Util.Cache
import Lean.HeadIndex
import Lean.Elab.Command
/-!
# The `#find` command and tactic.
The `#find` command finds definitions & lemma... |
Tactic\FunProp.lean | import Mathlib.Tactic.FunProp.Attr
import Mathlib.Tactic.FunProp.Core
import Mathlib.Tactic.FunProp.Decl
import Mathlib.Tactic.FunProp.Elab
import Mathlib.Tactic.FunProp.FunctionData
import Mathlib.Tactic.FunProp.Mor
import Mathlib.Tactic.FunProp.RefinedDiscrTree
import Mathlib.Tactic.FunProp.StateList
import Mathlib.T... |
Tactic\GCongr.lean | /-
Copyright (c) 2023 Mario Carneiro, Heather Macbeth. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Heather Macbeth
-/
import Mathlib.Tactic.Positivity.Core
import Mathlib.Tactic.GCongr.Core
/-! # Setup for the `gcongr` tactic
The core implementatio... |
Tactic\Generalize.lean | /-
Copyright (c) 2024 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Lean.Elab.Binders
import Lean.Elab.Tactic.ElabTerm
import Lean.Meta.Tactic.Generalize
/-!
# Backwards compatibility shim for `generalize`.
In https://github.c... |
Tactic\GeneralizeProofs.lean | /-
Copyright (c) 2022 Alex J. Best. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Alex J. Best, Kyle Miller
-/
import Lean.Elab.Tactic.Config
import Lean.Elab.Tactic.Location
import Mathlib.Lean.Expr.Basic
/-!
# The `generalize_proofs` tactic
Generalize any proofs o... |
Tactic\Group.lean | /-
Copyright (c) 2020. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Thomas Browning, Patrick Massot
-/
import Mathlib.Tactic.Ring
import Mathlib.Tactic.FailIfNoProgress
import Mathlib.Algebra.Group.Commutator
/-!
# `group` tactic
Normalizes expressions in the langu... |
Tactic\GuardGoalNums.lean | /-
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
-/
import Lean.Elab.Tactic.Basic
/-!
A tactic stub file for the `guard_goal_nums` tactic.
-/
open Lean Meta Elab Tactic
/-- `guard_goal_nums n` succeeds if there ... |
Tactic\GuardHypNums.lean | /-
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
-/
import Lean.Elab.Tactic.Basic
/-!
A tactic stub file for the `guard_hyp_nums` tactic.
-/
open Lean Meta Elab Tactic
/--
`guard_hyp_nums n` succeeds if there are ... |
Tactic\Have.lean | /-
Copyright (c) 2022 Arthur Paulino. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Edward Ayers, Mario Carneiro
-/
import Lean.Elab.Binders
import Lean.Elab.SyntheticMVars
import Lean.Meta.Tactic.Assert
/-!
# Extending `have`, `let` and `suffices`
T... |
Tactic\HaveI.lean | /-
Copyright (c) 2023 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
/-!
# Variants of `haveI`/`letI` for use in do-notation.
This files implements the `haveI'` and `letI'` macros which have the same semantics as
`haveI` and `l... |
Tactic\HelpCmd.lean | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Lean.Elab.Syntax
import Lean.DocString
/-!
# The `#help` command
The `#help` command can be used to list all definitions in a variety of extensible aspects ... |
Tactic\HigherOrder.lean | /-
Copyright (c) 2018 Simon Hudon. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Simon Hudon
-/
import Lean.Elab.Term
import Lean.Meta.Tactic.Apply
import Lean.Meta.Tactic.Assumption
import Lean.Meta.MatchUtil
import Lean.Meta.Tactic.Intro
import Lean.Elab.Declaration... |
Tactic\Hint.lean | /-
Copyright (c) 2023 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Lean.Meta.Tactic.TryThis
import Batteries.Linter.UnreachableTactic
import Batteries.Control.Nondet.Basic
import Mathlib.Tactic.FailIfNoProgress
/-!
# The `hin... |
Tactic\InferParam.lean | /-
Copyright (c) 2022 Yury Kudryashov. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yury Kudryashov, Mario Carneiro
-/
import Lean.Elab.Tactic.Basic
import Lean.Meta.Tactic.Replace
/-!
# Infer an optional parameter
In this file we define a tactic `infer_param` that... |
Tactic\Inhabit.lean | /-
Copyright (c) 2022 Joshua Clune. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Joshua Clune
-/
import Lean
import Mathlib.Tactic.TypeStar
/-!
Defines the `inhabit Ξ±` tactic, which tries to construct an `Inhabited Ξ±` instance,
constructively or otherwise.
-/
open ... |
Tactic\IntervalCases.lean | /-
Copyright (c) 2019 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison, Mario Carneiro
-/
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.FinCases
/-!
# Case bash on variables in finite intervals
This file provides the tactic `interva... |
Tactic\IrreducibleDef.lean | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Lean
import Mathlib.Tactic.Eqns
import Mathlib.Data.Subtype
/-!
# Irreducible definitions
This file defines an `irreducible_def` command,
which works almost li... |
Tactic\ITauto.lean | /-
Copyright (c) 2021 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro
-/
import Batteries.Logic
import Batteries.Tactic.Exact
import Mathlib.Tactic.Hint
import Mathlib.Tactic.DeriveToExpr
import Mathlib.Util.AtomM
import Mathlib.Init.Logic... |
Tactic\Lemma.lean | /-
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
-/
import Lean.Parser.Command
/-!
# Support for `lemma` as a synonym for `theorem`.
-/
open Lean
/-- `lemma` means the same as `theorem`. It is used to d... |
Tactic\Lift.lean | /-
Copyright (c) 2019 Floris van Doorn. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Floris van Doorn
-/
import Mathlib.Tactic.Basic
import Batteries.Lean.Expr
import Batteries.Lean.Meta.UnusedNames
/-!
# lift tactic
This file defines the `lift` tactic, allowing th... |
Tactic\LiftLets.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Mathlib.Tactic.Basic
/-!
# The `lift_lets` tactic
This module defines a tactic `lift_lets` that can be used to pull `let` bindings as far out
of an expression as p... |
Tactic\Linarith.lean | /-
Copyright (c) 2018 Robert Y. Lewis. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Robert Y. Lewis
-/
import Mathlib.Tactic.Linarith.Frontend
import Mathlib.Tactic.NormNum
import Mathlib.Tactic.Hint
/-!
We register `linarith` with the `hint` tactic.
-/
register_hi... |
Tactic\LinearCombination.lean | /-
Copyright (c) 2022 Abby J. Goldberg. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Abby J. Goldberg, Mario Carneiro
-/
import Mathlib.Tactic.Ring
/-!
# linear_combination Tactic
In this file, the `linear_combination` tactic is created. This tactic, which
works o... |
Tactic\Linter.lean | /-
This is the `Linter`s file: it only imports files defining linters and is
intended to be imported fairly early in `Mathlib`.
This file is ignored by `shake`:
* it is in `ignoreAll`, meaning that all its imports are considered necessary;
* it is in `ignoreImport`, meaning that where it is imported, it is considered ... |
Tactic\Measurability.lean | /-
Copyright (c) 2023 Miyahara KΕ. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Miyahara KΕ
-/
import Mathlib.Tactic.Measurability.Init
import Mathlib.Algebra.Group.Defs
/-!
# Measurability
We define the `measurability` tactic using `aesop`. -/
open Lean.Parser.T... |
Tactic\MinImports.lean | /-
Copyright (c) 2024 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
import ImportGraph.Imports
/-! # `#min_imports in` a command to find minimal imports
`#min_imports in stx` scans the syntax `stx` to find a collection of minimal impo... |
Tactic\MkIffOfInductiveProp.lean | /-
Copyright (c) 2018 Johannes HΓΆlzl. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johannes HΓΆlzl, David Renshaw
-/
import Lean
import Mathlib.Lean.Meta
import Mathlib.Lean.Name
import Mathlib.Tactic.TypeStar
/-!
# mk_iff_of_inductive_prop
This file defines a comma... |
Tactic\ModCases.lean | /-
Copyright (c) 2022 Mario Carneiro. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mario Carneiro, Heather Macbeth
-/
import Mathlib.Data.Int.ModEq
/-! # `mod_cases` tactic
The `mod_cases` tactic does case disjunction on `e % n`, where `e : β€` or `e : β`,
to yield ... |
Tactic\Monotonicity.lean | import Mathlib.Tactic.Monotonicity.Basic
import Mathlib.Tactic.Monotonicity.Lemmas
|
Tactic\MoveAdd.lean | /-
Copyright (c) 2023 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Damiano Testa
-/
import Mathlib.Algebra.Group.Basic
import Mathlib.Init.Order.LinearOrder
/-!
# `move_add` a tactic for moving summands in expressions
The tactic `mo... |
Tactic\NoncommRing.lean | /-
Copyright (c) 2020 Oliver Nash. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux, Scott Morrison, Oliver Nash
-/
import Mathlib.Algebra.Group.Action.Defs
import Mathlib.Tactic.Abel
/-! # The `noncomm_ring` tactic
Solve goals in not necessarily commutat... |
Tactic\Nontriviality.lean | /-
Copyright (c) 2020 SΓ©bastien GouΓ«zel. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: SΓ©bastien GouΓ«zel, Mario Carneiro
-/
import Mathlib.Tactic.Nontriviality.Core
/-! # The `nontriviality` tactic. -/
|
Tactic\NormNum.lean | import Mathlib.Tactic.NormNum.Basic
import Mathlib.Tactic.NormNum.OfScientific
import Mathlib.Tactic.NormNum.Eq
import Mathlib.Tactic.NormNum.Ineq
import Mathlib.Tactic.NormNum.Pow
import Mathlib.Tactic.NormNum.Inv
import Mathlib.Tactic.NormNum.DivMod
import Mathlib.Data.Rat.Cast.Order
|
Tactic\NthRewrite.lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll
-/
import Lean.Elab.Tactic.Rewrite
/-!
# `nth_rewrite` tactic
The tactic `nth_rewrite` and `nth_rw` are variants of `rewrite` and `rw` that only performs the
`n`th possible... |
Tactic\Observe.lean | /-
Copyright (c) 2023 Johan Commelin. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Johan Commelin
-/
import Lean.Meta.Tactic.TryThis
import Lean.Elab.Tactic.ElabTerm
import Lean.Meta.Tactic.LibrarySearch
/-!
# The `observe` tactic.
`observe hp : p` asserts the prop... |
Tactic\Peel.lean | /-
Copyright (c) 2023 Jireh Loreaux. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Jireh Loreaux
-/
import Mathlib.Order.Filter.Basic
import Mathlib.Tactic.Basic
/-!
# The `peel` tactic
`peel h with h' idents*` tries to apply `forall_imp` (or `Exists.imp`, or `Filte... |
Tactic\Polyrith.lean | /-
Copyright (c) 2022 Dhruv Bhatia. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Dhruv Bhatia, Eric Wieser, Mario Carneiro
-/
import Mathlib.Algebra.Order.Field.Rat
import Mathlib.Tactic.LinearCombination
/-!
# polyrith Tactic
In this file, the `polyrith` tactic i... |
Tactic\Positivity.lean | import Mathlib.Tactic.Positivity.Basic
import Mathlib.Tactic.NormNum.Basic
import Mathlib.Init.Data.Int.Order
|
Tactic\PPWithUniv.lean | /-
Copyright (c) 2023 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Lean
/-!
# Attribute to pretty-print universe level parameters by default
This module contains the `pp_with_univ` attribute, which enables pretty-print... |
Tactic\ProdAssoc.lean | /-
Copyright (c) 2023 Adam Topaz. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Adam Topaz
-/
import Mathlib.Lean.Expr.Basic
import Mathlib.Logic.Equiv.Defs
/-!
# Associativity of products
This file constructs a term elaborator for "obvious" equivalences between ite... |
Tactic\ProjectionNotation.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Lean
/-!
# Pretty printing projection notation
**Deprecated** as of 2024-05-02 with Lean v4.8.0 since dot notation is now default with
the introduction of `pp.fiel... |
Tactic\Propose.lean | /-
Copyright (c) 2023 Scott Morrison. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Lean.Meta.Tactic.TryThis
import Lean.Meta.Tactic.SolveByElim
import Mathlib.Lean.Expr.Basic
import Mathlib.Lean.Meta
import Mathlib.Lean.Meta.Basic
import Batt... |
Tactic\ProxyType.lean | /-
Copyright (c) 2023 Kyle Miller. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Kyle Miller
-/
import Lean
import Mathlib.Tactic.Core
import Mathlib.Logic.Equiv.Defs
/-!
# Generating "proxy types"
This module gives tools to create an equivalence between a given ind... |
Tactic\PushNeg.lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Simon Hudon, Alice Laroche, FrΓ©dΓ©ric Dupuis, Jireh Loreaux
-/
import Lean.Elab.Tactic.Location
import Mathlib.Logic.Basic
import Mathlib.Order.Defs
import Mathlib.Tact... |
Tactic\Qify.lean | /-
Copyright (c) 2022 Moritz Doll. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Moritz Doll, Mario Carneiro, Robert Y. Lewis
-/
import Mathlib.Algebra.Order.Ring.Cast
import Mathlib.Algebra.Order.Ring.Rat
import Mathlib.Data.Int.Cast.Lemmas
import Mathlib.Tactic.Basi... |
Tactic\Recall.lean | /-
Copyright (c) 2023 Mac Malone. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Mac Malone, Kyle Miller
-/
import Lean.Elab.Command
import Lean.Elab.DeclUtil
/-!
# `recall` command
-/
namespace Mathlib.Tactic.Recall
/--
The `recall` command redeclares a previous de... |
Tactic\Recover.lean | /-
Copyright (c) 2022 Siddhartha Gadgil. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner, Siddhartha Gadgil, Jannis Limperg
-/
import Lean
/-!
# The `recover` tactic modifier
This defines the `recover` tactic modifier, which can be used to debug cases wh... |
Tactic\ReduceModChar.lean | /-
Copyright (c) 2023 Anne Baanen. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Anne Baanen
-/
import Mathlib.Data.ZMod.Basic
import Mathlib.RingTheory.Polynomial.Basic
import Mathlib.Tactic.NormNum.DivMod
import Mathlib.Tactic.ReduceModChar.Ext
/-!
# `reduce_mod_ch... |
Tactic\Rename.lean | /-
Copyright (c) 2021 Gabriel Ebner. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Gabriel Ebner
-/
import Lean
/-!
# The `rename'` tactic
The `rename'` tactic renames one or several hypotheses.
-/
namespace Mathlib.Tactic
open Lean Elab.Tactic Meta
syntax renameA... |
Tactic\RenameBVar.lean | /-
Copyright (c) 2019 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Arthur Paulino, Patrick Massot
-/
import Lean
import Mathlib.Util.Tactic
import Mathlib.Lean.Expr.Basic
/-!
# The `rename_bvar` tactic
This file defines the `rename_bvar` tactic, fo... |
Tactic\Replace.lean | /-
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
-/
import Mathlib.Tactic.Have
/-!
# Extending `replace`
This file extends the `replace` tactic from `Batteries` to allow the addition of hypotheses to
... |
Tactic\RewriteSearch.lean | /-
Copyright (c) 2023 Lean FRO, LLC. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Scott Morrison
-/
import Lean.Meta.Tactic.Rewrites
import Mathlib.Algebra.Order.Group.Nat
import Mathlib.Data.List.EditDistance.Estimator
import Mathlib.Data.MLList.BestFirst
import Mat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.