src/HOL/Tools/recdef.ML
changeset 33643 b275f26a638b
parent 33552 506f80a9afe8
child 33699 f33b036ef318
equal deleted inserted replaced
33642:d983509dbf31 33643:b275f26a638b
   261     val i = the_default 1 opt_i;
   261     val i = the_default 1 opt_i;
   262     val tc = nth tcs (i - 1) handle Subscript =>
   262     val tc = nth tcs (i - 1) handle Subscript =>
   263       error ("No termination condition #" ^ string_of_int i ^
   263       error ("No termination condition #" ^ string_of_int i ^
   264         " in recdef definition of " ^ quote name);
   264         " in recdef definition of " ^ quote name);
   265   in
   265   in
   266     Specification.theorem Thm.internalK NONE (K I)
   266     Specification.theorem "" NONE (K I)
   267       (Binding.conceal (Binding.name bname), atts) []
   267       (Binding.conceal (Binding.name bname), atts) []
   268       (Element.Shows [(Attrib.empty_binding, [(HOLogic.mk_Trueprop tc, [])])]) int lthy
   268       (Element.Shows [(Attrib.empty_binding, [(HOLogic.mk_Trueprop tc, [])])]) int lthy
   269   end;
   269   end;
   270 
   270 
   271 val recdef_tc = gen_recdef_tc Attrib.intern_src Sign.intern_const;
   271 val recdef_tc = gen_recdef_tc Attrib.intern_src Sign.intern_const;