Get the get field from a bip32-ext-key-pub.
(bip32-ext-key-pub->get x) → get
This is an ordinary field accessor created by fty::defprod.
Function:
(defun bip32-ext-key-pub->get$inline (x) (declare (xargs :guard (bip32-ext-key-p x))) (declare (xargs :guard (equal (bip32-ext-key-kind x) :pub))) (let ((__function__ 'bip32-ext-key-pub->get)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and (equal (bip32-ext-key-kind x) :pub) x))) (bip32-ext-pub-key-fix (std::da-nth 0 (cdr x)))) :exec (std::da-nth 0 (cdr x)))))
Theorem:
(defthm bip32-ext-pub-key-p-of-bip32-ext-key-pub->get (b* ((get (bip32-ext-key-pub->get$inline x))) (bip32-ext-pub-key-p get)) :rule-classes :rewrite)
Theorem:
(defthm bip32-ext-key-pub->get$inline-of-bip32-ext-key-fix-x (equal (bip32-ext-key-pub->get$inline (bip32-ext-key-fix x)) (bip32-ext-key-pub->get$inline x)))
Theorem:
(defthm bip32-ext-key-pub->get$inline-bip32-ext-key-equiv-congruence-on-x (implies (bip32-ext-key-equiv x x-equiv) (equal (bip32-ext-key-pub->get$inline x) (bip32-ext-key-pub->get$inline x-equiv))) :rule-classes :congruence)
Theorem:
(defthm bip32-ext-key-pub->get-when-wrong-kind (implies (not (equal (bip32-ext-key-kind x) :pub)) (equal (bip32-ext-key-pub->get x) (bip32-ext-pub-key-fix nil))))