• 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
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
        • Instructions
        • States
        • Decoding
        • Encoding
        • Features
          • Feat-bits
            • Feat-bits-case
            • Feat-bits-fix
            • Feat-bits-equiv
            • Feat-bitsp
            • Feat-bits-64
            • Feat-bits-32
            • Feat-bits-kind
            • Feat
            • Feat->xnum
            • Feat->xlen
            • Feat-64p
            • Feat-32p
          • Semantics
          • Execution
        • 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
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Feat-bits

    Feat-bits-kind

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

    Signature
    (feat-bits-kind x) → kind
    Arguments
    x — Guard (feat-bitsp x).

    Definitions and Theorems

    Function: feat-bits-kind$inline

    (defun feat-bits-kind$inline (x)
      (declare (xargs :guard (feat-bitsp x)))
      (let ((__function__ 'feat-bits-kind))
        (declare (ignorable __function__))
        (mbe :logic (cond ((or (atom x) (eq (car x) :|32|)) :|32|)
                          (t :|64|))
             :exec (car x))))

    Theorem: feat-bits-kind-possibilities

    (defthm feat-bits-kind-possibilities
      (or (equal (feat-bits-kind x) :|32|)
          (equal (feat-bits-kind x) :|64|))
      :rule-classes
      ((:forward-chaining :trigger-terms ((feat-bits-kind x)))))