src/HOL/Tools/recdef.ML
changeset 43278 1fbdcebb364b
parent 42795 66fcc9882784
child 44013 5cfc1c36ae97
equal deleted inserted replaced
43277:1fd31f859fc7 43278:1fbdcebb364b
   259     val tcs =
   259     val tcs =
   260       (case get_recdef thy name of
   260       (case get_recdef thy name of
   261         NONE => error ("No recdef definition of constant: " ^ quote name)
   261         NONE => error ("No recdef definition of constant: " ^ quote name)
   262       | SOME {tcs, ...} => tcs);
   262       | SOME {tcs, ...} => tcs);
   263     val i = the_default 1 opt_i;
   263     val i = the_default 1 opt_i;
   264     val tc = nth tcs (i - 1) handle Subscript =>
   264     val tc = nth tcs (i - 1) handle General.Subscript =>
   265       error ("No termination condition #" ^ string_of_int i ^
   265       error ("No termination condition #" ^ string_of_int i ^
   266         " in recdef definition of " ^ quote name);
   266         " in recdef definition of " ^ quote name);
   267   in
   267   in
   268     Specification.theorem "" NONE (K I)
   268     Specification.theorem "" NONE (K I)
   269       (Binding.conceal (Binding.name bname), atts) []
   269       (Binding.conceal (Binding.name bname), atts) []