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