The areas / V34. The tactics of Mathlib
Mathlib.Tactic.SimpIntro
2 declarations. Mathlib docs · Source
simp_intro tactic
opaque Mathlib.Tactic.simpIntroCore E1 #
Lean.MVarId →
Lean.Meta.Simp.Context →
optParam Lean.Meta.Simp.SimprocsArray #[] →
Option Lean.Meta.Simp.Discharge →
Bool → List (Lean.TSyntax `Lean.binderIdent) → Lean.Elab.TermElabM (Option Lean.MVarId)
Main loop of the simp_intro tactic.
g: the original goalctx: the simp context, which is extended with local variables as we enter the bindersdischarge?: the dischargermore: if true, we will keep introducing binders as long as we canids: the list of binder identifiers
def Mathlib.Tactic.«tacticSimp_intro_____..Only_» E1 #
Lean.ParserDescr
The simp_intro tactic is a combination of simp and intro: it will simplify the types of
variables as it introduces them and uses the new variables to simplify later arguments
and the goal.
simp_intro x y zintroduces variables namedx y zsimp_intro x y z ..introduces variables namedx y zand then keeps introducing_binderssimp_intro (config := cfg) (discharger := tac) x y .. only [h₁, h₂]:simp_introtakes the same options assimp(seesimp)example : x + 0 = y → x = z := by simp_intro h -- h: x = y ⊢ y = z sorry