AFTD Auto-Formalizing Theoretical Domains

magic_square_predictability_loss_slope_exists

theoremverified

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

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$.

  1. 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]$.

    line 2

    uses magic_square_predictability_slope_of_lower_bound

      apply magic_square_predictability_slope_of_lower_bound 0
  2. For 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$.

    lines 3–5

    uses magic_square_guess_fn_le_one_on_Iic

      intro δ 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

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
See it in the graphDiscuss this resultChallenge it