• 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
          • 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-symenv->term

    Signature
    (svdecomp-symenv->term x) → xx
    Arguments
    x — Guard (svdecomp-symenv-p x).
    Returns
    xx — Type (pseudo-termp xx), given the guard.

    Definitions and Theorems

    Function: svdecomp-symenv->term

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

    Theorem: pseudo-termp-of-svdecomp-symenv->term

    (defthm pseudo-termp-of-svdecomp-symenv->term
      (implies (and (svdecomp-symenv-p x))
               (b* ((xx (svdecomp-symenv->term x)))
                 (pseudo-termp xx)))
      :rule-classes :rewrite)

    Theorem: svdecomp-ev-of-svdecomp-symenv->term

    (defthm svdecomp-ev-of-svdecomp-symenv->term
      (equal (svdecomp-ev (svdecomp-symenv->term x)
                          a)
             (svdecomp-ev-symenv x a)))

    Theorem: svdecomp-symenv->term-of-svar-alist-fix-x

    (defthm svdecomp-symenv->term-of-svar-alist-fix-x
      (equal (svdecomp-symenv->term (svar-alist-fix x))
             (svdecomp-symenv->term x)))

    Theorem: svdecomp-symenv->term-svar-alist-equiv-congruence-on-x

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