src/HOL/Tools/res_reconstruct.ML
changeset 28572 78ac28f80a1c
parent 28477 9339d4dcec8b
child 29268 6aefc5ff8e63
equal deleted inserted replaced
28571:47d88239658d 28572:78ac28f80a1c
   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!!*)