Fixing function for constraint-instance structures.
(constraint-instance-fix x) → new-x
Function:
(defun constraint-instance-fix$inline (x) (declare (xargs :guard (constraint-instance-p x))) (let ((__function__ 'constraint-instance-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((thmname (acl2::symbol-fix (std::prod-car x))) (subst (fgl-object-bindings-fix (std::prod-cdr x)))) (std::prod-cons thmname subst)) :exec x)))
Theorem:
(defthm constraint-instance-p-of-constraint-instance-fix (b* ((new-x (constraint-instance-fix$inline x))) (constraint-instance-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm constraint-instance-fix-when-constraint-instance-p (implies (constraint-instance-p x) (equal (constraint-instance-fix x) x)))
Function:
(defun constraint-instance-equiv$inline (x y) (declare (xargs :guard (and (constraint-instance-p x) (constraint-instance-p y)))) (equal (constraint-instance-fix x) (constraint-instance-fix y)))
Theorem:
(defthm constraint-instance-equiv-is-an-equivalence (and (booleanp (constraint-instance-equiv x y)) (constraint-instance-equiv x x) (implies (constraint-instance-equiv x y) (constraint-instance-equiv y x)) (implies (and (constraint-instance-equiv x y) (constraint-instance-equiv y z)) (constraint-instance-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm constraint-instance-equiv-implies-equal-constraint-instance-fix-1 (implies (constraint-instance-equiv x x-equiv) (equal (constraint-instance-fix x) (constraint-instance-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm constraint-instance-fix-under-constraint-instance-equiv (constraint-instance-equiv (constraint-instance-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-constraint-instance-fix-1-forward-to-constraint-instance-equiv (implies (equal (constraint-instance-fix x) y) (constraint-instance-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-constraint-instance-fix-2-forward-to-constraint-instance-equiv (implies (equal x (constraint-instance-fix y)) (constraint-instance-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm constraint-instance-equiv-of-constraint-instance-fix-1-forward (implies (constraint-instance-equiv (constraint-instance-fix x) y) (constraint-instance-equiv x y)) :rule-classes :forward-chaining)
Theorem:
(defthm constraint-instance-equiv-of-constraint-instance-fix-2-forward (implies (constraint-instance-equiv x (constraint-instance-fix y)) (constraint-instance-equiv x y)) :rule-classes :forward-chaining)