magic_square_guess_fn_at_threshold
At the threshold score $\beta_0 = \mathrm{magic\_square\_threshold\_beta0}$, the adversary's optimal guessing probability for Alice's complete first row in the magic square game is exactly 1: magic_square_guess_fn magic_square_threshold_beta0 = 1.
Statement
theorem magic_square_guess_fn_at_threshold : magic_square_guess_fn magic_square_threshold_beta0 = 1- Formalizes
- arXiv:2610.12001 Cor. 5.2
- Verified
- 18 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 5
- magic_square_guess_fnmagic_square_guess_fn w is the real supremum (sSup in ℝ) of the set of reals p for which there exist dA dB dE : ℕ, A : Fin 3 → (Fin 3 →…
- magic_square_threshold_beta0The magic square threshold score beta_0 is (2 + Real.sqrt(2/3))/3.
- magic_square_threshold_beta0_lt_oneThe magic-square threshold is strictly below one.
- magic_square_guess_fn_le_one_on_IicAt every score threshold at most one, the supremal guessing probability is at most one.
- magic_square_guess_fn_ge_linearFor 0 ≤ δ ≤ 1 - β₀, with β₀ = (2 + √(2/3))/3 the magic-square threshold: 1 - g(β₀ + δ) ≤ 3δ / (4(1 - β₀)), where β₀ =…
- Used by 1
- magic_square_secant_slope_monotoneFor any real numbers $\delta_1, \delta_2$ satisfying $0 < \delta_1 \le \delta_2 \le 1 - \beta_0$, where…
Read back from the Lean
The theorem magic_square_guess_fn_at_threshold asserts that the function magic_square_guess_fn evaluated at the threshold magic_square_threshold_beta0 equals 1.
In terms of the quantum information concepts defined:
At the threshold score $\beta_0 = (2 + \sqrt{2/3}) / 3$, the supremum of Eve's probability of successfully guessing Alice's outcome for row input 0—taken over all valid quantum strategies $(A, B, \rho)$ for the Magic Square game and all POVMs $M$ for Eve such that the expected game score is at least $\beta_0$—is equal to 1.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The equality magic_square_guess_fn(β₀) = 1 is established by proving matching upper and lower bounds. The upper bound magic_square_guess_fn(β₀) ≤ 1 follows from the fact that the guessing probability never exceeds 1 for any game score w ≤ 1, since β₀ < 1. The lower bound 1 ≤ magic_square_guess_fn(β₀) is obtained by specializing a general linear lower bound on the guessing function to perturbation δ = 0.
To show magic_square_guess_fn(β₀) = 1, it suffices to show the lower bound 1 ≤ magic_square_guess_fn(β₀).
By antisymmetry of the order on the real numbers (`le_antisymm`), the equality reduces to showing that magic_square_guess_fn(β₀) ≤ 1 and 1 ≤ magic_square_guess_fn(β₀). The upper bound magic_square_guess_fn(β₀) ≤ 1 holds by `magic_square_guess_fn_le_one_on_Iic`, using the fact that β₀ ≤ 1 derived from β₀ < 1 (`magic_square_threshold_beta0_lt_one`). This leaves only the lower bound to be shown.
uses
le_antisymm,magic_square_guess_fn_le_one_on_Iic,magic_square_threshold_beta0_lt_oneapply le_antisymm (magic_square_guess_fn_le_one_on_Iic magic_square_threshold_beta0_lt_one.le)1 ≤ magic_square_guess_fn(β₀), completing the proof.
Specializing the linear lower bound `magic_square_guess_fn_ge_linear` to perturbation δ = 0 gives 1 - magic_square_guess_fn(β₀ + 0) ≤ 3 * 0 / (4 * (1 - β₀)). The hypotheses 0 ≤ 0 (by reflexivity, `le_refl`) and 0 ≤ 1 - β₀ (by linear arithmetic, since β₀ < 1 via `magic_square_threshold_beta0_lt_one`) are both satisfied. Simplifying this inequality yields 1 - magic_square_guess_fn(β₀) ≤ 0, which directly implies the required lower bound 1 ≤ magic_square_guess_fn(β₀).
uses
magic_square_guess_fn_ge_linear,le_refl,magic_square_threshold_beta0_lt_onehave h := magic_square_guess_fn_ge_linear 0 (le_refl _) (by linarith [magic_square_threshold_beta0_lt_one]) simpa using h
le_antisymm- In any partial order, if a ≤ b and b ≤ a, then a = b.
le_refl- For every element a in a preorder, a ≤ a.
magic_square_guess_fn_ge_linear- For any perturbation δ satisfying 0 ≤ δ and δ ≤ 1 - β₀, the adversary's guessing probability satisfies 1 - magic_square_guess_fn (β₀ + δ) ≤ 3 * δ / (4 * (1 - β₀)).
magic_square_guess_fn_le_one_on_Iic- For any game score w ≤ 1, the adversary's guessing probability magic_square_guess_fn w is at most 1.
magic_square_threshold_beta0_lt_one- The threshold score β₀ is strictly less than 1.
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- At the threshold score beta_0 = (2 + sqrt(2/3))/3, Alice's complete first row is perfectly predictable by an adversary with quantum side information: g(beta_0) = 1. -/theorem magic_square_guess_fn_at_threshold : magic_square_guess_fn magic_square_threshold_beta0 = 1 := by apply le_antisymm (magic_square_guess_fn_le_one_on_Iic magic_square_threshold_beta0_lt_one.le) have h := magic_square_guess_fn_ge_linear 0 (le_refl _) (by linarith [magic_square_threshold_beta0_lt_one]) simpa using h