lean2/tests/lean/let2.lean
Leonardo de Moura 57c0006916 chore(*): cleanup lean builtin symbols, replace :: with _
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2014-01-09 08:33:52 -08:00

10 lines
No EOL
295 B
Text

-- Annotating lemmas
theorem simple (p q r : Bool) : (p → q) ∧ (q → r) → p → r :=
λ H_pq_qr H_p,
let P_pq : (p → q) := and_eliml H_pq_qr,
P_qr : (q → r) := and_elimr H_pq_qr,
P_q : q := P_pq H_p
in P_qr P_q
print environment 1