• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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-chase
            • Svtv-p
            • Svtv-to-fsm
              • Svtv-to-fsm-defs
                • Svtv-spec-fsm-bindings-for-alist
                • Svtv-spec-fsm-bindings-for-alists
                • Svtv-spec-fsm-constraints-for-alist
                • Svtv-spec-fsm-constraints-for-alists
                • Lhprobe
                • Svtv-spec-fsm-bindings-for-lhprobe
                • Svtv-spec-fsm-constraints-for-lhprobe
                • Lhprobe-map-overridemux-eval
                • Svtv-fsm-namemap-alistlist
                • Lhprobe-constraintlist-overridemux-eval
                • Lhs-overridemux-eval-signx
                • Svtv-fsm-namemap-envlist
                • Lhprobe/4vec-overridemux-eval
                • Lhprobe-constraintlist-max-stage
                • Lhprobe-constraint-overridemux-eval
                • Svex-envlists-agree
                • Lhprobe-overridemux-eval
                • Lhs-overridemux-eval-zero
                • Lhatom-overridemux-eval
                • Svar/4vec-alist-eval
                • Svtv-probealist-to-lhprobe-map
                • Svex-envlists-ovtestsimilar
                • Lhprobe-map-max-stage
                • Lhprobe-constraint
                • Svar/4vec-alistlist-eval
                • Lhprobe-map-eval
                • Lhprobe-constraint-max-stage
                • Lhprobe/4vec-change-override
                • Lhprobe-constraintlist-eval
                • Svtv-probe-to-lhprobe
                • Svar/4vec-eval
                • Lhs-eval-signx
                • Lhprobe-signedness-for-alist
                • Lhprobe-change-override
                • Svtv-spec-fsm-bindings
                • Svtv-spec-cycle-fsm-inputsubsts
                • Lhprobe/4vec-p
                  • Lhprobe/4vec-fix
                    • Lhprobe/4vec-kind
                    • Lhprobe/4vec-eval
                  • Lhprobe-constraint-eval
                  • Svtv-spec-fsm-constraints
                  • Svex-envlist-keys-list
                  • Svtv-spec-non-test-vars
                  • Svar/4vec-p
                  • Svtv-spec->override-val-alists*
                  • Svtv-spec->override-test-alists*
                  • Svtv-spec->in-alists*
                  • Lhprobe-map
                  • Svar/4vec-alist
                  • Svar/4vec-alistlist
                  • Lhprobe-constraintlist
                  • Force-execute
                • Defnamemap
                • Parse-svtv-to-fsm-thm
                • Svex-envs-check-ovtests-ok-rec
                • Svtv-to-fsm-final-thm-var-bindings
                • Svex-envlists-ovtests-ok
                • Svtv-override-triplemaplist-relevant-vars
                • Svtv-override-triplemap-relevant-vars
                • Svex-envlists-check-ovtests-ok
                • Svtv-override-triple-relevant-vars
                • Svtv-override-triplemaplist-test-only-p
                • Svex-envlists-ovtestequiv
                • Svtv-override-triplemap-test-only-p
                • Svex-envlists-ovtestsubsetp
                • Svtv-override-triple-test-only-p
                • Svex-envlists-check-ovtests-ok-rec
                • Svex-envs-check-ovtests-ok
                • Svex-alistlist-removekeys
                • Svtv-to-fsm-final-thm
                • Svtv-to-fsm-first-thm-input-var-bindings
                • Svtv-to-fsm-first-thm
                • Svtv-to-fsm-thm-fn
              • Make-svtv
              • Svtv-fix
              • Change-svtv
              • Svtv-equiv
              • Svtv->orig-overrides
              • Svtv->orig-internals
              • Svtv->expanded-overrides
              • Svtv->states
              • Svtv->nextstate
              • Svtv->expanded-ins
              • Svtv->outmasks
              • Svtv->outexprs
              • Svtv->orig-outs
              • Svtv->orig-ins
              • Svtv->inmasks
              • Svtv->nphases
              • Svtv->name
              • Svtv->labels
              • Svtv->inmap
              • Svtv->form
            • Svtv-spec
            • Defsvtv
            • Process.lisp
            • Svtv-doc
            • Svtv-chase$
            • Svtv-versus-stv
            • Svtv-debug-fsm
            • Structure.lisp
            • 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
    • Lhprobe/4vec-p

    Lhprobe/4vec-fix

    Fixing function for lhprobe/4vec type

    Signature
    (lhprobe/4vec-fix x) → new-x
    Arguments
    x — Guard (lhprobe/4vec-p x).
    Returns
    new-x — Type (lhprobe/4vec-p new-x).

    Definitions and Theorems

    Function: lhprobe/4vec-fix

    (defun lhprobe/4vec-fix (x)
      (declare (xargs :guard (lhprobe/4vec-p x)))
      (let ((__function__ 'lhprobe/4vec-fix))
        (declare (ignorable __function__))
        (mbe :logic
             (if (eq (lhprobe/4vec-kind x) :4vec)
                 (4vec-fix x)
               (lhprobe-fix x))
             :exec x)))

    Theorem: lhprobe/4vec-p-of-lhprobe/4vec-fix

    (defthm lhprobe/4vec-p-of-lhprobe/4vec-fix
      (b* ((new-x (lhprobe/4vec-fix x)))
        (lhprobe/4vec-p new-x))
      :rule-classes :rewrite)

    Theorem: lhprobe/4vec-fix-when-lhprobe/4vec-p

    (defthm lhprobe/4vec-fix-when-lhprobe/4vec-p
      (implies (lhprobe/4vec-p x)
               (equal (lhprobe/4vec-fix x) x)))

    Function: lhprobe/4vec-equiv$inline

    (defun lhprobe/4vec-equiv$inline (x y)
      (declare (xargs :guard (and (lhprobe/4vec-p x)
                                  (lhprobe/4vec-p y))))
      (equal (lhprobe/4vec-fix x)
             (lhprobe/4vec-fix y)))

    Theorem: lhprobe/4vec-equiv-is-an-equivalence

    (defthm lhprobe/4vec-equiv-is-an-equivalence
      (and (booleanp (lhprobe/4vec-equiv x y))
           (lhprobe/4vec-equiv x x)
           (implies (lhprobe/4vec-equiv x y)
                    (lhprobe/4vec-equiv y x))
           (implies (and (lhprobe/4vec-equiv x y)
                         (lhprobe/4vec-equiv y z))
                    (lhprobe/4vec-equiv x z)))
      :rule-classes (:equivalence))

    Theorem: lhprobe/4vec-equiv-implies-equal-lhprobe/4vec-fix-1

    (defthm lhprobe/4vec-equiv-implies-equal-lhprobe/4vec-fix-1
      (implies (lhprobe/4vec-equiv x x-equiv)
               (equal (lhprobe/4vec-fix x)
                      (lhprobe/4vec-fix x-equiv)))
      :rule-classes (:congruence))

    Theorem: lhprobe/4vec-fix-under-lhprobe/4vec-equiv

    (defthm lhprobe/4vec-fix-under-lhprobe/4vec-equiv
      (lhprobe/4vec-equiv (lhprobe/4vec-fix x)
                          x)
      :rule-classes (:rewrite :rewrite-quoted-constant))

    Theorem: lhprobe/4vec-fix-when-kind-is-4vec

    (defthm lhprobe/4vec-fix-when-kind-is-4vec
      (implies (equal (lhprobe/4vec-kind x) :4vec)
               (equal (lhprobe/4vec-fix x)
                      (4vec-fix x))))

    Theorem: lhprobe/4vec-fix-when-kind-is-lhprobe

    (defthm lhprobe/4vec-fix-when-kind-is-lhprobe
      (implies (equal (lhprobe/4vec-kind x) :lhprobe)
               (equal (lhprobe/4vec-fix x)
                      (lhprobe-fix x))))

    Theorem: lhprobe/4vec-kind-of-lhprobe/4vec-fix-x

    (defthm lhprobe/4vec-kind-of-lhprobe/4vec-fix-x
      (equal (lhprobe/4vec-kind (lhprobe/4vec-fix x))
             (lhprobe/4vec-kind x)))

    Theorem: lhprobe/4vec-kind-lhprobe/4vec-equiv-congruence-on-x

    (defthm lhprobe/4vec-kind-lhprobe/4vec-equiv-congruence-on-x
      (implies (lhprobe/4vec-equiv x x-equiv)
               (equal (lhprobe/4vec-kind x)
                      (lhprobe/4vec-kind x-equiv)))
      :rule-classes :congruence)