• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
          • Decomp.lisp
            • Svex-env-compat-union
            • Svdecomp-symenv-compat-union
            • Svexlists-rewrite-until-same
            • Svdecomp-normalize-svexlist-eval
            • Svex-decomp-process-env-term
            • Map-alist-term-keys-to-val-terms
            • Envmap-extract-union-env
            • Alist-collect-compositions
            • Envmap-entry-extract-env
            • Svdecomp-env-extract
            • Svex-alist-evaluation-to-symenv
            • Envmap-entry-to-term-alist
            • Svar-lookup
            • Svar-alist-keys
            • Map-alist-const-keys-to-val-terms
            • Svdecomp-svex?-eval-compare-term
            • Svdecomp-equal-svex-evals-metafun
            • Svdecomp-equal-svex-alist-evals-metafun
            • Envmap->svex-alist
            • Envmap-to-term-alist
            • Svdecomp-equal-svexlist-evals-metafun
            • Pseudo-term-fix
            • Svdecomp-symenv->term
            • Svdecomp-svex-alist-eval-metafun
            • Svdecomp-ev-symenv
              • Svdecomp-svexlist-eval-metafun
              • Svdecomp-svex-eval-metafun
              • Svdecomp-ev-envmap
              • Envmap
              • Svex-alist-alist
              • Svdecomp-symenv
              • Svdecomp-get-rewrite-limit
            • Svdecomp-hints
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Decomp.lisp

    Svdecomp-ev-symenv

    Signature
    (svdecomp-ev-symenv x env) → res
    Arguments
    x — Guard (svdecomp-symenv-p x).
    Returns
    res — Type (svar-alist-p res).

    Definitions and Theorems

    Function: svdecomp-ev-symenv

    (defun svdecomp-ev-symenv (x env)
      (declare (xargs :guard (svdecomp-symenv-p x)))
      (let ((__function__ 'svdecomp-ev-symenv))
        (declare (ignorable __function__))
        (if (atom x)
            nil
          (if (mbt (and (consp (car x)) (svar-p (caar x))))
              (cons (cons (caar x)
                          (svdecomp-ev (cdar x) env))
                    (svdecomp-ev-symenv (cdr x) env))
            (svdecomp-ev-symenv (cdr x) env)))))

    Theorem: svar-alist-p-of-svdecomp-ev-symenv

    (defthm svar-alist-p-of-svdecomp-ev-symenv
      (b* ((res (svdecomp-ev-symenv x env)))
        (svar-alist-p res))
      :rule-classes :rewrite)

    Theorem: eval-lookup-of-svdecomp-ev-symenv

    (defthm eval-lookup-of-svdecomp-ev-symenv
      (equal (svar-lookup k (svdecomp-ev-symenv x env))
             (and (svar-lookup k x)
                  (cons (svar-fix k)
                        (svdecomp-ev (cdr (svar-lookup k x))
                                     env)))))

    Theorem: svdecomp-ev-symenv-of-svar-alist-fix-x

    (defthm svdecomp-ev-symenv-of-svar-alist-fix-x
      (equal (svdecomp-ev-symenv (svar-alist-fix x)
                                 env)
             (svdecomp-ev-symenv x env)))

    Theorem: svdecomp-ev-symenv-svar-alist-equiv-congruence-on-x

    (defthm svdecomp-ev-symenv-svar-alist-equiv-congruence-on-x
      (implies (svar-alist-equiv x x-equiv)
               (equal (svdecomp-ev-symenv x env)
                      (svdecomp-ev-symenv x-equiv env)))
      :rule-classes :congruence)