• 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
          • Executable
          • Specialized
            • Specialized-features
            • Rv64im
            • Rv32im
            • Specialized-states
              • States32i
                • Stat32i
                • Memory32i
                  • Memory32ip
                  • Memory32i-fix
                  • Xregs32i
                  • Stat32i-iso
                  • Stat-rv32i-p
                  • Read32i-xreg-unsigned
                  • Read32i-xreg-unsigned{2}
                  • Read32i-xreg-unsigned{0}
                  • Read32i-xreg-unsigned{1}
                  • Stat32i-from-stat
                  • Stat-from-stat32i
                  • Read-xreg-unsigned-to-read32i-xreg-unsigned
                • States64i
                • States64e
                • States32e
            • 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
    • Memory32i

    Memory32i-fix

    Fixer for memory32i.

    Signature
    (memory32i-fix x) → *
    Arguments
    x — Guard (memory32ip x).

    Definitions and Theorems

    Function: memory32i-fix

    (defun memory32i-fix (x)
      (declare (xargs :guard (memory32ip x)))
      (mbe :logic
           (if (memory32ip x)
               x
             (acl2::ubyte8-list-fix (take 4294967296 x)))
           :exec x))

    Theorem: memory32ip-of-memory32i-fix

    (defthm memory32ip-of-memory32i-fix
      (memory32ip (memory32i-fix x)))

    Theorem: memory32i-fix-when-memory32ip

    (defthm memory32i-fix-when-memory32ip
      (implies (memory32ip x)
               (equal (memory32i-fix x) x)))