• 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

    Definition-theory

    Collects all of the :DEFINITION runes from theory.

    Definitions and Theorems

    Function: definition-theory-rec

    (defun definition-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) :definition))
             (definition-theory-rec (cdr theory)
                                    (cons (car theory) ans)))
            (t (definition-theory-rec (cdr theory)
                                      ans))))

    Function: definition-theory

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