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