Mathlib Map

Theorems · Theorem · number theory

ZMod.sum_mul_div_add_sum_mul_div_eq_mul

∀ (p q : ℕ) [hp : Fact (Nat.Prime p)],
  ↑q ≠ 0 → ∑ a ∈ Finset.Ico 1 (p / 2).succ, a * q / p + ∑ a ∈ Finset.Ico 1 (q / 2).succ, a * p / q = p / 2 * (q / 2)

Each of the sums in this lemma is the cardinality of the set of integer points in each of the two triangles formed by the diagonal of the rectangle (0, p/2) × (0, q/2). Adding them gives the number of points in the rectangle.

Defined in
Mathlib.NumberTheory.LegendreSymbol.GaussEisensteinLemmas
Cited by
0 results in Mathlib
Foundations
Depth 81 from the axioms · uses propext, Classical.choice, Quot.sound
Assumes
Fact

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites29

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by0

Results whose statement or proof uses this declaration.

Nothing cites this yet.