src/HOL/Mutabelle/mutabelle_extra.ML
changeset 77889 5db014c36f42
parent 69597 ff784d5a5bfb
child 77892 44d845b15214
equal deleted inserted replaced
77888:3c837f8c8ed5 77889:5db014c36f42
   329   map_types (map_type_tvar (fn ((a, i), S) =>
   329   map_types (map_type_tvar (fn ((a, i), S) =>
   330     TFree (if i = 0 then a else a ^ "_" ^ string_of_int i, S)))
   330     TFree (if i = 0 then a else a ^ "_" ^ string_of_int i, S)))
   331 
   331 
   332 fun thms_of all thy =
   332 fun thms_of all thy =
   333   filter
   333   filter
   334     (fn th => (all orelse Thm.theory_name th = Context.theory_name thy)
   334     (fn th => (all orelse Thm.theory_base_name th = Context.theory_base_name thy)
   335       (* andalso is_executable_thm thy th *))
   335       (* andalso is_executable_thm thy th *))
   336     (map snd (filter_out is_forbidden_theorem (Global_Theory.all_thms_of thy false)))
   336     (map snd (filter_out is_forbidden_theorem (Global_Theory.all_thms_of thy false)))
   337 
   337 
   338 fun elapsed_time description e =
   338 fun elapsed_time description e =
   339   let val ({elapsed, ...}, result) = Timing.timing e ()
   339   let val ({elapsed, ...}, result) = Timing.timing e ()