Fixing function for fhg-args structures.
(fhg-args-fix x) → new-x
Function:
(defun fhg-args-fix$inline (x) (declare (xargs :guard (fhg-args-p x))) (let ((acl2::__function__ 'fhg-args-fix)) (declare (ignorable acl2::__function__)) (mbe :logic (b* ((term-lst (pseudo-term-list-fix (cdr (std::da-nth 0 x)))) (fn-lst (func-alist-fix (cdr (std::da-nth 1 x)))) (fn-returns-hint-acc (hint-pair-list-fix (cdr (std::da-nth 2 x)))) (fn-more-returns-hint-acc (hint-pair-list-fix (cdr (std::da-nth 3 x)))) (lambda-acc (lambda-binding-list-fix (cdr (std::da-nth 4 x))))) (list (cons 'term-lst term-lst) (cons 'fn-lst fn-lst) (cons 'fn-returns-hint-acc fn-returns-hint-acc) (cons 'fn-more-returns-hint-acc fn-more-returns-hint-acc) (cons 'lambda-acc lambda-acc))) :exec x)))
Theorem:
(defthm fhg-args-p-of-fhg-args-fix (b* ((new-x (fhg-args-fix$inline x))) (fhg-args-p new-x)) :rule-classes :rewrite)
Theorem:
(defthm fhg-args-fix-when-fhg-args-p (implies (fhg-args-p x) (equal (fhg-args-fix x) x)))
Function:
(defun fhg-args-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (fhg-args-p acl2::x) (fhg-args-p acl2::y)))) (equal (fhg-args-fix acl2::x) (fhg-args-fix acl2::y)))
Theorem:
(defthm fhg-args-equiv-is-an-equivalence (and (booleanp (fhg-args-equiv x y)) (fhg-args-equiv x x) (implies (fhg-args-equiv x y) (fhg-args-equiv y x)) (implies (and (fhg-args-equiv x y) (fhg-args-equiv y z)) (fhg-args-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm fhg-args-equiv-implies-equal-fhg-args-fix-1 (implies (fhg-args-equiv acl2::x x-equiv) (equal (fhg-args-fix acl2::x) (fhg-args-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm fhg-args-fix-under-fhg-args-equiv (fhg-args-equiv (fhg-args-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-fhg-args-fix-1-forward-to-fhg-args-equiv (implies (equal (fhg-args-fix acl2::x) acl2::y) (fhg-args-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-fhg-args-fix-2-forward-to-fhg-args-equiv (implies (equal acl2::x (fhg-args-fix acl2::y)) (fhg-args-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm fhg-args-equiv-of-fhg-args-fix-1-forward (implies (fhg-args-equiv (fhg-args-fix acl2::x) acl2::y) (fhg-args-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm fhg-args-equiv-of-fhg-args-fix-2-forward (implies (fhg-args-equiv acl2::x (fhg-args-fix acl2::y)) (fhg-args-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)