• 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-alist-monotonic-p

    Definitions and Theorems

    Theorem: svex-alist-monotonic-p-necc

    (defthm svex-alist-monotonic-p-necc
      (implies (svex-alist-monotonic-p x)
               (implies (svex-env-<<= env1 env2)
                        (svex-env-<<= (svex-alist-eval x env1)
                                      (svex-alist-eval x env2)))))

    Theorem: svex-alist-eval-equiv-implies-equal-svex-alist-monotonic-p-1

    (defthm svex-alist-eval-equiv-implies-equal-svex-alist-monotonic-p-1
      (implies (svex-alist-eval-equiv x x-equiv)
               (equal (svex-alist-monotonic-p x)
                      (svex-alist-monotonic-p x-equiv)))
      :rule-classes (:congruence))

    Theorem: svex-monotonic-p-of-svex-lookup-when-svex-alist-monotonic-p

    (defthm svex-monotonic-p-of-svex-lookup-when-svex-alist-monotonic-p
      (implies (svex-alist-monotonic-p x)
               (svex-monotonic-p (svex-lookup k x))))

    Theorem: svex-monotonic-p-of-svex-compose-lookup-when-svex-alist-monotonic-p

    (defthm
     svex-monotonic-p-of-svex-compose-lookup-when-svex-alist-monotonic-p
     (implies (svex-alist-monotonic-p x)
              (svex-monotonic-p (svex-compose-lookup k x))))

    Function: svex-alist-monotonic-lookup-witness

    (defun svex-alist-monotonic-lookup-witness (x)
      (mv-let (env1 env2)
              (svex-alist-monotonic-p-witness x)
        (svex-env-<<=-witness (svex-alist-eval x env1)
                              (svex-alist-eval x env2))))

    Theorem: svex-alist-monotonic-in-terms-of-lookup

    (defthm svex-alist-monotonic-in-terms-of-lookup
      (equal (svex-alist-monotonic-p x)
             (let ((var (svex-alist-monotonic-lookup-witness x)))
               (svex-monotonic-p (svex-lookup var x))))
      :rule-classes ((:definition :install-body nil)))