src/HOL/Tools/recdef_package.ML
changeset 24927 48e08f37ce92
parent 24867 e5b55d7be9bb
child 26336 a0e2b706ce73
equal deleted inserted replaced
24926:bcb6b098df11 24927:48e08f37ce92
   269     val i = the_default 1 opt_i;
   269     val i = the_default 1 opt_i;
   270     val tc = nth tcs (i - 1) handle Subscript =>
   270     val tc = nth tcs (i - 1) handle Subscript =>
   271       error ("No termination condition #" ^ string_of_int i ^
   271       error ("No termination condition #" ^ string_of_int i ^
   272         " in recdef definition of " ^ quote name);
   272         " in recdef definition of " ^ quote name);
   273   in
   273   in
   274     Specification.theorem_i Thm.internalK NONE (K I) (bname, atts)
   274     Specification.theorem Thm.internalK NONE (K I) (bname, atts)
   275       [] (Element.Shows [(("", []), [(HOLogic.mk_Trueprop tc, [])])]) int lthy
   275       [] (Element.Shows [(("", []), [(HOLogic.mk_Trueprop tc, [])])]) int lthy
   276   end;
   276   end;
   277 
   277 
   278 val recdef_tc = gen_recdef_tc Attrib.intern_src Sign.intern_const;
   278 val recdef_tc = gen_recdef_tc Attrib.intern_src Sign.intern_const;
   279 val recdef_tc_i = gen_recdef_tc (K I) (K I);
   279 val recdef_tc_i = gen_recdef_tc (K I) (K I);