golden_bpe_bias_poly
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
- golden_bpe_biasThe golden critical bias p_* is defined as (3 - √5) / 2.
- 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.
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.
unfold golden_bpe_bias(√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.
uses
Real.sq_sqrthave h5 : (Real.sqrt 5) ^ 2 = 5 := Real.sq_sqrt (by norm_num)
((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.
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
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.
/-- 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