src/HOL/Tools/inductive_realizer.ML
changeset 26928 ca87aff1ad2d
parent 26711 3a478bfa1650
child 27112 661a74bafeb7
equal deleted inserted replaced
26927:8684b5240f11 26928:ca87aff1ad2d
    17 
    17 
    18 (* FIXME: LocalTheory.note should return theorems with proper names! *)
    18 (* FIXME: LocalTheory.note should return theorems with proper names! *)
    19 fun name_of_thm thm =
    19 fun name_of_thm thm =
    20   (case Symtab.dest (Proofterm.thms_of_proof' (proof_of thm) Symtab.empty) of
    20   (case Symtab.dest (Proofterm.thms_of_proof' (proof_of thm) Symtab.empty) of
    21      [(name, _)] => name
    21      [(name, _)] => name
    22    | _ => error ("name_of_thm: bad proof of theorem\n" ^ string_of_thm thm));
    22    | _ => error ("name_of_thm: bad proof of theorem\n" ^ Display.string_of_thm thm));
    23 
    23 
    24 val all_simps = map (symmetric o mk_meta_eq) (thms "HOL.all_simps");
    24 val all_simps = map (symmetric o mk_meta_eq) (thms "HOL.all_simps");
    25 
    25 
    26 fun prf_of thm =
    26 fun prf_of thm =
    27   let
    27   let