equal
deleted
inserted
replaced
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) [] |