Recognizer for secp256k1-pub-key.
(secp256k1-pub-key-p x) → yes/no
Function:
(defun secp256k1-pub-key-p (x) (declare (xargs :guard t)) (and (secp256k1-pointp x) (not (secp256k1-point-infinityp x))))
Theorem:
(defthm booleanp-of-secp256k1-pub-key-p (b* ((yes/no (secp256k1-pub-key-p x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm secp256k1-pointp-when-secp256k1-pub-key-p (implies (secp256k1-pub-key-p x) (secp256k1-pointp x)))