src/Pure/Isar/constdefs.ML
changeset 18358 0a733e11021a
parent 17853 9e8ea6058e64
child 18615 2f3c24533aea
equal deleted inserted replaced
18357:c5030cdbf8da 18358:0a733e11021a
    64     val atts = map (prep_att thy) raw_atts;
    64     val atts = map (prep_att thy) raw_atts;
    65 
    65 
    66     val thy' =
    66     val thy' =
    67       thy
    67       thy
    68       |> Theory.add_consts_i [(c, T, mx)]
    68       |> Theory.add_consts_i [(c, T, mx)]
    69       |> PureThy.add_defs_i false [((name, def), atts)] |> #1;
    69       |> PureThy.add_defs_i false [((name, def), atts)]
       
    70       |> snd;
    70   in ((c, T), thy') end;
    71   in ((c, T), thy') end;
    71 
    72 
    72 fun gen_constdefs prep_vars prep_typ prep_term prep_att (raw_structs, specs) thy =
    73 fun gen_constdefs prep_vars prep_typ prep_term prep_att (raw_structs, specs) thy =
    73   let
    74   let
    74     val structs = #1 (fold_map prep_vars raw_structs (ProofContext.init thy));
    75     val structs = #1 (fold_map prep_vars raw_structs (ProofContext.init thy));