• 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
              • Compilation
              • Static-semantics
                • Type-checking
                • Static-environments
                  • Var/const-sinfo
                  • Ident-sinfo
                    • Ident-sinfo-fix
                    • Ident-sinfo-case
                    • Ident-sinfo-equiv
                    • Ident-sinfop
                      • Ident-sinfo-var/const
                      • Ident-sinfo-struct
                      • Ident-sinfo-function
                      • Ident-sinfo-kind
                    • Function-sinfo
                    • Var/const-sinfo-option
                    • Struct-sinfo-option
                    • Struct-sinfo
                    • Ident-sinfo-option
                    • Function-sinfo-option
                    • Senv-option
                    • Add-var/const-sinfo
                    • Add-ident-sinfo
                    • Senv
                    • Add-struct-sinfo
                    • Add-function-sinfo
                    • Get-var/const-sinfo
                    • Get-struct-sinfo
                    • Get-function-sinfo
                    • Ident-senv
                    • Get-ident-sinfo
                    • Senv-result
                    • Var/const-sinfo-list
                    • Init-senv
                  • Curve-parameterization
                  • Function-recursion
                  • Struct-recursion
                  • Input-checking
                  • Program-checking
                  • Type-maps-for-struct-components
                  • Program-and-input-checking
                  • Output-checking
                • 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
    • Ident-sinfo

    Ident-sinfop

    Recognizer for ident-sinfo structures.

    Signature
    (ident-sinfop x) → *

    Definitions and Theorems

    Function: ident-sinfop

    (defun ident-sinfop (x)
      (declare (xargs :guard t))
      (let ((__function__ 'ident-sinfop))
        (declare (ignorable __function__))
        (and (consp x)
             (cond ((or (atom x) (eq (car x) :var/const))
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (var/const-sinfop get))))
                   ((eq (car x) :function)
                    (and (true-listp (cdr x))
                         (eql (len (cdr x)) 1)
                         (b* ((get (std::da-nth 0 (cdr x))))
                           (function-sinfop get))))
                   (t (and (eq (car x) :struct)
                           (and (true-listp (cdr x))
                                (eql (len (cdr x)) 1))
                           (b* ((get (std::da-nth 0 (cdr x))))
                             (struct-sinfop get))))))))

    Theorem: consp-when-ident-sinfop

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