Fixing function for atj-test structures.
Function:
(defun atj-test-fix$inline (x) (declare (xargs :guard (atj-testp x))) (let ((__function__ 'atj-test-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((name (str-fix (cdr (std::da-nth 0 x)))) (function (acl2::symbol-fix (cdr (std::da-nth 1 x)))) (inputs (atj-test-value-list-fix (cdr (std::da-nth 2 x)))) (outputs (atj-test-value-list-fix (cdr (std::da-nth 3 x))))) (list (cons 'name name) (cons 'function function) (cons 'inputs inputs) (cons 'outputs outputs))) :exec x)))
Theorem:
(defthm atj-testp-of-atj-test-fix (b* ((new-x (atj-test-fix$inline x))) (atj-testp new-x)) :rule-classes :rewrite)
Theorem:
(defthm atj-test-fix-when-atj-testp (implies (atj-testp x) (equal (atj-test-fix x) x)))
Function:
(defun atj-test-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (atj-testp acl2::x) (atj-testp acl2::y)))) (equal (atj-test-fix acl2::x) (atj-test-fix acl2::y)))
Theorem:
(defthm atj-test-equiv-is-an-equivalence (and (booleanp (atj-test-equiv x y)) (atj-test-equiv x x) (implies (atj-test-equiv x y) (atj-test-equiv y x)) (implies (and (atj-test-equiv x y) (atj-test-equiv y z)) (atj-test-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm atj-test-equiv-implies-equal-atj-test-fix-1 (implies (atj-test-equiv acl2::x x-equiv) (equal (atj-test-fix acl2::x) (atj-test-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm atj-test-fix-under-atj-test-equiv (atj-test-equiv (atj-test-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-atj-test-fix-1-forward-to-atj-test-equiv (implies (equal (atj-test-fix acl2::x) acl2::y) (atj-test-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-atj-test-fix-2-forward-to-atj-test-equiv (implies (equal acl2::x (atj-test-fix acl2::y)) (atj-test-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm atj-test-equiv-of-atj-test-fix-1-forward (implies (atj-test-equiv (atj-test-fix acl2::x) acl2::y) (atj-test-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm atj-test-equiv-of-atj-test-fix-2-forward (implies (atj-test-equiv acl2::x (atj-test-fix acl2::y)) (atj-test-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)