src/HOL/Tools/Function/fun.ML
changeset 56254 a2dd9200854d
parent 54407 e95831757903
child 58826 2ed2eaabe3df
equal deleted inserted replaced
56253:83b3c110f22d 56254:a2dd9200854d
    71           |> apsnd (fn Ts => Ts ---> body_type fT)
    71           |> apsnd (fn Ts => Ts ---> body_type fT)
    72 
    72 
    73         val qs = map Free (Name.invent Name.context "a" n ~~ argTs)
    73         val qs = map Free (Name.invent Name.context "a" n ~~ argTs)
    74       in
    74       in
    75         HOLogic.mk_eq(list_comb (Free (fname, fT), qs),
    75         HOLogic.mk_eq(list_comb (Free (fname, fT), qs),
    76           Const ("HOL.undefined", rT))
    76           Const (@{const_name undefined}, rT))
    77         |> HOLogic.mk_Trueprop
    77         |> HOLogic.mk_Trueprop
    78         |> fold_rev Logic.all qs
    78         |> fold_rev Logic.all qs
    79       end
    79       end
    80   in
    80   in
    81     map mk_eqn fixes
    81     map mk_eqn fixes