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.Group.Finset.Preimage

6 declarations. Mathlib docs · Source

theorem Finset.sum_preimage' E1 #

∀ {ι : Type u_1} {κ : Type u_2} {β : Type u_3} [inst : AddCommMonoid β] (f : ι → κ)
  [inst_1 : DecidablePred fun x ↦ x ∈ Set.range f] (s : Finset κ) (hf : Set.InjOn f (f ⁻¹' ↑s)) (g : κ → β),
  ∑ x ∈ s.preimage f hf, g (f x) = ∑ x ∈ s with x ∈ Set.range f, g x

theorem Finset.prod_preimage' E1 #

∀ {ι : Type u_1} {κ : Type u_2} {β : Type u_3} [inst : CommMonoid β] (f : ι → κ)
  [inst_1 : DecidablePred fun x ↦ x ∈ Set.range f] (s : Finset κ) (hf : Set.InjOn f (f ⁻¹' ↑s)) (g : κ → β),
  ∏ x ∈ s.preimage f hf, g (f x) = ∏ x ∈ s with x ∈ Set.range f, g x

theorem Finset.prod_preimage E1 #

∀ {ι : Type u_1} {κ : Type u_2} {β : Type u_3} [inst : CommMonoid β] (f : ι → κ) (s : Finset κ)
  (hf : Set.InjOn f (f ⁻¹' ↑s)) (g : κ → β),
  (∀ x ∈ s, x ∉ Set.range f → g x = 1) → ∏ x ∈ s.preimage f hf, g (f x) = ∏ x ∈ s, g x

theorem Finset.sum_preimage E1 #

∀ {ι : Type u_1} {κ : Type u_2} {β : Type u_3} [inst : AddCommMonoid β] (f : ι → κ) (s : Finset κ)
  (hf : Set.InjOn f (f ⁻¹' ↑s)) (g : κ → β),
  (∀ x ∈ s, x ∉ Set.range f → g x = 0) → ∑ x ∈ s.preimage f hf, g (f x) = ∑ x ∈ s, g x

theorem Finset.prod_preimage_of_bij E1 #

∀ {ι : Type u_1} {κ : Type u_2} {β : Type u_3} [inst : CommMonoid β] (f : ι → κ) (s : Finset κ)
  (hf : Set.BijOn f (f ⁻¹' ↑s) ↑s) (g : κ → β), ∏ x ∈ s.preimage f ⋯, g (f x) = ∏ x ∈ s, g x

theorem Finset.sum_preimage_of_bij E1 #

∀ {ι : Type u_1} {κ : Type u_2} {β : Type u_3} [inst : AddCommMonoid β] (f : ι → κ) (s : Finset κ)
  (hf : Set.BijOn f (f ⁻¹' ↑s) ↑s) (g : κ → β), ∑ x ∈ s.preimage f ⋯, g (f x) = ∑ x ∈ s, g x