Fixing function for pipeline-setup structures.
(pipeline-setup-fix x) → new-x
Function:
(defun pipeline-setup-fix$inline (x) (declare (xargs :guard (pipeline-setup-p x))) (let ((__function__ 'pipeline-setup-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((probes (svtv-probealist-fix (cdr (std::da-nth 0 x)))) (inputs (svex-alistlist-fix (cdr (std::da-nth 1 x)))) (override-vals (svex-alistlist-fix (cdr (std::da-nth 2 x)))) (override-tests (svex-alistlist-fix (cdr (std::da-nth 3 x)))) (initst (svex-alist-fix (cdr (std::da-nth 4 x))))) (list (cons 'probes probes) (cons 'inputs inputs) (cons 'override-vals override-vals) (cons 'override-tests override-tests) (cons 'initst initst))) :exec x)))
Theorem:
(defthm pipeline-setup-p-of-pipeline-setup-fix (b* ((new-x (pipeline-setup-fix$inline x))) (pipeline-setup-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm pipeline-setup-fix-when-pipeline-setup-p (implies (pipeline-setup-p x) (equal (pipeline-setup-fix x) x)))
Function:
(defun pipeline-setup-equiv$inline (x y) (declare (xargs :guard (and (pipeline-setup-p x) (pipeline-setup-p y)))) (equal (pipeline-setup-fix x) (pipeline-setup-fix y)))
Theorem:
(defthm pipeline-setup-equiv-is-an-equivalence (and (booleanp (pipeline-setup-equiv x y)) (pipeline-setup-equiv x x) (implies (pipeline-setup-equiv x y) (pipeline-setup-equiv y x)) (implies (and (pipeline-setup-equiv x y) (pipeline-setup-equiv y z)) (pipeline-setup-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm pipeline-setup-equiv-implies-equal-pipeline-setup-fix-1 (implies (pipeline-setup-equiv x x-equiv) (equal (pipeline-setup-fix x) (pipeline-setup-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm pipeline-setup-fix-under-pipeline-setup-equiv (pipeline-setup-equiv (pipeline-setup-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-pipeline-setup-fix-1-forward-to-pipeline-setup-equiv (implies (equal (pipeline-setup-fix x) y) (pipeline-setup-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-pipeline-setup-fix-2-forward-to-pipeline-setup-equiv (implies (equal x (pipeline-setup-fix y)) (pipeline-setup-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm pipeline-setup-equiv-of-pipeline-setup-fix-1-forward (implies (pipeline-setup-equiv (pipeline-setup-fix x) y) (pipeline-setup-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm pipeline-setup-equiv-of-pipeline-setup-fix-2-forward (implies (pipeline-setup-equiv x (pipeline-setup-fix y)) (pipeline-setup-equiv x y)) :rule-classes :forward-chaining)