Recognizer for bip32-chain-code.
(bip32-chain-code-p x) → yes/no
Function:
(defun bip32-chain-code-p (x) (declare (xargs :guard t)) (and (byte-listp x) (equal (len x) 32)))
Theorem:
(defthm booleanp-of-bip32-chain-code-p (b* ((yes/no (bip32-chain-code-p x))) (booleanp yes/no)) :rule-classes :rewrite)
Theorem:
(defthm byte-listp-when-bip32-chain-code-p (implies (bip32-chain-code-p cc) (byte-listp cc)))
Theorem:
(defthm len-when-bip32-chain-code-p (implies (bip32-chain-code-p x) (equal (len x) 32)) :rule-classes :tau-system)