• 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
          • Functions
          • 4vmask
          • Why-infinite-width
          • Svex-vars
          • Evaluation
          • Values
            • 4vec
            • 4vec-<<=
              • 4vec-monotonicity
              • Svex-monotonify
              • Svex-alist-partial-monotonic
              • Svex-alist-monotonic-on-vars
              • 4veclist-<<=
              • Svexlist-partial-monotonic
              • Svex-partial-monotonic
              • Svex-alist-<<=
              • Svex-alist-ovmonotonic
              • Svexlist-<<=
              • Svex-env-<<=
                • Svex-alist-ovcongruent
                • Svex-alist-monotonic-p
                • Svexlist-monotonic-on-vars
                • Svex-monotonic-on-vars
                • Svex-<<=
                • Svexlist-monotonic-p
                • 4vec-xfree-p
                • Svex-apply-monotonocity
                • Svexlist-ovmonotonic
                • Svexlist-ovcongruent
                • Svex-ovmonotonic
                • Svex-monotonic-p
              • 3vec
              • 2vec
              • 2vecx
              • 2vecnatx
              • 4vec-x
              • 4vec-1x
              • 4vec-1z
              • 4vec-z
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • 4vec-<<=
    • Svex-env

    Svex-env-<<=

    (svex-env-<<= x y) checks whether an entire svex-env conservatively approximates another: i.e., is every variable's value in x an approximation of its value in y?

    Definitions and Theorems

    Theorem: svex-env-<<=-necc

    (defthm svex-env-<<=-necc
      (implies (svex-env-<<= x y)
               (4vec-<<= (svex-env-lookup var x)
                         (svex-env-lookup var y))))

    Theorem: svex-env-<<=-witnessing-witness-rule-correct

    (defthm svex-env-<<=-witnessing-witness-rule-correct
      (implies (not ((lambda (var y x)
                       (not (4vec-<<= (svex-env-lookup var x)
                                      (svex-env-lookup var y))))
                     (svex-env-<<=-witness x y)
                     y x))
               (svex-env-<<= x y))
      :rule-classes nil)

    Theorem: svex-env-<<=-instancing-instance-rule-correct

    (defthm svex-env-<<=-instancing-instance-rule-correct
      (implies (not (4vec-<<= (svex-env-lookup var x)
                              (svex-env-lookup var y)))
               (not (svex-env-<<= x y)))
      :rule-classes nil)

    Theorem: svex-env-<<=-of-svex-env-fix-x

    (defthm svex-env-<<=-of-svex-env-fix-x
      (equal (svex-env-<<= (svex-env-fix x) y)
             (svex-env-<<= x y)))

    Theorem: svex-env-<<=-svex-env-equiv-congruence-on-x

    (defthm svex-env-<<=-svex-env-equiv-congruence-on-x
      (implies (svex-env-equiv x x-equiv)
               (equal (svex-env-<<= x y)
                      (svex-env-<<= x-equiv y)))
      :rule-classes :congruence)

    Theorem: svex-env-<<=-of-svex-env-fix-y

    (defthm svex-env-<<=-of-svex-env-fix-y
      (equal (svex-env-<<= x (svex-env-fix y))
             (svex-env-<<= x y)))

    Theorem: svex-env-<<=-svex-env-equiv-congruence-on-y

    (defthm svex-env-<<=-svex-env-equiv-congruence-on-y
      (implies (svex-env-equiv y y-equiv)
               (equal (svex-env-<<= x y)
                      (svex-env-<<= x y-equiv)))
      :rule-classes :congruence)

    Theorem: svex-env-<<=-empty

    (defthm svex-env-<<=-empty
      (svex-env-<<= nil x))