• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
        • Proof-support
        • Abstract-syntax
          • Syntax-abstraction
          • Expression
            • Expression-fix
            • Expression-case
            • Expressionp
            • Expression-count
            • Expression-equiv
            • Expression-mul
            • Expression-add
            • Expression-var
              • Expression-var->name
              • Make-expression-var
                • Change-expression-var
              • Expression-const
              • Expression-kind
            • Definition
            • Constraint
            • Definition-option
            • Abstract-syntax-operations
            • System
            • Convenience-constructors
            • System-result
            • Expression-result
            • Expression-list-result
            • Definition-result
            • Definition-list-result
            • Constraint-result
            • Constraint-list-result
            • Expression-list
            • Definition-list
            • Constraint-list
          • R1cs-subset
          • Semantics
          • Abstract-syntax-operations
          • Indexed-names
          • Well-formedness
          • Concrete-syntax
          • R1cs-bridge
          • Parser-interface
        • Legacy-defrstobj
        • Proof-checker-array
        • Soft
        • C
        • Farray
        • Rp-rewriter
        • Instant-runoff-voting
        • Imp-language
        • Sidekick
        • Leftist-trees
        • Java
        • Taspi
        • Bitcoin
        • Riscv
        • Des
        • Ethereum
        • X86isa
        • Sha-2
        • Yul
        • Zcash
        • Proof-checker-itp13
        • Regex
        • ACL2-programming-language
        • Json
        • Jfkr
        • Equational
        • Cryptography
        • Poseidon
        • Where-do-i-place-my-book
        • Axe
        • Bigmems
        • Builtins
        • Execloader
        • Aleo
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Expression-var

    Make-expression-var

    Basic constructor macro for expression-var structures.

    Syntax
    (make-expression-var [:name <name>]) 
    

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

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

    Definition

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

    Macro: make-expression-var

    (defmacro make-expression-var (&rest args)
      (std::make-aggregate 'expression-var
                           args '((:name))
                           'make-expression-var
                           nil))

    Function: expression-var

    (defun expression-var (name)
      (declare (xargs :guard (stringp name)))
      (declare (xargs :guard t))
      (let ((__function__ 'expression-var))
        (declare (ignorable __function__))
        (b* ((name (mbe :logic (str-fix name) :exec name)))
          (cons :var (list name)))))