equal
deleted
inserted
replaced
257 |
257 |
258 (*** Setting up goal-directed proof ***) |
258 (*** Setting up goal-directed proof ***) |
259 |
259 |
260 (*Generates the list of new theories when the proof state's theory changes*) |
260 (*Generates the list of new theories when the proof state's theory changes*) |
261 fun thy_error (thy,thy') = |
261 fun thy_error (thy,thy') = |
262 let val names = Context.display_names thy' \\ Context.display_names thy |
262 let val names = subtract (op =) (Context.display_names thy) (Context.display_names thy') |
263 in case names of |
263 in case names of |
264 [name] => "\nNew theory: " ^ name |
264 [name] => "\nNew theory: " ^ name |
265 | _ => "\nNew theories: " ^ space_implode ", " names |
265 | _ => "\nNew theories: " ^ space_implode ", " names |
266 end; |
266 end; |
267 |
267 |