• 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
                • Atc-symbolic-computation-states
                • Atc-symbolic-execution-rules
                • Atc-gen-ext-declon-lists
                • Atc-function-and-loop-generation
                • Atc-statement-generation
                  • Stmt-gin
                    • Stmt-ginp
                      • Make-stmt-gin
                      • Stmt-gin-fix
                      • Stmt-gin-equiv
                      • Change-stmt-gin
                      • Stmt-gin->var-term-alist
                      • Stmt-gin->typed-formals
                      • Stmt-gin->names-to-avoid
                      • Stmt-gin->prec-tags
                      • Stmt-gin->prec-objs
                      • Stmt-gin->prec-fns
                      • Stmt-gin->inscope
                      • Stmt-gin->thm-index
                      • Stmt-gin->loop-flag
                      • Stmt-gin->limit-var
                      • Stmt-gin->fn-guard
                      • Stmt-gin->fenv-var
                      • Stmt-gin->context
                      • Stmt-gin->compst-var
                      • Stmt-gin->affect
                      • Stmt-gin->proofs
                      • Stmt-gin->fn
                    • Atc-gen-term-type-formula
                    • Atc-gen-stmt
                    • Stmt-gout
                    • Atc-gen-expr
                    • Atc-gen-block-item-var-asg
                    • Atc-gen-return-stmt
                    • Atc-gen-mbt-block-items
                    • Atc-gen-if/ifelse-stmt
                    • Atc-gen-cfun-call-stmt
                    • Atc-gen-block-item-struct-scalar-asg
                    • Atc-gen-block-item-struct-array-asg
                    • Atc-gen-block-item-list-append
                    • Atc-gen-block-item-integer-asg
                    • Atc-gen-block-item-declon
                    • Atc-gen-block-item-array-asg
                    • Atc-gen-loop-stmt
                    • Atc-gen-block-item-list-cons
                    • Atc-uterm-to-components
                    • Atc-gen-block-item-stmt
                    • Lstmt-gin
                    • Atc-gen-block-item-list-one
                    • Atc-gen-block-item-var-decl
                    • Atc-gen-block-item-asg
                    • Atc-gen-call-result-and-endstate
                    • Lstmt-gout
                    • Atc-ensure-formals-not-lost
                    • Atc-gen-block-item-list-none
                    • Atc-var-assignablep
                    • Atc-gen-uterm-result-and-type-formula
                    • Atc-remove-extobj-args
                    • Atc-affecting-term-for-let-p
                    • Atc-vars-assignablep
                    • Atc-make-lets-of-uterms
                    • Atc-symbolp-list
                    • Atc-make-mv-nth-terms
                    • Atc-make-mv-lets-of-uterms
                    • Atc-update-var-term-alist
                    • Irr-stmt-gout
                    • Irr-lstmt-gout
                  • Atc-gen-fileset
                  • Atc-gen-everything
                  • Atc-gen-obj-declon
                  • Atc-gen-fileset-event
                  • Atc-tag-tables
                  • Atc-expression-generation
                  • Atc-generation-contexts
                  • Atc-gen-wf-thm
                  • Term-checkers-atc
                  • Atc-variable-tables
                  • Term-checkers-common
                  • Atc-gen-init-fun-env-thm
                  • Atc-gen-appconds
                  • Read-write-variables
                  • Atc-gen-thm-assert-events
                  • Test*
                  • Atc-gen-prog-const
                  • Atc-gen-expr-bool
                  • Atc-theorem-generation
                  • Atc-tag-generation
                  • Atc-gen-expr-pure
                  • Atc-function-tables
                  • Atc-object-tables
                • Fty-pseudo-term-utilities
                • Atc-term-recognizers
                • Atc-input-processing
                • Atc-shallow-embedding
                • 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
    • Stmt-gin

    Stmt-ginp

    Recognizer for stmt-gin structures.

    Signature
    (stmt-ginp x) → *

    Definitions and Theorems

    Function: stmt-ginp

    (defun stmt-ginp (x)
     (declare (xargs :guard t))
     (let ((__function__ 'stmt-ginp))
      (declare (ignorable __function__))
      (and
       (mbe :logic
            (and (alistp x)
                 (equal (strip-cars x)
                        '(context var-term-alist
                                  typed-formals inscope loop-flag
                                  affect fn fn-guard compst-var fenv-var
                                  limit-var prec-fns prec-tags prec-objs
                                  thm-index names-to-avoid proofs)))
            :exec (fty::alist-with-carsp
                       x
                       '(context var-term-alist
                                 typed-formals inscope loop-flag
                                 affect fn fn-guard compst-var fenv-var
                                 limit-var prec-fns prec-tags prec-objs
                                 thm-index names-to-avoid proofs)))
       (b* ((context (cdr (std::da-nth 0 x)))
            (var-term-alist (cdr (std::da-nth 1 x)))
            (typed-formals (cdr (std::da-nth 2 x)))
            (inscope (cdr (std::da-nth 3 x)))
            (loop-flag (cdr (std::da-nth 4 x)))
            (affect (cdr (std::da-nth 5 x)))
            (fn (cdr (std::da-nth 6 x)))
            (fn-guard (cdr (std::da-nth 7 x)))
            (compst-var (cdr (std::da-nth 8 x)))
            (fenv-var (cdr (std::da-nth 9 x)))
            (limit-var (cdr (std::da-nth 10 x)))
            (prec-fns (cdr (std::da-nth 11 x)))
            (prec-tags (cdr (std::da-nth 12 x)))
            (prec-objs (cdr (std::da-nth 13 x)))
            (thm-index (cdr (std::da-nth 14 x)))
            (names-to-avoid (cdr (std::da-nth 15 x)))
            (proofs (cdr (std::da-nth 16 x))))
         (and (atc-contextp context)
              (symbol-pseudoterm-alistp var-term-alist)
              (atc-symbol-varinfo-alistp typed-formals)
              (atc-symbol-varinfo-alist-listp inscope)
              (booleanp loop-flag)
              (symbol-listp affect)
              (symbolp fn)
              (symbolp fn-guard)
              (symbolp compst-var)
              (symbolp fenv-var)
              (symbolp limit-var)
              (atc-symbol-fninfo-alistp prec-fns)
              (atc-string-taginfo-alistp prec-tags)
              (atc-string-objinfo-alistp prec-objs)
              (posp thm-index)
              (symbol-listp names-to-avoid)
              (booleanp proofs))))))

    Theorem: consp-when-stmt-ginp

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