• 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
                • 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
    • States32i

    Stat-rv32i-p

    Recognizer of states with base RV32I.

    Signature
    (stat-rv32i-p x) → yes/no
    Returns
    yes/no — Type (booleanp yes/no).

    These only depend on the base, not on the M extension or the endianness.

    Definitions and Theorems

    Function: stat-rv32i-p

    (defun stat-rv32i-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'stat-rv32i-p))
        (declare (ignorable __function__))
        (and (statp x)
             (stat-validp x (feat-rv32i-le)))))

    Theorem: booleanp-of-stat-rv32i-p

    (defthm booleanp-of-stat-rv32i-p
      (b* ((yes/no (stat-rv32i-p x)))
        (booleanp yes/no))
      :rule-classes :rewrite)

    Theorem: stat-rv32i-p-alt-def-be

    (defthm stat-rv32i-p-alt-def-be
      (equal (stat-rv32i-p x)
             (and (statp x)
                  (stat-validp x (feat-rv32i-be)))))

    Theorem: stat-rv32i-p-alt-def-m-le

    (defthm stat-rv32i-p-alt-def-m-le
      (equal (stat-rv32i-p x)
             (and (statp x)
                  (stat-validp x (feat-rv32im-le)))))

    Theorem: stat-rv32i-p-alt-def-m-be

    (defthm stat-rv32i-p-alt-def-m-be
      (equal (stat-rv32i-p x)
             (and (statp x)
                  (stat-validp x (feat-rv32im-be)))))

    Theorem: unsigned-byte-p-32-of-nth-of-stat-rv32i->xregs

    (defthm unsigned-byte-p-32-of-nth-of-stat-rv32i->xregs
      (implies (and (stat-validp stat (feat-rv32i-le))
                    (natp reg)
                    (< reg 32))
               (unsigned-byte-p 32 (nth (1- reg) (stat->xregs stat)))))