• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Error-checking
        • Apt
        • Abnf
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Prime-field-constraint-systems
        • Soft
        • Bv
        • Imp-language
        • Event-macros
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
          • Primitive-functions
          • Translated-terms
          • Values
            • Value
            • 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
            • Value-list-of
              • Lower-value
              • Value-list
              • Symbol-value-list
              • Symbol-value-set
              • Value-nil
              • Value-t
            • Evaluation
            • Program-equivalence
            • Functions
            • Packages
            • Programs
            • Interpreter
            • Evaluation-states
          • Prime-fields
          • Java
          • C
          • Syntheto
          • Number-theory
          • Cryptography
          • Lists-light
          • File-io-light
          • Json
          • Built-ins
          • Solidity
          • Axe
          • Std-extensions
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Execloader
        • Axe
      • Testing-utilities
      • Math
    • Values

    Value-list-of

    Make a meta-level list value from a list of meta-level values.

    Signature
    (value-list-of values) → value
    Arguments
    values — Guard (value-listp values).
    Returns
    value — Type (valuep value).

    Definitions and Theorems

    Function: value-list-of

    (defun value-list-of (values)
           (declare (xargs :guard (value-listp values)))
           (let ((__function__ 'value-list-of))
                (declare (ignorable __function__))
                (cond ((endp values) (value-nil))
                      (t (value-cons (car values)
                                     (value-list-of (cdr values)))))))

    Theorem: valuep-of-value-list-of

    (defthm valuep-of-value-list-of
            (b* ((value (value-list-of values)))
                (valuep value))
            :rule-classes :rewrite)

    Theorem: value-list-of-of-value-list-fix-values

    (defthm value-list-of-of-value-list-fix-values
            (equal (value-list-of (value-list-fix values))
                   (value-list-of values)))

    Theorem: value-list-of-value-list-equiv-congruence-on-values

    (defthm value-list-of-value-list-equiv-congruence-on-values
            (implies (value-list-equiv values values-equiv)
                     (equal (value-list-of values)
                            (value-list-of values-equiv)))
            :rule-classes :congruence)