Eine aufbereitete Darstellung der Quelle

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


Quelle  Constructions.lean   Sprache: Lean

 

/-
Copyright (c) 2018 Patrick Massot. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Authors: Patrick Massot, Johannes Hölzl, Yaël Dillies
-/

module

public import Mathlib.Algebra.Group.PUnit
public import Mathlib.Algebra.Group.ULift
public import Mathlib.Analysis.Normed.Group.Basic

/-!
# Product of normed groups and other constructions

This file constructs the infinity norm on finite products of normed groups and provides instances
for type synonyms.
-/


public section

open NNReal

variable {ι ι' E F : Type*} {G : ι → Type*}

/-! ### `PUnit` -/

namespace PUnit

instance normedAddCommGroup : NormedAddCommGroup PUnit where
  norm := Function.const _ 0
  dist_eq _ _ := rfl

@[simp] lemma norm_eq_zero (x : PUnit) : ‖x‖ = 0 := rfl

end PUnit

/-! ### `ULift` -/

namespace ULift
section Norm
variable [Norm E]

instance norm : Norm (ULift E) where norm x := ‖x.down‖

lemma norm_def (x : ULift E) : ‖x‖ = ‖x.down‖ := rfl

@[simp] lemma norm_up (x : E) : ‖ULift.up x‖ = ‖x‖ := rfl

@[simp] lemma norm_down (x : ULift E) : ‖x.down‖ = ‖x‖ := rfl

end Norm

section NNNorm
variable [NNNorm E]

instance nnNorm : NNNorm (ULift E) where nnNorm x := ‖x.down‖₊

lemma nnNorm_def (x : ULift E) : ‖x‖₊ = ‖x.down‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_def := nnNorm_def

@[simp] lemma nnNorm_up (x : E) : ‖ULift.up x‖₊ = ‖x‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_up := nnNorm_up

@[simp] lemma nnNorm_down (x : ULift E) : ‖x.down‖₊ = ‖x‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_down := nnNorm_down

end NNNorm

@[to_additive]
instance seminormedGroup [SeminormedGroup E] : SeminormedGroup (ULift E) :=
  SeminormedGroup.induced _ _
  { toFun := ULift.down,
    map_one' := rfl,
    map_mul' := fun _ _ => rfl : ULift E →* E }

@[to_additive]
instance seminormedCommGroup [SeminormedCommGroup E] : SeminormedCommGroup (ULift E) :=
  SeminormedCommGroup.induced _ _
  { toFun := ULift.down,
    map_one' := rfl,
    map_mul' := fun _ _ => rfl : ULift E →* E }

@[to_additive]
instance normedGroup [NormedGroup E] : NormedGroup (ULift E) :=
  NormedGroup.induced _ _
  { toFun := ULift.down,
    map_one' := rfl,
    map_mul' := fun _ _ => rfl : ULift E →* E }
  down_injective

@[to_additive]
instance normedCommGroup [NormedCommGroup E] : NormedCommGroup (ULift E) :=
  NormedCommGroup.induced _ _
  { toFun := ULift.down,
    map_one' := rfl,
    map_mul' := fun _ _ => rfl : ULift E →* E }
  down_injective

end ULift

/-! ### `Additive`, `Multiplicative` -/

section AdditiveMultiplicative

open Additive Multiplicative

section Norm
variable [Norm E]

instance Additive.toNorm : Norm (Additive E) := ‹Norm E›
instance Multiplicative.toNorm : Norm (Multiplicative E) := ‹Norm E›

@[simp] lemma norm_toMul (x : Additive E) : ‖(x.toMul : E)‖ = ‖x‖ := rfl

@[simp] lemma norm_ofMul (x : E) : ‖ofMul x‖ = ‖x‖ := rfl

@[simp] lemma norm_toAdd (x : Multiplicative E) : ‖(x.toAdd : E)‖ = ‖x‖ := rfl

@[simp] lemma norm_ofAdd (x : E) : ‖ofAdd x‖ = ‖x‖ := rfl

end Norm

section NNNorm
variable [NNNorm E]

instance Additive.toNNNorm : NNNorm (Additive E) := ‹NNNorm E›

instance Multiplicative.toNNNorm : NNNorm (Multiplicative E) := ‹NNNorm E›

@[simp] lemma nnNorm_toMul (x : Additive E) : ‖(x.toMul : E)‖₊ = ‖x‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_toMul := nnNorm_toMul

@[simp] lemma nnNorm_ofMul (x : E) : ‖ofMul x‖₊ = ‖x‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_ofMul := nnNorm_ofMul

@[simp] lemma nnNorm_toAdd (x : Multiplicative E) : ‖(x.toAdd : E)‖₊ = ‖x‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_toAdd := nnNorm_toAdd

@[simp] lemma nnNorm_ofAdd (x : E) : ‖ofAdd x‖₊ = ‖x‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_ofAdd := nnNorm_ofAdd

end NNNorm

instance Additive.seminormedAddGroup [SeminormedGroup E] : SeminormedAddGroup (Additive E) where
  dist_eq x y := dist_eq_norm_inv_mul x.toMul y.toMul


instance Multiplicative.seminormedGroup [SeminormedAddGroup E] :
    SeminormedGroup (Multiplicative E) where
  dist_eq x y := dist_eq_norm_neg_add x.toAdd y.toAdd

instance Additive.seminormedCommGroup [SeminormedCommGroup E] :
    SeminormedAddCommGroup (Additive E) :=
  { Additive.seminormedAddGroup with
    add_comm := add_comm }

instance Multiplicative.seminormedAddCommGroup [SeminormedAddCommGroup E] :
    SeminormedCommGroup (Multiplicative E) :=
  { Multiplicative.seminormedGroup with
    mul_comm := mul_comm }

instance Additive.normedAddGroup [NormedGroup E] : NormedAddGroup (Additive E) :=
  { Additive.seminormedAddGroup with
    eq_of_dist_eq_zero := eq_of_dist_eq_zero }

instance Multiplicative.normedGroup [NormedAddGroup E] : NormedGroup (Multiplicative E) :=
  { Multiplicative.seminormedGroup with
    eq_of_dist_eq_zero := eq_of_dist_eq_zero }

instance Additive.normedAddCommGroup [NormedCommGroup E] : NormedAddCommGroup (Additive E) :=
  { Additive.seminormedAddGroup with
    add_comm := add_comm
    eq_of_dist_eq_zero := eq_of_dist_eq_zero }

instance Multiplicative.normedCommGroup [NormedAddCommGroup E] :
    NormedCommGroup (Multiplicative E) :=
  { Multiplicative.seminormedGroup with
    mul_comm := mul_comm
    eq_of_dist_eq_zero := eq_of_dist_eq_zero }

end AdditiveMultiplicative

/-! ### Order dual -/

section OrderDual
open OrderDual

section Norm
variable [Norm E]

instance OrderDual.toNorm : Norm Eᵒᵈ where
  norm x := ‖ofDual x‖

@[simp] lemma norm_toDual (x : E) : ‖toDual x‖ = ‖x‖ := rfl

@[simp] lemma norm_ofDual (x : Eᵒᵈ) : ‖ofDual x‖ = ‖x‖ := rfl

end Norm

section NNNorm
variable [NNNorm E]

instance OrderDual.toNNNorm : NNNorm Eᵒᵈ where
  nnNorm x := ‖ofDual x‖₊

@[simp] lemma nnNorm_toDual (x : E) : ‖toDual x‖₊ = ‖x‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_toDual := nnNorm_toDual

@[simp] lemma nnNorm_ofDual (x : Eᵒᵈ) : ‖ofDual x‖₊ = ‖x‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_ofDual := nnNorm_ofDual

end NNNorm

namespace OrderDual

-- See note [lower instance priority]
@[to_additive]
instance (priority := 100) seminormedGroup [SeminormedGroup E] : SeminormedGroup Eᵒᵈ :=
  inferInstanceAs <| SeminormedGroup E

-- See note [lower instance priority]
@[to_additive]
instance (priority := 100) seminormedCommGroup [SeminormedCommGroup E] : SeminormedCommGroup Eᵒᵈ :=
  inferInstanceAs <| SeminormedCommGroup E

-- See note [lower instance priority]
@[to_additive]
instance (priority := 100) normedGroup [NormedGroup E] : NormedGroup Eᵒᵈ :=
  inferInstanceAs <| NormedGroup E

-- See note [lower instance priority]
@[to_additive]
instance (priority := 100) normedCommGroup [NormedCommGroup E] : NormedCommGroup Eᵒᵈ :=
  inferInstanceAs <| NormedCommGroup E

end OrderDual
end OrderDual

/-! ### Binary product of normed groups -/

section Norm
variable [Norm E] [Norm F] {x : E × F} {r : ℝ}

instance Prod.toNorm : Norm (E × F) where norm x := ‖x.1‖ ⊔ ‖x.2‖

lemma Prod.norm_def (x : E × F) : ‖x‖ = max ‖x.1‖ ‖x.2‖ := rfl

@[simp] lemma Prod.norm_mk (x : E) (y : F) : ‖(x, y)‖ = max ‖x‖ ‖y‖ := rfl

lemma norm_fst_le (x : E × F) : ‖x.1‖ ≤ ‖x‖ := le_max_left _ _

lemma norm_snd_le (x : E × F) : ‖x.2‖ ≤ ‖x‖ := le_max_right _ _

lemma norm_prod_le_iff : ‖x‖ ≤ r ↔ ‖x.1‖ ≤ r ∧ ‖x.2‖ ≤ r := max_le_iff

end Norm

section SeminormedGroup
variable [SeminormedGroup E] [SeminormedGroup F]

/-- Product of seminormed groups, using the sup norm. -/
@[to_additive /-- Product of seminormed groups, using the sup norm. -/]
instance Prod.seminormedGroup : SeminormedGroup (E × F) where
  dist_eq x y := by simp [Prod.norm_def, Prod.dist_eq, dist_eq_norm_inv_mul]

/-- Multiplicative version of `Prod.nnNorm_def`.
Earlier, this name was used for the additive version. -/

@[to_additive Prod.nnNorm_def /-- Additive version of `Prod.nnNorm_def'`.
Earlier, this name was used for the multiplicative version. -/
]
lemma Prod.nnNorm_def' (x : E × F) : ‖x‖₊ = max ‖x.1‖₊ ‖x.2‖₊ := rfl

@[to_additive (attr := deprecated (since := "2026-10-31")) nnnorm_def]
alias Prod.nnnorm_def' := Prod.nnNorm_def'

/-- Multiplicative version of `Prod.nnNorm_mk`. -/
@[to_additive (attr := simp) Prod.nnNorm_mk /-- Additive version of `Prod.nnNorm_mk'`. -/]
lemma Prod.nnNorm_mk' (x : E) (y : F) : ‖(x, y)‖₊ = max ‖x‖₊ ‖y‖₊ := rfl

@[to_additive (attr := deprecated (since := "2026-10-31")) Prod.nnnorm_mk]
alias Prod.nnnorm_mk' := Prod.nnNorm_mk'

end SeminormedGroup

namespace Prod

/-- Product of seminormed groups, using the sup norm. -/
@[to_additive /-- Product of seminormed groups, using the sup norm. -/]
instance seminormedCommGroup [SeminormedCommGroup E] [SeminormedCommGroup F] :
    SeminormedCommGroup (E × F) :=
  { Prod.seminormedGroup with
    mul_comm := mul_comm }

/-- Product of normed groups, using the sup norm. -/
@[to_additive /-- Product of normed groups, using the sup norm. -/]
instance normedGroup [NormedGroup E] [NormedGroup F] : NormedGroup (E × F) :=
  { Prod.seminormedGroup with
    eq_of_dist_eq_zero := eq_of_dist_eq_zero }

/-- Product of normed groups, using the sup norm. -/
@[to_additive /-- Product of normed groups, using the sup norm. -/]
instance normedCommGroup [NormedCommGroup E] [NormedCommGroup F] : NormedCommGroup (E × F) :=
  { Prod.seminormedGroup with
    mul_comm := mul_comm
    eq_of_dist_eq_zero := eq_of_dist_eq_zero }

end Prod

/-! ### Finite product of normed groups -/

section Pi
variable [Fintype ι] [Fintype ι']

section SeminormedGroup
variable [∀ i, SeminormedGroup (G i)] [SeminormedGroup E] (f : ∀ i, G i) {x : ∀ i, G i} {r : ℝ}

/-- Finite product of seminormed groups, using the sup norm. -/
@[to_additive /-- Finite product of seminormed groups, using the sup norm. -/]
instance Pi.seminormedGroup : SeminormedGroup (∀ i, G i) where
  norm f := ↑(Finset.univ.sup fun b => ‖f b‖₊)
  dist_eq x y :=
    congr((Finset.univ.sup $(funext fun a => show nndist (x a) (y a) = ‖(x a)⁻¹ * y a‖₊
      from nnDist_eq_nnNorm_inv_mul (x a) (y a))).toReal)

@[to_additive Pi.norm_def]
lemma Pi.norm_def' : ‖f‖ = ↑(Finset.univ.sup fun b => ‖f b‖₊) := rfl

@[to_additive Pi.nnNorm_def]
lemma Pi.nnNorm_def' : ‖f‖₊ = Finset.univ.sup fun b => ‖f b‖₊ := Subtype.eta _ _

@[to_additive (attr := deprecated (since := "2026-10-31")) Pi.nnnorm_def]
alias Pi.nnnorm_def' := Pi.nnNorm_def'

/-- The seminorm of an element in a product space is `≤ r` if and only if the norm of each
component is. -/

@[to_additive pi_norm_le_iff_of_nonneg /-- The seminorm of an element in a product space is `≤ r` if
and only if the norm of each component is. -/
]
lemma pi_norm_le_iff_of_nonneg' (hr : 0 ≤ r) : ‖x‖ ≤ r ↔ ∀ i, ‖x i‖ ≤ r := by
  simp only [← dist_one_right, dist_pi_le_iff hr, Pi.one_apply]

@[to_additive pi_nnNorm_le_iff]
lemma pi_nnNorm_le_iff' {r : ℝ≥0} : ‖x‖₊ ≤ r ↔ ∀ i, ‖x i‖₊ ≤ r :=
  pi_norm_le_iff_of_nonneg' r.coe_nonneg

@[to_additive (attr := deprecated (since := "2026-10-31")) pi_nnnorm_le_iff]
alias pi_nnnorm_le_iff' := pi_nnNorm_le_iff'

@[to_additive pi_norm_le_iff_of_nonempty]
lemma pi_norm_le_iff_of_nonempty' [Nonempty ι] : ‖f‖ ≤ r ↔ ∀ b, ‖f b‖ ≤ r := by
  by_cases hr : 0 ≤ r
  · exact pi_norm_le_iff_of_nonneg' hr
  · exact
      iff_of_false (fun h => hr <| (norm_nonneg' _).trans h) fun h =>
        hr <| (norm_nonneg' _).trans <| h <| Classical.arbitrary _

/-- The seminorm of an element in a product space is `< r` if and only if the norm of each
component is. -/

@[to_additive pi_norm_lt_iff /-- The seminorm of an element in a product space is `< r` if and only
if the norm of each component is. -/
]
lemma pi_norm_lt_iff' (hr : 0 < r) : ‖x‖ < r ↔ ∀ i, ‖x i‖ < r := by
  simp only [← dist_one_right, dist_pi_lt_iff hr, Pi.one_apply]

@[to_additive pi_nnNorm_lt_iff]
lemma pi_nnNorm_lt_iff' {r : ℝ≥0} (hr : 0 < r) : ‖x‖₊ < r ↔ ∀ i, ‖x i‖₊ < r :=
  pi_norm_lt_iff' hr

@[to_additive (attr := deprecated (since := "2026-10-31")) pi_nnnorm_lt_iff]
alias pi_nnnorm_lt_iff' := pi_nnNorm_lt_iff'

@[to_additive norm_le_pi_norm]
lemma norm_le_pi_norm' (i : ι) : ‖f i‖ ≤ ‖f‖ :=
  (pi_norm_le_iff_of_nonneg' <| norm_nonneg' _).1 le_rfl i

@[to_additive nnNorm_le_pi_nnNorm]
lemma nnNorm_le_pi_nnNorm' (i : ι) : ‖f i‖₊ ≤ ‖f‖₊ :=
  norm_le_pi_norm' _ i

@[to_additive (attr := deprecated (since := "2026-10-31")) nnnorm_le_pi_nnnorm]
alias nnnorm_le_pi_nnnorm' := nnNorm_le_pi_nnNorm'

@[to_additive pi_norm_const_le]
lemma pi_norm_const_le' (a : E) : ‖fun _ : ι => a‖ ≤ ‖a‖ :=
  (pi_norm_le_iff_of_nonneg' <| norm_nonneg' _).2 fun _ => le_rfl

@[to_additive pi_nnNorm_const_le]
lemma pi_nnNorm_const_le' (a : E) : ‖fun _ : ι => a‖₊ ≤ ‖a‖₊ :=
  pi_norm_const_le' _

@[to_additive (attr := deprecated (since := "2026-10-31")) pi_nnnorm_const_le]
alias pi_nnnorm_const_le' := pi_nnNorm_const_le'

@[to_additive (attr := simp) pi_norm_const]
lemma pi_norm_const' [Nonempty ι] (a : E) : ‖fun _i : ι => a‖ = ‖a‖ := by
  simpa only [← dist_one_right] using! dist_pi_const a 1

@[to_additive (attr := simp) pi_nnNorm_const]
lemma pi_nnNorm_const' [Nonempty ι] (a : E) : ‖fun _i : ι => a‖₊ = ‖a‖₊ :=
  NNReal.eq <| pi_norm_const' a

@[to_additive (attr := deprecated (since := "2026-10-31")) pi_nnnorm_const]
alias pi_nnnorm_const' := pi_nnNorm_const'

@[to_additive pi_nnNorm_comp_le]
lemma pi_nnNorm_comp_le' [Fintype F] (g : ι → E) (f : F → ι) : ‖g ∘ f‖₊ ≤ ‖g‖₊ := by
  rw [pi_nnNorm_le_iff']
  exact fun x ↦ norm_le_pi_norm' g (f x)

@[to_additive (attr := deprecated (since := "2026-10-31")) pi_nnnorm_comp_le]
alias pi_nnnorm_comp_le' := pi_nnNorm_comp_le'

@[to_additive pi_norm_comp_le]
lemma pi_norm_comp_le' [Fintype F] (g : ι → E) (f : F → ι) : ‖g ∘ f‖ ≤ ‖g‖ :=
  pi_nnNorm_comp_le' g f

@[to_additive IsGreatest.pi_norm]
lemma IsGreatest.pi_norm' [Nonempty ι] (f : ι → E) : IsGreatest (Set.range (‖f ·‖)) ‖f‖ := by
  constructor
  · rw [Pi.norm_def' f]
    obtain ⟨x, -, hx⟩ := (Finset.univ (α := ι)).exists_mem_eq_sup (by simp) (‖f ·‖₊)
    simp [hx]
  · rintro - ⟨x, rfl⟩
    exact norm_le_pi_norm' f x

@[to_additive Function.Surjective.pi_norm_comp]
lemma Function.Surjective.pi_norm_comp' [Fintype F] {f : ι → F} (hf : Function.Surjective f)
    (g : F → E) : ‖g ∘ f‖ = ‖g‖ := by
  obtain (h | h) := isEmpty_or_nonempty F
  · have : IsEmpty ι := f.isEmpty
    simp [Subsingleton.elim g 1]
  apply le_antisymm (pi_norm_comp_le' g f)
  obtain ⟨⟨x, h⟩, -⟩ := IsGreatest.pi_norm' g
  obtain ⟨y, rfl⟩ := hf x
  exact h ▸ norm_le_pi_norm' (g ∘ f) y

/-- The $L^1$ norm is less than the $L^\infty$ norm scaled by the cardinality. -/
@[to_additive Pi.sum_norm_apply_le_norm /-- The $L^1$ norm is less than the $L^\infty$ norm scaled
by the cardinality. -/
]
lemma Pi.sum_norm_apply_le_norm' : ∑ i, ‖f i‖ ≤ Fintype.card ι • ‖f‖ :=
  Finset.sum_le_card_nsmul _ _ _ fun i _hi => norm_le_pi_norm' _ i

/-- The $L^1$ norm is less than the $L^\infty$ norm scaled by the cardinality. -/
@[to_additive Pi.sum_nnNorm_apply_le_nnNorm /-- The $L^1$ norm is less than the $L^\infty$ norm
scaled by the cardinality. -/
]
lemma Pi.sum_nnNorm_apply_le_nnNorm' : ∑ i, ‖f i‖₊ ≤ Fintype.card ι • ‖f‖₊ :=
  (NNReal.coe_sum ..).trans_le <| Pi.sum_norm_apply_le_norm' _

@[to_additive (attr := deprecated (since := "2026-10-31")) sum_nnnorm_apply_le_nnnorm]
alias Pi.sum_nnnorm_apply_le_nnnorm' := Pi.sum_nnNorm_apply_le_nnNorm'

@[to_additive Pi.nnNorm_extend_le]
theorem Pi.nnNorm_extend_le' (f : ι → ι') (g : ι → E) (j : ι' → E) :
    ‖Function.extend f g j‖₊ ≤ max ‖g‖₊ ‖j‖₊ := by
  rw [pi_nnNorm_le_iff']
  classical aesop (add simp [Function.extend_def, nnNorm_le_pi_nnNorm'])

@[to_additive (attr := deprecated (since := "2026-10-31")) Pi.nnnorm_extend_le]
alias Pi.nnnorm_extend_le' := Pi.nnNorm_extend_le'

@[to_additive Pi.norm_extend_le]
theorem Pi.norm_extend_le' (f : ι → ι') (g : ι → E) (j : ι' → E) :
    ‖Function.extend f g j‖ ≤ max ‖g‖ ‖j‖ :=
  nnNorm_extend_le' f g j

@[to_additive Function.FactorsThrough.nnNorm_extend]
theorem Function.FactorsThrough.nnNorm_extend' {f : ι → ι'} {g : ι → E} {j : ι' → E}
    (h : FactorsThrough g f) (hj : ‖j‖₊ ≤ ‖g‖₊) :
    ‖extend f g j‖₊ = ‖g‖₊ := by
  grw [le_antisymm (Pi.nnNorm_extend_le' f g j), max_eq_left hj]
  simpa [hj, h.extend_comp] using pi_nnNorm_comp_le' (extend f g j) f

@[to_additive (attr := deprecated (since := "2026-10-31")) nnnorm_extend]
alias Function.FactorsThrough.nnnorm_extend' := Function.FactorsThrough.nnNorm_extend'

@[to_additive Function.FactorsThrough.norm_extend]
theorem Function.FactorsThrough.norm_extend' {f : ι → ι'} {g : ι → E} {j : ι' → E}
    (h : FactorsThrough g f) (hj : ‖j‖ ≤ ‖g‖) :
    ‖extend f g j‖ = ‖g‖ :=
  congr(↑$(h.nnNorm_extend' hj))

@[to_additive]
theorem Function.FactorsThrough.nnNorm_extend_one {f : ι → ι'} {g : ι → E}
    (h : FactorsThrough g f) :
    ‖extend f g 1‖₊ = ‖g‖₊ :=
  h.nnNorm_extend' (by simp)

@[to_additive (attr := deprecated (since := "2026-10-31"))]
alias Function.FactorsThrough.nnnorm_extend_one := Function.FactorsThrough.nnNorm_extend_one

@[to_additive]
theorem Function.FactorsThrough.norm_extend_one {f : ι → ι'} {g : ι → E} (h : FactorsThrough g f) :
    ‖extend f g 1‖ = ‖g‖ :=
  congr(↑$h.nnNorm_extend_one)

end SeminormedGroup

/-- Finite product of seminormed groups, using the sup norm. -/
@[to_additive /-- Finite product of seminormed groups, using the sup norm. -/]
instance Pi.seminormedCommGroup [∀ i, SeminormedCommGroup (G i)] : SeminormedCommGroup (∀ i, G i) :=
  { Pi.seminormedGroup with
    mul_comm := mul_comm }

/-- Finite product of normed groups, using the sup norm. -/
@[to_additive /-- Finite product of seminormed groups, using the sup norm. -/]
instance Pi.normedGroup [∀ i, NormedGroup (G i)] : NormedGroup (∀ i, G i) :=
  { Pi.seminormedGroup with
    eq_of_dist_eq_zero := eq_of_dist_eq_zero }

/-- Finite product of normed groups, using the sup norm. -/
@[to_additive /-- Finite product of seminormed groups, using the sup norm. -/]
instance Pi.normedCommGroup [∀ i, NormedCommGroup (G i)] : NormedCommGroup (∀ i, G i) :=
  { Pi.seminormedGroup with
    mul_comm := mul_comm
    eq_of_dist_eq_zero := eq_of_dist_eq_zero }

theorem Pi.nnNorm_single [DecidableEq ι] [∀ i, NormedAddCommGroup (G i)] {i : ι} (y : G i) :
    ‖Pi.single i y‖₊ = ‖y‖₊ := by
  have H : ∀ b, ‖single i y b‖₊ = single (M := fun _ ↦ ℝ≥0) i ‖y‖₊ b := by
    intro b
    refine Pi.apply_single (fun i (x : G i) ↦ ‖x‖₊) ?_ i y b
    simp
  simp [Pi.nnNorm_def, H, Pi.single_apply, Finset.sup_ite, Finset.filter_eq']

@[deprecated (since := "2026-10-31")] alias Pi.nnnorm_single := Pi.nnNorm_single

lemma Pi.eNorm_single [DecidableEq ι] [∀ i, NormedAddCommGroup (G i)] {i : ι} (y : G i) :
    ‖Pi.single i y‖ₑ = ‖y‖ₑ := by simp [eNorm, Pi.nnNorm_single]

@[deprecated (since := "2026-11-06")] alias Pi.enorm_single := Pi.eNorm_single

theorem Pi.norm_single [DecidableEq ι] [∀ i, NormedAddCommGroup (G i)] {i : ι} (y : G i) :
    ‖Pi.single i y‖ = ‖y‖ :=
  congr($(Pi.nnNorm_single y).val)

end Pi

/-! ### Multiplicative opposite -/

namespace MulOpposite

/-- The (additive) norm on the multiplicative opposite is the same as the norm on the original type.

Note that we do not provide this more generally as `Norm Eᵐᵒᵖ`, as this is not always a good
choice of norm in the multiplicative `SeminormedGroup E` case.

We could repeat this instance to provide a `[SeminormedGroup E] : SeminormedGroup Eᵃᵒᵖ` instance,
but that case would likely never be used.
-/

instance instSeminormedAddGroup [SeminormedAddGroup E] : SeminormedAddGroup Eᵐᵒᵖ where
  __ := instPseudoMetricSpace
  norm x := ‖x.unop‖
  dist_eq _ _ := dist_eq_norm_neg_add _ _

lemma norm_op [SeminormedAddGroup E] (a : E) : ‖MulOpposite.op a‖ = ‖a‖ := rfl

lemma norm_unop [SeminormedAddGroup E] (a : Eᵐᵒᵖ) : ‖MulOpposite.unop a‖ = ‖a‖ := rfl

lemma nnNorm_op [SeminormedAddGroup E] (a : E) : ‖MulOpposite.op a‖₊ = ‖a‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_op := nnNorm_op

lemma nnNorm_unop [SeminormedAddGroup E] (a : Eᵐᵒᵖ) : ‖MulOpposite.unop a‖₊ = ‖a‖₊ := rfl

@[deprecated (since := "2026-10-31")] alias nnnorm_unop := nnNorm_unop

instance instNormedAddGroup [NormedAddGroup E] : NormedAddGroup Eᵐᵒᵖ where
  __ := instMetricSpace
  __ := instSeminormedAddGroup

instance instSeminormedAddCommGroup [SeminormedAddCommGroup E] : SeminormedAddCommGroup Eᵐᵒᵖ where
  dist_eq _ _ := dist_eq_norm_neg_add _ _

instance instNormedAddCommGroup [NormedAddCommGroup E] : NormedAddCommGroup Eᵐᵒᵖ where
  __ := instSeminormedAddCommGroup
  __ := instNormedAddGroup

end MulOpposite

Messung
CHZG
9210010097

¤ Dauer der Verarbeitung: 0.13 Sekunden  ¤

*© Formatika GbR, Deutschland







                                                                                                                                                                                                                                                                                                                                                                                                     

 

Neuigkeiten

Aktuelles
Motto des Tages

Open Source Software


Gedichte
Musik
Bilder

Jenseits des Üblichen

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1,188,158
#Domains=932,835