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