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