Mathlib.Algebra.Group.Action.Prod
23 declarations. Mathlib docs · Source
Prod instances for additive and multiplicative actions
This file defines instances for binary product of additive and multiplicative actions and provides
scalar multiplication as a homomorphism from α × β to β.
Main declarations
smulMulHom/smulMonoidHom: Scalar multiplication bundled as a multiplicative/monoid homomorphism.
See also
Mathlib/Algebra/Group/Action/Option.leanMathlib/Algebra/Group/Action/Pi.leanMathlib/Algebra/Group/Action/Sigma.leanMathlib/Algebra/Group/Action/Sum.lean
Porting notes
The to_additive attribute can be used to generate both the smul and vadd lemmas
from the corresponding pow lemmas, as explained on zulip here:
https://leanprover.zulipchat.com/#narrow/near/316087838
This was not done as part of the port in order to stay as close as possible to the mathlib3 code.
Scalar multiplication as a homomorphism
instance Prod.vaddAssocClass E0 #
∀ {M : Type u_1} {N : Type u_2} {α : Type u_4} {β : Type u_5} [inst : VAdd M α] [inst_1 : VAdd M β] [inst_2 : VAdd N α]
[inst_3 : VAdd N β] [inst_4 : VAdd M N] [VAddAssocClass M N α] [VAddAssocClass M N β], VAddAssocClass M N (α × β)
instance Prod.isScalarTower E0 #
∀ {M : Type u_1} {N : Type u_2} {α : Type u_4} {β : Type u_5} [inst : SMul M α] [inst_1 : SMul M β] [inst_2 : SMul N α]
[inst_3 : SMul N β] [inst_4 : SMul M N] [IsScalarTower M N α] [IsScalarTower M N β], IsScalarTower M N (α × β)
instance Prod.smulCommClass E0 #
∀ {M : Type u_1} {N : Type u_2} {α : Type u_4} {β : Type u_5} [inst : SMul M α] [inst_1 : SMul M β] [inst_2 : SMul N α]
[inst_3 : SMul N β] [SMulCommClass M N α] [SMulCommClass M N β], SMulCommClass M N (α × β)
instance Prod.vaddCommClass E0 #
∀ {M : Type u_1} {N : Type u_2} {α : Type u_4} {β : Type u_5} [inst : VAdd M α] [inst_1 : VAdd M β] [inst_2 : VAdd N α]
[inst_3 : VAdd N β] [VAddCommClass M N α] [VAddCommClass M N β], VAddCommClass M N (α × β)
instance Prod.isCentralScalar E0 #
∀ {M : Type u_1} {α : Type u_4} {β : Type u_5} [inst : SMul M α] [inst_1 : SMul M β] [inst_2 : SMul Mᵐᵒᵖ α]
[inst_3 : SMul Mᵐᵒᵖ β] [IsCentralScalar M α] [IsCentralScalar M β], IsCentralScalar M (α × β)
instance Prod.isCentralVAdd E0 #
∀ {M : Type u_1} {α : Type u_4} {β : Type u_5} [inst : VAdd M α] [inst_1 : VAdd M β] [inst_2 : VAdd Mᵃᵒᵖ α]
[inst_3 : VAdd Mᵃᵒᵖ β] [IsCentralVAdd M α] [IsCentralVAdd M β], IsCentralVAdd M (α × β)
instance Prod.faithfulVAddLeft E0 #
∀ {M : Type u_1} {α : Type u_4} {β : Type u_5} [inst : VAdd M α] [inst_1 : VAdd M β] [FaithfulVAdd M α] [Nonempty β],
FaithfulVAdd M (α × β)
instance Prod.faithfulSMulLeft E0 #
∀ {M : Type u_1} {α : Type u_4} {β : Type u_5} [inst : SMul M α] [inst_1 : SMul M β] [FaithfulSMul M α] [Nonempty β],
FaithfulSMul M (α × β)
instance Prod.faithfulSMulRight E0 #
∀ {M : Type u_1} {α : Type u_4} {β : Type u_5} [inst : SMul M α] [inst_1 : SMul M β] [Nonempty α] [FaithfulSMul M β],
FaithfulSMul M (α × β)
instance Prod.faithfulVAddRight E0 #
∀ {M : Type u_1} {α : Type u_4} {β : Type u_5} [inst : VAdd M α] [inst_1 : VAdd M β] [Nonempty α] [FaithfulVAdd M β],
FaithfulVAdd M (α × β)
instance Prod.smulCommClassBoth E0 #
∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Mul N] [inst_1 : Mul P] [inst_2 : SMul M N] [inst_3 : SMul M P]
[SMulCommClass M N N] [SMulCommClass M P P], SMulCommClass M (N × P) (N × P)
instance Prod.vaddCommClassBoth E0 #
∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Add N] [inst_1 : Add P] [inst_2 : VAdd M N] [inst_3 : VAdd M P]
[VAddCommClass M N N] [VAddCommClass M P P], VAddCommClass M (N × P) (N × P)
instance Prod.isScalarTowerBoth E0 #
∀ {M : Type u_1} {N : Type u_2} {P : Type u_3} [inst : Mul N] [inst_1 : Mul P] [inst_2 : SMul M N] [inst_3 : SMul M P]
[IsScalarTower M N N] [IsScalarTower M P P], IsScalarTower M (N × P) (N × P)
instance Prod.mulAction E0 #
{M : Type u_1} →
{α : Type u_4} → {β : Type u_5} → [inst : Monoid M] → [MulAction M α] → [MulAction M β] → MulAction M (α × β)
instance Prod.addAction E0 #
{M : Type u_1} →
{α : Type u_4} → {β : Type u_5} → [inst : AddMonoid M] → [AddAction M α] → [AddAction M β] → AddAction M (α × β)
def smulMulHom E3 #
{α : Type u_4} →
{β : Type u_5} →
[inst : Monoid α] →
[inst_1 : Mul β] → [inst_2 : MulAction α β] → [IsScalarTower α β β] → [SMulCommClass α β β] → α × β →ₙ* β
Scalar multiplication as a multiplicative homomorphism.
theorem smulMulHom_apply E0 #
∀ {α : Type u_4} {β : Type u_5} [inst : Monoid α] [inst_1 : Mul β] [inst_2 : MulAction α β]
[inst_3 : IsScalarTower α β β] [inst_4 : SMulCommClass α β β] (a : α × β), smulMulHom a = a.1 • a.2
def smulMonoidHom E3 #
{α : Type u_4} →
{β : Type u_5} →
[inst : Monoid α] →
[inst_1 : MulOneClass β] → [inst_2 : MulAction α β] → [IsScalarTower α β β] → [SMulCommClass α β β] → α × β →* β
Scalar multiplication as a monoid homomorphism.
theorem smulMonoidHom_apply E0 #
∀ {α : Type u_4} {β : Type u_5} [inst : Monoid α] [inst_1 : MulOneClass β] [inst_2 : MulAction α β]
[inst_3 : IsScalarTower α β β] [inst_4 : SMulCommClass α β β] (a : α × β), smulMonoidHom a = smulMulHom.toFun a
abbrev MulAction.prodOfSMulCommClass E1 #
(M : Type u_1) →
(N : Type u_2) →
(α : Type u_4) →
[inst : Monoid M] →
[inst_1 : Monoid N] →
[inst_2 : MulAction M α] → [inst_3 : MulAction N α] → [SMulCommClass M N α] → MulAction (M × N) α
Construct a MulAction by a product monoid from MulActions by the factors.
This is not an instance to avoid diamonds for example when α := M × N.
abbrev AddAction.prodOfVAddCommClass E1 #
(M : Type u_1) →
(N : Type u_2) →
(α : Type u_4) →
[inst : AddMonoid M] →
[inst_1 : AddMonoid N] →
[inst_2 : AddAction M α] → [inst_3 : AddAction N α] → [VAddCommClass M N α] → AddAction (M × N) α
Construct an AddAction by a product monoid from AddActions by the factors.
This is not an instance to avoid diamonds for example when α := M × N.
def MulAction.prodEquiv E1 #
(M : Type u_1) →
(N : Type u_2) →
(α : Type u_4) →
[inst : Monoid M] →
[inst_1 : Monoid N] → MulAction (M × N) α ≃ (x : MulAction M α) ×' (x_1 : MulAction N α) ×' SMulCommClass M N α
A MulAction by a product monoid is equivalent to commuting MulActions by the factors.
def AddAction.prodEquiv E1 #
(M : Type u_1) →
(N : Type u_2) →
(α : Type u_4) →
[inst : AddMonoid M] →
[inst_1 : AddMonoid N] →
AddAction (M × N) α ≃ (x : AddAction M α) ×' (x_1 : AddAction N α) ×' VAddCommClass M N α
An AddAction by a product monoid is equivalent to commuting AddActions by the factors.