Get the tag field from a g-map.
(g-map->tag x) → tag
This is an ordinary field accessor created by defprod.
Function:
(defun g-map->tag$inline (x) (declare (xargs :guard (fgl-object-p x))) (declare (xargs :guard (equal (fgl-object-kind x) :g-map))) (let ((__function__ 'g-map->tag)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (fgl-object-kind x) :g-map) x))) (g-map-tag-fix (car x))) :exec (car x))))
Theorem:
(defthm g-map-tag-p-of-g-map->tag (b* ((tag (g-map->tag$inline x))) (g-map-tag-p tag)) :rule-classes :rewrite)
Theorem:
(defthm g-map->tag$inline-of-fgl-object-fix-x (equal (g-map->tag$inline (fgl-object-fix x)) (g-map->tag$inline x)))
Theorem:
(defthm g-map->tag$inline-fgl-object-equiv-congruence-on-x (implies (fgl-object-equiv x x-equiv) (equal (g-map->tag$inline x) (g-map->tag$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm g-map->tag-when-wrong-kind (implies (not (equal (fgl-object-kind x) :g-map)) (equal (g-map->tag x) (g-map-tag-fix nil))))