OctoInformBeta

OpenAI preprint, September 2026 · §3. A rank-one curve with unique arithmetic codes

Rational codes and point codes: Six natural numbers under three equations name a rational number, and a flag with two such tuples names a point of E(ℚ)E(\mathbb{Q})

Coding rational numbers and points of EE by natural numbers.

Hover over a blue or green term in the text, or a node in the graph, to find it in the other. Select it to read its declaration both in Lean and in words.

The Setting

A Diophantine representation over ℕ\mathbb{N} has only natural numbers for its unknowns. For it to speak of the rational points of the curve E:y2=x3−25xE\colon y^2 = x^3 - 25x over ℚ\mathbb{Q}, whose point at infinity is OO, each rational number and each point of the group E(ℚ)E(\mathbb{Q}) must be named by a tuple of natural numbers subject to polynomial equations. In a single-fold representation such names sit in the auxiliary tuple ww, which is unique whenever it exists, so each rational number and each point needs exactly one name.

The library names a rational number by a rational code and a point of E(ℚ)E(\mathbb{Q}) by a point code, and passes from a valid point code to its point by a decoding and from a point to its point code by an encoding.

The Definition

Definition 1. A rational code is a tuple of six natural numbers z=(p,n,d,t,s,q)∈ℕ6.z = (p, n, d, t, s, q) \in \mathbb{N}^6.(1)✦ A rational code z=(p,n,d,t,s,q)z = (p, n, d, t, s, q) is valid when pn=0,d=1+t+s,(p+n)t+d=1+qd.pn = 0, \qquad d = 1 + t + s, \qquad (p + n)t + d = 1 + qd.(2)✦ The value of a rational code z=(p,n,d,t,s,q)z = (p, n, d, t, s, q) is the rational number v(z)=p−nd.v(z) = \frac{p - n}{d}.(3)✦ A point code is a triple of a natural number oo, its flag, and two rational codes ξ\xi and η\eta: γ=(o,ξ,η),o∈ℕ,ξ,η∈ℕ6.\gamma = (o, \xi, \eta), \qquad o \in \mathbb{N}, \quad \xi, \eta \in \mathbb{N}^6.(4)✦ A point code γ=(o,ξ,η)\gamma = (o, \xi, \eta) is valid when ξ\xi and η\eta are valid rational codes and (o=1,v(ξ)=v(η)=0)or(o=0,v(η)2=v(ξ)3−25v(ξ)).\bigl(o = 1,\ v(\xi) = v(\eta) = 0\bigr) \quad\text{or}\quad \bigl(o = 0,\ v(\eta)^2 = v(\xi)^3 - 25\,v(\xi)\bigr).(5)✦ A valid point code γ=(o,ξ,η)\gamma = (o, \xi, \eta) decodes to the point QγQ_\gamma of E(ℚ)E(\mathbb{Q}) given by Qγ={Oif o=1,(v(ξ),v(η))if o=0.Q_\gamma = \begin{cases} O & \text{if } o = 1,\\ \bigl(v(\xi), v(\eta)\bigr) & \text{if } o = 0. \end{cases}(6)✦ For a rational number rr, c(r)c(r) is the valid rational code of value rr✦, and the encoding of a point QQ of E(ℚ)E(\mathbb{Q}) is the point code e(Q)={(1,c(0),c(0))if Q=O,(0,c(x),c(y))if Q=(x,y).e(Q) = \begin{cases} \bigl(1, c(0), c(0)\bigr) & \text{if } Q = O,\\ \bigl(0, c(x), c(y)\bigr) & \text{if } Q = (x, y). \end{cases}(7)✦

What Is Checked

The definitions are stated over the natural numbers, the rational numbers and the group E(ℚ)E(\mathbb{Q}) of rational points of the curve EE over ℚ\mathbb{Q}.

The library proves that every rational number rr is the value of exactly one valid rational code, the code c(r)c(r) used in (7).✦