The areas / V34. The tactics of Mathlib
Mathlib.Tactic.SuccessIfFailWithMsg
2 declarations. Mathlib docs · Source
def Mathlib.Tactic.successIfFailWithMsg E1 #
Lean.ParserDescr
success_if_fail_with_msg msg tacs runs tacs and succeeds only if they fail with the message
msg.
msg can be any term that evaluates to an explicit String.
def Mathlib.Tactic.successIfFailWithMessage E1 #
{s α : Type} →
{m : Type → Type} →
[Monad m] →
[MonadLiftT BaseIO m] →
[MonadLiftT Lean.CoreM m] →
[Lean.MonadBacktrack s m] →
[Lean.MonadError m] →
String → m α → optParam (Option Lean.Syntax) none → optParam (Option Lean.Syntax) none → m Unit
Evaluates tacs and succeeds only if tacs both fails and throws an error equal (as a string)
to msg.