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