lean2/tests/lean/subst2.lean
Leonardo de Moura 88235d2922 feat(library/tactic/apply_tactic): try other solutions produced by the elaborator
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-25 11:51:27 -08:00

14 lines
No EOL
362 B
Text

Theorem T (A : Type) (p : A -> Bool) (f : A -> A -> A) : forall x y z, p (f x x) => x = y => x = z => p (f y z).
apply ForallIntro.
apply beta_tac.
apply ForallIntro.
apply beta_tac.
apply ForallIntro.
apply beta_tac.
apply Discharge.
apply Discharge.
apply Discharge.
apply (Subst (Subst H H::1) H::2)
done.
Show Environment 1.