• 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
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • 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
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
              • Abstract-syntax
              • Dynamic-semantics
                • Execution
                • Values
                • Dynamic-environments
                  • Call-dinfo
                  • Denv
                  • Update-var/const-dinfo-in-scope-list
                  • Update-var/const-dinfo-in-scope
                  • Var/const-dinfo
                  • Update-var/const-dinfo
                  • Add-var/const-dinfo-to-scope
                  • Add-var/const-dinfo
                  • Var/const-dinfo-option
                  • Get-var/const-dinfo-from-scope-list
                  • Denv-option
                  • Get-var/const-dinfo-from-scope
                  • Vcscope-dinfo-option
                  • Vcscope-dinfo-list-option
                  • Vcscope-dinfo
                  • Screens
                  • Get-var/const-dinfo
                  • Vcscope-dinfo-option-result
                  • Vcscope-dinfo-list-result
                  • Vcscope-dinfo-result
                  • Dynamic-struct-environments
                    • Struct-dinfo-option
                    • Add-struct-dinfo
                    • Struct-dinfo
                      • Struct-dinfo-fix
                      • Struct-dinfo-equiv
                      • Struct-dinfo->components
                      • Make-struct-dinfo
                      • Change-struct-dinfo
                      • Struct-dinfop
                      • Struct-denv-option
                      • Get-struct-dinfo
                      • Struct-denv
                      • Init-struct-denv
                    • Dynamic-function-environments
                    • Denv-result
                    • Init-denv
                    • Vcscope-dinfo-list
                    • Call-dinfo-list
                  • Arithmetic-operations
                  • Curve-parameterization
                  • Shift-operations
                  • Errors
                  • Value-expressions
                  • Locations
                  • Input-execution
                  • Edwards-bls12-generator
                  • Equality-operations
                  • Logical-operations
                  • Program-execution
                  • Ordering-operations
                  • Bitwise-operations
                  • Literal-evaluation
                  • Type-maps-for-struct-components
                  • Output-execution
                  • Tuple-operations
                  • Struct-operations
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Struct-dinfo

    Struct-dinfop

    Recognizer for struct-dinfo structures.

    Signature
    (struct-dinfop x) → *

    Definitions and Theorems

    Function: struct-dinfop

    (defun struct-dinfop (x)
      (declare (xargs :guard t))
      (let ((__function__ 'struct-dinfop))
        (declare (ignorable __function__))
        (and (consp x)
             (eq (car x) :struct-dinfo)
             (mbe :logic (and (alistp (cdr x))
                              (equal (strip-cars (cdr x))
                                     '(components)))
                  :exec (fty::alist-with-carsp (cdr x)
                                               '(components)))
             (b* ((components (cdr (std::da-nth 0 (cdr x)))))
               (type-mapp components)))))

    Theorem: consp-when-struct-dinfop

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