• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Svex-compilation
        • Moddb
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
          • Bit-blasting
          • Functions
          • 4vmask
          • Why-infinite-width
          • Svex-vars
          • Evaluation
            • Svex-xeval
            • Svex-mono-eval
            • Svex-eval
            • Svex-apply
            • Svex-env
            • Svex-alist-eval
            • Svar-boolmasks-lookup
            • Svex-s4eval
            • Svexlist-unquote
              • Svex-alist-eval-for-symbolic
              • Svexlist-eval
              • Svexlist-quotesp
              • Svar-boolmasks
              • Svexlist-s4eval
              • Svexlist-eval-for-symbolic
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Evaluation

    Svexlist-unquote

    Signature
    (svexlist-unquote x) → objs
    Arguments
    x — Guard (svexlist-p x).
    Returns
    objs — Type (4veclist-p objs).

    Definitions and Theorems

    Function: svexlist-unquote

    (defun svexlist-unquote (x)
      (declare (xargs :guard (svexlist-p x)))
      (declare (xargs :guard (svexlist-quotesp x)))
      (let ((__function__ 'svexlist-unquote))
        (declare (ignorable __function__))
        (mbe :logic
             (if (atom x)
                 nil
               (cons (svex-quote->val (car x))
                     (svexlist-unquote (cdr x))))
             :exec x)))

    Theorem: 4veclist-p-of-svexlist-unquote

    (defthm 4veclist-p-of-svexlist-unquote
      (b* ((objs (svexlist-unquote x)))
        (4veclist-p objs))
      :rule-classes :rewrite)

    Theorem: svexlist-unquote-correct

    (defthm svexlist-unquote-correct
      (implies (svexlist-quotesp x)
               (equal (svexlist-eval x env)
                      (svexlist-unquote x))))

    Theorem: svexlist-unquote-of-svexlist-fix-x

    (defthm svexlist-unquote-of-svexlist-fix-x
      (equal (svexlist-unquote (svexlist-fix x))
             (svexlist-unquote x)))

    Theorem: svexlist-unquote-svexlist-equiv-congruence-on-x

    (defthm svexlist-unquote-svexlist-equiv-congruence-on-x
      (implies (svexlist-equiv x x-equiv)
               (equal (svexlist-unquote x)
                      (svexlist-unquote x-equiv)))
      :rule-classes :congruence)