Eine aufbereitete Darstellung der Quelle

 
     
 
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung


Quelle  BigOperators.lean   Sprache: Lean

 

/-
Copyright (c) 2022 Eric Wieser. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Eric Wieser
-/

module

public import Mathlib.GroupTheory.Congruence.BigOperators
public import Mathlib.RingTheory.Congruence.Defs

set_option doc.verso true
set_option doc.verso.suggestions false

/-!
# Interactions between `∑, ∏` and `RingCon`

TODO: some of the typeclass assumptions in this file can be weakened if more instances are added
for `RingCon.Quotient`.
-/


public section

namespace RingCon

/-- Congruence relation of a ring preserves finite product indexed by a list. -/
protected lemma listProd {ι S : Type*} [Add S] [Monoid S]
    (t : RingCon S) (l : List ι) {f g : ι → S} (h : ∀ i ∈ l, t (f i) (g i)) :
    t (l.map f).prod (l.map g).prod :=
  t.toCon.list_prod h

@[simp, norm_cast]
protected lemma coe_listProd {ι S : Type*} [Add S] [Monoid S] (t : RingCon S)
    (l : List ι) (f : ι → S) :
    (↑(l.map f).prod : t.Quotient) = (l.map fun i => (f i : t.Quotient)).prod :=
  t.toCon.coe_listProd l f

/-- Congruence relation of a ring preserves finite sum indexed by a list. -/
protected lemma listSum {ι S : Type*} [AddMonoid S] [Mul S]
    (t : RingCon S) (l : List ι) {f g : ι → S} (h : ∀ i ∈ l, t (f i) (g i)) :
    t (l.map f).sum (l.map g).sum :=
  t.toAddCon.list_sum h

@[simp, norm_cast]
protected lemma coe_listSum {ι S : Type*} [AddMonoid S] [Mul S] (t : RingCon S)
    (l : List ι) (f : ι → S) :
    (↑(l.map f).sum : t.Quotient) = (l.map fun i => (f i : t.Quotient)).sum :=
  t.toAddCon.coe_listSum l f

/-- Congruence relation of a ring preserves finite product indexed by a multiset. -/
protected lemma multisetProd {ι S : Type*} [Add S] [CommMonoid S] (t : RingCon S)
    (s : Multiset ι) {f g : ι → S} (h : ∀ i ∈ s, t (f i) (g i)) :
    t (s.map f).prod (s.map g).prod :=
  t.toCon.multiset_prod h

@[simp, norm_cast]
protected lemma coe_multisetProd {ι S : Type*} [Add S] [CommMonoid S] (t : RingCon S)
    (s : Multiset ι) (f : ι → S) :
    (↑(s.map f).prod : t.Quotient) = (s.map fun i => (f i : t.Quotient)).prod :=
  t.toCon.coe_multisetProd s f

/-- Congruence relation of a ring preserves finite sum indexed by a multiset. -/
protected lemma multisetSum {ι S : Type*} [AddCommMonoid S] [Mul S] (t : RingCon S)
    (s : Multiset ι) {f g : ι → S} (h : ∀ i ∈ s, t (f i) (g i)) :
    t (s.map f).sum (s.map g).sum :=
  t.toAddCon.multiset_sum h

@[simp, norm_cast]
protected lemma coe_multisetSum {ι S : Type*} [AddCommMonoid S] [Mul S] (t : RingCon S)
    (s : Multiset ι) (f : ι → S) :
    (↑(s.map f).sum : t.Quotient) = (s.map fun i => (f i : t.Quotient)).sum :=
  t.toAddCon.coe_multisetSum s f

/-- Congruence relation of a ring preserves finite product. -/
protected lemma finsetProd {ι S : Type*} [Add S] [CommMonoid S] (t : RingCon S) (s : Finset ι)
    {f g : ι → S} (h : ∀ i ∈ s, t (f i) (g i)) :
    t (s.prod f) (s.prod g) :=
  t.toCon.finsetProd s h

@[simp, norm_cast]
protected lemma coe_finsetProd {ι S : Type*} [Add S] [CommMonoid S] (t : RingCon S) (s : Finset ι)
    (f : ι → S) :
    (↑(s.prod f) : t.Quotient) = s.prod fun i => (f i : t.Quotient) :=
  t.toCon.coe_finsetProd s f

/-- Congruence relation of a ring preserves finite sum. -/
protected lemma finsetSum {ι S : Type*} [AddCommMonoid S] [Mul S] (t : RingCon S) (s : Finset ι)
    {f g : ι → S} (h : ∀ i ∈ s, t (f i) (g i)) :
    t (s.sum f) (s.sum g) :=
  t.toAddCon.finsetSum s h

@[simp, norm_cast]
protected lemma coe_finsetSum {ι S : Type*} [AddCommMonoid S] [Mul S] (t : RingCon S) (s : Finset ι)
    (f : ι → S) :
    (↑(s.sum f) : t.Quotient) = s.sum fun i => (f i : t.Quotient) :=
  t.toAddCon.coe_finsetSum s f

