Get the value field from a tterm-constant.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun tterm-constant->value$inline (x) (declare (xargs :guard (ttermp x))) (declare (xargs :guard (equal (tterm-kind x) :constant))) (let ((__function__ 'tterm-constant->value)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (tterm-kind x) :constant) x))) (value-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm valuep-of-tterm-constant->value (b* ((value (tterm-constant->value$inline x))) (valuep value)) :rule-classes :rewrite)
Theorem:
(defthm tterm-constant->value$inline-of-tterm-fix-x (equal (tterm-constant->value$inline (tterm-fix x)) (tterm-constant->value$inline x)))
Theorem:
(defthm tterm-constant->value$inline-tterm-equiv-congruence-on-x (implies (tterm-equiv x x-equiv) (equal (tterm-constant->value$inline x) (tterm-constant->value$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm tterm-constant->value-when-wrong-kind (implies (not (equal (tterm-kind x) :constant)) (equal (tterm-constant->value x) (value-fix nil))))