• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • 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
          • Error-checking
          • Fty-extensions
          • Isar
          • Kestrel-utilities
          • Set
          • Soft
          • C
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • 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)