equal
deleted
inserted
replaced
202 (* axiomatization -- within global theory *) |
202 (* axiomatization -- within global theory *) |
203 |
203 |
204 fun gen_axioms prep_stmt prep_att raw_decls raw_fixes raw_prems raw_concls thy = |
204 fun gen_axioms prep_stmt prep_att raw_decls raw_fixes raw_prems raw_concls thy = |
205 let |
205 let |
206 (*specification*) |
206 (*specification*) |
207 val ((vars, [prems, concls], _, _, _), vars_ctxt) = |
207 val ({vars, propss = [prems, concls], ...}, vars_ctxt) = |
208 Proof_Context.init_global thy |
208 Proof_Context.init_global thy |
209 |> prep_stmt (raw_decls @ raw_fixes) ((map o map) (rpair []) [raw_prems, map snd raw_concls]); |
209 |> prep_stmt (raw_decls @ raw_fixes) ((map o map) (rpair []) [raw_prems, map snd raw_concls]); |
210 val (decls, fixes) = chop (length raw_decls) vars; |
210 val (decls, fixes) = chop (length raw_decls) vars; |
211 |
211 |
212 val frees = |
212 val frees = |