Get the root-depth field from a bip32-key-tree.
(bip32-key-tree->root-depth x) → root-depth
This is an ordinary field accessor created by fty::defprod.
Function:
(defun bip32-key-tree->root-depth$inline (x) (declare (xargs :guard (bip32-key-treep x))) (declare (xargs :guard t)) (let ((__function__ 'bip32-key-tree->root-depth)) (declare (ignorable __function__)) (mbe :logic (b* ((x (and t x))) (byte-fix (std::da-nth 1 x))) :exec (std::da-nth 1 x))))
Theorem:
(defthm bytep-of-bip32-key-tree->root-depth (b* ((root-depth (bip32-key-tree->root-depth$inline x))) (bytep root-depth)) :rule-classes :rewrite)
Theorem:
(defthm bip32-key-tree->root-depth$inline-of-bip32-key-tree-fix-x (equal (bip32-key-tree->root-depth$inline (bip32-key-tree-fix x)) (bip32-key-tree->root-depth$inline x)))
Theorem:
(defthm bip32-key-tree->root-depth$inline-bip32-key-tree-equiv-congruence-on-x (implies (bip32-key-tree-equiv x x-equiv) (equal (bip32-key-tree->root-depth$inline x) (bip32-key-tree->root-depth$inline x-equiv))) :rule-classes :congruence)