src/HOL/Tools/recdef_package.ML
changeset 28084 a05ca48ef263
parent 28083 103d9282a946
child 28703 aef727ef30e5
equal deleted inserted replaced
28083:103d9282a946 28084:a05ca48ef263
   267     val tc = nth tcs (i - 1) handle Subscript =>
   267     val tc = nth tcs (i - 1) handle Subscript =>
   268       error ("No termination condition #" ^ string_of_int i ^
   268       error ("No termination condition #" ^ string_of_int i ^
   269         " in recdef definition of " ^ quote name);
   269         " in recdef definition of " ^ quote name);
   270   in
   270   in
   271     Specification.theorem Thm.internalK NONE (K I) (Name.binding bname, atts)
   271     Specification.theorem Thm.internalK NONE (K I) (Name.binding bname, atts)
   272       [] (Element.Shows [((Name.no_binding, []), [(HOLogic.mk_Trueprop tc, [])])]) int lthy
   272       [] (Element.Shows [(Attrib.no_binding, [(HOLogic.mk_Trueprop tc, [])])]) int lthy
   273   end;
   273   end;
   274 
   274 
   275 val recdef_tc = gen_recdef_tc Attrib.intern_src Sign.intern_const;
   275 val recdef_tc = gen_recdef_tc Attrib.intern_src Sign.intern_const;
   276 val recdef_tc_i = gen_recdef_tc (K I) (K I);
   276 val recdef_tc_i = gen_recdef_tc (K I) (K I);
   277 
   277