add a small demo for lean mode

This commit is contained in:
Soonho Kong 2015-02-24 11:03:02 -05:00
commit 8f49d3d897

View file

@ -0,0 +1,9 @@
import logic
section
variables (A : Type) (p q : A Prop)
example : (x : A, p x q x) y : A, p y :=
assume H : x : A, p x q x,
take y : A,
show p y, from and.elim_left (H y)
end