• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
        • Instructions
        • States
          • Stat
            • Statp
            • Stat-fix
            • Stat-equiv
            • Make-stat
            • Change-stat
            • Stat->memory
              • Stat->error
              • Stat->xregs
              • Stat->pc
            • Stat-validp
            • Write-memory-unsigned64
            • Write-memory-unsigned32
            • Write-memory-unsigned8
            • Write-memory-unsigned16
            • Read-xreg-unsigned
            • Write-xreg-32
            • States64
            • Write-xreg
            • Read-memory-unsigned8
            • Read-memory-unsigned64
            • Read-memory-unsigned32
            • Read-memory-unsigned16
            • Read-xreg-signed
            • Read-xreg-unsigned32
            • States32
            • Write-pc
            • Read-xreg-signed32
            • Read-pc
            • Inc4-pc
          • Decoding
          • Encoding
          • Features
          • Semantics
          • Execution
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • 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)