src/HOL/Tools/Function/partial_function.ML
changeset 41117 d6379876ec4c
parent 40186 fe4a58419d46
child 41472 f6ab14e61604
equal deleted inserted replaced
41116:7230a7c379dc 41117:d6379876ec4c
   163     val ((fixp, mono), fixp_eq) = the (lookup_mode lthy mode)
   163     val ((fixp, mono), fixp_eq) = the (lookup_mode lthy mode)
   164       handle Option.Option => error (cat_lines ["Unknown mode " ^ quote mode ^ ".",
   164       handle Option.Option => error (cat_lines ["Unknown mode " ^ quote mode ^ ".",
   165         "Known modes are " ^ commas_quote (known_modes lthy) ^ "."]);
   165         "Known modes are " ^ commas_quote (known_modes lthy) ^ "."]);
   166 
   166 
   167     val ((fixes, [(eq_abinding, eqn)]), _) = prep fixes_raw [eqn_raw] lthy;
   167     val ((fixes, [(eq_abinding, eqn)]), _) = prep fixes_raw [eqn_raw] lthy;
   168     val (_, _, plain_eqn) = Function_Lib.dest_all_all_ctx lthy eqn;
   168     val ((_, plain_eqn), _) = Function_Lib.focus_term eqn lthy;
   169 
   169 
   170     val ((f_binding, fT), mixfix) = the_single fixes;
   170     val ((f_binding, fT), mixfix) = the_single fixes;
   171     val fname = Binding.name_of f_binding;
   171     val fname = Binding.name_of f_binding;
   172 
   172 
   173     val cert = cterm_of (ProofContext.theory_of lthy);
   173     val cert = cterm_of (ProofContext.theory_of lthy);