Theorems · Theorem · number theory
Nat.sub_one_mul_sum_div_pow_eq_sub_sum_digits
∀ {p : ℕ} (L : List ℕ) {h_nonempty : L ≠ []},
L.getLast h_nonempty ≠ 0 →
(∀ l ∈ L, l < p) → (p - 1) * ∑ i ∈ Finset.range L.length, Nat.ofDigits p L / p ^ i.succ = Nat.ofDigits p L - L.sum- Defined in
- Mathlib.Data.Nat.Digits.Lemmas
- Cited by
- 1 results in Mathlib
- Foundations
- Depth 69 from the axioms · uses propext, Classical.choice, Quot.sound
Around this declaration
Dashed lines are statement dependencies; solid lines are citations in proofs.
Cites35
Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.
- Finsetproof · cited by 13,712
- Finset.sumstatement and proof · cited by 5,195
- one_mulproof · cited by 2,841
- add_zeroproof · cited by 2,707
- Finset.sum_congrproof · cited by 2,323
- MulZeroClass.mul_zeroproof · cited by 2,091
- MulZeroClass.zero_mulproof · cited by 1,625
- Finset.rangestatement and proof · cited by 1,341
- one_powproof · cited by 521
- Finset.Icoproof · cited by 450
- mul_addproof · cited by 413
- nsmul_eq_mulproof · cited by 369
Cited by1
Results whose statement or proof uses this declaration.
- Nat.sub_one_mul_sum_log_div_pow_eq_sub_sum_digitsproof · cited by 1