equal
deleted
inserted
replaced
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)); |