/-
Copyright (c) 2024 Yaël Dillies. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Yaël Dillies
-/
module
public import Mathlib.Algebra.DirectSum.Basic
public import Mathlib.Algebra.Group.AddChar
set_option doc.verso true
set_option doc.verso.suggestions false
/-!
# Direct sum of additive characters
This file defines the direct sum of additive characters.
-/
@[expose] public section
open Function
open scoped DirectSum
variable {ι R : Type*} {G : ι → Type*} [DecidableEq ι] [∀ i, AddCommGroup (G i)] [CommMonoid R]
namespace AddChar
section DirectSum
/-- Direct sum of additive characters. -/
@[simps!]
def directSum (ψ : ∀ i, AddChar (G i) R) : AddChar (⨁ i, G i) R :=
toAddMonoidHomEquiv.symm <| DirectSum.toAddMonoid fun i ↦ toAddMonoidHomEquiv (ψ i)
lemma directSum_injective :
Injective (directSum : (∀ i, AddChar (G i) R) → AddChar (⨁ i, G i) R) := by
refine toAddMonoidHomEquiv.symm.injective.comp <| DirectSum.toAddMonoid_injective.comp ?_
rintro ψ χ h
simpa [funext_iff] using h
end DirectSum
end AddChar
¤ Dauer der Verarbeitung: 0.4 Sekunden
¤
*© Formatika GbR, Deutschland