• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
          • Isodata
          • Simplify-defun
          • Tailrec
          • Schemalg
          • Restrict
          • Expdata
          • Casesplit
          • Simplify-term
          • Simplify-defun-sk
          • Parteval
            • Parteval-implementation
              • Parteval-event-generation
              • Parteval-fn
              • Parteval-input-processing
                • Parteval-process-inputs
                • Parteval-unchanging-static-in-rec-calls-p
                • Parteval-process-static-terms
                • Parteval-unchanging-static-in-rec-args-p
                • Parteval-process-thm-name
                • Parteval-process-static
                • Parteval-process-old
                • Parteval-case-of-old
                • Parteval-macro-definition
            • 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
          • Riscv
          • 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
    • Parteval-input-processing

    Parteval-case-of-old

    Classify old into one of the three cases described in the reference documentation.

    Signature
    (parteval-case-of-old old$ static$ wrld) → case
    Arguments
    old$ — Guard (symbolp old$).
    static$ — Guard (symbol-alistp static$).
    wrld — Guard (plist-worldp wrld).
    Returns
    case — 1, 2, or 3.

    Definitions and Theorems

    Function: parteval-case-of-old

    (defun parteval-case-of-old (old$ static$ wrld)
     (declare (xargs :guard (and (symbolp old$)
                                 (symbol-alistp static$)
                                 (plist-worldp wrld))))
     (let ((__function__ 'parteval-case-of-old))
      (declare (ignorable __function__))
      (b*
       (((when (not (irecursivep old$ wrld))) 1)
        ((when (member-eq old$
                          (all-ffn-symbs (termination-theorem old$ wrld)
                                         nil)))
         3)
        ((when (parteval-unchanging-static-in-rec-calls-p
                    (recursive-calls old$ wrld)
                    old$ (strip-cars static$)
                    wrld))
         2))
       3)))