• Top
    • Documentation
    • Books
    • Recursion-and-induction
    • Boolean-reasoning
    • Debugging
    • Projects
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
        • Svex-fixpoint-decomposition-methodology
        • Sv-versus-esim
        • Svex-decomp
        • Svex-compose-dfs
        • Moddb
        • Svex-compilation
        • Svmods
        • Svstmt
        • Sv-tutorial
        • Expressions
          • Rewriting
          • Svex
            • Svar
            • Least-fixpoint
            • Svex-p
            • Svex-select
            • Svex-alist
              • Svex-alist-p
              • Svex-alist-fix
              • Svex-alist-vars
              • Svex-alist-eval
              • Svex-lookup
              • Svex-fastacons
              • Svex-alist-vals
              • Svex-acons
              • Svex-alist-keys
              • Svex-alist-equiv
              • Svex-fastlookup
              • Svex-equiv
              • Svexlist
              • Svex-call
              • Fnsym
              • Svex-quote
              • Svex-var
              • Svcall-rw
              • Svcall
              • Svex-kind
              • Svcall*
              • Svex-fix
              • Svex-count
              • Svex-1z
              • Svex-1x
              • Svex-z
              • Svex-x
            • Bit-blasting
            • Functions
            • 4vmask
            • Why-infinite-width
            • Svex-vars
            • Evaluation
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Testing-utilities
      • Math
    • Svex-alist

    Svex-fastlookup

    Fast lookup in an svex-alist.

    Signature
    (svex-fastlookup var a) → *
    Arguments
    var — Guard (svar-p var).
    a — Guard (svex-alist-p a).

    Definitions and Theorems

    Function: svex-fastlookup$inline

    (defun svex-fastlookup$inline (var a)
           (declare (xargs :guard (and (svar-p var) (svex-alist-p a))))
           (let ((__function__ 'svex-fastlookup))
                (declare (ignorable __function__))
                (mbe :logic (svex-lookup var a)
                     :exec (cdr (hons-get var a)))))

    Theorem: svex-fastlookup$inline-of-svar-fix-var

    (defthm svex-fastlookup$inline-of-svar-fix-var
            (equal (svex-fastlookup$inline (svar-fix var)
                                           a)
                   (svex-fastlookup$inline var a)))

    Theorem: svex-fastlookup$inline-svar-equiv-congruence-on-var

    (defthm svex-fastlookup$inline-svar-equiv-congruence-on-var
            (implies (svar-equiv var var-equiv)
                     (equal (svex-fastlookup$inline var a)
                            (svex-fastlookup$inline var-equiv a)))
            :rule-classes :congruence)

    Theorem: svex-fastlookup$inline-of-svex-alist-fix-a

    (defthm svex-fastlookup$inline-of-svex-alist-fix-a
            (equal (svex-fastlookup$inline var (svex-alist-fix a))
                   (svex-fastlookup$inline var a)))

    Theorem: svex-fastlookup$inline-svex-alist-equiv-congruence-on-a

    (defthm svex-fastlookup$inline-svex-alist-equiv-congruence-on-a
            (implies (svex-alist-equiv a a-equiv)
                     (equal (svex-fastlookup$inline var a)
                            (svex-fastlookup$inline var a-equiv)))
            :rule-classes :congruence)