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