Get the index field from a g-map-tag.
(g-map-tag->index x) → index
This is an ordinary field accessor created by defprod.
Function:
(defun g-map-tag->index$inline (x) (declare (xargs :guard (g-map-tag-p x))) (declare (xargs :guard t)) (let ((__function__ 'g-map-tag->index)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (acl2::maybe-natp-fix (cdr x))) :exec (cdr x))))
Theorem:
(defthm maybe-natp-of-g-map-tag->index (b* ((index (g-map-tag->index$inline x))) (acl2::maybe-natp index)) :rule-classes :type-prescription)
Theorem:
(defthm g-map-tag->index$inline-of-g-map-tag-fix-x (equal (g-map-tag->index$inline (g-map-tag-fix x)) (g-map-tag->index$inline x)))
Theorem:
(defthm g-map-tag->index$inline-g-map-tag-equiv-congruence-on-x (implies (g-map-tag-equiv x x-equiv) (equal (g-map-tag->index$inline x) (g-map-tag->index$inline x-equiv))) :rule-classes :congruence)