• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Riscv
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
        • Primitive-functions
        • Translated-terms
          • Tterm-constant-list->value-list
          • Tterm-free-vars
          • Tterm-option
          • Tterm-constant-list
          • Tterm-case-constant-listp
          • Lift-term
          • Tterms
            • Tterm
            • Tfunction
              • Tfunction-case
              • Tfunction-equiv
              • Tfunction-lambda
                • Tfunction-lambda->parameters
                • Make-tfunction-lambda
                  • Tfunction-lambda->body
                  • Change-tfunction-lambda
                • Tfunction-named
                • Tfunctionp
                • Tfunction-kind
                • Tfunction-fix
                • Tfunction-count
              • Tterm-list
          • Values
          • Evaluation
          • Program-equivalence
          • Functions
          • Packages
          • Programs
          • Interpreter
          • Evaluation-states
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Aleo
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Community
      • Proof-automation
      • ACL2
      • Macro-libraries
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Tfunction-lambda

    Make-tfunction-lambda

    Basic constructor macro for tfunction-lambda structures.

    Syntax
    (make-tfunction-lambda [:parameters <parameters>] 
                           [:body <body>]) 
    

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

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

    Definition

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

    Macro: make-tfunction-lambda

    (defmacro make-tfunction-lambda (&rest args)
      (std::make-aggregate 'tfunction-lambda
                           args '((:parameters) (:body))
                           'make-tfunction-lambda
                           nil))

    Function: tfunction-lambda

    (defun tfunction-lambda (parameters body)
      (declare (xargs :guard (and (symbol-value-listp parameters)
                                  (ttermp body))))
      (declare (xargs :guard t))
      (let ((__function__ 'tfunction-lambda))
        (declare (ignorable __function__))
        (b* ((parameters (mbe :logic (symbol-value-list-fix parameters)
                              :exec parameters))
             (body (mbe :logic (tterm-fix body)
                        :exec body)))
          (cons :lambda (list parameters body)))))