def
Lean.Meta.substCore
(mvarId : Lean.MVarId)
(hFVarId : Lean.FVarId)
(symm : optParam Bool false)
(fvarSubst : optParam Lean.Meta.FVarSubst { map := ∅ })
(clearH : optParam Bool true)
(tryToSkip : optParam Bool false)
:
Equations
- One or more equations did not get rendered due to their size.
def
Lean.Meta.heqToEq
(mvarId : Lean.MVarId)
(fvarId : Lean.FVarId)
(tryToClear : optParam Bool true)
:
Given h : HEq α a α b
in the given goal, produce a new goal where h : Eq α a b
.
If h
is not of the give form, then just return (h, mvarId)
Equations
- One or more equations did not get rendered due to their size.
Try to find an equation of the form heq : h = rhs
or heq : lhs = h
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.Meta.subst? mvarId hFVarId = Lean.observing? (Lean.Meta.subst mvarId hFVarId)
def
Lean.Meta.substCore?
(mvarId : Lean.MVarId)
(hFVarId : Lean.FVarId)
(symm : optParam Bool false)
(fvarSubst : optParam Lean.Meta.FVarSubst { map := ∅ })
(clearH : optParam Bool true)
(tryToSkip : optParam Bool false)
:
Equations
- Lean.Meta.substCore? mvarId hFVarId symm fvarSubst clearH tryToSkip = Lean.observing? (Lean.Meta.substCore mvarId hFVarId symm fvarSubst clearH tryToSkip)
Equations
- Lean.Meta.trySubst mvarId hFVarId = do let a ← Lean.Meta.subst? mvarId hFVarId match a with | some mvarId => pure mvarId | none => pure mvarId
Equations
- One or more equations did not get rendered due to their size.