equal
deleted
inserted
replaced
342 | have_or_show have lname = have ^ lname ^ ": \"" |
342 | have_or_show have lname = have ^ lname ^ ": \"" |
343 |
343 |
344 (*ctms is a list of conjecture clauses as yielded by Isabelle. Those returned by the |
344 (*ctms is a list of conjecture clauses as yielded by Isabelle. Those returned by the |
345 ATP may have their literals reordered.*) |
345 ATP may have their literals reordered.*) |
346 fun isar_lines ctxt ctms = |
346 fun isar_lines ctxt ctms = |
347 let val string_of = Syntax.string_of_term ctxt |
347 let val string_of = PrintMode.setmp [] (fn term => Syntax.string_of_term ctxt term) |
348 val _ = trace ("\n\nisar_lines: start\n") |
348 val _ = trace ("\n\nisar_lines: start\n") |
349 fun doline have (lname, t, []) = (*No deps: it's a conjecture clause, with no proof.*) |
349 fun doline have (lname, t, []) = (*No deps: it's a conjecture clause, with no proof.*) |
350 (case permuted_clause t ctms of |
350 (case permuted_clause t ctms of |
351 SOME u => "assume " ^ lname ^ ": \"" ^ string_of u ^ "\"\n" |
351 SOME u => "assume " ^ lname ^ ": \"" ^ string_of u ^ "\"\n" |
352 | NONE => "assume? " ^ lname ^ ": \"" ^ string_of t ^ "\"\n") (*no match!!*) |
352 | NONE => "assume? " ^ lname ^ ": \"" ^ string_of t ^ "\"\n") (*no match!!*) |