Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

Prefix sums of the lifted sequence: the first LLL entries sum to (L mod m1)+M⌊L/m1⌋(L \bmod m_1) + M\lfloor L/m_1 \rfloor(Lmodm1​)+M⌊L/m1​⌋

Proved
ClassicalSchur.liftSeq_take_sum

by mysticflounder · Sep 26, 2026 · Mathlib 0df444a (Lean v4.33.1)

additive-combinatoricscombinatoricsramsey-theoryschur-degree-block-sumssum-free-sets

This lemma computes the prefix sums of the lifted sequence exactly.

Let m1≥1m_1 \ge 1m1​≥1, m2m_2m2​ and M≥m1M \ge m_1M≥m1​ be natural numbers, and let xL=(L mod m1)+M⌊L/m1⌋x_L = (L \bmod m_1) + M \lfloor L/m_1 \rfloorxL​=(Lmodm1​)+M⌊L/m1​⌋ for L∈NL \in \mathbb{N}L∈N. Let A=(a1,…,am1m2−1)A = (a_1, \dots, a_{m_1 m_2 - 1})A=(a1​,…,am1​m2​−1​) be the lifted sequence of the Lift bundle, with ai=xi−xi−1a_i = x_i - x_{i-1}ai​=xi​−xi−1​; it is the sequence of jumps of the grid X={u+Mj:0≤u≤m1−1, 0≤j≤m2−1}X = \{u + Mj : 0 \le u \le m_1 - 1,\ 0 \le j \le m_2 - 1\}X={u+Mj:0≤u≤m1​−1, 0≤j≤m2​−1}. Then for every LLL with 0≤L≤m1m2−10 \le L \le m_1 m_2 - 10≤L≤m1​m2​−1, the sum of the first LLL entries of AAA is

a1+a2+⋯+aL=(L mod m1)+M⌊Lm1⌋=xL.a_1 + a_2 + \dots + a_L = (L \bmod m_1) + M \left\lfloor \frac{L}{m_1} \right\rfloor = x_L .a1​+a2​+⋯+aL​=(Lmodm1​)+M⌊m1​L​⌋=xL​.

For L=0L = 0L=0 both sides are 000.

The formula identifies the prefix sums of AAA with the elements of the grid XXX. It is the fourth part of the lift lemma, and it gives the bound on the prefix averages of AAA that the lower bound L(n)≥m1m2L(n) \ge m_1 m_2L(n)≥m1​m2​ needs.

Formalization Note "The first LLL entries" is List.take L, and m1m2−1m_1 m_2 - 1m1​m2​−1 is truncated subtraction on N\mathbb{N}N. There is no hypothesis on m2m_2m2​; for m2=0m_2 = 0m2​=0 only L=0L = 0L=0 is allowed.

Preamble
import Definitions.Def_ClassicalSchurLift
import Mathlib

open ClassicalSchur

Formal statement
theorem ClassicalSchur.liftSeq_take_sum {m₁ m₂ M : ℕ} (hm₁ : 0 < m₁) (hM : m₁ ≤ M) {L : ℕ}
    (hL : L ≤ m₁ * m₂ - 1) : ((liftSeq m₁ m₂ M).take L).sum = liftPrefix m₁ M L := by sorry
Source
A. McKenna, "The Schur degree of block sums: L(4) = 16 and L(5) ≥ 49", Zenodo (2026), https://doi.org/10.5281/zenodo.22987189, §4, proof of Lemma 4.1 (the first L entries of A have sum x_L). Lean source: https://github.com/mysticflounder/schur-degree-block-sums/blob/v1.0.1/lean/ClassicalSchur/Lift.lean#L64-L77 (release v1.0.1, doi:10.5281/zenodo.22987688).

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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me