• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
        • C
          • Syntax-for-tools
          • Atc
          • Transformation-tools
            • Simpadd0
            • Proof-generation
              • Xeq-fundef
              • Xeq-expr-cond
              • Xeq-expr-binary
              • Xeq-block-item-list-cons
              • Xeq-stmt-ifelse
              • Xeq-expr-const
              • Xeq-declon-declon
              • Gen-param-thms
              • Gen-from-params
              • Gout
              • Gen-block-item-list-thm
              • Xeq-stmt-while
              • Xeq-stmt-dowhile
              • Gin
                • Ginp
                  • Gin-fix
                  • Make-gin
                  • Gin-equiv
                  • Change-gin
                  • Gin->vartys
                  • Gin->events
                  • Gin->const-new
                  • Gin->thm-index
                  • Gin->ienv
                • Xeq-expr-ident
                • Gen-block-item-thm
                • Xeq-stmt-if
                • Xeq-expr-cast
                • Gen-initer-single-thm
                • Gen-init-scope-thm
                • Gen-expr-thm
                • Gen-declon-thm
                • Xeq-expr-unary
                • Gen-stmt-thm
                • Xeq-stmt-return
                • Xeq-stmt-expr
                • Xeq-block-item-declon
                • Xeq-block-item-stmt
                • Xeq-stmt-compound
                • Xeq-initer-single
                • Gen-thm-name
                • Gin-update
                • Gen-var-assertions
                • Tyspecseq-to-type
                • Xeq-block-item-list-empty
                • Gout-no-thm
                • Irr-gout
              • Split-gso
              • Wrap-fn
              • Constant-propagation
              • Specialize
              • Split-fn
              • Split-fn-when
              • Split-all-gso
              • Copy-fn
              • Variables-in-computation-states
              • Rename
              • Utilities
              • Proof-generation-theorems
              • Input-processing
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Gin

    Ginp

    Recognizer for gin structures.

    Signature
    (ginp x) → *

    Definitions and Theorems

    Function: ginp

    (defun ginp (x)
     (declare (xargs :guard t))
     (let ((__function__ 'ginp))
      (declare (ignorable __function__))
      (and
       (mbe
          :logic (and (alistp x)
                      (equal (strip-cars x)
                             '(ienv const-new vartys events thm-index)))
          :exec (fty::alist-with-carsp
                     x
                     '(ienv const-new vartys events thm-index)))
       (b* ((ienv (cdr (std::da-nth 0 x)))
            (const-new (cdr (std::da-nth 1 x)))
            (vartys (cdr (std::da-nth 2 x)))
            (events (cdr (std::da-nth 3 x)))
            (thm-index (cdr (std::da-nth 4 x))))
         (and (c$::ienvp ienv)
              (symbolp const-new)
              (c::ident-type-mapp vartys)
              (pseudo-event-form-listp events)
              (posp thm-index))))))

    Theorem: consp-when-ginp

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