Recognize elements of
(jubjub-rstar-pointp x) → yes/no
These are the points order
Function:
(defun jubjub-rstar-pointp (x) (declare (xargs :guard t)) (let ((__function__ 'jubjub-rstar-pointp)) (declare (ignorable __function__)) (and (jubjub-pointp x) (ecurve::twisted-edwards-point-orderp x (jubjub-r) (jubjub-curve)))))
Theorem:
(defthm booleanp-of-jubjub-rstar-pointp (b* ((yes/no (jubjub-rstar-pointp x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm jubjub-r-pointp-when-jubjub-rstar-pointp (implies (jubjub-rstar-pointp x) (jubjub-r-pointp x)))