Fixing function for abnf::tree-list-tuple7 structures.
(abnf::tree-list-tuple7-fix abnf::x) → abnf::new-x
Function:
(defun abnf::tree-list-tuple7-fix$inline (abnf::x) (declare (xargs :guard (abnf::tree-list-tuple7p abnf::x))) (let ((__function__ 'abnf::tree-list-tuple7-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((1st (abnf::tree-list-fix (cdr (std::da-nth 0 abnf::x)))) (2nd (abnf::tree-list-fix (cdr (std::da-nth 1 abnf::x)))) (3rd (abnf::tree-list-fix (cdr (std::da-nth 2 abnf::x)))) (4th (abnf::tree-list-fix (cdr (std::da-nth 3 abnf::x)))) (5th (abnf::tree-list-fix (cdr (std::da-nth 4 abnf::x)))) (6th (abnf::tree-list-fix (cdr (std::da-nth 5 abnf::x)))) (7th (abnf::tree-list-fix (cdr (std::da-nth 6 abnf::x))))) (list (cons '1st 1st) (cons '2nd 2nd) (cons '3rd 3rd) (cons '4th 4th) (cons '5th 5th) (cons '6th 6th) (cons '7th 7th))) :exec abnf::x)))
Theorem:
(defthm abnf::tree-list-tuple7p-of-tree-list-tuple7-fix (b* ((abnf::new-x (abnf::tree-list-tuple7-fix$inline abnf::x))) (abnf::tree-list-tuple7p abnf::new-x)) :rule-classes :rewrite)
Theorem:
(defthm abnf::tree-list-tuple7-fix-when-tree-list-tuple7p (implies (abnf::tree-list-tuple7p abnf::x) (equal (abnf::tree-list-tuple7-fix abnf::x) abnf::x)))
Function:
(defun abnf::tree-list-tuple7-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (abnf::tree-list-tuple7p acl2::x) (abnf::tree-list-tuple7p acl2::y)))) (equal (abnf::tree-list-tuple7-fix acl2::x) (abnf::tree-list-tuple7-fix acl2::y)))
Theorem:
(defthm abnf::tree-list-tuple7-equiv-is-an-equivalence (and (booleanp (abnf::tree-list-tuple7-equiv abnf::x abnf::y)) (abnf::tree-list-tuple7-equiv abnf::x abnf::x) (implies (abnf::tree-list-tuple7-equiv abnf::x abnf::y) (abnf::tree-list-tuple7-equiv abnf::y abnf::x)) (implies (and (abnf::tree-list-tuple7-equiv abnf::x abnf::y) (abnf::tree-list-tuple7-equiv abnf::y abnf::z)) (abnf::tree-list-tuple7-equiv abnf::x abnf::z))) :rule-classes (:equivalence))
Theorem:
(defthm abnf::tree-list-tuple7-equiv-implies-equal-tree-list-tuple7-fix-1 (implies (abnf::tree-list-tuple7-equiv acl2::x abnf::x-equiv) (equal (abnf::tree-list-tuple7-fix acl2::x) (abnf::tree-list-tuple7-fix abnf::x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm abnf::tree-list-tuple7-fix-under-tree-list-tuple7-equiv (abnf::tree-list-tuple7-equiv (abnf::tree-list-tuple7-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm abnf::equal-of-tree-list-tuple7-fix-1-forward-to-tree-list-tuple7-equiv (implies (equal (abnf::tree-list-tuple7-fix acl2::x) acl2::y) (abnf::tree-list-tuple7-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm abnf::equal-of-tree-list-tuple7-fix-2-forward-to-tree-list-tuple7-equiv (implies (equal acl2::x (abnf::tree-list-tuple7-fix acl2::y)) (abnf::tree-list-tuple7-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm abnf::tree-list-tuple7-equiv-of-tree-list-tuple7-fix-1-forward (implies (abnf::tree-list-tuple7-equiv (abnf::tree-list-tuple7-fix acl2::x) acl2::y) (abnf::tree-list-tuple7-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm abnf::tree-list-tuple7-equiv-of-tree-list-tuple7-fix-2-forward (implies (abnf::tree-list-tuple7-equiv acl2::x (abnf::tree-list-tuple7-fix acl2::y)) (abnf::tree-list-tuple7-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)