Documentation

LeanPool.NandakumarRamanaRao.NRR.EMP.WeightSpace

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 #

Main results #

This file must not depend on optimal transport; it imports only Mathlib.

noncomputable def NRR.EMP.weightSum {n : ℕ} (w : Fin n → ℝ) :

Weight sum. The total ∑ i, w i of a weight vector.

Equations
Instances For
    def NRR.EMP.WeightNormalized {n : ℕ} (w : Fin n → ℝ) :

    Normalized weights. The affine normalization ∑ i, w i = 0, used to remove the additive‑constant freedom in the weights.

    Equations
    Instances For
      noncomputable def NRR.EMP.weightMean {n : ℕ} (w : Fin n → ℝ) :

      Weight mean. The arithmetic mean (∑ i, w i) / n of a weight vector.

      Equations
      Instances For
        noncomputable def NRR.EMP.normalizeWeight {n : ℕ} (w : Fin n → ℝ) :
        Fin n → ℝ

        Mean‑subtraction normalization. Subtract the mean from every weight, producing a zero‑sum weight vector.

        Equations
        Instances For
          @[simp]
          theorem NRR.EMP.normalizeWeight_apply {n : ℕ} (w : Fin n → ℝ) (i : Fin n) :
          theorem NRR.EMP.WeightNormalized_iff {n : ℕ} (w : Fin n → ℝ) :
          WeightNormalized w ↔ ∑ i : Fin n, w i = 0

          EMP.WeightNormalized w unfolds to ∑ i, w i = 0.

          @[simp]
          theorem NRR.EMP.weightSum_zero {n : ℕ} :
          (weightSum fun (x : Fin n) => 0) = 0

          The all‑zero weight has zero total.

          theorem NRR.EMP.weightSum_add_const {n : ℕ} (w : Fin n → ℝ) (c : ℝ) :
          (weightSum fun (i : Fin n) => w i + c) = weightSum w + ↑n * c

          Adding a constant c to every weight increases the total by n * c.

          Mean subtraction normalizes. For 0 < n, the mean‑subtracted weight vector has zero sum.

          theorem NRR.EMP.normalizeWeight_eq_sub_mean {n : ℕ} (w : Fin n → ℝ) :
          normalizeWeight w = fun (i : Fin n) => w i - weightMean w

          Definitional unfolding of normalizeWeight.

          Normalizing an already normalized weight leaves it unchanged.

          Nat.cast of the Fin n cardinality equals (n : ℝ).