Get the right field from a axi-gate.
(axi-gate->right x) → right
This is an ordinary field accessor created by fty::defprod.
Function:
(defun axi-gate->right$inline (x) (declare (xargs :guard (axi-term-p x))) (declare (xargs :guard (equal (axi-term-kind x) :gate))) (let ((__function__ 'axi-gate->right)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (axi-term-kind x) :gate) x))) (axi-lit-fix (caddr x))) :exec (caddr x))))
Theorem:
(defthm axi-lit-p-of-axi-gate->right (b* ((right (axi-gate->right$inline x))) (axi-lit-p right)) :rule-classes :rewrite)
Theorem:
(defthm axi-gate->right$inline-of-axi-term-fix-x (equal (axi-gate->right$inline (axi-term-fix x)) (axi-gate->right$inline x)))
Theorem:
(defthm axi-gate->right$inline-axi-term-equiv-congruence-on-x (implies (axi-term-equiv x x-equiv) (equal (axi-gate->right$inline x) (axi-gate->right$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm axi-gate->right-when-wrong-kind (implies (not (equal (axi-term-kind x) :gate)) (equal (axi-gate->right x) (axi-lit-fix nil))))