We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a69a10f commit d808924Copy full SHA for d808924
1 file changed
QCLib/Data/Fin/Digits.lean
@@ -99,8 +99,8 @@ lemma val_ofDigitsBE_rec' (f : Fin (n + 1) → Fin d) :
99
100
theorem ofDigits_ofDigitsBE_rec (f g : Fin (n + 1) → Fin d) :
101
(g.ofDigits : ℕ) * f.ofDigitsBE =
102
- d * (init g).ofDigits* (init f).ofDigitsBE
103
- + f (last n) * g.ofDigits
+ d * (init g).ofDigits * (init f).ofDigitsBE
+ + f (last n) * g.ofDigits
104
+ g (last n) * (init f).ofDigitsBE * d ^ (n + 1) := by
105
rw [val_ofDigits_rec' g, val_ofDigitsBE_rec' f]
106
ring
0 commit comments