NRR.EMP.WeightSpace — finite‑dimensional algebra of normalized weights #
This module packages the pure, finite‑dimensional linear algebra of weight vectors
w : Fin n → ℝ, independent of any optimal‑transport / power‑diagram machinery. It provides
the vocabulary used to pin down the additive‑constant freedom in equal‑area weights:
Definitions #
EMP.weightSum w = ∑ i, w i— the total of a weight vector.EMP.WeightNormalized w— the affine normalizationEMP.weightSum w = 0(equivalently∑ i, w i = 0).EMP.weightMean w = EMP.weightSum w / n— the arithmetic mean of a weight vector.EMP.normalizeWeight w = fun i => w i - EMP.weightMean w— subtract the mean, producing a zero‑sum weight vector.
Main results #
EMP.weightSum_zero,EMP.weightSum_add_const— basic finite‑sum algebra.EMP.WeightNormalized_normalizeWeight— mean subtraction produces a normalized weight (for0 < n).EMP.normalizeWeight_eq_sub_mean— the definitional unfolding ofnormalizeWeight.EMP.normalizeWeight_eq_self_of_normalized— normalization is idempotent on already normalized weights.
This file must not depend on optimal transport; it imports only Mathlib.
Weight sum. The total ∑ i, w i of a weight vector.
Equations
- NRR.EMP.weightSum w = ∑ i : Fin n, w i
Instances For
Normalized weights. The affine normalization ∑ i, w i = 0, used to remove the
additive‑constant freedom in the weights.
Equations
- NRR.EMP.WeightNormalized w = (NRR.EMP.weightSum w = 0)
Instances For
Weight mean. The arithmetic mean (∑ i, w i) / n of a weight vector.
Equations
- NRR.EMP.weightMean w = NRR.EMP.weightSum w / ↑n
Instances For
Mean‑subtraction normalization. Subtract the mean from every weight, producing a zero‑sum weight vector.
Equations
- NRR.EMP.normalizeWeight w i = w i - NRR.EMP.weightMean w
Instances For
EMP.WeightNormalized w unfolds to ∑ i, w i = 0.
Mean subtraction normalizes. For 0 < n, the mean‑subtracted weight vector has
zero sum.
Definitional unfolding of normalizeWeight.
Normalizing an already normalized weight leaves it unchanged.