2014-01-05 20:05:08 +00:00
|
|
|
import macros.
|
2014-01-01 22:01:12 +00:00
|
|
|
|
2014-01-08 08:38:39 +00:00
|
|
|
theorem simple (p q r : Bool) : (p → q) ∧ (q → r) → p → r
|
2014-01-12 02:36:37 +00:00
|
|
|
:= assume H_pq_qr H_p,
|
2014-01-09 16:33:52 +00:00
|
|
|
let P_pq := and_eliml H_pq_qr,
|
|
|
|
P_qr := and_elimr H_pq_qr
|
2014-01-08 08:38:39 +00:00
|
|
|
in P_qr (P_pq H_p)
|
2013-09-04 01:00:30 +00:00
|
|
|
|
2014-01-09 16:33:52 +00:00
|
|
|
set_option pp::implicit true.
|
2014-01-05 20:05:08 +00:00
|
|
|
print environment 1.
|
2013-09-04 01:00:30 +00:00
|
|
|
|
2014-01-08 08:38:39 +00:00
|
|
|
theorem simple2 (a b c : Bool) : (a → b → c) → (a → b) → a → c
|
2014-01-12 02:36:37 +00:00
|
|
|
:= assume H_abc H_ab H_a,
|
2014-01-08 08:38:39 +00:00
|
|
|
(H_abc H_a) (H_ab H_a)
|
2013-09-04 12:39:35 +00:00
|
|
|
|
2014-01-05 20:05:08 +00:00
|
|
|
print environment 1.
|