File tree Expand file tree Collapse file tree
Mathlib/Algebra/BigOperators/GroupWithZero Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ Authors: Johannes Hölzl
55-/
66import Mathlib.Algebra.BigOperators.Group.Finset.Basic
77import Mathlib.Algebra.GroupWithZero.Units.Basic
8- import Mathlib.Algebra.Notation.Support
8+ import Mathlib.Algebra.Notation.Indicator
99import Mathlib.Data.Set.Lattice
1010
1111/-!
1717
1818open Function
1919
20- variable {ι κ G₀ M₀ : Type *}
20+ variable {ι κ G₀ M₀ : Type *} {α : ι → Type *}
2121
2222namespace Finset
2323variable [CommMonoidWithZero M₀] {p : ι → Prop } [DecidablePred p] {f : ι → M₀} {s : Finset ι}
@@ -41,6 +41,10 @@ lemma support_prod_subset (s : Finset ι) (f : ι → κ → M₀) :
4141 support (fun x ↦ ∏ i ∈ s, f i x) ⊆ ⋂ i ∈ s, support (f i) :=
4242 fun _ hx ↦ Set.mem_iInter₂.2 fun _ hi H ↦ hx <| prod_eq_zero hi H
4343
44+ @[simp] lemma _root_.Set.indicator_pi_one_apply (s : Finset ι) (t : ∀ i, Set (α i)) (f : ∀ i, α i) :
45+ ((s : Set ι).pi t).indicator 1 f = ∏ i ∈ s, (t i).indicator (M := M₀) 1 (f i) := by
46+ classical simp [Set.indicator, prod_boole]
47+
4448variable [Nontrivial M₀] [NoZeroDivisors M₀]
4549
4650lemma prod_eq_zero_iff : ∏ x ∈ s, f x = 0 ↔ ∃ a ∈ s, f a = 0 := by
You can’t perform that action at this time.
0 commit comments