• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
      • B*
      • Defunc
      • Fty
      • Apt
        • Simplify-defun
        • Isodata
        • Tailrec
        • Schemalg
        • Restrict
        • Expdata
        • Casesplit
          • Casesplit-implementation
            • Casesplit-event-generation
            • Casesplit-fn
            • Casesplit-input-processing
            • Casesplit-macro-definition
            • Casesplit-library-extensions
              • Negate-terms
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
          • Solve
          • Wrap-output
          • Propagate-iso
          • Simplify
          • Finite-difference
          • Drop-irrelevant-params
          • Copy-function
          • Lift-iso
          • Rename-params
          • Utilities
          • Simplify-term-programmatic
          • Simplify-defun-sk-programmatic
          • Simplify-defun-programmatic
          • Simplify-defun+
          • Common-options
          • Common-concepts
        • Std/util
        • Defdata
        • Defrstobj
        • Seq
        • Match-tree
        • Defrstobj
        • With-supporters
        • Def-partial-measure
        • Template-subst
        • Soft
        • Defthm-domain
        • Event-macros
        • Def-universal-equiv
        • Def-saved-obligs
        • With-supporters-after
        • Definec
        • Sig
        • Outer-local
        • Data-structures
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Casesplit-library-extensions

    Negate-terms

    Signature
    (negate-terms terms) → negated-terms
    Arguments
    terms — Guard (pseudo-term-listp terms).
    Returns
    negated-terms — Type (pseudo-term-listp negated-terms), given (pseudo-term-listp terms).

    Definitions and Theorems

    Function: negate-terms

    (defun negate-terms (terms)
      (declare (xargs :guard (pseudo-term-listp terms)))
      (let ((__function__ 'negate-terms))
        (declare (ignorable __function__))
        (cond ((endp terms) nil)
              (t (cons (dumb-negate-lit (car terms))
                       (negate-terms (cdr terms)))))))

    Theorem: pseudo-term-listp-of-negate-terms

    (defthm pseudo-term-listp-of-negate-terms
      (implies (pseudo-term-listp terms)
               (b* ((negated-terms (negate-terms terms)))
                 (pseudo-term-listp negated-terms)))
      :rule-classes :rewrite)