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