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