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