lean2/tests/lean/run/elim2.lean
Leonardo de Moura b4793df653 feat(frontends/lean): rename '[fact]' to '[visible]'
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-09-08 07:47:42 -07:00

8 lines
266 B
Text

import logic
open tactic
variable p : num → num → num → Prop
axiom H1 : ∃ x y z, p x y z
axiom H2 : ∀ {x y z : num}, p x y z → p x x x
theorem tst : ∃ x, p x x x
:= obtain a b c H [visible], from H1,
by (apply exists_intro; apply H2; eassumption)