Get the groupsize field from a sd-problem.
(sd-problem->groupsize x) → groupsize
This is an ordinary field accessor created by defprod.
Function:
(defun sd-problem->groupsize$inline (x) (declare (xargs :guard (sd-problem-p x))) (declare (xargs :guard t)) (let ((__function__ 'sd-problem->groupsize)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (nfix (car (cdr (cdr x))))) :exec (car (cdr (cdr x))))))
Theorem:
(defthm natp-of-sd-problem->groupsize (b* ((groupsize (sd-problem->groupsize$inline x))) (natp groupsize)) :rule-classes :type-prescription)
Theorem:
(defthm sd-problem->groupsize$inline-of-sd-problem-fix-x (equal (sd-problem->groupsize$inline (sd-problem-fix x)) (sd-problem->groupsize$inline x)))
Theorem:
(defthm sd-problem->groupsize$inline-sd-problem-equiv-congruence-on-x (implies (sd-problem-equiv x x-equiv) (equal (sd-problem->groupsize$inline x) (sd-problem->groupsize$inline x-equiv))) :rule-classes :congruence)