• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • 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
            • Svex-focused-equivalence-checking
            • A4vec-operations
            • Svexlist-eval-gl
            • Aig-symbolic-arithmetic
            • Svex-varmasks/env->aig-env-rec
            • Svex-varmasks->a4env-rec
            • Svexlist/env-list-eval-gl
            • 4vmask-to-a4vec-rec-env
            • 4vmask-to-a4vec-rec
            • Svexlist->a4vecs-for-varlist
            • Svex-varmasks/env->aig-env-stats-rec
            • Svexlist->a4vec-nrev
            • A4veclist/svex-env-list-eval
            • A4vec
            • Svexlist-x-out-unused-vars
            • Svex->a4vec-memotable-correctp
            • A4vec/svex-env-eval
            • Svex-varmasks->a4env
            • Svex-varmasks/env->aig-env-rec-log
            • 4vmask-to-a4vec-env
            • 4veclist-from-bitlist-log-rec
            • Svex-apply-aig
            • Svexlist-vars-for-symbolic-eval
            • Nat-bool-a4env-upper-boundp
            • 4vmask-to-a4vec
            • Svexlist/env-list-vars-for-symbolic-eval
              • Svex-maskbits-for-vars
              • Svexlist->a4vec-aig-env-for-varlist
              • 4vec-from-bitlist
              • Svexlist-full-masks-p
              • Svex-varmasks/env->aig-env-stats
              • Svex-varmasks/env->aig-env
              • Svexlistlist->a4vec
              • Svex-const-concat-args
              • Svex-mask-alist-extract-vars
              • Svexlist->a4vec-top
              • Nat-bool-a4vec-upper-boundp
              • Nat-bool-a4env-lower-boundp
              • Maybe-a3vec-fix
              • Svex-maskbits-ok
              • Svex-envlist-check-boolmasks
              • Svex-env-check-boolmasks
              • Nat-bool-list-upper-boundp
              • Nat-bool-a4vec-lower-boundp
              • Maybe-svexlist-rewrite-fixpoint
              • 4vmask-to-a4vec-varcount
              • A4vec-eval
              • Svexlist-nth
              • A4veclist-nth
              • Nat-bool-list-lower-boundp
              • 4veclist-from-bitlist
              • V2i-first-n
              • A4veclist-eval-gl
              • Svex-envlist-keyset
              • Svex-a4vec-env-eval
              • A4veclist/env-list-eval
              • Svexlist-variable-mask-alist
              • Sparseint-nfix
              • A4veclist-length
              • A4veclist-eval
              • 4vec-boolmaskp
              • Nat-bool-list-nats
              • Nat-bool-a4env-p
              • Nat-bool-listp
              • A4veclist->aiglist
              • Svexlist-rewrite-fixpoint-memo
              • Nat-bool-a4vec-p
              • A4vec->aiglist
              • Svex-is-const-concat
              • Nat-bool-a4env-vars
              • Svexlist-mask-alist-memo
              • Nat-bool-a4vec-vars
              • Svexlist-vars-memo
              • A4vec-constantp
              • Svex-aig-memotable
              • Svex-a4vec-env
              • A4veclistlist
              • A4veclist
              • Symbolic-params-x-out-cond
            • Functions
            • 4vmask
            • Why-infinite-width
            • Svex-vars
            • Evaluation
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Bit-blasting

    Svexlist/env-list-vars-for-symbolic-eval

    Signature
    (svexlist/env-list-vars-for-symbolic-eval x envs symbolic-params) 
      → 
    vars
    Arguments
    x — Guard (svexlist-p x).
    envs — Guard (svex-envlist-p envs).
    symbolic-params — Guard (alistp symbolic-params).
    Returns
    vars — Type (svarlist-p vars).

    Definitions and Theorems

    Function: svexlist/env-list-vars-for-symbolic-eval

    (defun svexlist/env-list-vars-for-symbolic-eval
           (x envs symbolic-params)
     (declare (xargs :guard (and (svexlist-p x)
                                 (svex-envlist-p envs)
                                 (alistp symbolic-params))))
     (let ((__function__ 'svexlist/env-list-vars-for-symbolic-eval))
      (declare (ignorable __function__))
      (b*
       ((allvars (assoc :allvars symbolic-params))
        (vars
         (if allvars (svexlist-vars-memo x)
          (ec-call (svarlist-fix (cdr (assoc :vars symbolic-params))))))
        (svars (mbe :logic (mergesort vars)
                    :exec (if (setp vars) vars (mergesort vars))))
        ((when allvars) (hons-copy svars))
        (keys (svex-envlist-keyset envs)))
       (hons-copy (mbe :logic (union keys svars)
                       :exec
                       (if (subset keys svars)
                           svars
                         (if (eq svars nil)
                             keys
                           (union keys svars))))))))

    Theorem: svarlist-p-of-svexlist/env-list-vars-for-symbolic-eval

    (defthm svarlist-p-of-svexlist/env-list-vars-for-symbolic-eval
      (b* ((vars (svexlist/env-list-vars-for-symbolic-eval
                      x envs symbolic-params)))
        (svarlist-p vars))
      :rule-classes :rewrite)

    Theorem: svexlist/env-list-vars-for-symbolic-eval-sufficient

    (defthm svexlist/env-list-vars-for-symbolic-eval-sufficient
      (b* ((?vars (svexlist/env-list-vars-for-symbolic-eval
                       x envs symbolic-params)))
        (subsetp (intersection-equal (svexlist-vars x)
                                     (svex-envlist-keyset envs))
                 vars)))

    Theorem: svexlist/env-list-vars-for-symbolic-eval-of-svexlist-fix-x

    (defthm svexlist/env-list-vars-for-symbolic-eval-of-svexlist-fix-x
     (equal
         (svexlist/env-list-vars-for-symbolic-eval (svexlist-fix x)
                                                   envs symbolic-params)
         (svexlist/env-list-vars-for-symbolic-eval
              x envs symbolic-params)))

    Theorem: svexlist/env-list-vars-for-symbolic-eval-svexlist-equiv-congruence-on-x

    (defthm
     svexlist/env-list-vars-for-symbolic-eval-svexlist-equiv-congruence-on-x
     (implies
      (svexlist-equiv x x-equiv)
      (equal
       (svexlist/env-list-vars-for-symbolic-eval x envs symbolic-params)
       (svexlist/env-list-vars-for-symbolic-eval
            x-equiv envs symbolic-params)))
     :rule-classes :congruence)

    Theorem: svexlist/env-list-vars-for-symbolic-eval-of-svex-envlist-fix-envs

    (defthm
      svexlist/env-list-vars-for-symbolic-eval-of-svex-envlist-fix-envs
      (equal (svexlist/env-list-vars-for-symbolic-eval
                  x (svex-envlist-fix envs)
                  symbolic-params)
             (svexlist/env-list-vars-for-symbolic-eval
                  x envs symbolic-params)))

    Theorem: svexlist/env-list-vars-for-symbolic-eval-svex-envlist-equiv-congruence-on-envs

    (defthm
     svexlist/env-list-vars-for-symbolic-eval-svex-envlist-equiv-congruence-on-envs
     (implies
      (svex-envlist-equiv envs envs-equiv)
      (equal
       (svexlist/env-list-vars-for-symbolic-eval x envs symbolic-params)
       (svexlist/env-list-vars-for-symbolic-eval
            x envs-equiv symbolic-params)))
     :rule-classes :congruence)