Chapter 23 starts from Pythagoras: the legs of a right triangle do not add, their squares do. Hippasus found that √2 is not a fraction, so lattice points can only hug that line, and m² and 2n² always differ by ±1. The page draws this seam and follows it to the two families of primes and to an elliptic curve. The page is a numerical illustration, not a proof.
The Pell seam. The convergents m/n of √d fall on alternating sides of the line m = √d·n. Measured along the line, the error |m/n − √d| quickly goes to zero; measured as area, m² − d·n² is a nonzero integer, at least 1 in absolute value. The two bands on the right are the cell counts m² and d·n², and the magnifier shows that they always differ by whole cells. The sign of the difference flips back and forth; when the period of the continued fraction is odd (d = 2, 5, 13) the value −1 occurs, and when it is even (d = 3, 7), of the two values ±1 only +1 occurs and the difference never reaches −1.
Line primes and plane primes. Draw the circle of radius √p in the plane of Gaussian integers. For p ≡ 1 (mod 4) it passes through a lattice point (a, b), p = a² + b² = (a + bi)(a − bi), and squaring a + bi gives the integer right triangle (|a² − b²|, 2ab, p); for p ≡ 3 (mod 4) the circle misses every lattice point. This is the same question as whether −1 is a square mod p. Do not mix up the two angles: the direction θ of the lattice point (a, b) (cos θ = a/√p, cos²θ + sin²θ = a²/p + b²/p = 1) is an angle in Hilbert space, and the two Born weights of the state (a|0⟩ + b|1⟩)/√p are cos²θ and sin²θ; the squared triangle (a² − b², 2ab, p) has turned through 2θ, and divided by p it is the Bloch vector (sin 2θ, 0, cos 2θ) of that state, so the polar angle on the Bloch sphere is θBloch = 2θ and the Born weight reads cos²(θBloch/2). The general form of two weights adding up to 1 is the Pythagoras of complementary contexts in chapter 3.
Points mod p. The number of points of y² = x³ − x over 𝔽ₚ differs from p + 1 by aₚ; Hasse's theorem keeps it within ±2√p, so aₚ/(2√p) is a cosine. On line primes aₚ = 0; on a plane prime p = a² + b² (a odd) |aₚ| = 2|a|, and the absolute value of that cosine is exactly adjacent over hypotenuse in the Gaussian right triangle. For a curve without complex multiplication, y² = x³ − x + 1, the cosines tend to the semicircle law. The ring of spins at the upper right places x = 0 … p − 1 on a circle and colours each by the Legendre symbol χₚ(f(x)): cyan +1 (the column holds a pair of points ±y), magenta −1 (no point), neutral 0 (a branch point y = 0); the count is p + 1 + Σχ. On a line prime x and −x are mirror images with opposite colours, and they cancel. The angle in the Gaussian triangle is the Hilbert angle of the lattice point (a, b) with a odd, not the doubled Bloch angle. The discriminant of y² = x³ − x + 1 is −368 = −2⁴·23: at p = 23 the page says plainly that the reduction is bad (the curve crosses itself at (13, 0)) and leaves that prime out of Hasse's bound and the histogram.
LEAN ✓对任意有限指标集 s 与实值 u, v:(Σᵢ uᵢ²)(Σᵢ vᵢ²) − (Σᵢ uᵢvᵢ)² = (Σᵢ Σⱼ (uᵢvⱼ − uⱼvᵢ)²)/2。页面取 s = {1, 2}、u = (a, b)、v = (a, −b),其中 p = a² + b²:左边是 p² − (a² − b²)²,右边是 (2ab)²,于是分裂素数长出勾股三元组 (|a² − b²|, 2ab, p)。已冻结:For every finite index set s and real u, v: (Σᵢ uᵢ²)(Σᵢ vᵢ²) − (Σᵢ uᵢvᵢ)² = (Σᵢ Σⱼ (uᵢvⱼ − uⱼvᵢ)²)/2. The page takes s = {1, 2}, u = (a, b) and v = (a, −b) with p = a² + b²: the left side is p² − (a² − b²)² and the right side is (2ab)², so a split prime grows the Pythagorean triple (|a² − b²|, 2ab, p). Frozen: lagrange_gram_identity
LEAN ✓实内积空间中任意 x, y:‖x + y‖² + ‖x − y‖² = 2(‖x‖² + ‖y‖²)。页面取 x = a e₁、y = b e₂:两条对角线 (a, b) 与 (a, −b) 就是共轭高斯整数 a + bi 与 a − bi,二者范数平方之和为 2(a² + b²) = 2p。已冻结:In a real inner product space, for all x, y: ‖x + y‖² + ‖x − y‖² = 2(‖x‖² + ‖y‖²). The page takes x = a e₁ and y = b e₂: the two diagonals (a, b) and (a, −b) are the conjugate Gaussian integers a + bi and a − bi, and their squared norms sum to 2(a² + b²) = 2p. Frozen: inner_product_norm_parallelogram_law
ARGUED文献结果,未在本书形式化:√d 的连分数是周期的,满足 |m² − d n²| < √d 的 m/n 都是渐近分数,m² − d n² = −1 可解当且仅当周期为奇数(拉格朗日、勒让德);哈塞定理 |aₚ| ≤ 2√p;Ed: y² = x³ − d²x 是 E₁: y² = x³ − x 的二次扭曲,p ∤ 2d 时 aₚ(Ed) = (d/p)·aₚ(E₁),p ≡ 3 (mod 4) 时 aₚ = 0,p = a² + b²(a 奇)时 |aₚ| = 2|a|;d 是同余数当且仅当 Ed 有 y ≠ 0 的有理点;Tunnell 定理(依赖 Coates–Wiles):若 d 是同余数,则 A(d) = 2B(d)。Literature results, not formalized in this book: the continued fraction of √d is periodic, every m/n with |m² − d n²| < √d is a convergent, and m² − d n² = −1 is solvable exactly when the period is odd (Lagrange, Legendre); Hasse's theorem |aₚ| ≤ 2√p; Ed: y² = x³ − d²x is the quadratic twist of E₁: y² = x³ − x, so aₚ(Ed) = (d/p)·aₚ(E₁) for p ∤ 2d, aₚ = 0 for p ≡ 3 (mod 4) and |aₚ| = 2|a| for p = a² + b² with a odd; d is a congruent number exactly when Ed has a rational point with y ≠ 0; Tunnell's theorem (resting on Coates–Wiles): if d is congruent, then A(d) = 2B(d).
OPEN伯奇—斯温纳顿-戴尔猜想仍未证明。Tunnell 判据的逆向(A(d) = 2B(d) 推出 d 是同余数),以及“每个无平方因子 d ≡ 5, 6, 7 (mod 8) 都是同余数”,都只在该猜想下成立。The Birch–Swinnerton-Dyer conjecture is unproved. The converse of Tunnell's criterion (A(d) = 2B(d) implies d congruent), and the statement that every squarefree d ≡ 5, 6, 7 (mod 8) is congruent, hold only under that conjecture.