• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Riscv
        • 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->xnum
            • Feat->xlen
            • Feat-little-endianp
            • Feat-big-endianp
            • Feat-64p
            • Feat-32p
            • Feat-embedp
            • Feat-mp
            • Feat-rv64im-le
            • Feat-rv64em-le
            • Feat-rv32im-le
            • Feat-rv32em-le
            • Feat-rv64im-be
            • Feat-rv64i-le
            • Feat-rv64i-be
            • Feat-rv64em-be
            • Feat-rv64e-le
            • Feat-rv64e-be
            • Feat-rv32im-be
            • Feat-rv32i-le
            • Feat-rv32i-be
            • Feat-rv32em-be
            • Feat-rv32e-le
            • Feat-rv32e-be
          • States
          • Instructions
          • Decoding
          • Encoding
          • Reads-over-writes
          • Rv32im
          • Rv64im
          • Execution
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • 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
    • 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)))))