• 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-rewrite
            • Svexlist-rewrite-nrev
            • Svex-args-apply-masks
            • 4veclist-quote
            • Svex-simpconfig-p
            • Svex-rewrite-memo-correct
            • Svex-alist-maybe-rewrite-fixpoint
            • Svexlist-compute-masks
            • Svexlist-rewrite-under-masks
            • Svex-alist-rewrite-fixpoint
            • Svexlist-maybe-rewrite-fixpoint
            • Svexlist-rewrite-fixpoint
            • Svexlist-mask-acons
            • Svexlist-mask-alist/toposort
            • Svex-call-simp
            • Svex-alist-compose
            • Svexlist-rewrite-top
            • Svex-alist-subst
            • Svex-alist-compose-rw
            • Svex-argmasks-lookup
            • Svex-alist-subst-rw
            • Svexlist-mask-acons-rev
            • Svex-mask-lookup
            • Svex-mask-acons
            • Svexlist-mask-alist
            • Svex-alist-rewrite-top
              • Constraintlist-compose
              • Svex-substconfig
              • Svex-simpconfig-fix
              • Svex-subst
              • Svex-rewrite-memo-vars-ok
              • Svex-norm-call
              • Svex-3value-mask
              • Svexlist-count-calls-aux
              • Svex-mask-alist-keys
              • Rewriter-tracing
              • Svex-rewrite-top
              • Svexlist-maskfree-rewrite-nrev
              • Svexlist-multirefs-top
              • Svexlist-count-calls
              • Svex-unify
              • Svexlist-toposort-p
              • Svexlist-maskfree-rewrite-top
              • Svex-alist-compose-nrev
              • Rewriting-concatenations
              • Svex-svex-memo
              • Svex-mask-alist
              • Svex-alist-subst-nrev
              • Svex-simpconfig-fix!
              • Svex-rewrite-rules
            • Svex
            • Bit-blasting
            • Functions
            • 4vmask
            • Why-infinite-width
            • Svex-vars
            • Evaluation
            • Values
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Rewriting

    Svex-alist-rewrite-top

    Signature
    (svex-alist-rewrite-top x &key (verbosep 'nil)) → xx
    Arguments
    x — Guard (svex-alist-p x).
    Returns
    xx — Type (svex-alist-p xx).

    Definitions and Theorems

    Function: svex-alist-rewrite-top-fn

    (defun svex-alist-rewrite-top-fn (x verbosep)
      (declare (xargs :guard (svex-alist-p x)))
      (let ((__function__ 'svex-alist-rewrite-top))
        (declare (ignorable __function__))
        (pairlis$ (svex-alist-keys x)
                  (svexlist-rewrite-top (svex-alist-vals x)
                                        :verbosep verbosep))))

    Theorem: svex-alist-p-of-svex-alist-rewrite-top

    (defthm svex-alist-p-of-svex-alist-rewrite-top
      (b* ((xx (svex-alist-rewrite-top-fn x verbosep)))
        (svex-alist-p xx))
      :rule-classes :rewrite)

    Theorem: svex-alist-rewrite-top-fn-of-svex-alist-fix-x

    (defthm svex-alist-rewrite-top-fn-of-svex-alist-fix-x
      (equal (svex-alist-rewrite-top-fn (svex-alist-fix x)
                                        verbosep)
             (svex-alist-rewrite-top-fn x verbosep)))

    Theorem: svex-alist-rewrite-top-fn-svex-alist-equiv-congruence-on-x

    (defthm svex-alist-rewrite-top-fn-svex-alist-equiv-congruence-on-x
      (implies (svex-alist-equiv x x-equiv)
               (equal (svex-alist-rewrite-top-fn x verbosep)
                      (svex-alist-rewrite-top-fn x-equiv verbosep)))
      :rule-classes :congruence)

    Theorem: svex-alist-rewrite-top-correct

    (defthm svex-alist-rewrite-top-correct
     (equal (svex-alist-eval (svex-alist-rewrite-top x
                                                     :verbosep verbosep)
                             env)
            (svex-alist-eval x env)))

    Theorem: len-of-svex-alist-rewrite-top

    (defthm len-of-svex-alist-rewrite-top
      (equal (len (svex-alist-rewrite-top x
                                          :verbosep verbosep))
             (len (svex-alist-fix x))))

    Theorem: vars-of-svex-alist-rewrite-top

    (defthm vars-of-svex-alist-rewrite-top
     (implies
      (not (member v (svex-alist-vars x)))
      (not (member v
                   (svex-alist-vars
                        (svex-alist-rewrite-top x
                                                :verbosep verbosep))))))

    Theorem: keys-of-svex-alist-rewrite-top

    (defthm keys-of-svex-alist-rewrite-top
      (iff (svex-lookup v
                        (svex-alist-rewrite-top x
                                                :verbosep verbosep))
           (svex-lookup v x)))