Fixing function for load-funct structures.
(load-funct-fix x) → new-x
Function:
(defun load-funct-fix$inline (x) (declare (xargs :guard (load-funct-p x))) (let ((__function__ 'load-funct-fix)) (declare (ignorable __function__)) (mbe :logic (case (load-funct-kind x) (:lb (cons :lb (list))) (:lbu (cons :lbu (list))) (:lh (cons :lh (list))) (:lhu (cons :lhu (list))) (:lw (cons :lw (list))) (:lwu (cons :lwu (list))) (:ld (cons :ld (list)))) :exec x)))
Theorem:
(defthm load-funct-p-of-load-funct-fix (b* ((new-x (load-funct-fix$inline x))) (load-funct-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm load-funct-fix-when-load-funct-p (implies (load-funct-p x) (equal (load-funct-fix x) x)))
Function:
(defun load-funct-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (load-funct-p acl2::x) (load-funct-p acl2::y)))) (equal (load-funct-fix acl2::x) (load-funct-fix acl2::y)))
Theorem:
(defthm load-funct-equiv-is-an-equivalence (and (booleanp (load-funct-equiv x y)) (load-funct-equiv x x) (implies (load-funct-equiv x y) (load-funct-equiv y x)) (implies (and (load-funct-equiv x y) (load-funct-equiv y z)) (load-funct-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm load-funct-equiv-implies-equal-load-funct-fix-1 (implies (load-funct-equiv acl2::x x-equiv) (equal (load-funct-fix acl2::x) (load-funct-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm load-funct-fix-under-load-funct-equiv (load-funct-equiv (load-funct-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-load-funct-fix-1-forward-to-load-funct-equiv (implies (equal (load-funct-fix acl2::x) acl2::y) (load-funct-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-load-funct-fix-2-forward-to-load-funct-equiv (implies (equal acl2::x (load-funct-fix acl2::y)) (load-funct-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm load-funct-equiv-of-load-funct-fix-1-forward (implies (load-funct-equiv (load-funct-fix acl2::x) acl2::y) (load-funct-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm load-funct-equiv-of-load-funct-fix-2-forward (implies (load-funct-equiv acl2::x (load-funct-fix acl2::y)) (load-funct-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm load-funct-kind$inline-of-load-funct-fix-x (equal (load-funct-kind$inline (load-funct-fix x)) (load-funct-kind$inline x)))
Theorem:
(defthm load-funct-kind$inline-load-funct-equiv-congruence-on-x (implies (load-funct-equiv x x-equiv) (equal (load-funct-kind$inline x) (load-funct-kind$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm consp-of-load-funct-fix (consp (load-funct-fix x)) :rule-classes :type-prescription)