Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Theorem 2, pp. 23–24 — equidistance from c1,…,cnc_1,\dots,c_nc1​,…,cn​ iff ∑i≤kxi−L/2=αk\sum_{i\le k}x_i-L/2=\alpha k∑i≤k​xi​−L/2=αk for some α\alphaα

Proved
SeqLoss.Equidistance.equidistant_iff_prefix

by mikedeng1 · Oct 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

cost-sharingeuclidean-distancep2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1

Let ℓ∈Rn\ell\in\mathbb R^nℓ∈Rn have total L≠0L\neq 0L=0 and let x∈Rnx\in\mathbb R^nx∈Rn. Then xxx is at equal Euclidean distance from all ideal allocations c1,…,cnc_1,\dots,c_nc1​,…,cn​ if and only if there is α∈R\alpha\in\mathbb Rα∈R with

∑i=1kxi−L2=αkfor k=1,…,n.\sum_{i=1}^k x_i-\frac L2=\alpha k\qquad\text{for }k=1,\dots,n.i=1∑k​xi​−2L​=αkfor k=1,…,n.

This turns the geometric condition of Theorem 2 into a linear system in the prefix sums of xxx; the paper's intermediate form is 2Lk∑i=1kxi−L2k=2αL\frac{2L}{k}\sum_{i=1}^k x_i-\frac{L^2}{k}=2\alpha Lk2L​∑i=1k​xi​−kL2​=2αL.

Formalization Note The hypothesis L≠0L\ne 0L=0 is added: the paper divides by LLL in passing between the two forms. For L=0L=0L=0 every ckc_kck​ is the zero vector, every xxx is equidistant, and the prefix condition fails in general, so the equivalence needs it. The statement holds for every real xxx, not only allocations. Agents are 0-based, so ∑i=1kxi\sum_{i=1}^k x_i∑i=1k​xi​ is the sum over indices i<ki<ki<k.

Preamble
import Mathlib
import Definitions.Def_SeqLoss_FixedFraction_Setting
import Definitions.Def_SeqLoss_Equidistance_IdealAllocations
Formal statement
namespace SeqLoss.Equidistance
theorem equidistant_iff_prefix {n : ℕ} (ℓ x : Fin n → ℝ) (hL : SeqLoss.FixedFraction.total ℓ ≠ 0) :
    IsEquidistantFromIdeals ℓ x ↔
      ∃ α : ℝ, ∀ k : ℕ, 1 ≤ k → k ≤ n →
        (∑ i ∈ Finset.univ.filter (fun i : Fin n => i.val < k), x i) - SeqLoss.FixedFraction.total ℓ / 2 = α * (k : ℝ) := by sorry
end SeqLoss.Equidistance
Source
Gudmundsson, Hougaard & Ko, Sharing Sequentially Triggered Losses, accepted manuscript (2023), pp. 23–24, Appendix A, proof of Theorem 2, second and third displays
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me