• 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

    Svexlist-rewrite-fixpoint

    Signature
    (svexlist-rewrite-fixpoint x &key (count '4) (verbosep 'nil)) 
      → 
    xx
    Arguments
    x — Guard (svexlist-p x).
    count — Guard (natp count).
    Returns
    xx — Type (svexlist-p xx).

    Definitions and Theorems

    Function: svexlist-rewrite-fixpoint-fn

    (defun svexlist-rewrite-fixpoint-fn (x count verbosep)
      (declare (xargs :guard (and (svexlist-p x) (natp count))))
      (let ((__function__ 'svexlist-rewrite-fixpoint))
        (declare (ignorable __function__))
        (b* ((x (mbe :logic (svexlist-fix x) :exec x))
             ((when (zp count)) x)
             (newx (svexlist-rewrite-top x
                                         :verbosep verbosep))
             ((when (hons-equal x newx)) x))
          (svexlist-rewrite-fixpoint newx
                                     :count (1- count)
                                     :verbosep verbosep))))

    Theorem: svexlist-p-of-svexlist-rewrite-fixpoint

    (defthm svexlist-p-of-svexlist-rewrite-fixpoint
      (b* ((xx (svexlist-rewrite-fixpoint-fn x count verbosep)))
        (svexlist-p xx))
      :rule-classes :rewrite)

    Theorem: svexlist-rewrite-fixpoint-fn-of-svexlist-fix-x

    (defthm svexlist-rewrite-fixpoint-fn-of-svexlist-fix-x
      (equal (svexlist-rewrite-fixpoint-fn (svexlist-fix x)
                                           count verbosep)
             (svexlist-rewrite-fixpoint-fn x count verbosep)))

    Theorem: svexlist-rewrite-fixpoint-fn-svexlist-equiv-congruence-on-x

    (defthm svexlist-rewrite-fixpoint-fn-svexlist-equiv-congruence-on-x
     (implies
          (svexlist-equiv x x-equiv)
          (equal (svexlist-rewrite-fixpoint-fn x count verbosep)
                 (svexlist-rewrite-fixpoint-fn x-equiv count verbosep)))
     :rule-classes :congruence)

    Theorem: svexlist-rewrite-fixpoint-fn-of-nfix-count

    (defthm svexlist-rewrite-fixpoint-fn-of-nfix-count
      (equal (svexlist-rewrite-fixpoint-fn x (nfix count)
                                           verbosep)
             (svexlist-rewrite-fixpoint-fn x count verbosep)))

    Theorem: svexlist-rewrite-fixpoint-fn-nat-equiv-congruence-on-count

    (defthm svexlist-rewrite-fixpoint-fn-nat-equiv-congruence-on-count
     (implies
          (nat-equiv count count-equiv)
          (equal (svexlist-rewrite-fixpoint-fn x count verbosep)
                 (svexlist-rewrite-fixpoint-fn x count-equiv verbosep)))
     :rule-classes :congruence)

    Theorem: svexlist-rewrite-fixpoint-correct

    (defthm svexlist-rewrite-fixpoint-correct
      (b* ((?xx (svexlist-rewrite-fixpoint-fn x count verbosep)))
        (equal (svexlist-eval xx env)
               (svexlist-eval x env))))

    Theorem: len-of-svexlist-rewrite-fixpoint

    (defthm len-of-svexlist-rewrite-fixpoint
      (b* ((?xx (svexlist-rewrite-fixpoint-fn x count verbosep)))
        (equal (len xx) (len x))))

    Theorem: consp-of-svexlist-rewrite-fixpoint

    (defthm consp-of-svexlist-rewrite-fixpoint
      (b* ((?xx (svexlist-rewrite-fixpoint-fn x count verbosep)))
        (equal (consp xx) (consp x))))

    Theorem: vars-of-svexlist-rewrite-fixpoint

    (defthm vars-of-svexlist-rewrite-fixpoint
      (b* ((?xx (svexlist-rewrite-fixpoint-fn x count verbosep)))
        (implies (not (member v (svexlist-vars x)))
                 (not (member v (svexlist-vars xx))))))