• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
        • Memoize
        • Fast-alists
        • Hons
          • Normed
          • Hons-note
          • Hons-resize
          • Hons-wash
          • Hons-clear
          • Hons-copy
          • Maybe-wash-memory
          • Hons-equal
          • Hons-summary
          • Hons-equal-lite
          • Hons-sublis
            • Hons-sublis-aux
            • Hons-wash!
            • Hons-clear!
            • Hons-copy-persistent
          • Set-max-mem
          • Hons-enabled
          • Unmemoize
          • Number-subtrees
        • Events
        • Parallelism
        • History
        • Programming
        • Operational-semantics
        • Real
        • Start-here
        • Debugging
        • Miscellaneous
        • Output-controls
        • Macros
        • Interfacing-tools
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Hons-sublis

    Hons-sublis-aux

    Memoized core of hons-sublis.

    Definitions and Theorems

    Function: hons-sublis-aux

    (defun hons-sublis-aux (fal x)
      (declare (xargs :guard t))
      (if (atom x)
          (let ((pair (hons-get x fal)))
            (if pair (cdr pair) x))
        (cons (hons-sublis-aux fal (car x))
              (hons-sublis-aux fal (cdr x)))))

    Theorem: hons-sublis-aux-removal

    (defthm hons-sublis-aux-removal
      (implies (alistp fal)
               (equal (hons-sublis-aux fal x)
                      (sublis fal x))))

    Function: hons-sublis-aux-memoize-condition

    (defun hons-sublis-aux-memoize-condition (fal x)
      (declare (ignorable fal x)
               (xargs :guard 't))
      (consp x))