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 |