src/HOL/Tools/Function/partial_function.ML
changeset 63182 b065b4833092
parent 63170 eae6549dbea2
child 63285 e9c777bfd78c
equal deleted inserted replaced
63181:ee1c9de4e03a 63182:b065b4833092
   224     val setup_data = the (lookup_mode lthy mode)
   224     val setup_data = the (lookup_mode lthy mode)
   225       handle Option.Option => error (cat_lines ["Unknown mode " ^ quote mode ^ ".",
   225       handle Option.Option => error (cat_lines ["Unknown mode " ^ quote mode ^ ".",
   226         "Known modes are " ^ commas_quote (known_modes lthy) ^ "."]);
   226         "Known modes are " ^ commas_quote (known_modes lthy) ^ "."]);
   227     val Setup_Data {fixp, mono, fixp_eq, fixp_induct, fixp_induct_user} = setup_data;
   227     val Setup_Data {fixp, mono, fixp_eq, fixp_induct, fixp_induct_user} = setup_data;
   228 
   228 
   229     val ((fixes, [(eq_abinding, eqn)]), _) = prep fixes_raw [(eqn_raw, [])] lthy;
   229     val ((fixes, [(eq_abinding, eqn)]), _) = prep fixes_raw [(eqn_raw, [], [])] lthy;
   230     val ((_, plain_eqn), args_ctxt) = Variable.focus NONE eqn lthy;
   230     val ((_, plain_eqn), args_ctxt) = Variable.focus NONE eqn lthy;
   231 
   231 
   232     val ((f_binding, fT), mixfix) = the_single fixes;
   232     val ((f_binding, fT), mixfix) = the_single fixes;
   233     val f_bname = Binding.name_of f_binding;
   233     val f_bname = Binding.name_of f_binding;
   234 
   234