• 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
            • Semantics
            • Features
              • Feat-base
                • Feat-base-case
                • Feat-base-fix
                • Feat-base-equiv
                • Feat-basep
                • Feat-base-rv64i
                • Feat-base-rv64e
                • Feat-base-rv32i
                • Feat-base-rv32e
                • Feat-base-kind
                • Feat-endian
                • Feat
                • Feat->xlen
                • Feat->ialign
                • Feat->xnum
                • Feat-64p
                • Feat-32p
                • Feat-little-endianp
                • Feat-big-endianp
                • Feat->ilen
                • Feat-embedp
                • Feat-mp
              • Instructions
              • Encoding
              • States
              • Reads-over-writes
              • Semantics-equivalences
              • Decoding
              • Execution
            • Executable
            • Specialized
            • 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
    • Feat-base

    Feat-base-kind

    Get the kind (tag) of a feat-base structure.

    Signature
    (feat-base-kind x) → kind
    Arguments
    x — Guard (feat-basep x).

    Definitions and Theorems

    Function: feat-base-kind$inline

    (defun feat-base-kind$inline (x)
      (declare (xargs :guard (feat-basep x)))
      (let ((__function__ 'feat-base-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :rv32i))
                           :rv32i)
                          ((eq (car x) :rv64i) :rv64i)
                          ((eq (car x) :rv32e) :rv32e)
                          (t :rv64e))
             :exec (car x))))

    Theorem: feat-base-kind-possibilities

    (defthm feat-base-kind-possibilities
      (or (equal (feat-base-kind x) :rv32i)
          (equal (feat-base-kind x) :rv64i)
          (equal (feat-base-kind x) :rv32e)
          (equal (feat-base-kind x) :rv64e))
      :rule-classes
      ((:forward-chaining :trigger-terms ((feat-base-kind x)))))