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