Tactic IfThenElse

Pierre Letouzey edited this page Oct 13, 2017 · 1 revision
Tactic Notation
  "if" tactic(t)
  "then" tactic(t1)
  "else" tactic(t2) :=
  first [ t; first [ t1 | fail 2 ] | t2 ].

if t then t1 else t2 is equivalent to t; t1 if t does not fail and is equivalent to t2 otherwise.

Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.