• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
          • Syntax-for-tools
          • Atc
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
              • Atc-shallow-embedding
                • Defstruct
                • Defobject
                  • Defobject-implementation
                    • Defobject-info
                      • Defobject-info-fix
                      • Make-defobject-info
                      • Defobject-info-equiv
                      • Defobject-infop
                        • Defobject-info->recognizer
                        • Defobject-info->name-symbol
                        • Defobject-info->name-ident
                        • Defobject-info->initializer
                        • Change-defobject-info
                        • Defobject-info->init
                        • Defobject-info->call
                        • Defobject-info->type
                      • Defobject-gen-everything
                      • Defobject-process-name
                      • Defobject-info-option
                      • Defobject-term-to-expr
                      • Term-checkers-common
                      • Defobject-process-init
                      • Defobject-process-init-term
                      • Defobject-table-record-event
                      • Defobject-process-type
                      • Defobject-process-inputs
                      • Defobject-table-lookup
                      • Defobject-process-init-terms
                      • Defobject-process-inputs-and-gen-everything
                      • Defobject-fn
                      • Defobject-table-definition
                      • *defobject-table*
                      • Defobject-macro-definition
                  • Atc-let-designations
                  • Pointer-types
                  • Atc-conditional-expressions
                • Atc-process-inputs-and-gen-everything
                • Atc-table
                • Atc-fn
                • Atc-pretty-printing-options
                • Atc-types
                • Atc-macro-definition
              • Atc-tutorial
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • 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
    • Defobject-info

    Defobject-infop

    Recognizer for defobject-info structures.

    Signature
    (defobject-infop x) → *

    Definitions and Theorems

    Function: defobject-infop

    (defun defobject-infop (x)
     (declare (xargs :guard t))
     (let ((__function__ 'defobject-infop))
      (declare (ignorable __function__))
      (and
       (mbe
        :logic
        (and
            (alistp x)
            (equal (strip-cars x)
                   '(name-ident name-symbol
                                type init recognizer initializer call)))
        :exec (fty::alist-with-carsp
                   x
                   '(name-ident name-symbol
                                type init recognizer initializer call)))
       (b* ((name-ident (cdr (std::da-nth 0 x)))
            (name-symbol (cdr (std::da-nth 1 x)))
            (type (cdr (std::da-nth 2 x)))
            (init (cdr (std::da-nth 3 x)))
            (recognizer (cdr (std::da-nth 4 x)))
            (initializer (cdr (std::da-nth 5 x)))
            (call (cdr (std::da-nth 6 x))))
         (and (identp name-ident)
              (symbolp name-symbol)
              (typep type)
              (initer-optionp init)
              (symbolp recognizer)
              (symbolp initializer)
              (pseudo-event-formp call))))))

    Theorem: consp-when-defobject-infop

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