• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Pfcs
      • Wp-gen
      • Dimacs-reader
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
        • Specification
        • Executable
        • Specialized
          • Rv64im
          • Rv32im
            • Semantics32
            • States32
              • Write32-xreg
              • Xregfile32
                • Xregfile32p
                • Xregfile32-fix
                • Write32-mem-ubyte16-lendian
                • State32
                • Memory32
                • Write32-mem-ubyte32-lendian
                • Write32-pc
                • Write32-mem-ubyte8
                • Read32-mem-ubyte16-lendian
                • Read32-xreg-unsigned
                • Read32-mem-ubyte8
                • Read32-mem-ubyte32-lendian
                • Read32-xreg-signed
                • Inc32-pc
                • Read32-pc
                • Error32p
                • Error32
                • *mem32-size*
              • Execution32
        • Bitcoin
        • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Xregfile32

    Xregfile32-fix

    Fixer for xregfile32.

    Signature
    (xregfile32-fix x) → *
    Arguments
    x — Guard (xregfile32p x).

    Definitions and Theorems

    Function: xregfile32-fix

    (defun xregfile32-fix (x)
      (declare (xargs :guard (xregfile32p x)))
      (mbe :logic
           (if (xregfile32p x)
               x
             (acl2::ubyte32-list-fix (take 31 x)))
           :exec x))

    Theorem: xregfile32p-of-xregfile32-fix

    (defthm xregfile32p-of-xregfile32-fix
      (xregfile32p (xregfile32-fix x)))

    Theorem: xregfile32-fix-when-xregfile32p

    (defthm xregfile32-fix-when-xregfile32p
      (implies (xregfile32p x)
               (equal (xregfile32-fix x) x)))