• 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
        • 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
                • Defstruct-implementation
                  • Defstruct-info
                    • Defstruct-info-fix
                    • Make-defstruct-info
                    • Defstruct-infop
                      • Defstruct-info-equiv
                      • Change-defstruct-info
                      • Defstruct-info->pointer-type-to-quoted-thm
                      • Defstruct-info->fixer-recognizer-thm
                      • Defstruct-info->type-to-quoted-thm
                      • Defstruct-info->type-of-value-thm
                      • Defstruct-info->value-kind-thm
                      • Defstruct-info->not-error-thm
                      • Defstruct-info->members
                      • Defstruct-info->flexiblep-thm
                      • Defstruct-info->valuep-thm
                      • Defstruct-info->recognizer
                      • Defstruct-info->flexiblep
                      • Defstruct-info->fixtype
                      • Defstruct-info->fixer
                      • Defstruct-info->call
                      • Defstruct-info->tag
                    • Defstruct-gen-recognizer
                    • Defstruct-gen-integer-member-ops
                    • Defstruct-gen-constructor
                    • Defstruct-gen-array-member-ops
                    • Defstruct-gen-recognizer-conjuncts
                    • Defstruct-member-info
                    • Defstruct-member-info-list->memtype-list
                    • Defstruct-process-members
                    • Defstruct-gen-fixer
                    • Defstruct-gen-member-ops
                    • Defstruct-process-inputs
                    • Defstruct-gen-fixing-term
                    • Defstruct-info-option
                    • Defstruct-gen-everything
                    • Defstruct-gen-all-member-ops
                    • Defstruct-gen-recognizer-all-conjuncts
                    • Defstruct-info->writer-element-list
                    • Defstruct-info->reader-element-list
                    • Defstruct-gen-fixtype
                    • Defstruct-info->writer-list
                    • Defstruct-info->reader-list
                    • Defstruct-fn
                    • Defstruct-table-record-event
                    • Defstruct-table-lookup
                    • Irr-defstruct-info
                    • Defstruct-info->writer-element-list-aux
                    • Defstruct-info->reader-element-list-aux
                    • Defstruct-info->writer-list-aux
                    • Defstruct-info->reader-list-aux
                    • Defstruct-member-info-list
                    • Defstruct-table-definition
                    • *defstruct-table*
                    • Defstruct-macro-implementtion
                • Defobject
                • 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
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Riscv
        • 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
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Defstruct-info

    Defstruct-infop

    Recognizer for defstruct-info structures.

    Signature
    (defstruct-infop x) → *

    Definitions and Theorems

    Function: defstruct-infop

    (defun defstruct-infop (x)
     (declare (xargs :guard t))
     (let ((__function__ 'defstruct-infop))
      (declare (ignorable __function__))
      (and
       (mbe
          :logic (and (alistp x)
                      (equal (strip-cars x)
                             '(tag members flexiblep fixtype
                                   recognizer fixer fixer-recognizer-thm
                                   not-error-thm valuep-thm
                                   value-kind-thm type-of-value-thm
                                   flexiblep-thm type-to-quoted-thm
                                   pointer-type-to-quoted-thm call)))
          :exec (fty::alist-with-carsp
                     x
                     '(tag members flexiblep fixtype
                           recognizer fixer fixer-recognizer-thm
                           not-error-thm valuep-thm
                           value-kind-thm type-of-value-thm
                           flexiblep-thm type-to-quoted-thm
                           pointer-type-to-quoted-thm call)))
       (b* ((tag (cdr (std::da-nth 0 x)))
            (members (cdr (std::da-nth 1 x)))
            (flexiblep (cdr (std::da-nth 2 x)))
            (fixtype (cdr (std::da-nth 3 x)))
            (recognizer (cdr (std::da-nth 4 x)))
            (fixer (cdr (std::da-nth 5 x)))
            (fixer-recognizer-thm (cdr (std::da-nth 6 x)))
            (not-error-thm (cdr (std::da-nth 7 x)))
            (valuep-thm (cdr (std::da-nth 8 x)))
            (value-kind-thm (cdr (std::da-nth 9 x)))
            (type-of-value-thm (cdr (std::da-nth 10 x)))
            (flexiblep-thm (cdr (std::da-nth 11 x)))
            (type-to-quoted-thm (cdr (std::da-nth 12 x)))
            (pointer-type-to-quoted-thm (cdr (std::da-nth 13 x)))
            (call (cdr (std::da-nth 14 x))))
         (and (identp tag)
              (defstruct-member-info-listp members)
              (booleanp flexiblep)
              (symbolp fixtype)
              (symbolp recognizer)
              (symbolp fixer)
              (symbolp fixer-recognizer-thm)
              (symbolp not-error-thm)
              (symbolp valuep-thm)
              (symbolp value-kind-thm)
              (symbolp type-of-value-thm)
              (symbolp flexiblep-thm)
              (symbolp type-to-quoted-thm)
              (symbolp pointer-type-to-quoted-thm)
              (pseudo-event-formp call))))))

    Theorem: consp-when-defstruct-infop

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