Get the capacity field from a param.
This is an ordinary field accessor created by fty::defprod.
Function:
(defun param->capacity$inline (x) (declare (xargs :guard (paramp x))) (declare (xargs :guard t)) (let ((__function__ 'param->capacity)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (acl2::pos-fix (cdr (std::da-nth 2 x)))) :exec (cdr (std::da-nth 2 x)))))
Theorem:
(defthm posp-of-param->capacity (b* ((capacity (param->capacity$inline x))) (posp capacity)) :rule-classes :rewrite)
Theorem:
(defthm param->capacity$inline-of-param-fix-x (equal (param->capacity$inline (param-fix x)) (param->capacity$inline x)))
Theorem:
(defthm param->capacity$inline-param-equiv-congruence-on-x (implies (param-equiv x x-equiv) (equal (param->capacity$inline x) (param->capacity$inline x-equiv))) :rule-classes :congruence)