Provedmachine-checked: its own exact check passesid synthesis.pell-values-are-the-running-maxima-of-the-pure-state-chsh-values-over-the-rationals, version 1
For the pure states of the sector of $\Cl_{\Q}(2,2)$ at the stored settings, a value $P/Q$ in lowest terms has $8 - (P/Q)^{2} = 4b^{2}/Q^{2}$ with $b = 1$ (the Pell values $S_{n}$) or $b \ge 7$, and since $Q_{n+1}^{2} < 34Q_{n}^{2}$ every value with $b \ge 7$ is below the Pell value of the largest smaller denominator; so the running maxima by denominator are exactly $2, \tfrac{14}{5}, \tfrac{82}{29}, \tfrac{478}{169}, \dots$ for every denominator.
These postulates or imported facts sit somewhere beneath it; it holds if they do.
With rational numbers only, the strongest quantum correlation in the standard two-party test cannot be reached exactly, only approached. The stored result found a staircase of best values, $2$, $14/5$, $82/29$, and so on, each the best possible for the size of its denominator, and had checked by computer up to denominator $400$ that for the simplest kind of state no other value ever takes the lead. This result proves that it never does, by a short argument about odd and even numbers and about how fast the staircase's denominators grow.
Notation and setting of Theorem CHSH over the rationals at fixed settings: a circle of pure states and a Pell sequence: the algebra $\Cl_{\Q}(2,2)$, the settings of its clauses, the CHSH element $C$, and the pure states of the sector, whose values of $C$ form by its clause (ii) the set \[ \mathcal{V} = \{X \in \Q : 8 - X^{2} \text{ is the square of a rational}\}. \] Let $(x_{n}, Q_{n})$ be the positive solutions of $x^{2} - 2Q^{2} = -1$, $(x_{0}, Q_{0}) = (1, 1)$, $(x_{n+1}, Q_{n+1}) = (3x_{n} + 4Q_{n},\ 2x_{n} + 3Q_{n})$, and $S_{n} = 2x_{n}/Q_{n}$ (clause (v) of that theorem). The denominator of a rational is that of its expression in lowest terms. A value $X \in \mathcal{V}$ is a running maximum if it is the largest element of $\mathcal{V}$ among those of denominator at most its own.
The set of values. By clause (ii) of Theorem CHSH over the rationals at fixed settings: a circle of pure states and a Pell sequence the pure states of the sector have $\omega(C) = X$, $\omega(C^{\perp}) = Y$ with $(X, Y)$ a rational point of $X^{2} + Y^{2} = 8$, and every rational point occurs; so the set of their values of $C$ is $\mathcal{V}$. It is symmetric under $X \mapsto -X$ and does not contain $0$ ($8$ is not a rational square), so it is enough to treat the positive values.
(i). Let $X = P/Q \in \mathcal{V}$ in lowest terms, $P, Q \ge 1$. Then $8Q^{2} - P^{2}$ is the square of a rational and an integer, so $8Q^{2} - P^{2} = R^{2}$ with $R \ge 1$ an integer ($R = 0$ would make $8$ a square). A sum of two squares divisible by $4$ has both terms even, so $P = 2a$, $R = 2b$ and $a^{2} + b^{2} = 2Q^{2}$. Since $P$ is even and the fraction is in lowest terms, $Q$ is odd; then $a^{2} + b^{2} \equiv 2$ modulo $4$, and $a$, $b$ are odd. $\gcd(a, Q) = 1$ since $\gcd(P, Q) = 1$. Let $\ell$ be a prime dividing $b$. Then $a^{2} \equiv 2Q^{2}$ modulo $\ell$, and $\ell \nmid Q$ (otherwise $\ell \mid a$), so $2$ is a square modulo $\ell$. For $\ell = 3$ and $\ell = 5$ it is not (the squares are $\{0, 1\}$ and $\{0, 1, 4\}$), so $b$ is odd and divisible by neither $3$ nor $5$: $b = 1$ or $b \ge 7$. (By the supplementary law every prime factor of $b$ is $\pm 1$ modulo $8$; only the cases $3$ and $5$ are used.) The deficit is $8 - X^{2} = R^{2}/Q^{2} = 4b^{2}/Q^{2}$. $b = 1$ is $a^{2} - 2Q^{2} = -1$, the equation of clause (v) of the stored theorem, whose positive solutions are the $(x_{n}, Q_{n})$; so $b = 1$ exactly for $X = S_{n}$.
(ii). $x_{n}^{2} = 2Q_{n}^{2} - 1 < 2Q_{n}^{2}$, so $Q_{n+1} = 2x_{n} + 3Q_{n}$ satisfies $Q_{n+1}^{2} = 4x_{n}^{2} + 12x_{n}Q_{n} + 9Q_{n}^{2} < 17Q_{n}^{2} + 12x_{n}Q_{n}$, and $(12x_{n}Q_{n})^{2} = 144x_{n}^{2}Q_{n}^{2} < 288Q_{n}^{4} < (17Q_{n}^{2})^{2}$; hence $Q_{n+1}^{2} < 34Q_{n}^{2}$. Let $X = P/Q \in \mathcal{V}$ be positive, in lowest terms, with $b \ge 7$. Then $2Q^{2} = a^{2} + b^{2} \ge 50$, so $Q > 1 = Q_{0}$; let $n$ be the largest index with $Q_{n} < Q$. Then $Q \le Q_{n+1}$, so $Q^{2} < 34Q_{n}^{2}$ and \[ 8 - S_{n}^{2} = \frac{4}{Q_{n}^{2}} < \frac{136}{Q^{2}} < \frac{196}{Q^{2}} \le \frac{4b^{2}}{Q^{2}} = 8 - X^{2}, \] so $S_{n} > X$ (both are positive).
(iii). The $S_{n}$ increase with $n$ (their deficits $4/Q_{n}^{2}$ decrease). Fix $D \ge 1$ and let $n$ be the largest index with $Q_{n} \le D$. A positive value of denominator at most $D$ is either some $S_{m}$ with $Q_{m} \le D$, hence $m \le n$ and $S_{m} \le S_{n}$, or has $b \ge 7$ and by (ii) is smaller than some $S_{m}$ with $Q_{m}$ smaller than its denominator, hence again smaller than $S_{n}$. So the largest value of denominator at most $D$ is $S_{n}$, attained only there. A value is a running maximum when it is the largest value of denominator at most its own denominator; by the above these are exactly the $S_{n}$.
none
check.py::check_deficit_of_a_pure_value_is_one_or_at_least_sevencheck.py::check_pell_denominators_grow_by_less_than_the_square_root_of_thirty_fourcheck.py::check_running_maxima_of_pure_values_are_the_pell_valuescheck.py::check_first_pell_value_is_the_value_of_the_even_stateRun them on a clone of the repository: python -m tp check-one synthesis.pell-values-are-the-running-maxima-of-the-pure-state-chsh-values-over-the-rationals --store store
Leon Butler (direction); Claude Fable 5.2 (proposal and drafting).