src/Pure/codegen.ML
changeset 33001 82382652e5e7
parent 32970 fbd2bb2489a8
child 33037 b22e44496dc2
equal deleted inserted replaced
33000:d31a52dbe91e 33001:82382652e5e7
   498 
   498 
   499 fun mk_deftab thy =
   499 fun mk_deftab thy =
   500   let
   500   let
   501     val axmss = map (fn thy' => (Context.theory_name thy', Theory.axiom_table thy'))
   501     val axmss = map (fn thy' => (Context.theory_name thy', Theory.axiom_table thy'))
   502       (thy :: Theory.ancestors_of thy);
   502       (thy :: Theory.ancestors_of thy);
   503     fun prep_def def = (case preprocess thy [def] of
       
   504       [def'] => prop_of def' | _ => error "mk_deftab: bad preprocessor");
       
   505     fun add_def thyname (name, t) = (case dest_prim_def t of
   503     fun add_def thyname (name, t) = (case dest_prim_def t of
   506         NONE => I
   504         NONE => I
   507       | SOME (s, (T, _)) => Symtab.map_default (s, [])
   505       | SOME (s, (T, _)) => Symtab.map_default (s, [])
   508           (cons (T, (thyname, Thm.axiom thy name))));
   506           (cons (T, (thyname, Thm.axiom thy name))));
   509   in
   507   in