2014-01-05 18:32:47 +00:00
|
|
|
(* import("tactic.lua") *)
|
2014-01-05 20:05:08 +00:00
|
|
|
definition f(a : Bool) : Bool := not a.
|
|
|
|
definition g(a b : Bool) : Bool := a \/ b.
|
2013-12-01 18:41:05 +00:00
|
|
|
|
2014-01-05 20:05:08 +00:00
|
|
|
theorem T1 (a b : Bool) : (g a b) => (f b) => a := _.
|
2013-12-26 23:54:53 +00:00
|
|
|
unfold_all
|
2014-01-06 03:10:21 +00:00
|
|
|
apply discharge
|
|
|
|
apply discharge
|
2013-12-26 23:54:53 +00:00
|
|
|
disj_hyp
|
|
|
|
exact
|
|
|
|
absurd
|
2013-12-01 18:41:05 +00:00
|
|
|
done.
|
|
|
|
|
2014-01-05 18:32:47 +00:00
|
|
|
(*
|
2013-12-26 23:54:53 +00:00
|
|
|
simple_tac = Repeat(unfold_tac()) .. Repeat(OrElse(imp_tac(), conj_hyp_tac(), assumption_tac(), absurd_tac(), conj_hyp_tac(), disj_hyp_tac()))
|
2014-01-05 18:32:47 +00:00
|
|
|
*)
|
2013-12-01 18:41:05 +00:00
|
|
|
|
2014-01-05 20:05:08 +00:00
|
|
|
definition h(a b : Bool) : Bool := g a b.
|
2013-12-01 18:41:05 +00:00
|
|
|
|
2014-01-05 20:05:08 +00:00
|
|
|
theorem T2 (a b : Bool) : (h a b) => (f b) => a := _.
|
2013-12-26 23:54:53 +00:00
|
|
|
simple_tac
|
2013-12-01 18:41:05 +00:00
|
|
|
done.
|
|
|
|
|
2014-01-05 20:05:08 +00:00
|
|
|
print environment 1.
|