Get the value-index field from a bool-format.
(bool-format->value-index x) → value-index
This is an ordinary field accessor created by fty::defprod.
Function:
(defun bool-format->value-index$inline (x) (declare (xargs :guard (bool-formatp x))) (declare (xargs :guard t)) (mbe :logic (b* ((x (and t x))) (nfix (cdr (std::da-nth 1 x)))) :exec (cdr (std::da-nth 1 x))))
Theorem:
(defthm natp-of-bool-format->value-index (b* ((value-index (bool-format->value-index$inline x))) (natp value-index)) :rule-classes :rewrite)
Theorem:
(defthm bool-format->value-index$inline-of-bool-format-fix-x (equal (bool-format->value-index$inline (bool-format-fix x)) (bool-format->value-index$inline x)))
Theorem:
(defthm bool-format->value-index$inline-bool-format-equiv-congruence-on-x (implies (bool-format-equiv x x-equiv) (equal (bool-format->value-index$inline x) (bool-format->value-index$inline x-equiv))) :rule-classes :congruence)