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