Included Books
other
(in-package "ACL2")
include-book
(include-book "std/util/define" :dir :system)
include-book
(include-book "xdoc/constructors" :dir :system)
other
(define check-not-call ((term pseudo-termp)) :returns (mv (yes/no booleanp) (arg pseudo-termp :hyp :guard)) :parents (std/system/term-queries) :short "Check if a term is a call of @(tsee not)." :long (topstring (p "If it is, the first result is @('t') and the other result is the argument. Otherwise, all the results are @('nil').")) (case-match term (('not arg) (mv t arg)) (& (mv nil nil))) /// (defret acl2-count-of-check-not-call (implies yes/no (< (acl2-count arg) (acl2-count term))) :rule-classes :linear))