• 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-basep

    Recognizer for feat-base structures.

    Signature
    (feat-basep x) → *

    Definitions and Theorems

    Function: feat-basep

    (defun feat-basep (x)
      (declare (xargs :guard t))
      (let ((__function__ 'feat-basep))
        (declare (ignorable __function__))
        (and (consp x)
             (cond ((or (atom x) (eq (car x) :rv32i))
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :rv64i)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   ((eq (car x) :rv32e)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 0)
                         (b* nil t)))
                   (t (and (eq (car x) :rv64e)
                           (and (true-listp (cdr x))
                                (eql (len (cdr x)) 0))
                           (b* nil t)))))))

    Theorem: consp-when-feat-basep

    (defthm consp-when-feat-basep
      (implies (feat-basep x) (consp x))
      :rule-classes :compound-recognizer)