English
toFin commutes with power: toFin (x^n) = (toFin x)^n.
Русский
toFin commuting with exponentiation: toFin (x^n) = (toFin x)^n.
LaTeX
$$$\forall x : BitVec w, \forall n \in \mathbb{N},\; \mathrm{toFin}(x^n) = (\mathrm{toFin}(x))^n$$$
Lean4
theorem toFin_pow (x : BitVec w) (n : ℕ) : toFin (x ^ n) = x.toFin ^ n := by
induction n with
| zero => simp
| succ n ih => simp [ih, BitVec.pow_succ, pow_succ]