Fixing function for obs-constprop-config structures.
(obs-constprop-config-fix x) → new-x
Function:
(defun obs-constprop-config-fix$inline (x) (declare (xargs :guard (obs-constprop-config-p x))) (let ((__function__ 'obs-constprop-config-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((gatesimp (gatesimp-fix (cdr (std::da-nth 0 (cdr x))))) (constprop-iterations (nfix (cdr (std::da-nth 1 (cdr x))))) (obs-hyp-max-size (acl2::maybe-natp-fix (cdr (std::da-nth 2 (cdr x))))) (obs-concl-min-size (acl2::maybe-natp-fix (cdr (std::da-nth 3 (cdr x))))) (obs-min-ratio (rfix (cdr (std::da-nth 4 (cdr x)))))) (cons :obs-constprop-config (list (cons 'gatesimp gatesimp) (cons 'constprop-iterations constprop-iterations) (cons 'obs-hyp-max-size obs-hyp-max-size) (cons 'obs-concl-min-size obs-concl-min-size) (cons 'obs-min-ratio obs-min-ratio)))) :exec x)))
Theorem:
(defthm obs-constprop-config-p-of-obs-constprop-config-fix (b* ((new-x (obs-constprop-config-fix$inline x))) (obs-constprop-config-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm obs-constprop-config-fix-when-obs-constprop-config-p (implies (obs-constprop-config-p x) (equal (obs-constprop-config-fix x) x)))
Function:
(defun obs-constprop-config-equiv$inline (x acl2::y) (declare (xargs :guard (and (obs-constprop-config-p x) (obs-constprop-config-p acl2::y)))) (equal (obs-constprop-config-fix x) (obs-constprop-config-fix acl2::y)))
Theorem:
(defthm obs-constprop-config-equiv-is-an-equivalence (and (booleanp (obs-constprop-config-equiv x y)) (obs-constprop-config-equiv x x) (implies (obs-constprop-config-equiv x y) (obs-constprop-config-equiv y x)) (implies (and (obs-constprop-config-equiv x y) (obs-constprop-config-equiv y z)) (obs-constprop-config-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm obs-constprop-config-equiv-implies-equal-obs-constprop-config-fix-1 (implies (obs-constprop-config-equiv x x-equiv) (equal (obs-constprop-config-fix x) (obs-constprop-config-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm obs-constprop-config-fix-under-obs-constprop-config-equiv (obs-constprop-config-equiv (obs-constprop-config-fix x) x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-obs-constprop-config-fix-1-forward-to-obs-constprop-config-equiv (implies (equal (obs-constprop-config-fix x) acl2::y) (obs-constprop-config-equiv x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-obs-constprop-config-fix-2-forward-to-obs-constprop-config-equiv (implies (equal x (obs-constprop-config-fix acl2::y)) (obs-constprop-config-equiv x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm obs-constprop-config-equiv-of-obs-constprop-config-fix-1-forward (implies (obs-constprop-config-equiv (obs-constprop-config-fix x) acl2::y) (obs-constprop-config-equiv x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm obs-constprop-config-equiv-of-obs-constprop-config-fix-2-forward (implies (obs-constprop-config-equiv x (obs-constprop-config-fix acl2::y)) (obs-constprop-config-equiv x acl2::y)) :rule-classes :forward-chaining)