• 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
        • Instructions
        • Decoding
        • States
        • Encoding
        • Features
          • Feat-base
          • Feat
          • Feat->xnum
          • Feat->xlen
          • Feat-64p
          • Feat-32p
            • Feat-32p-or-64p
          • Feat-rv64im
          • Feat-rv32im
        • 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
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Community
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Features

Feat-32p

Check if the features indicate 32 bits.

Signature
(feat-32p feat) → yes/no
Arguments
feat — Guard (featp feat).
Returns
yes/no — Type (booleanp yes/no).

Definitions and Theorems

Function: feat-32p

(defun feat-32p (feat)
  (declare (xargs :guard (featp feat)))
  (let ((__function__ 'feat-32p))
    (declare (ignorable __function__))
    (feat-base-case (feat->base feat)
                    :rv32i)))

Theorem: booleanp-of-feat-32p

(defthm booleanp-of-feat-32p
  (b* ((yes/no (feat-32p feat)))
    (booleanp yes/no))
  :rule-classes :rewrite)

Theorem: feat-32p-of-feat-fix-feat

(defthm feat-32p-of-feat-fix-feat
  (equal (feat-32p (feat-fix feat))
         (feat-32p feat)))

Theorem: feat-32p-feat-equiv-congruence-on-feat

(defthm feat-32p-feat-equiv-congruence-on-feat
  (implies (feat-equiv feat feat-equiv)
           (equal (feat-32p feat)
                  (feat-32p feat-equiv)))
  :rule-classes :congruence)

Subtopics

Feat-32p-or-64p
One of feat-32p and feat-64p always holds.