589 Long_Name.append prfx (of_term_for_typ T) |
589 Long_Name.append prfx (of_term_for_typ T) |
590 ])) ctxt; |
590 ])) ctxt; |
591 |
591 |
592 fun print_computation_check ctxt = |
592 fun print_computation_check ctxt = |
593 print (fn { of_term_for_typ, ... } => fn prfx => |
593 print (fn { of_term_for_typ, ... } => fn prfx => |
594 space_implode " " [ |
594 enclose "(" ")" (space_implode " " [ |
595 mount_computation_checkN, |
595 mount_computation_checkN, |
596 "(Context.proof_of (Context.the_generic_context ()))", |
596 "(Context.proof_of (Context.the_generic_context ()))", |
597 Long_Name.implode [prfx, generated_computationN, covered_constsN], |
597 Long_Name.implode [prfx, generated_computationN, covered_constsN], |
598 Long_Name.append prfx (of_term_for_typ \<^typ>\<open>prop\<close>) |
598 Long_Name.append prfx (of_term_for_typ \<^typ>\<open>prop\<close>) |
599 ]) ctxt; |
599 ])) ctxt; |
600 |
|
601 |
600 |
602 fun add_all_constrs ctxt (dT as Type (tyco, Ts)) = |
601 fun add_all_constrs ctxt (dT as Type (tyco, Ts)) = |
603 case Code.get_type (Proof_Context.theory_of ctxt) tyco of |
602 case Code.get_type (Proof_Context.theory_of ctxt) tyco of |
604 ((vs, constrs), false) => |
603 ((vs, constrs), false) => |
605 let |
604 let |