• 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
              • States64i
              • States64e
              • States32e
                • Stat-rv32e-p
            • 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
    • States32e

    Stat-rv32e-p

    Recognizer of states with base RV32E.

    Signature
    (stat-rv32e-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-rv32e-p

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

    Theorem: booleanp-of-stat-rv32e-p

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

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

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

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

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

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

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