2014-01-05 20:05:08 +00:00
|
|
|
variables p q r : Bool
|
2013-11-29 02:17:15 +00:00
|
|
|
|
2014-01-05 18:32:47 +00:00
|
|
|
(*
|
2013-11-29 02:17:15 +00:00
|
|
|
local env = get_environment()
|
2014-01-08 08:38:39 +00:00
|
|
|
local conjecture = parse_lean('p → q → p && q')
|
2014-01-08 08:57:04 +00:00
|
|
|
local tac = Repeat(conj_tac() ^ assumption_tac())
|
2013-11-29 02:17:15 +00:00
|
|
|
local proof = tac:solve(env, context(), conjecture)
|
|
|
|
env:add_theorem("T1", conjecture, proof)
|
2014-01-05 18:32:47 +00:00
|
|
|
*)
|
2013-11-29 02:17:15 +00:00
|
|
|
|
2014-01-05 20:05:08 +00:00
|
|
|
print environment 1.
|