lean2/tests/lean/calc2.lean
Leonardo de Moura e714bd7982 feat(frontends/lean): add syntax sugar for applying Subst in calculational proofs
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-02 11:23:55 -08:00

10 lines
222 B
Text

Variables a b c d e : Nat.
Variable f : Nat -> Nat.
Axiom H1 : f a = a.
Theorem T : f (f (f a)) = a
:= calc f (f (f a)) = f (f a) : { H1 }
... = f a : { H1 }
... = a : { H1 }.