The sum of a family of real normed spaces
DefinitionPlasticity_C0SumFor a family of real normed spaces over an arbitrary index set , the sum consists of the families with and , normed by . The sum is the subspace of those whose block norms tend to : for every only finitely many have . It carries the inherited supremum norm.
Formalization Note The sum is Mathlib's lp E ⊤; c0Sum E is the submodule of lp E ⊤ of the x with fun i => ‖x i‖ tending to 0 along the cofinite filter, and as a type it carries the subspace norm.
import Mathlib.Analysis.Normed.Lp.lpSpace
import Mathlib.Order.Filter.Cofinite
/-!
# Plasticity: c₀ sums of normed spaces
For a family `E : ι → Type*` of real normed spaces over an arbitrary index set, Mathlib's
`lp E ⊤` is the ℓ∞ sum: the families `x` with `x i ∈ E i` and bounded block norms, with the
norm `‖x‖ = sup_i ‖x i‖`. Inside it, `c0Sum E` is the c₀ sum: the families whose block norms
tend to `0` along the cofinite filter (for every `ε > 0`, only finitely many `i` have
`‖x i‖ ≥ ε`). As a submodule it carries the inherited supremum norm.
-/
namespace Plasticity
open Filter Topology
/-- The c₀ sum of a family of real normed spaces: the elements of the ℓ∞ sum `lp E ⊤`
whose block norms `‖x i‖` tend to `0` along the cofinite filter. -/
def c0Sum {ι : Type*} (E : ι → Type*) [∀ i, NormedAddCommGroup (E i)]
[∀ i, NormedSpace ℝ (E i)] : Submodule ℝ (lp E ⊤) where
carrier := {x | Tendsto (fun i => ‖x i‖) cofinite (𝓝 0)}
zero_mem' := by
simp only [Set.mem_ofPred_eq, lp.coeFn_zero, Pi.zero_apply, norm_zero]
exact tendsto_const_nhds
add_mem' := by
intro x y hx hy
simp only [Set.mem_ofPred_eq, lp.coeFn_add, Pi.add_apply] at *
refine squeeze_zero (fun i => norm_nonneg _) (fun i => norm_add_le _ _) ?_
simpa using hx.add hy
smul_mem' := by
intro c x hx
simp only [Set.mem_ofPred_eq, lp.coeFn_smul, Pi.smul_apply, norm_smul] at *
simpa using hx.const_mul ‖c‖
end Plasticity
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be an arbitrary index type (any cardinality, possibly empty) and a family of real normed spaces (arbitrary norms, arbitrary and possibly differing dimensions, not assumed complete). First, (Mathlib's space with exponent ) is the real vector space of families with for which is bounded above, with coordinatewise operations and norm
(equal to when is empty). The definition introduces as the real linear subspace of consisting of those whose block norms tend to along the cofinite filter on , i.e.
When is used as a space it carries the norm restricted from , namely the supremum norm above, hence the metric .
Edge cases:
- empty, or every : .
- finite: the cofinite condition is vacuous, so , the finite direct sum with the maximum of the block norms.
- uncountable is allowed; each element then has only countably many nonzero blocks.
- It is introduced only as a linear subspace; closedness or completeness is not part of the definition.