src/Pure/old_goals.ML
changeset 33040 cffdb7b28498
parent 32966 5b21661fe618
child 35021 c839a4c670c6
equal deleted inserted replaced
33039:5018f6a76b3f 33040:cffdb7b28498
   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