Use obtain in tactic mode in Lean theorem prover -


how use hypothesis of shape

h : exists x, p x 

in tactic mode? in term mode use

obtain x hx, h, 

it's same syntax:

example (a : type) (p : × a) : := begin   obtain x y, p, x end 

you can of course re-enter tactic mode using begin...end after from.


Comments

Popular posts from this blog

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -