src/HOL/Tools/Function/partial_function.ML
changeset 42495 1af81b70cf09
parent 42388 a44b0fdaa6c2
child 42949 618adb3584e5
equal deleted inserted replaced
42494:eef1a23c9077 42495:1af81b70cf09
   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.focus_term eqn lthy;
   168     val ((_, plain_eqn), _) = Variable.focus 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 (Proof_Context.theory_of lthy);
   173     val cert = cterm_of (Proof_Context.theory_of lthy);