src/Tools/Code/code_preproc.ML
changeset 57429 4aef934d43ad
parent 56976 dc01225a2f77
child 57430 020cea57eaa4
equal deleted inserted replaced
57428:47c8475e7864 57429:4aef934d43ad
   319    of SOME (lhs, cert) => ((lhs, []), cert)
   319    of SOME (lhs, cert) => ((lhs, []), cert)
   320     | NONE => let
   320     | NONE => let
   321         val thy = Proof_Context.theory_of ctxt;
   321         val thy = Proof_Context.theory_of ctxt;
   322         val functrans = (map (fn (_, (_, f)) => f ctxt)
   322         val functrans = (map (fn (_, (_, f)) => f ctxt)
   323           o #functrans o the_thmproc) thy;
   323           o #functrans o the_thmproc) thy;
   324         val cert = Code.get_cert thy { functrans = functrans, ss = simpset_of ctxt } c; (*FIXME*)
   324         val cert = Code.get_cert ctxt functrans c;
   325         val (lhs, rhss) =
   325         val (lhs, rhss) =
   326           Code.typargs_deps_of_cert thy cert;
   326           Code.typargs_deps_of_cert thy cert;
   327       in ((lhs, rhss), cert) end;
   327       in ((lhs, rhss), cert) end;
   328 
   328 
   329 fun obtain_instance ctxt arities (inst as (class, tyco)) =
   329 fun obtain_instance ctxt arities (inst as (class, tyco)) =