• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
      • 100-theorems
      • Arithmetic
      • Bit-vectors
        • Sparseint
        • Bitops
        • Bv
        • Ihs
          • Logops-definitions
          • Math-lemmas
          • Ihs-theories
          • Ihs-init
            • Ihs-utilities
              • Defun-type/exec-theory
              • Defun-theory
              • Definition-free-theory
              • Rewrite-theory
              • Rewrite-free-theory
                • Definition-theory
                • Mlambda
                • Enable-theory
                • Disable-theory
            • Logops
          • Rtl
        • Algebra
      • Testing-utilities
    • Ihs-utilities

    Rewrite-free-theory

    Returns the theory with all :REWRITE rules deleted.

    Definitions and Theorems

    Function: rewrite-free-theory-rec

    (defun rewrite-free-theory-rec (theory ans)
      (declare (xargs :guard (and (true-listp theory)
                                  (true-listp ans))))
      (cond ((endp theory) (reverse ans))
            ((and (consp (car theory))
                  (equal (caar theory) :rewrite))
             (rewrite-free-theory-rec (cdr theory)
                                      ans))
            (t (rewrite-free-theory-rec (cdr theory)
                                        (cons (car theory) ans)))))

    Function: rewrite-free-theory

    (defun rewrite-free-theory (theory)
      (declare (xargs :guard (true-listp theory)))
      (rewrite-free-theory-rec theory nil))