• 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
          • Definition
          • Constraint
          • Definition-option
          • Abstract-syntax-operations
            • Expression-var-list
            • Lookup-definition
            • Constrel
              • Constrel-fix
              • Constrel-equiv
              • Make-constrel
                • Change-constrel
                • Constrel->name
                • Constrel->args
                • Constrelp
              • Constraint-constrels
              • Constraint-list-constrels
              • Constraint-rels
              • Constraint-list-rels
              • Expression-sub
              • Expression-const/var-listp
              • Expression-var-listp
              • Expression-neg
              • Expression-list-vars
              • Expression-vars
              • Definition-free-vars
              • Constraint-vars
              • Constraint-list-vars
              • Constrel-set
            • 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
            • Expression-var-list
            • Lookup-definition
            • Constrel
              • Constrel-fix
              • Constrel-equiv
              • Make-constrel
                • Change-constrel
                • Constrel->name
                • Constrel->args
                • Constrelp
              • Constraint-constrels
              • Constraint-list-constrels
              • Constraint-rels
              • Constraint-list-rels
              • Expression-sub
              • Expression-const/var-listp
              • Expression-var-listp
              • Expression-neg
              • Expression-list-vars
              • Expression-vars
              • Definition-free-vars
              • Constraint-vars
              • Constraint-list-vars
              • Constrel-set
            • 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
      • Constrel

      Make-constrel

      Basic constructor macro for constrel structures.

      Syntax
      (make-constrel [:name <name>] 
                     [:args <args>]) 
      

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

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

      Definition

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

      Macro: make-constrel

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

      Function: constrel

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