EXISTS_TAC : term -> tactic
Reduces existentially quantified goal to one involving a specific witness.
When applied to a term u and a goal A ?- ?x. t, the tactic
EXISTS_TAC reduces the goal to A ?- t[u/x] (substituting u
for all free instances of x in t, with variable renaming if
necessary to avoid free variable capture).
A ?- ?x. t
============= EXISTS_TAC `u`
A ?- t[u/x]
- FAILURE CONDITIONS
Fails unless the goal's conclusion is existentially quantified and the
term supplied has the same type as the quantified variable in the goal.
can be solved by:
# g `?x. 1 < x /\ x < 3`;;
# e(EXISTS_TAC `2` THEN ARITH_TAC);;
val it : goalstack = No subgoals
- SEE ALSO