src/Tools/code/code_wellsorted.ML
changeset 31089 11001968caae
parent 31063 88aaab83b6fc
equal deleted inserted replaced
31088:36a011423fcc 31089:11001968caae
    62     (map (op :: o swap o apfst (snd o strip_comb) o Logic.dest_equals o Thm.plain_prop_of o fst) eqns);
    62     (map (op :: o swap o apfst (snd o strip_comb) o Logic.dest_equals o Thm.plain_prop_of o fst) eqns);
    63 
    63 
    64 fun tyscm_rhss_of thy c eqns =
    64 fun tyscm_rhss_of thy c eqns =
    65   let
    65   let
    66     val tyscm = case eqns of [] => Code.default_typscheme thy c
    66     val tyscm = case eqns of [] => Code.default_typscheme thy c
    67       | ((thm, _) :: _) => (snd o Code_Unit.head_eqn thy) thm;
    67       | ((thm, _) :: _) => Code_Unit.typscheme_eqn thy thm;
    68     val rhss = consts_of thy eqns;
    68     val rhss = consts_of thy eqns;
    69   in (tyscm, rhss) end;
    69   in (tyscm, rhss) end;
    70 
    70 
    71 
    71 
    72 (* data structures *)
    72 (* data structures *)