• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
            • Value
              • Valuep
              • Value-case
              • Value-fix
              • Value-equiv
              • Value-count
              • Value-cons
                • Make-value-cons
                  • Value-cons->cdr
                  • Value-cons->car
                  • Change-value-cons
                • Value-symbol
                • Value-string
                • Value-number
                • Value-character
                • Value-kind
              • Symbol-value
              • Lower-symbol
              • Lift-symbol-list
              • Symbol-value-option
              • Value-option
              • Lift-value
              • Lift-symbol
              • Value-rational->get
              • Value-integer->get
              • Value-case-rational
              • Value-case-integer
              • Value-symbol-list
              • Lower-value
              • Value-list-of
              • Value-list
              • Symbol-value-list
              • Symbol-value-set
              • Value-t
              • Value-nil
            • Evaluation
            • Program-equivalence
            • Functions
            • Packages
            • Programs
            • Interpreter
            • Evaluation-states
          • 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
    • Value-cons

    Make-value-cons

    Basic constructor macro for value-cons structures.

    Syntax
    (make-value-cons [:car <car>] 
                     [:cdr <cdr>]) 
    

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

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

    Definition

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

    Macro: make-value-cons

    (defmacro make-value-cons (&rest args)
      (std::make-aggregate 'value-cons
                           args '((:car) (:cdr))
                           'make-value-cons
                           nil))

    Function: value-cons

    (defun value-cons (car cdr)
      (declare (xargs :guard (and (valuep car) (valuep cdr))))
      (declare (xargs :guard t))
      (let ((__function__ 'value-cons))
        (declare (ignorable __function__))
        (b* ((car (mbe :logic (value-fix car) :exec car))
             (cdr (mbe :logic (value-fix cdr) :exec cdr)))
          (cons :cons (list car cdr)))))