Fixing function for stmt-gin structures.
Function:
(defun stmt-gin-fix$inline (x) (declare (xargs :guard (stmt-ginp x))) (let ((__function__ 'stmt-gin-fix)) (declare (ignorable __function__)) (mbe :logic (b* ((context (atc-context-fix (cdr (std::da-nth 0 x)))) (var-term-alist (symbol-pseudoterm-alist-fix (cdr (std::da-nth 1 x)))) (typed-formals (atc-symbol-varinfo-alist-fix (cdr (std::da-nth 2 x)))) (inscope (atc-symbol-varinfo-alist-list-fix (cdr (std::da-nth 3 x)))) (loop-flag (acl2::bool-fix (cdr (std::da-nth 4 x)))) (affect (symbol-list-fix (cdr (std::da-nth 5 x)))) (fn (symbol-fix (cdr (std::da-nth 6 x)))) (fn-guard (symbol-fix (cdr (std::da-nth 7 x)))) (compst-var (symbol-fix (cdr (std::da-nth 8 x)))) (fenv-var (symbol-fix (cdr (std::da-nth 9 x)))) (limit-var (symbol-fix (cdr (std::da-nth 10 x)))) (prec-fns (atc-symbol-fninfo-alist-fix (cdr (std::da-nth 11 x)))) (prec-tags (atc-string-taginfo-alist-fix (cdr (std::da-nth 12 x)))) (prec-objs (atc-string-objinfo-alist-fix (cdr (std::da-nth 13 x)))) (thm-index (acl2::pos-fix (cdr (std::da-nth 14 x)))) (names-to-avoid (symbol-list-fix (cdr (std::da-nth 15 x)))) (proofs (acl2::bool-fix (cdr (std::da-nth 16 x))))) (list (cons 'context context) (cons 'var-term-alist var-term-alist) (cons 'typed-formals typed-formals) (cons 'inscope inscope) (cons 'loop-flag loop-flag) (cons 'affect affect) (cons 'fn fn) (cons 'fn-guard fn-guard) (cons 'compst-var compst-var) (cons 'fenv-var fenv-var) (cons 'limit-var limit-var) (cons 'prec-fns prec-fns) (cons 'prec-tags prec-tags) (cons 'prec-objs prec-objs) (cons 'thm-index thm-index) (cons 'names-to-avoid names-to-avoid) (cons 'proofs proofs))) :exec x)))
Theorem:
(defthm stmt-ginp-of-stmt-gin-fix (b* ((new-x (stmt-gin-fix$inline x))) (stmt-ginp new-x)) :rule-classes :rewrite)
Theorem:
(defthm stmt-gin-fix-when-stmt-ginp (implies (stmt-ginp x) (equal (stmt-gin-fix x) x)))
Function:
(defun stmt-gin-equiv$inline (acl2::x acl2::y) (declare (xargs :guard (and (stmt-ginp acl2::x) (stmt-ginp acl2::y)))) (equal (stmt-gin-fix acl2::x) (stmt-gin-fix acl2::y)))
Theorem:
(defthm stmt-gin-equiv-is-an-equivalence (and (booleanp (stmt-gin-equiv x y)) (stmt-gin-equiv x x) (implies (stmt-gin-equiv x y) (stmt-gin-equiv y x)) (implies (and (stmt-gin-equiv x y) (stmt-gin-equiv y z)) (stmt-gin-equiv x z))) :rule-classes (:equivalence))
Theorem:
(defthm stmt-gin-equiv-implies-equal-stmt-gin-fix-1 (implies (stmt-gin-equiv acl2::x x-equiv) (equal (stmt-gin-fix acl2::x) (stmt-gin-fix x-equiv))) :rule-classes (:congruence))
Theorem:
(defthm stmt-gin-fix-under-stmt-gin-equiv (stmt-gin-equiv (stmt-gin-fix acl2::x) acl2::x) :rule-classes (:rewrite :rewrite-quoted-constant))
Theorem:
(defthm equal-of-stmt-gin-fix-1-forward-to-stmt-gin-equiv (implies (equal (stmt-gin-fix acl2::x) acl2::y) (stmt-gin-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm equal-of-stmt-gin-fix-2-forward-to-stmt-gin-equiv (implies (equal acl2::x (stmt-gin-fix acl2::y)) (stmt-gin-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm stmt-gin-equiv-of-stmt-gin-fix-1-forward (implies (stmt-gin-equiv (stmt-gin-fix acl2::x) acl2::y) (stmt-gin-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)
Theorem:
(defthm stmt-gin-equiv-of-stmt-gin-fix-2-forward (implies (stmt-gin-equiv acl2::x (stmt-gin-fix acl2::y)) (stmt-gin-equiv acl2::x acl2::y)) :rule-classes :forward-chaining)