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