• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
    • Macro-libraries
    • 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
                • 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-fn-info
                    • Atc-fn-info-fix
                    • Make-atc-fn-info
                      • Atc-fn-infop
                      • Atc-fn-info-equiv
                      • Change-atc-fn-info
                      • Atc-fn-info->measure-nat-thm
                      • Atc-fn-info->correct-mod-thm
                      • Atc-fn-info->result-thm
                      • Atc-fn-info->out-type
                      • Atc-fn-info->in-types
                      • Atc-fn-info->fun-env-thm
                      • Atc-fn-info->extobjs
                      • Atc-fn-info->correct-thm
                      • Atc-fn-info->loop?
                      • Atc-fn-info->limit
                      • Atc-fn-info->guard
                      • Atc-fn-info->affect
                    • Atc-symbol-fninfo-alist-to-result-thms
                    • Atc-symbol-fninfo-alist-to-measure-nat-thms
                    • Atc-symbol-fninfo-alist-to-fun-env-thms
                    • Atc-symbol-fninfo-alist-to-correct-thms
                    • Atc-symbol-fninfo-alist
                  • 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
    • Atc-fn-info

    Make-atc-fn-info

    Basic constructor macro for atc-fn-info structures.

    Syntax
    (make-atc-fn-info [:out-type <out-type>] 
                      [:in-types <in-types>] 
                      [:loop? <loop?>] 
                      [:affect <affect>] 
                      [:extobjs <extobjs>] 
                      [:result-thm <result-thm>] 
                      [:correct-thm <correct-thm>] 
                      [:correct-mod-thm <correct-mod-thm>] 
                      [:measure-nat-thm <measure-nat-thm>] 
                      [:fun-env-thm <fun-env-thm>] 
                      [:limit <limit>] 
                      [:guard <guard>]) 
    

    This is the usual way to construct atc-fn-info structures. It simply conses together a structure with the specified fields.

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

    Definition

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

    Macro: make-atc-fn-info

    (defmacro make-atc-fn-info (&rest args)
      (std::make-aggregate 'atc-fn-info
                           args
                           '((:out-type)
                             (:in-types)
                             (:loop?)
                             (:affect)
                             (:extobjs)
                             (:result-thm)
                             (:correct-thm)
                             (:correct-mod-thm)
                             (:measure-nat-thm)
                             (:fun-env-thm)
                             (:limit)
                             (:guard))
                           'make-atc-fn-info
                           nil))

    Function: atc-fn-info

    (defun atc-fn-info
           (out-type in-types loop? affect extobjs
                     result-thm correct-thm correct-mod-thm
                     measure-nat-thm fun-env-thm limit guard)
      (declare (xargs :guard (and (type-optionp out-type)
                                  (type-listp in-types)
                                  (stmt-optionp loop?)
                                  (symbol-listp affect)
                                  (symbol-listp extobjs)
                                  (symbolp result-thm)
                                  (symbolp correct-thm)
                                  (symbolp correct-mod-thm)
                                  (symbolp measure-nat-thm)
                                  (symbolp fun-env-thm)
                                  (pseudo-termp limit)
                                  (symbolp guard))))
      (declare (xargs :guard t))
      (let ((__function__ 'atc-fn-info))
        (declare (ignorable __function__))
        (b* ((out-type (mbe :logic (type-option-fix out-type)
                            :exec out-type))
             (in-types (mbe :logic (type-list-fix in-types)
                            :exec in-types))
             (loop? (mbe :logic (stmt-option-fix loop?)
                         :exec loop?))
             (affect (mbe :logic (symbol-list-fix affect)
                          :exec affect))
             (extobjs (mbe :logic (symbol-list-fix extobjs)
                           :exec extobjs))
             (result-thm (mbe :logic (symbol-fix result-thm)
                              :exec result-thm))
             (correct-thm (mbe :logic (symbol-fix correct-thm)
                               :exec correct-thm))
             (correct-mod-thm (mbe :logic (symbol-fix correct-mod-thm)
                                   :exec correct-mod-thm))
             (measure-nat-thm (mbe :logic (symbol-fix measure-nat-thm)
                                   :exec measure-nat-thm))
             (fun-env-thm (mbe :logic (symbol-fix fun-env-thm)
                               :exec fun-env-thm))
             (limit (mbe :logic (pseudo-term-fix limit)
                         :exec limit))
             (guard (mbe :logic (symbol-fix guard)
                         :exec guard)))
          (list (cons 'out-type out-type)
                (cons 'in-types in-types)
                (cons 'loop? loop?)
                (cons 'affect affect)
                (cons 'extobjs extobjs)
                (cons 'result-thm result-thm)
                (cons 'correct-thm correct-thm)
                (cons 'correct-mod-thm correct-mod-thm)
                (cons 'measure-nat-thm measure-nat-thm)
                (cons 'fun-env-thm fun-env-thm)
                (cons 'limit limit)
                (cons 'guard guard)))))