Fixing function for stmt-gout structures.
(stmt-gout-fix x) → new-x
Function:
(defun stmt-gout-fix$inline (x) (declare (xargs :guard (stmt-goutp x))) (let ((__function__ 'stmt-gout-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((items (block-item-list-fix (cdr (std::da-nth 0 x)))) (type (type-fix (cdr (std::da-nth 1 x)))) (term (pseudo-term-fix (cdr (std::da-nth 2 x)))) (context (atc-context-fix (cdr (std::da-nth 3 x)))) (inscope (atc-symbol-varinfo-alist-list-fix (cdr (std::da-nth 4 x)))) (limit (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 'items items) (cons 'type type) (cons 'term term) (cons 'context context) (cons 'inscope inscope) (cons 'limit limit) (cons 'events events) (cons 'thm-name thm-name) (cons 'thm-index thm-index) (cons 'names-to-avoid names-to-avoid))) :exec x)))
Theorem:
(defthm stmt-goutp-of-stmt-gout-fix (b* ((new-x (stmt-gout-fix$inline x))) (stmt-goutp new-x)) :rule-classes :rewrite)
Theorem:
(defthm stmt-gout-fix-when-stmt-goutp (implies (stmt-goutp x) (equal (stmt-gout-fix x) x)))
Function:
(defun stmt-gout-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (stmt-goutp acl2::x) (stmt-goutp acl2::y)))) (equal (stmt-gout-fix acl2::x) (stmt-gout-fix acl2::y)))
Theorem:
(defthm stmt-gout-equiv-is-an-equivalence (and (booleanp (stmt-gout-equiv x y)) (stmt-gout-equiv x x) (implies (stmt-gout-equiv x y) (stmt-gout-equiv y x)) (implies (and (stmt-gout-equiv x y) (stmt-gout-equiv y z)) (stmt-gout-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm stmt-gout-equiv-implies-equal-stmt-gout-fix-1 (implies (stmt-gout-equiv acl2::x x-equiv) (equal (stmt-gout-fix acl2::x) (stmt-gout-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm stmt-gout-fix-under-stmt-gout-equiv (stmt-gout-equiv (stmt-gout-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-stmt-gout-fix-1-forward-to-stmt-gout-equiv (implies (equal (stmt-gout-fix acl2::x) acl2::y) (stmt-gout-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-stmt-gout-fix-2-forward-to-stmt-gout-equiv (implies (equal acl2::x (stmt-gout-fix acl2::y)) (stmt-gout-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm stmt-gout-equiv-of-stmt-gout-fix-1-forward (implies (stmt-gout-equiv (stmt-gout-fix acl2::x) acl2::y) (stmt-gout-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm stmt-gout-equiv-of-stmt-gout-fix-2-forward (implies (stmt-gout-equiv acl2::x (stmt-gout-fix acl2::y)) (stmt-gout-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)