We classify the winner in the inekoalaty game as a function of the parameter λ>0. The game has a sharp threshold
λc=21.
If λ>λc, Alice wins by a delayed large move; if λ<λc, Bazza wins by saturating the square-budget each even move; and for λ=λc there exists infinite play (draw). We provide Lean4/mathlib proofs of the analytic inequalities and Archimedean steps used.
Game
Players choose xn≥0.
Odd n: Alice must have Sn:=∑i=1nxi≤λn.
Even n: Bazza must have Qn:=∑i=1nxi2≤n.
If a player cannot move, they lose.
Theorem (classification)
Let λc=1/2=2/2.
If λ>λc, Alice has a winning strategy.
If λ<λc, Bazza has a winning strategy.
If λ=λc, neither player has a winning strategy (draw).
Strategies and proof
A. Bazza wins for λ<2/2
Bazza’s strategy. On turn 2k, assuming the game reaches this turn, play
x2k:=2k−Q2k−1≥0.
This is legal because reaching turn 2k implies Q2k−1≤2k. It enforces the invariant
Q2k=2k.
From Q2k=2k we get x2k−12+x2k2=2 with both terms nonnegative. Hence by the pair-sum inequality,
x2k−1+x2k≥2. Summing over k gives
S2k≥k2.
Since λ<2/2, choose k with k2>λ(2k+1) (Archimedean argument). Then at Alice’s turn 2k+1, already
S2k>λ(2k+1), so Alice has no legal move and Bazza wins.
B. Alice wins for λ>2/2
Alice’s strategy. Play x2i−1=0 for many odd turns. After Bazza moves at turn 2k, we have
S2k=i=1∑kx2i,i=1∑kx2i2≤Q2k≤2k.
By Cauchy–Schwarz,
S2k≤k2.
So at turn 2k+1 Alice has slack
λ(2k+1)−S2k≥λ(2k+1)−k2.
If λ>2/2 then λ(2k+1)−k2→+∞, so choose k with
λ(2k+1)−k2>2. On that turn Alice plays the maximum allowed
x2k+1:=λ(2k+1)−S2k>2.
Then Q2k+1=Q2k+x2k+12>2k+2, so Bazza has no legal move at turn 2k+2. Hence Alice wins.
C. Boundary λ=2/2
Infinite play exists, e.g.
x2k−1=0 and x2k=2 for all k, which satisfies Q2k=2k and
S2k=k2≤(2/2)(2k+1).
Thus neither player can force a win at λ=λc.
Lean4/mathlib formalization
Attached: Math/Inekoalaty.lean.
It contains Lean proofs (no sorry) of:
add_ge_sqrt_two_of_sq_add_sq_eq_two: a2+b2=2⇒a+b≥2 for a,b≥0.
add_sqrt_two_sub_sq_ge_sqrt_two: corollary t+2−t2≥2 for 0≤t and t2≤2.
sum_le_card_mul_sqrt_two: a finitary Cauchy–Schwarz bound via sq_sum_le_card_mul_sum_sq.
exists_nat_mul_sqrt2_gt_linear: existence of k with k2>λ(2k+1) for λ<2/2.
exists_nat_linear_minus_mul_sqrt2_gt_sqrt2: quantitative lemma used for Alice’s final move when λ>2/2.
Compilation log
$ lake env lean Math/Inekoalaty.lean
# (no output; success)