Fixing function for lstmt-gout structures.
(lstmt-gout-fix x) → new-x
Function:
(defun lstmt-gout-fix$inline (x) (declare (xargs :guard (lstmt-goutp x))) (let ((__function__ 'lstmt-gout-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((stmt (stmt-fix (cdr (std::da-nth 0 x)))) (test-term (pseudo-term-fix (cdr (std::da-nth 1 x)))) (body-term (pseudo-term-fix (cdr (std::da-nth 2 x)))) (affect (symbol-list-fix (cdr (std::da-nth 3 x)))) (limit-body (pseudo-term-fix (cdr (std::da-nth 4 x)))) (limit-all (pseudo-term-fix (cdr (std::da-nth 5 x)))) (events (acl2::pseudo-event-form-list-fix (cdr (std::da-nth 6 x)))) (thm-name (symbol-fix (cdr (std::da-nth 7 x)))) (thm-index (acl2::pos-fix (cdr (std::da-nth 8 x)))) (names-to-avoid (symbol-list-fix (cdr (std::da-nth 9 x))))) (list (cons 'stmt stmt) (cons 'test-term test-term) (cons 'body-term body-term) (cons 'affect affect) (cons 'limit-body limit-body) (cons 'limit-all limit-all) (cons 'events events) (cons 'thm-name thm-name) (cons 'thm-index thm-index) (cons 'names-to-avoid names-to-avoid))) :exec x)))
Theorem:
(defthm lstmt-goutp-of-lstmt-gout-fix (b* ((new-x (lstmt-gout-fix$inline x))) (lstmt-goutp new-x)) :rule-classes :rewrite)
Theorem:
(defthm lstmt-gout-fix-when-lstmt-goutp (implies (lstmt-goutp x) (equal (lstmt-gout-fix x) x)))
Function:
(defun lstmt-gout-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (lstmt-goutp acl2::x) (lstmt-goutp acl2::y)))) (equal (lstmt-gout-fix acl2::x) (lstmt-gout-fix acl2::y)))
Theorem:
(defthm lstmt-gout-equiv-is-an-equivalence (and (booleanp (lstmt-gout-equiv x y)) (lstmt-gout-equiv x x) (implies (lstmt-gout-equiv x y) (lstmt-gout-equiv y x)) (implies (and (lstmt-gout-equiv x y) (lstmt-gout-equiv y z)) (lstmt-gout-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm lstmt-gout-equiv-implies-equal-lstmt-gout-fix-1 (implies (lstmt-gout-equiv acl2::x x-equiv) (equal (lstmt-gout-fix acl2::x) (lstmt-gout-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm lstmt-gout-fix-under-lstmt-gout-equiv (lstmt-gout-equiv (lstmt-gout-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-lstmt-gout-fix-1-forward-to-lstmt-gout-equiv (implies (equal (lstmt-gout-fix acl2::x) acl2::y) (lstmt-gout-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-lstmt-gout-fix-2-forward-to-lstmt-gout-equiv (implies (equal acl2::x (lstmt-gout-fix acl2::y)) (lstmt-gout-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm lstmt-gout-equiv-of-lstmt-gout-fix-1-forward (implies (lstmt-gout-equiv (lstmt-gout-fix acl2::x) acl2::y) (lstmt-gout-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm lstmt-gout-equiv-of-lstmt-gout-fix-2-forward (implies (lstmt-gout-equiv acl2::x (lstmt-gout-fix acl2::y)) (lstmt-gout-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)