AFTD Auto-Formalizing Theoretical Domains

magic_square_guess_fn_le_one_on_Iic

theoremverified

At every score threshold at most one, the supremal guessing probability is at most one.

Statement

theorem magic_square_guess_fn_le_one_on_Iic {w : ℝ} (hw : w ≤ 1) : magic_square_guess_fn w ≤ 1
Source
arXiv:2610.12001, Section 6 and Corollary 6.2; analysis of the right-hand secant limit.
Verified
18 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 6
  • magic_square_guess_fn_concaveOnThe function g = magic_square_guess_fn — g(w) is the supremum of the adversary's probability of guessing Alice's complete first-row answer…
  • is_povmA finite family of complex d×d matrices indexed by a finite outcome set is a POVM (positive-operator-valued measure): each effect is…
  • 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_scoreGiven dA dB dE : ℕ, Alice's effects A : Fin 3 → (Fin 3 → Bool) → Matrix (Fin dA) (Fin dA) ℂ (A x s: row x, then answer s), Bob's effects B…
  • magic_square_key_guess_successGiven dA dB dE : ℕ, Alice's effects A : Fin 3 → (Fin 3 → Bool) → Matrix (Fin dA) (Fin dA) ℂ, a complex matrix ρ indexed by (Fin dA × Fin…
  • magic_square_strategy_validGiven dA dB dE : ℕ, Alice's effects A : Fin 3 → (Fin 3 → Bool) → Matrix (Fin dA) (Fin dA) ℂ (A x s: row x, then answer s), Bob's effects B…
Used by 2

The proof, explained

The guessing function magic_square_guess_fn w is the supremum over all key guessing success probabilities achievable by valid quantum strategies and POVM measurements with score at least w. Since w ≤ 1, this set is nonempty, so bounding the supremum by 1 reduces to showing that every element in the set is at most 1. Any such probability is bounded by 1 by MagicSquareConcave.guess_le_one.

  1. It suffices to show that every element in MagicSquareConcave.gset w is at most 1.

    We rewrite the guessing function as the supremum of the set MagicSquareConcave.gset w via MagicSquareConcave.g_eq. Since w ≤ 1, this set is nonempty by MagicSquareConcave.gset_nonempty. By the universal property of the supremum (csSup_le), the supremum is at most 1 if every element of the set is at most 1.

    lines 2–3

    uses MagicSquareConcave.g_eq, csSup_le, MagicSquareConcave.gset_nonempty

      rw [MagicSquareConcave.g_eq]
      refine csSup_le (MagicSquareConcave.gset_nonempty hw) ?_
  2. Every element in MagicSquareConcave.gset w is at most 1.

    Take an arbitrary element p in the set, which unpacks into a valid quantum strategy (A, B, ρ) and POVM M such that p is the key guessing success probability. By MagicSquareConcave.guess_le_one, any valid strategy and POVM achieves a success probability of at most 1.

    lines 4–5

    uses MagicSquareConcave.guess_le_one

      rintro p ⟨dA, dB, dE, A, B, ρ, M, hv, hM, -, rfl⟩
      exact MagicSquareConcave.guess_le_one hv hM
MagicSquareConcave.g_eq
The guessing function at threshold w is the supremum of the set of achievable guessing probabilities MagicSquareConcave.gset w.
csSup_le
In a conditionally complete lattice, the supremum of a nonempty set is at most a given value if every element of the set is at most that value.
MagicSquareConcave.gset_nonempty
For any score threshold w ≤ 1, the set of achievable guessing probabilities MagicSquareConcave.gset w is nonempty.
MagicSquareConcave.guess_le_one
For any valid quantum strategy and POVM measurement, the key guessing success probability is at most one.

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

theorem magic_square_guess_fn_le_one_on_Iic {w : ℝ} (hw : w ≤ 1) : magic_square_guess_fn w ≤ 1 := by  rw [MagicSquareConcave.g_eq]  refine csSup_le (MagicSquareConcave.gset_nonempty hw) ?_  rintro p ⟨dA, dB, dE, A, B, ρ, M, hv, hM, -, rfl⟩  exact MagicSquareConcave.guess_le_one hv hM
See it in the graphDiscuss this resultChallenge it