src/Tools/code/code_thingol.ML
changeset 28423 9fc3befd8191
parent 28369 196bd0305c0d
child 28663 bd8438543bf2
equal deleted inserted replaced
28422:bfa368164502 28423:9fc3befd8191
   483         val raw_thms = Code_Funcgr.eqns funcgr c;
   483         val raw_thms = Code_Funcgr.eqns funcgr c;
   484         val (vs, raw_ty) = Code_Funcgr.typ funcgr c;
   484         val (vs, raw_ty) = Code_Funcgr.typ funcgr c;
   485         val ty = Logic.unvarifyT raw_ty;
   485         val ty = Logic.unvarifyT raw_ty;
   486         val thms = if (null o Term.typ_tfrees) ty orelse (null o fst o strip_type) ty
   486         val thms = if (null o Term.typ_tfrees) ty orelse (null o fst o strip_type) ty
   487           then raw_thms
   487           then raw_thms
   488           else (map o apfst) (Code_Unit.expand_eta 1) raw_thms;
   488           else (map o apfst) (Code_Unit.expand_eta thy 1) raw_thms;
   489       in
   489       in
   490         trns
   490         trns
   491         |> fold_map (exprgen_tyvar_sort thy algbr funcgr) vs
   491         |> fold_map (exprgen_tyvar_sort thy algbr funcgr) vs
   492         ||>> exprgen_typ thy algbr funcgr ty
   492         ||>> exprgen_typ thy algbr funcgr ty
   493         ||>> fold_map (exprgen_eq thy algbr funcgr) thms
   493         ||>> fold_map (exprgen_eq thy algbr funcgr) thms