src/HOL/Tools/typedef_package.ML
changeset 24926 bcb6b098df11
parent 24920 2a45e400fdad
child 25458 ba8f5e4fa336
equal deleted inserted replaced
24925:f38dd8d0a30d 24926:bcb6b098df11
    46 
    46 
    47 
    47 
    48 (** type declarations **)
    48 (** type declarations **)
    49 
    49 
    50 fun HOL_arity (raw_name, args, mx) thy =
    50 fun HOL_arity (raw_name, args, mx) thy =
    51   thy |> AxClass.axiomatize_arity_i
    51   thy |> AxClass.axiomatize_arity
    52     (Sign.full_name thy (Syntax.type_name raw_name mx),
    52     (Sign.full_name thy (Syntax.type_name raw_name mx),
    53       replicate (length args) HOLogic.typeS, HOLogic.typeS);
    53       replicate (length args) HOLogic.typeS, HOLogic.typeS);
    54 
    54 
    55 fun add_typedecls decls thy =
    55 fun add_typedecls decls thy =
    56   if can (Theory.assert_super HOL.thy) thy then
    56   if can (Theory.assert_super HOL.thy) thy then