lean2/tests/lean/subst3.lean
Leonardo de Moura a3dde29f3c feat(frontends/lua/parser): allow users to specify the precedence of macros
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-12-25 12:27:56 -08:00

7 lines
No EOL
252 B
Text

(** import("macros.lua") **)
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) :=
for x y z, assume (H1 : p (f x x)) (H2 : x = y) (H3 : x = z),
subst H1 H2 H3.
Show Environment 1.