The Mathlib Handbook

The volumes of the handbook are not written yet. This site shows the map of Mathlib that they will follow, at Mathlib 4472534b60.

The areas / V03. Sets, finite structures and big operators

Mathlib.Algebra.BigOperators.Ring.Nat

3 declarations. Mathlib docs · Source

theorem Finset.even_sum_iff_even_card_odd E1 #

∀ {ι : Type u_1} {s : Finset ι} (f : ι → ℕ), Even (∑ i ∈ s, f i) ↔ Even {x ∈ s | Odd (f x)}.card

theorem Finset.odd_sum_iff_odd_card_odd E1 #

∀ {ι : Type u_1} {s : Finset ι} (f : ι → ℕ), Odd (∑ i ∈ s, f i) ↔ Odd {x ∈ s | Odd (f x)}.card

theorem Finset.card_preimage_eq_sum_card_image_eq E0 #

∀ {ι : Type u_1} {M : Type u_2} {f : ι → M} {s : Finset M},
  (∀ b ∈ s, {a | f a = b}.Finite) → Nat.card ↑(f ⁻¹' ↑s) = ∑ b ∈ s, Nat.card { a // f a = b }