lean2/tests/lean/calc1.lean
Leonardo de Moura 111949b9be feat(frontends/lean): calculational proofs
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-02 10:53:14 -08:00

13 lines
240 B
Text

Import tactic.
Variables a b c d e : Bool.
Axiom H1 : a => b.
Axiom H2 : b = c.
Axiom H3 : c => d.
Axiom H4 : d <=> e.
Theorem T : a => e
:= calc a => b : H1
... = c : H2
... => d : (by apply H3)
... <=> e : H4.