protected lemma finsuppProd {ι : Type*} {β : Type*} {M : Type*}
    [Add M] [CommMonoid M] [Zero β]
    (c : RingCon M) (h : ι → β → M) (h' : ι → β → M)
    {f g : ι →₀ β} (hf : ∀ i, c (h i 0) 1) (hf' : ∀ i, c (h' i 0) 1)
    (H : ∀ i, c (h i (f i)) (h' i (g i))) :
    c (f.prod h) (g.prod h') :=
  c.toCon.finsuppProd h h' hf hf' H

@[simp, norm_cast]
protected lemma coe_finsuppProd {ι : Type*} {β : Type*} {M : Type*}
    [Add M] [CommMonoid M] [Zero β] (c : RingCon M) (h : ι → β → M) (f : ι →₀ β) :
    (↑(f.prod h) : c.Quotient) = f.prod fun i b => (h i b : c.Quotient) :=
  c.toCon.coe_finsuppProd h f

protected lemma finsuppSum {ι : Type*} {β : Type*} {M : Type*}
    [AddCommMonoid M] [Mul M] [Zero β]
    (c : RingCon M) (h : ι → β → M) (h' : ι → β → M)
    {f g : ι →₀ β} (hf : ∀ i, c (h i 0) 0) (hf' : ∀ i, c (h' i 0) 0)
    (H : ∀ i, c (h i (f i)) (h' i (g i))) :
    c (f.sum h) (g.sum h') :=
  c.toAddCon.finsuppSum h h' hf hf' H

@[simp, norm_cast]
protected lemma coe_finsuppSum {ι : Type*} {β : Type*} {M : Type*}
    [AddCommMonoid M] [Mul M] [Zero β] (c : RingCon M) (h : ι → β → M) (f : ι →₀ β) :
    (↑(f.sum h) : c.Quotient) = f.sum fun i b => (h i b : c.Quotient) :=
  c.toAddCon.coe_finsuppSum h f

protected lemma dfinsuppProd {ι : Type*} {β : ι → Type*} {M : Type*}
    [DecidableEq ι] [Add M] [CommMonoid M] [∀ i, Zero (β i)] [∀ i (y : β i), Decidable (y ≠ 0)]
    (c : RingCon M) (h : (i : ι) → β i → M) (h' : (i : ι) → β i → M)
    {f g : Π₀ i, β i} (hf : ∀ i, c (h i 0) 1) (hf' : ∀ i, c (h' i 0) 1)
    (H : ∀ i, c (h i (f i)) (h' i (g i))) :
    c (f.prod h) (g.prod h') :=
  c.toCon.dfinsuppProd h h' hf hf' H

@[simp, norm_cast]
protected lemma coe_dfinsuppProd {ι : Type*} {β : ι → Type*} {M : Type*}
    [DecidableEq ι] [Add M] [CommMonoid M] [∀ i, Zero (β i)] [∀ i (y : β i), Decidable (y ≠ 0)]
    (c : RingCon M) (h : (i : ι) → β i → M) (f : Π₀ i, β i) :
    (↑(f.prod h) : c.Quotient) = f.prod fun i b => (h i b : c.Quotient) :=
  c.toCon.coe_dfinsuppProd h f

protected lemma dfinsuppSum {ι : Type*} {β : ι → Type*} {M : Type*}
    [DecidableEq ι] [AddCommMonoid M] [Mul M] [∀ i, Zero (β i)] [∀ i (y : β i), Decidable (y ≠ 0)]
    (c : RingCon M) (h : (i : ι) → β i → M) (h' : (i : ι) → β i → M)
    {f g : Π₀ i, β i} (hf : ∀ i, c (h i 0) 0) (hf' : ∀ i, c (h' i 0) 0)
    (H : ∀ i, c (h i (f i)) (h' i (g i))) :
    c (f.sum h) (g.sum h') :=
  c.toAddCon.dfinsuppSum h h' hf hf' H

@[simp, norm_cast]
protected lemma coe_dfinsuppSum {ι : Type*} {β : ι → Type*} {M : Type*}
    [DecidableEq ι] [AddCommMonoid M] [Mul M] [∀ i, Zero (β i)] [∀ i (y : β i), Decidable (y ≠ 0)]
    (c : RingCon M) (h : (i : ι) → β i → M) (f : Π₀ i, β i) :
    (↑(f.sum h) : c.Quotient) = f.sum fun i b => (h i b : c.Quotient) :=
  c.toAddCon.coe_dfinsuppSum h f

protected lemma dfinsuppSumAddHom {ι : Type*} {β : ι → Type*} {M : Type*}
    [DecidableEq ι] [AddCommMonoid M] [Mul M] [∀ i, AddCommMonoid (β i)]
    (c : RingCon M) (h : (i : ι) → β i →+ M) (h' : (i : ι) → β i →+ M) {f g : Π₀ i, β i}
    (H : ∀ i, c (h i (f i)) (h' i (g i))) :
    c (f.sumAddHom h) (g.sumAddHom h') :=
  c.toAddCon.dfinsuppSumAddHom h h' H

@[simp, norm_cast]
protected lemma coe_dfinsuppSumAddHom {ι : Type*} {β : ι → Type*} {M : Type*}
    [DecidableEq ι] [AddCommMonoid M] [Mul M] [∀ i, AddCommMonoid (β i)]
    (c : RingCon M) (h : (i : ι) → β i →+ M) (f : Π₀ i, β i) :
    (↑(f.sumAddHom h) : c.Quotient) = f.sumAddHom fun i => c.toAddCon.mk'.comp (h i) :=
  c.toAddCon.coe_dfinsuppSumAddHom h f

end RingCon

Messung
CHZG
9110010096

¤ Dauer der Verarbeitung: 0.6 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,113
#Domains=863,471