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