magic_square_predictability_loss_slope_exists
The predictability-loss right-hand slope exists and lies between zero and the established upper bound.
Statement
theorem magic_square_predictability_loss_slope_exists : ∃ c : ℝ, 0 ≤ c ∧ c ≤ 3 / (4 * (1 - magic_square_threshold_beta0)) ∧ Filter.Tendsto (fun δ : ℝ => (1 - magic_square_guess_fn (magic_square_threshold_beta0 + δ)) / δ) (nhdsWithin 0 (Set.Ioi 0)) (nhds c)
- 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 4
- magic_square_predictability_slope_of_lower_boundAny uniform lower bound a on the predictability-loss secant slopes, together with the established upper bound, yields a finite right-hand…
- 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_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.
The proof, explained
The existence of a right-hand slope $c \in [0, 3 / (4(1 - \beta_0))]$ for the predictability loss is obtained by applying the general theorem `magic_square_predictability_slope_of_lower_bound` with lower slope parameter $a = 0$. This reduces the problem to showing that the predictability loss is non-negative on $[0, 1 - \beta_0]$. Since the shifted parameter satisfies $\beta_0 + \delta \le 1$, the guessing probability is bounded above by $1$, making the loss at least $0$.
It suffices to show that the predictability loss satisfies $0 \cdot \delta \le 1 - \text{magic\_square\_guess\_fn}(\beta_0 + \delta)$ for all $\delta \in [0, 1 - \beta_0]$.
Applying the lower-bound theorem `magic_square_predictability_slope_of_lower_bound` with slope parameter $a = 0$ reduces the goal of proving that a right-hand slope $c \in [0, 3 / (4(1 - \beta_0))]$ exists to establishing the trivial linear lower bound $0 \cdot \delta \le 1 - \text{magic\_square\_guess\_fn}(\beta_0 + \delta)$ for all $\delta$ in the range $[0, 1 - \beta_0]$.
uses
magic_square_predictability_slope_of_lower_boundapply magic_square_predictability_slope_of_lower_bound 0For all $\delta \in [0, 1 - \beta_0]$, $0 \cdot \delta \le 1 - \text{magic\_square\_guess\_fn}(\beta_0 + \delta)$.
Let $\delta \in [0, 1 - \beta_0]$. Since $\delta \le 1 - \beta_0$, linear arithmetic gives $\beta_0 + \delta \le 1$. Evaluating `magic_square_guess_fn_le_one_on_Iic` at $w = \beta_0 + \delta \le 1$ shows that the key-guessing success probability is at most $1$. Since $\text{magic\_square\_guess\_fn}(\beta_0 + \delta) \le 1$, the loss $1 - \text{magic\_square\_guess\_fn}(\beta_0 + \delta)$ is non-negative, which is at least $0 \cdot \delta = 0$.
uses
magic_square_guess_fn_le_one_on_Iicintro δ hδ hδR have h := magic_square_guess_fn_le_one_on_Iic (w := magic_square_threshold_beta0 + δ) (by linarith) linarith
magic_square_predictability_slope_of_lower_bound- If the predictability loss $1 - \text{magic\_square\_guess\_fn}(\beta_0 + \delta)$ is bounded below by $a \cdot \delta$ for all $\delta \in [0, 1 - \beta_0]$, then the right-hand slope of the predictability loss at $\beta_0$ exists and lies in $[a, 3 / (4(1 - \beta_0))]$.
magic_square_guess_fn_le_one_on_Iic- The guessing function $\text{magic\_square\_guess\_fn}(w)$ is bounded above by $1$ for any parameter $w \le 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.
theorem magic_square_predictability_loss_slope_exists : ∃ c : ℝ, 0 ≤ c ∧ c ≤ 3 / (4 * (1 - magic_square_threshold_beta0)) ∧ Filter.Tendsto (fun δ : ℝ => (1 - magic_square_guess_fn (magic_square_threshold_beta0 + δ)) / δ) (nhdsWithin 0 (Set.Ioi 0)) (nhds c) := by apply magic_square_predictability_slope_of_lower_bound 0 intro δ hδ hδR have h := magic_square_guess_fn_le_one_on_Iic (w := magic_square_threshold_beta0 + δ) (by linarith) linarith