Filtering...

maximum-length

books/kestrel/acl2-arrays/maximum-length
other
(in-package "ACL2")
in-theory
(in-theory (disable maximum-length))
maximum-length-of-constheorem
(defthm maximum-length-of-cons
  (equal (maximum-length name (cons a x))
    (if (equal :header (car a))
      (cadr (assoc-keyword :maximum-length (cdr a)))
      (maximum-length name x)))
  :hints (("Goal" :in-theory (enable maximum-length header))))
normalize-maximum-length-nametheorem
(defthmd normalize-maximum-length-name
  (implies (syntaxp (not (equal name '':fake-name)))
    (equal (maximum-length name l)
      (maximum-length :fake-name l)))
  :hints (("Goal" :in-theory (enable maximum-length))))
maximum-length-introtheorem
(defthm maximum-length-intro
  (equal (cadr (assoc-keyword :maximum-length (cdr (header name l))))
    (maximum-length name l))
  :hints (("Goal" :in-theory (enable maximum-length))))
other
(theory-invariant (incompatible (:rewrite maximum-length-intro)
    (:definition maximum-length)))