• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
            • 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-staticp

    Signature
    (svex-select-staticp x) → *
    Arguments
    x — Guard (svex-select-p x).

    Definitions and Theorems

    Function: svex-select-staticp

    (defun svex-select-staticp (x)
      (declare (xargs :guard (svex-select-p x)))
      (let ((__function__ 'svex-select-staticp))
        (declare (ignorable __function__))
        (svex-select-case
             x
             :var t
             :part (and (svex-case x.lsb
                                   :quote (4vec-index-p x.lsb.val)
                                   :otherwise nil)
                        (svex-select-staticp x.subexp)))))

    Theorem: svex-select-staticp-when-var

    (defthm svex-select-staticp-when-var
      (implies (svex-select-case x :var)
               (svex-select-staticp x)))

    Theorem: svex-select-vars-when-staticp

    (defthm svex-select-vars-when-staticp
      (implies (svex-select-staticp x)
               (equal (svex-select-vars x)
                      (list (svex-select-inner-var x)))))

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

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

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

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