Get the expansion-depth field from a func.
This is an ordinary field accessor created by defprod.
Function:
(defun func->expansion-depth$inline (x) (declare (xargs :guard (func-p x))) (declare (xargs :guard t)) (let ((acl2::__function__ 'func->expansion-depth)) (declare (ignorable acl2::__function__)) (mbe :logic (b* ((x (and t x))) (nfix (cdr (std::da-nth 5 x)))) :exec (cdr (std::da-nth 5 x)))))
Theorem:
(defthm natp-of-func->expansion-depth (b* ((expansion-depth (func->expansion-depth$inline x))) (natp expansion-depth)) :rule-classes :rewrite)
Theorem:
(defthm func->expansion-depth$inline-of-func-fix-x (equal (func->expansion-depth$inline (func-fix x)) (func->expansion-depth$inline x)))
Theorem:
(defthm func->expansion-depth$inline-func-equiv-congruence-on-x (implies (func-equiv x x-equiv) (equal (func->expansion-depth$inline x) (func->expansion-depth$inline x-equiv))) :rule-classes :congruence)