228 handle Option.Option => error (cat_lines ["Unknown mode " ^ quote mode ^ ".", |
228 handle Option.Option => error (cat_lines ["Unknown mode " ^ quote mode ^ ".", |
229 "Known modes are " ^ commas_quote (known_modes lthy) ^ "."]); |
229 "Known modes are " ^ commas_quote (known_modes lthy) ^ "."]); |
230 val Setup_Data {fixp, mono, fixp_eq, fixp_induct, fixp_induct_user} = setup_data; |
230 val Setup_Data {fixp, mono, fixp_eq, fixp_induct, fixp_induct_user} = setup_data; |
231 |
231 |
232 val ((fixes, [(eq_abinding, eqn)]), _) = prep fixes_raw [eqn_raw] lthy; |
232 val ((fixes, [(eq_abinding, eqn)]), _) = prep fixes_raw [eqn_raw] lthy; |
233 val ((_, plain_eqn), args_ctxt) = Variable.focus eqn lthy; |
233 val ((_, plain_eqn), args_ctxt) = Variable.focus NONE eqn lthy; |
234 |
234 |
235 val ((f_binding, fT), mixfix) = the_single fixes; |
235 val ((f_binding, fT), mixfix) = the_single fixes; |
236 val fname = Binding.name_of f_binding; |
236 val fname = Binding.name_of f_binding; |
237 |
237 |
238 val cert = Thm.cterm_of lthy; |
238 val cert = Thm.cterm_of lthy; |