Fixing function for flatnorm-setup structures.
(flatnorm-setup-fix x) → new-x
Function:
(defun flatnorm-setup-fix$inline (x) (declare (xargs :guard (flatnorm-setup-p x))) (let ((__function__ 'flatnorm-setup-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((monotonify (bool-fix (cdr (std::da-nth 0 x))))) (list (cons 'monotonify monotonify))) :exec x)))
Theorem:
(defthm flatnorm-setup-p-of-flatnorm-setup-fix (b* ((new-x (flatnorm-setup-fix$inline x))) (flatnorm-setup-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm flatnorm-setup-fix-when-flatnorm-setup-p (implies (flatnorm-setup-p x) (equal (flatnorm-setup-fix x) x)))
Function:
(defun flatnorm-setup-equiv$inline (x y) (declare (xargs :guard (and (flatnorm-setup-p x) (flatnorm-setup-p y)))) (equal (flatnorm-setup-fix x) (flatnorm-setup-fix y)))
Theorem:
(defthm flatnorm-setup-equiv-is-an-equivalence (and (booleanp (flatnorm-setup-equiv x y)) (flatnorm-setup-equiv x x) (implies (flatnorm-setup-equiv x y) (flatnorm-setup-equiv y x)) (implies (and (flatnorm-setup-equiv x y) (flatnorm-setup-equiv y z)) (flatnorm-setup-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm flatnorm-setup-equiv-implies-equal-flatnorm-setup-fix-1 (implies (flatnorm-setup-equiv x x-equiv) (equal (flatnorm-setup-fix x) (flatnorm-setup-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm flatnorm-setup-fix-under-flatnorm-setup-equiv (flatnorm-setup-equiv (flatnorm-setup-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-flatnorm-setup-fix-1-forward-to-flatnorm-setup-equiv (implies (equal (flatnorm-setup-fix x) y) (flatnorm-setup-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-flatnorm-setup-fix-2-forward-to-flatnorm-setup-equiv (implies (equal x (flatnorm-setup-fix y)) (flatnorm-setup-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm flatnorm-setup-equiv-of-flatnorm-setup-fix-1-forward (implies (flatnorm-setup-equiv (flatnorm-setup-fix x) y) (flatnorm-setup-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm flatnorm-setup-equiv-of-flatnorm-setup-fix-2-forward (implies (flatnorm-setup-equiv x (flatnorm-setup-fix y)) (flatnorm-setup-equiv x y)) :rule-classes :forward-chaining)