• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • 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
            • Svar
            • Least-fixpoint
            • Svex-p
            • Svex-select
              • Svex-select-staticify-assignment
              • Svex-select-fix
              • Svex-select-case
              • Svex-select-split-static
              • Svex-select-p
              • Svex-selects-merge
              • Svex-select-replace-indices
              • Svex-select-vars
              • Svex-select-to-svex-with-substitution
              • Svex-select-equiv
              • Svex-select-part
              • Svex-select-count
              • Svex-select-var
              • Svex-select-to-lhs
              • Svex-select-staticp
              • Svex-select-inner-var
              • Svex-select->indices
              • Svex-select-to-svex
                • Svex-select-inner-width
                • Svex-select->width
                • Svex-select-kind
              • Svex-alist
              • 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
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Svex-select

    Svex-select-to-svex

    Signature
    (svex-select-to-svex x) → svex-x
    Arguments
    x — Guard (svex-select-p x).
    Returns
    svex-x — Type (svex-p svex-x).

    Definitions and Theorems

    Function: svex-select-to-svex

    (defun svex-select-to-svex (x)
      (declare (xargs :guard (svex-select-p x)))
      (let ((__function__ 'svex-select-to-svex))
        (declare (ignorable __function__))
        (svex-select-case
             x
             :var (svex-var x.name)
             :part (svcall partsel x.lsb (svex-int x.width)
                           (svex-concat (svex-select->width x.subexp)
                                        (svex-select-to-svex x.subexp)
                                        (svex-x))))))

    Theorem: svex-p-of-svex-select-to-svex

    (defthm svex-p-of-svex-select-to-svex
      (b* ((svex-x (svex-select-to-svex x)))
        (svex-p svex-x))
      :rule-classes :rewrite)

    Theorem: svex-select-to-svex-of-svex-select-fix-x

    (defthm svex-select-to-svex-of-svex-select-fix-x
      (equal (svex-select-to-svex (svex-select-fix x))
             (svex-select-to-svex x)))

    Theorem: svex-select-to-svex-svex-select-equiv-congruence-on-x

    (defthm svex-select-to-svex-svex-select-equiv-congruence-on-x
      (implies (svex-select-equiv x x-equiv)
               (equal (svex-select-to-svex x)
                      (svex-select-to-svex x-equiv)))
      :rule-classes :congruence)