• 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
                • 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-while
                • Xeq-stmt-dowhile
                • Gin
                • 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
    • Gout

    Make-gout

    Basic constructor macro for gout structures.

    Syntax
    (make-gout [:events <events>] 
               [:thm-index <thm-index>] 
               [:thm-name <thm-name>] 
               [:vartys <vartys>]) 
    

    This is the usual way to construct gout structures. It simply conses together a structure with the specified fields.

    This macro generates a new gout structure from scratch. See also change-gout, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-gout

    (defmacro make-gout (&rest args)
      (std::make-aggregate 'gout
                           args
                           '((:events)
                             (:thm-index)
                             (:thm-name)
                             (:vartys))
                           'make-gout
                           nil))

    Function: gout

    (defun gout (events thm-index thm-name vartys)
     (declare (xargs :guard (and (pseudo-event-form-listp events)
                                 (posp thm-index)
                                 (symbolp thm-name)
                                 (c::ident-type-mapp vartys))))
     (declare (xargs :guard t))
     (let ((__function__ 'gout))
      (declare (ignorable __function__))
      (b* ((events (mbe :logic (acl2::pseudo-event-form-list-fix events)
                        :exec events))
           (thm-index (mbe :logic (pos-fix thm-index)
                           :exec thm-index))
           (thm-name (mbe :logic (acl2::symbol-fix thm-name)
                          :exec thm-name))
           (vartys (mbe :logic (c::ident-type-map-fix vartys)
                        :exec vartys)))
        (list (cons 'events events)
              (cons 'thm-index thm-index)
              (cons 'thm-name thm-name)
              (cons 'vartys vartys)))))