equal
deleted
inserted
replaced
18 val get_prover: theory -> string -> ATP_Wrapper.prover option |
18 val get_prover: theory -> string -> ATP_Wrapper.prover option |
19 val print_provers: theory -> unit |
19 val print_provers: theory -> unit |
20 val sledgehammer: string list -> Proof.state -> unit |
20 val sledgehammer: string list -> Proof.state -> unit |
21 end; |
21 end; |
22 |
22 |
23 structure ATP_Manager: ATP_MANAGER = |
23 structure ATP_Manager : ATP_MANAGER = |
24 struct |
24 struct |
25 |
25 |
26 (** preferences **) |
26 (** preferences **) |
27 |
27 |
28 val message_store_limit = 20; |
28 val message_store_limit = 20; |
261 val _ = Toplevel.thread true (fn () => |
261 val _ = Toplevel.thread true (fn () => |
262 let |
262 let |
263 val _ = register birth_time death_time (Thread.self (), desc); |
263 val _ = register birth_time death_time (Thread.self (), desc); |
264 val problem = ATP_Wrapper.problem_of_goal (! full_types) i (ctxt, (facts, goal)); |
264 val problem = ATP_Wrapper.problem_of_goal (! full_types) i (ctxt, (facts, goal)); |
265 val message = #message (prover (! timeout) problem) |
265 val message = #message (prover (! timeout) problem) |
266 handle Sledgehammer_HOL_Clause.TOO_TRIVIAL => (* FIXME !? *) |
266 handle Sledgehammer_HOL_Clause.TRIVIAL => (* FIXME !? *) |
267 "Empty clause: Try this command: " ^ Markup.markup Markup.sendback "apply metis" |
267 "Empty clause: Try this command: " ^ Markup.markup Markup.sendback "apply metis" |
268 | ERROR msg => ("Error: " ^ msg); |
268 | ERROR msg => ("Error: " ^ msg); |
269 val _ = unregister message (Thread.self ()); |
269 val _ = unregister message (Thread.self ()); |
270 in () end); |
270 in () end); |
271 in () end); |
271 in () end); |