PEXISTS : term * term -> thm -> thm
A |- t[q/p] ------------- EXISTS ("?p. t","q") A |- ?p. t
- PEXISTS (Term`?x. x + 2 = x + 2`, Term`1`) (REFL (Term`1 + 2`)); > val it = |- ?x. x + 2 = x + 2 : thm - PEXISTS (Term`?y. 1 + y = 1 + y`, Term`2`) (REFL (Term`1 + 2`)); > val it = |- ?y. 1 + y = 1 + y : thm - PEXISTS (Term`?(x,y). x + y = x + y`, Term`(1,2)`) (REFL (Term`1 + 2`)); > val it = |- ?(x,y). x + y = x + y : thm - PEXISTS (Term`?(a:'a,b:'a). (a,b) = (a,b)`, Term`ab:'a#'a`) (REFL (Term `ab:'a#'a`)); > val it = |- ?(a,b). (a,b) = (a,b) : thm