/-
Copyright (c) 2021 Damiano Testa. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Damiano Testa
-/
module
public import Mathlib.Algebra.BigOperators.Group.Finset.Defs
import Mathlib.Algebra.Regular.Basic
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Product of regular elements
## TODO
Move to `Mathlib/Algebra/BigOperators/Group/Finset/Basic.lean`?
-/
public section
variable {R : Type*} {a : R}
section CommMonoid
variable {ι R : Type*} [CommMonoid R] {s : Finset ι} {f : ι → R}
lemma IsLeftRegular.prod (h : ∀ i ∈ s, IsLeftRegular (f i)) :
IsLeftRegular (∏ i ∈ s, f i) :=
s.prod_induction _ _ (@IsLeftRegular.mul R _) isRegular_one.left h
lemma IsRightRegular.prod (h : ∀ i ∈ s, IsRightRegular (f i)) :
IsRightRegular (∏ i ∈ s, f i) :=
s.prod_induction _ _ (@IsRightRegular.mul R _) isRegular_one.right h
lemma IsRegular.prod (h : ∀ i ∈ s, IsRegular (f i)) :
IsRegular (∏ i ∈ s, f i) :=
⟨IsLeftRegular.prod fun a ha ↦ (h a ha).left,
IsRightRegular.prod fun a ha ↦ (h a ha).right⟩
end CommMonoid
¤ Dauer der Verarbeitung: 0.2 Sekunden
¤
*© Formatika GbR, Deutschland