equal
deleted
inserted
replaced
394 if permissive |
394 if permissive |
395 then raise PERMISSIVE () |
395 then raise PERMISSIVE () |
396 else |
396 else |
397 let |
397 let |
398 val thm_msg = |
398 val thm_msg = |
399 Option.map (fn thm => "in code equation " ^ Display.string_of_thm ctxt thm) some_thm; |
399 Option.map (fn thm => "in code equation " ^ Thm.string_of_thm ctxt thm) some_thm; |
400 val dep_msg = if null (tl deps) then NONE |
400 val dep_msg = if null (tl deps) then NONE |
401 else SOME ("with dependency " |
401 else SOME ("with dependency " |
402 ^ space_implode " -> " (map (Code_Symbol.quote ctxt) (rev deps))); |
402 ^ space_implode " -> " (map (Code_Symbol.quote ctxt) (rev deps))); |
403 val thm_dep_msg = case (thm_msg, dep_msg) |
403 val thm_dep_msg = case (thm_msg, dep_msg) |
404 of (SOME thm_msg, SOME dep_msg) => "\n(" ^ thm_msg ^ ",\n" ^ dep_msg ^ ")" |
404 of (SOME thm_msg, SOME dep_msg) => "\n(" ^ thm_msg ^ ",\n" ^ dep_msg ^ ")" |