• 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-binary
              • Xeq-block-item-list-cons
              • Xeq-stmt-ifelse
              • Xeq-expr-cond
              • Xeq-expr-const
              • Gen-param-thms
              • Gen-expr-thm
              • Gen-from-params
              • Xeq-decl-decl
              • Xeq-expr-unary
              • Xeq-stmt-dowhile
              • Xeq-expr-cast
              • Lift-expr-pure-thm
              • Xeq-stmt-while
              • Gout
                • Goutp
                  • Gout-fix
                  • Make-gout
                  • Gout-equiv
                  • Change-gout
                  • Gout->vartys
                  • Gout->thm-name
                  • Gout->thm-index
                  • Gout->events
                • Gen-block-item-list-thm
                • Xeq-stmt-if
                • Gin
                • Xeq-expr-ident
                • Gen-expr-pure-thm
                • Gen-block-item-thm
                • Xeq-stmt-expr
                • Gen-initer-single-thm
                • Gen-init-scope-thm
                • Xeq-stmt-return
                • Gen-decl-thm
                • Gen-stmt-thm
                • Xeq-block-item-decl
                • Xeq-initer-single
                • Xeq-block-item-stmt
                • Xeq-stmt-compound
                • 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
    • Gout

    Goutp

    Recognizer for gout structures.

    Signature
    (goutp x) → *

    Definitions and Theorems

    Function: goutp

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

    Theorem: consp-when-goutp

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