• 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-endian
              • Feat
                • Featp
                  • Feat-fix
                  • Make-feat
                  • Feat-equiv
                  • Feat->endian
                  • Change-feat
                  • Feat->base
                  • Feat->m
                • 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

    Featp

    Recognizer for feat structures.

    Signature
    (featp x) → *

    Definitions and Theorems

    Function: featp

    (defun featp (x)
      (declare (xargs :guard t))
      (let ((__function__ 'featp))
        (declare (ignorable __function__))
        (and (mbe :logic (and (alistp x)
                              (equal (strip-cars x) '(base endian m)))
                  :exec (fty::alist-with-carsp x '(base endian m)))
             (b* ((base (cdr (std::da-nth 0 x)))
                  (endian (cdr (std::da-nth 1 x)))
                  (m (cdr (std::da-nth 2 x))))
               (and (feat-basep base)
                    (feat-endianp endian)
                    (booleanp m))))))

    Theorem: consp-when-featp

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