src/Pure/Isar/specification.ML
changeset 70734 31364e70ff3e
parent 70729 c92d2abcc998
child 71179 592e2afdd50c
equal deleted inserted replaced
70733:ce1afe0f3071 70734:31364e70ff3e
   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 =