• 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
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Riscv
          • Specification
            • Semantics
            • Features
            • Instructions
            • Encoding
            • States
              • Stat
                • Statp
                • Stat-fix
                • Stat-equiv
                • Make-stat
                • Change-stat
                • Stat->memory
                  • Stat->error
                  • Stat->xregs
                  • Stat->pc
                • Stat-validp
                • Read-instruction
                • Write-memory-unsigned64
                • Write-memory-unsigned32
                • Write-memory-unsigned8
                • Write-memory-unsigned16
                • Write-xreg-32
                • Read-xreg-unsigned
                • Write-xreg
                • Read-memory-unsigned64
                • Read-memory-unsigned8
                • Read-memory-unsigned32
                • Read-xreg-signed
                • Read-memory-unsigned16
                • Read-xreg-unsigned32
                • Write-pc
                • Read-xreg-signed32
                • Inc4-pc
                • Read-pc
                • Errorp
                • Error
              • Reads-over-writes
              • Semantics-equivalences
              • Decoding
              • Execution
            • Executable
            • Specialized
            • Optimized
          • 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
    • Stat

    Stat->memory

    Get the memory field from a stat.

    Signature
    (stat->memory x) → memory
    Arguments
    x — Guard (statp x).
    Returns
    memory — Type (ubyte8-listp memory).

    This is an ordinary field accessor created by fty::defprod.

    Definitions and Theorems

    Function: stat->memory$inline

    (defun stat->memory$inline (x)
      (declare (xargs :guard (statp x)))
      (declare (xargs :guard t))
      (let ((__function__ 'stat->memory))
        (declare (ignorable __function__))
        (mbe :logic
             (b* ((x (and t x)))
               (acl2::ubyte8-list-fix (cdr (std::da-nth 2 x))))
             :exec (cdr (std::da-nth 2 x)))))

    Theorem: ubyte8-listp-of-stat->memory

    (defthm ubyte8-listp-of-stat->memory
      (b* ((memory (stat->memory$inline x)))
        (ubyte8-listp memory))
      :rule-classes :rewrite)

    Theorem: stat->memory$inline-of-stat-fix-x

    (defthm stat->memory$inline-of-stat-fix-x
      (equal (stat->memory$inline (stat-fix x))
             (stat->memory$inline x)))

    Theorem: stat->memory$inline-stat-equiv-congruence-on-x

    (defthm stat->memory$inline-stat-equiv-congruence-on-x
      (implies (stat-equiv x x-equiv)
               (equal (stat->memory$inline x)
                      (stat->memory$inline x-equiv)))
      :rule-classes :congruence)