AFTD Auto-Formalizing Theoretical Domains

golden_bpe_bias_poly

theoremverifiedoriginal

The golden bias p_* satisfies the quadratic polynomial equation p_*^2 - 3 p_* + 1 = 0.

Statement

theorem golden_bpe_bias_poly : golden_bpe_bias ^ 2 - 3 * golden_bpe_bias + 1 = 0
Related work
knowledgebase
Verified
12 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 1
Used by 1
  • golden_bpe_bias_rates_agreeAt the golden bias p_*, the population rate (1 - p_*)^2 / (2 - p_*) of nonoverlapping 00 pairs equals the population rate p_* * (1 - p_*)…

Read back from the Lean

The real number golden_bpe_bias satisfies the equation golden_bpe_bias ^ 2 - 3 * golden_bpe_bias + 1 = 0.

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

We substitute the definition of the golden bias p_* = (3 - √5) / 2 directly into the quadratic polynomial p_*^2 - 3 p_* + 1. Using the identity (√5)^2 = 5, expanding the expression simplifies it to (1/4) * ((√5)^2 - 5) = 0, verifying the equality by elementary ring arithmetic.

  1. The goal reduces to showing ((3 - √5) / 2)^2 - 3 * ((3 - √5) / 2) + 1 = 0.

    We unfold the definition of the golden bias golden_bpe_bias, which is defined as (3 - √5) / 2.

    line 3

      unfold golden_bpe_bias
  2. (√5)^2 = 5.

    By Real.sq_sqrt, the square of the square root of 5 is 5, with the non-negativity condition 0 ≤ 5 verified by basic arithmetic.

    line 4

    uses Real.sq_sqrt

      have h5 : (Real.sqrt 5) ^ 2 = 5 := Real.sq_sqrt (by norm_num)
  3. ((3 - √5) / 2)^2 - 3 * ((3 - √5) / 2) + 1 = 0, completing the proof.

    Expanding the quadratic expression ((3 - √5) / 2)^2 - 3 * ((3 - √5) / 2) + 1 yields (1 / 4) * ((√5)^2 - 5). Substituting (√5)^2 = 5 from the previous step reduces the expression to 0, which linear_combination verifies by ring arithmetic.

    line 5

      linear_combination (1/4 : ℝ) * h5
Real.sq_sqrt
The square of the square root of a non-negative real number is the number itself: for x ≥ 0, (√x)^2 = x.

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

/-- The golden bias p_* satisfies p_*^2 - 3 p_* + 1 = 0. -/theorem golden_bpe_bias_poly : golden_bpe_bias ^ 2 - 3 * golden_bpe_bias + 1 = 0 := by  unfold golden_bpe_bias  have h5 : (Real.sqrt 5) ^ 2 = 5 := Real.sq_sqrt (by norm_num)  linear_combination (1/4 : ℝ) * h5
See it in the graphDiscuss this resultChallenge it