• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
        • Svex-stvs
          • Svtv-data
          • Defsvtv$
          • Svtv-run
          • Defsvtv-phasewise
          • Svtv
          • Svtv-spec
          • Defsvtv
          • Process.lisp
          • Svtv-doc
          • Svtv-chase$
          • Svtv-versus-stv
          • Svtv-debug-fsm
          • Structure.lisp
            • Svtv-baseentry-p
              • Svtv-entry-p
              • Svtv-outentry-p
              • Svtv-outentry-fix
              • Svtv-baseentry-fix
              • Svtv-entry-fix
              • Svtv-overrideline
              • Svtv-outputline
              • Svtv-condoverride
              • Svtv-line
              • Svtv-inputmap
              • Svtv-outentrylist
              • Svtv-lines
              • Svtv-entrylist
              • Svtv-overridelines
              • Svtv-outputs
              • Svtv-inputtype-p
              • Svtv-dontcare-p
            • Svtv-debug
            • Def-pipeline-thm
            • Expand.lisp
            • Def-cycle-thm
            • Svtv-utilities
            • Svtv-debug$
            • Defsvtv$-phasewise
          • Svex-decomposition-methodology
          • Sv-versus-esim
          • Svex-decomp
          • Svex-compose-dfs
          • Svex-compilation
          • Moddb
          • Svmods
          • Svstmt
          • Sv-tutorial
          • Expressions
          • Symbolic-test-vector
          • Vl-to-svex
        • Fgl
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Structure.lisp

    Svtv-baseentry-p

    Signature
    (svtv-baseentry-p x) → *

    Definitions and Theorems

    Function: svtv-baseentry-p

    (defun svtv-baseentry-p (x)
      (declare (xargs :guard t))
      (let ((__function__ 'svtv-baseentry-p))
        (declare (ignorable __function__))
        (or (4vec-p x)
            (eq x :ones)
            (and (symbolp x)
                 (not (booleanp x))
                 (not (keywordp x))
                 (not (svtv-dontcare-p x))))))

    Function: svtv-baseentry-fix

    (defun svtv-baseentry-fix (x)
      (declare (xargs :guard (svtv-baseentry-p x)))
      (let ((__function__ 'svtv-baseentry-fix))
        (declare (ignorable __function__))
        (mbe :logic (if (svtv-baseentry-p x) x (4vec-x))
             :exec x)))

    Theorem: svtv-baseentry-p-of-svtv-baseentry-fix

    (defthm svtv-baseentry-p-of-svtv-baseentry-fix
      (b* ((xx (svtv-baseentry-fix x)))
        (svtv-baseentry-p xx))
      :rule-classes :rewrite)

    Theorem: svtv-baseentry-fix-of-svtv-baseentry-p

    (defthm svtv-baseentry-fix-of-svtv-baseentry-p
      (implies (svtv-baseentry-p x)
               (equal (svtv-baseentry-fix x) x)))

    Function: svtv-baseentry-equiv$inline

    (defun svtv-baseentry-equiv$inline (x y)
      (declare (xargs :guard (and (svtv-baseentry-p x)
                                  (svtv-baseentry-p y))))
      (equal (svtv-baseentry-fix x)
             (svtv-baseentry-fix y)))

    Theorem: svtv-baseentry-equiv-is-an-equivalence

    (defthm svtv-baseentry-equiv-is-an-equivalence
      (and (booleanp (svtv-baseentry-equiv x y))
           (svtv-baseentry-equiv x x)
           (implies (svtv-baseentry-equiv x y)
                    (svtv-baseentry-equiv y x))
           (implies (and (svtv-baseentry-equiv x y)
                         (svtv-baseentry-equiv y z))
                    (svtv-baseentry-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: svtv-baseentry-equiv-implies-equal-svtv-baseentry-fix-1

    (defthm svtv-baseentry-equiv-implies-equal-svtv-baseentry-fix-1
      (implies (svtv-baseentry-equiv x x-equiv)
               (equal (svtv-baseentry-fix x)
                      (svtv-baseentry-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: svtv-baseentry-fix-under-svtv-baseentry-equiv

    (defthm svtv-baseentry-fix-under-svtv-baseentry-equiv
      (svtv-baseentry-equiv (svtv-baseentry-fix x)
                            x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: equal-of-svtv-baseentry-fix-1-forward-to-svtv-baseentry-equiv

    (defthm
          equal-of-svtv-baseentry-fix-1-forward-to-svtv-baseentry-equiv
      (implies (equal (svtv-baseentry-fix x) y)
               (svtv-baseentry-equiv x y))
      :rule-classes :forward-chaining)

    Theorem: equal-of-svtv-baseentry-fix-2-forward-to-svtv-baseentry-equiv

    (defthm
          equal-of-svtv-baseentry-fix-2-forward-to-svtv-baseentry-equiv
      (implies (equal x (svtv-baseentry-fix y))
               (svtv-baseentry-equiv x y))
      :rule-classes :forward-chaining)

    Theorem: svtv-baseentry-equiv-of-svtv-baseentry-fix-1-forward

    (defthm svtv-baseentry-equiv-of-svtv-baseentry-fix-1-forward
      (implies (svtv-baseentry-equiv (svtv-baseentry-fix x)
                                     y)
               (svtv-baseentry-equiv x y))
      :rule-classes :forward-chaining)

    Theorem: svtv-baseentry-equiv-of-svtv-baseentry-fix-2-forward

    (defthm svtv-baseentry-equiv-of-svtv-baseentry-fix-2-forward
      (implies (svtv-baseentry-equiv x (svtv-baseentry-fix y))
               (svtv-baseentry-equiv x y))
      :rule-classes :forward-chaining)