• 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-normalize-concatenation
              • Svex-alist-normalize-concats
              • Svexlist-normalize-concats
                • Svex-normalize-concats
              • 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-concatenations

    Svexlist-normalize-concats

    Signature
    (svexlist-normalize-concats x &key (verbosep 'nil)) → new-x
    Arguments
    x — Guard (svexlist-p x).
    Returns
    new-x — Type (and (svexlist-p new-x) (equal (len new-x) (len x))).

    Definitions and Theorems

    Function: svexlist-normalize-concats-fn

    (defun svexlist-normalize-concats-fn (x verbosep)
     (declare (xargs :guard (svexlist-p x)))
     (let ((__function__ 'svexlist-normalize-concats))
      (declare (ignorable __function__))
      (b*
       ((- (and verbosep
                (cw "opcount before norm-concats: ~x0~%"
                    (svexlist-opcount x))))
        (ctxalist
         (time$
            (svexlist-make-top-context-alist x nil)
            :mintime 1
            :msg "; norm-concats: context alist: ~st sec, ~sa bytes~%"))
        (res (time$ (svexlist-normalize-concats-aux x ctxalist)
                    :mintime 1
                    :msg "; norm-concats main: ~st sec, ~sa bytes~%")))
       (clear-memoize-table 'svex-normalize-concats-aux)
       (fast-alist-free ctxalist)
       (and verbosep
            (cw "opcount after norm-concats: ~x0~%"
                (svexlist-opcount res)))
       res)))

    Theorem: return-type-of-svexlist-normalize-concats

    (defthm return-type-of-svexlist-normalize-concats
      (b* ((new-x (svexlist-normalize-concats-fn x verbosep)))
        (and (svexlist-p new-x)
             (equal (len new-x) (len x))))
      :rule-classes :rewrite)

    Theorem: svexlist-normalize-concats-correct

    (defthm svexlist-normalize-concats-correct
      (b* ((?new-x (svexlist-normalize-concats-fn x verbosep)))
        (equal (svexlist-eval new-x env)
               (svexlist-eval x env))))

    Theorem: vars-of-svexlist-normalize-concats

    (defthm vars-of-svexlist-normalize-concats
      (b* ((?new-x (svexlist-normalize-concats-fn x verbosep)))
        (implies (not (member v (svexlist-vars x)))
                 (not (member v (svexlist-vars new-x))))))

    Theorem: svexlist-normalize-concats-fn-of-svexlist-fix-x

    (defthm svexlist-normalize-concats-fn-of-svexlist-fix-x
      (equal (svexlist-normalize-concats-fn (svexlist-fix x)
                                            verbosep)
             (svexlist-normalize-concats-fn x verbosep)))

    Theorem: svexlist-normalize-concats-fn-svexlist-equiv-congruence-on-x

    (defthm svexlist-normalize-concats-fn-svexlist-equiv-congruence-on-x
      (implies (svexlist-equiv x x-equiv)
               (equal (svexlist-normalize-concats-fn x verbosep)
                      (svexlist-normalize-concats-fn x-equiv verbosep)))
      :rule-classes :congruence)