src/HOL/Tools/choice_specification.ML
changeset 36945 9bec62c10714
parent 36618 7a0990473e03
child 36954 ef698bd61057
equal deleted inserted replaced
36944:dbf831a50e4a 36945:9bec62c10714
   181                 fun remove_alls frees thm =
   181                 fun remove_alls frees thm =
   182                     fold (inst_all (Thm.theory_of_thm thm)) frees thm
   182                     fold (inst_all (Thm.theory_of_thm thm)) frees thm
   183                 fun process_single ((name,atts),rew_imp,frees) args =
   183                 fun process_single ((name,atts),rew_imp,frees) args =
   184                     let
   184                     let
   185                         fun undo_imps thm =
   185                         fun undo_imps thm =
   186                             equal_elim (symmetric rew_imp) thm
   186                             Thm.equal_elim (Thm.symmetric rew_imp) thm
   187 
   187 
   188                         fun add_final (arg as (thy, thm)) =
   188                         fun add_final (arg as (thy, thm)) =
   189                             if name = ""
   189                             if name = ""
   190                             then arg |> Library.swap
   190                             then arg |> Library.swap
   191                             else (writeln ("  " ^ name ^ ": " ^ Display.string_of_thm_global thy thm);
   191                             else (writeln ("  " ^ name ^ ": " ^ Display.string_of_thm_global thy thm);