Fixer for bip32-index-tree.
(bip32-index-tree-fix x) → fixed-x
Function:
(defun bip32-index-tree-fix (x) (declare (xargs :guard (bip32-index-treep x))) (mbe :logic (if (bip32-index-treep x) x (list nil)) :exec x))
Theorem:
(defthm bip32-index-treep-of-bip32-index-tree-fix (b* ((fixed-x (bip32-index-tree-fix x))) (bip32-index-treep fixed-x)) :rule-classes :rewrite)
Theorem:
(defthm bip32-index-tree-fix-when-bip32-index-treep (implies (bip32-index-treep x) (equal (bip32-index-tree-fix x) x)))