src/HOL/Library/refute.ML
changeset 56846 9df717fef2bb
parent 56845 691da43fbdd4
child 56851 35ff4ede3409
equal deleted inserted replaced
56845:691da43fbdd4 56846:9df717fef2bb
  2397                             in
  2397                             in
  2398                               result
  2398                               result
  2399                             end
  2399                             end
  2400                         end
  2400                         end
  2401                       val idt_size = Array.length (the (AList.lookup (op =) REC_OPERATORS idt_index))
  2401                       val idt_size = Array.length (the (AList.lookup (op =) REC_OPERATORS idt_index))
  2402                       (* sanity check: the size of 'IDT' should be 'idt_size' *)
  2402                       (* sanity check: the size of 'IDT' should be 'size_idt' *)
  2403                       val _ =
  2403                       val _ =
  2404                           if idt_size <> size_of_type ctxt (typs, []) IDT then
  2404                           if idt_size <> size_of_type ctxt (typs, []) IDT then
  2405                             raise REFUTE ("IDT_recursion_interpreter",
  2405                             raise REFUTE ("IDT_recursion_interpreter",
  2406                               "unexpected size of IDT (wrong type associated?)")
  2406                               "unexpected size of IDT (wrong type associated?)")
  2407                           else ()
  2407                           else ()