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