30 Diagnosing the sharp remainder without fitting its main term
The alternatives for the sharp primitive remainder are not exhausted by and . Strict convexity already gives the qualitative improvement , proved below, but supplies no effective intermediate rate. A normalized Möbius formula identifies a sufficient criterion for . An exact dyadic inversion removes the leading area constant from the numerical test, and an inverse-flatness formula measures the contribution of a particular supporting row. Finally we describe the dyadic diagnostic using hyperbolic trace recursion on two tori. A new full campaign reproduces the supplied draft’s counts and rounded block values through length , with its own precision and provenance records; the historical implementation remains unrecovered. The proofs and the exploratory numerical observations are stated separately.
30.1 The normalized all-point discrepancy and the logarithmic loss
Let be a fixed convex body containing the origin in its interior. Rescale its gauge so that the shortest nonzero integer vector has gauge one; central symmetry is not needed in this subsection. Write , and let count primitive vectors. For , Möbius inversion gives the exact identity (30.1) The cutoff is exact because for ; boundary points at are included. Moreover for , so the final term is bounded uniformly. Thus the linear remainder problem is precisely a boundedness problem for the displayed Möbius-weighted harmonic sum. The prime number theorem alone does not bound it: the geometric weight varies with both and .
For a convenient sufficient condition, put The elementary boundary estimate makes bounded, and it is nonincreasing. Absolute values in (30.1) give (30.2) Indeed, for , with the harmless interval below treated separately. Consequently the Dini condition implies an primitive remainder without any Möbius cancellation. With the prime number theorem, this improves to ; see (31.4) below. In particular any all-point power saving , , suffices. Infinite graph-flatness does not logically exclude this route: for example a bound has no fixed power saving but has an integrable normalized modulus.
Proposition 30.1 (A qualitative strict-convexity improvement). For every fixed strictly convex compact body containing the origin in its interior, These statements supply no quantitative rate of little-oh convergence.
Proof. Fix a unit vector and let be the length of the chord . Its support is an interval . Convexity makes concave, and strict convexity makes both extreme supporting chords singletons, so . A finite continuous concave function on a compact interval is absolutely continuous. Indeed, it is locally absolutely continuous, is monotone on either side of a maximum, and the integral of the absolute value of its monotone one-sided derivative on exhausting interior intervals tends to its total variation. Continuity at the endpoints then extends the fundamental theorem there. The zero extension therefore belongs to . Moreover Fubini and integration by parts give by the Riemann–Lebesgue lemma. The same formula gives the uniform bound .
Fix a nonnegative smooth function of integral one, supported in the Euclidean disk of radius . Choose with , and put . Convexity gives the pointwise sandwich For this fixed , Poisson summation shows that either smoothed lattice count equals its area plus : after division by , each nonzero-frequency term tends to zero, and the summable majorant is a constant times . The two areas differ from by . Thus Letting proves the first claim. It implies , and logarithmic Cesàro averaging in (30.2) proves the second. ◻
The qualitative improvement excludes a fixed positive multiple of along a subsequence, but still allows , , and many other intermediate scales. Quantitative control of , or signed cancellation between its Möbius blocks, is needed to reach .
30.2 A rational-polygon comparison
The intermediate scales cannot be dismissed merely because the proof takes absolute values. For a rational polygon that is star-shaped about the origin, Bárány, Martin, Naslund, and Robins prove while their upper bound for every rational polygon is These are Theorems 1.4 and 1.2, respectively, on page 2 of the 31 July 2019 version (arXiv:1509.02201v2) of Primitive points in rational polygons[111]. The polygons have genuine straight sides. These results do not transfer to a strictly convex McShane–Rivin norm ball; they show why an unspecified arithmetic cancellation is not a proof of a linear error. Even the elementary square illustrates the relevant arithmetic: at integer , There is also a numerical warning. Freezing a rational polygonal approximation to a strictly convex ball can introduce the polygon’s own totient fluctuations. A fixed area error contributes ; resolving a linear remainder requires area accuracy , together with control of points near the two boundaries. The trace enumeration below avoids replacing the norm ball by a polygon.
30.3 An exact test independent of the leading coefficient
Suppose , put , and define Iterating the latter equality and using gives (30.3) The series is understood as the limit of its telescoping partial sums; it is absolutely convergent under any of the bounds below. Consequently and likewise For example, if for every , then These are asymptotic equivalences, not finite-computation certificates. They eliminate contamination by an inaccurately estimated value of .
If an estimated coefficient is subtracted instead, then Thus a small coefficient error creates a growing normalized drift. The dyadic statistic removes this source of error exactly. It does not remove the possibility of rare large excursions beyond the computed range. For measurements over a block define The first detects the largest computed excursions, while the second measures their contribution over the whole block. Between events at and , is constant. Hence its normalized absolute value decreases between events, and the block supremum is determined by both one-sided event limits and the block endpoints. All events at the same location must be applied together; an arbitrary order of simultaneous positive and negative jumps can create spurious intermediate values. The left limit at the initial endpoint lies outside the block and is excluded. Its squared integral over such an interval is exactly . A coarse integer mesh can miss narrow excursions.
30.4 A quantitative row-crossing formula
The exponent-one obstruction does not specify the slowly varying factor in the discrepancy. The local graph itself gives a more precise statement. Let be strictly convex, compact, and contain the origin in its interior. After an integral unimodular change of coordinates, suppose its unique top point is , with and . Assume that the upper boundary is a two-sided graph over an open interval about , and write it as For sufficiently small , define the one-sided inverse widths where the suprema are restricted to the local graph interval. Strict convexity implies as . The functions , and hence , are concave on a sufficiently small interval: they are inverses of increasing convex functions vanishing at zero. No symmetry between the two sides of the graph is assumed.
Let
Proposition 30.2 (Inverse flatness controls a primitive-row burst). Let tend to infinity through primes, put , and let satisfy . Set . For all sufficiently large , the intersection of with the row is the interval with endpoints Its width is (30.5) The number of primitive lattice points on this row is , with an absolute rounding constant, and (30.6) In particular, with , (30.7)
Proof. At scale , the row touches only at . The first coordinate is irrational, so there is no lattice point there. At scale , the normalized row has height and thus depth below the supporting line. Inverting the two sides of the graph gives the displayed endpoints. Since and , Eventually . The number of integers in a closed interval of width differs from by at most one. Such an interval contains at most one multiple of the prime . Every other integer gives a primitive pair . Therefore the row contains at least and at most primitive lattice points.
Since , all these points are new, while points elsewhere cannot disappear. Thus which implies (30.6).
For , set . Concavity and give Multiplying by yields . The change in the quadratic main term is , proving (30.7). ◻
The theorem remains useful without a model formula for . It measures the width of the graph at depth and converts that width into a lower bound for the discrepancy. Infinite flatness implies, for every , a lower bound and recovers Proposition 29.1. A specified modulus yields a specified slowly varying factor. Figure 9 illustrates the passage from this local width to the new primitive points on a supporting row.
Figure 9. How a supporting cap becomes a primitive-row contribution. At the contact scale , the hypothesis leaves the row empty. Increasing the scale to cuts an interval of width from that row. When is prime and the width is smaller than , all but at most one of its integer points are primitive. The local profile and row spacing are schematic; the displayed width relation is exact.
30.5 Model flatness profiles and what they do not determine
For illustration, suppose the two-sided local graph satisfies for sufficiently small nonzero . Then and (30.7) gives, along arbitrarily large prime-row contact scales, (30.8) If the graph has matching upper and lower estimates of this form, the row width itself has this order. This does not prove that the full discrepancy has exactly this order; other rows and other supporting directions can contribute.
Other infinitely flat local profiles give different slowly varying factors. For example, the symmetric model gives a row width of order . The model gives a width of order These are convex for sufficiently small and illustrate local possibilities. They are not asserted here to be the precise profiles of a hyperbolic torus norm ball.
For a strictly convex body, . Consequently the single-row argument with a microscopic scale increment yields a quantity , although it can exceed every fixed power . It neither proves a literal lower bound nor distinguishes an global remainder from an remainder. Its role is to quantify one geometric obstruction, rather than to identify the entire sharp remainder.
30.6 An exact row diagnostic and its precision requirements
For an arbitrary positive integer and a row interval , the primitive count is exactly (30.9) In particular, it equals The formula includes endpoints exactly. For prime and , the simpler absolute-error comparison with used above applies.
One can therefore record the local statistic at prime . Since and , the proposition gives This statistic needs no estimate of ; it tests the local flatness mechanism directly. It does require a verified lattice-rational supporting normal at an irrational radial point. Finding such a direction is a separate geometric step and is not automatic for an arbitrary fixed surface.
The height must also be known accurately. If and , then the exact contact-scale error satisfies Resolving the window of width therefore requires a height error small compared with . Using a larger window relaxes this requirement but changes the depth sampled by (30.5) and increases the background main-term increment. The local statistic is consequently complementary to a global main-term-free discrepancy diagnostic; it does not replace one. In an implemented row count, the floor and ceiling operations in (30.9) also require certified endpoint comparisons with the relevant integers, or an explicit range of possible counts when those comparisons are unresolved. Agreement at two working precisions does not certify a transcendental height or endpoint.
30.7 A trace diagnostic: historical report and new full campaign
The count here is for unoriented essential simple closed geodesics on a once-punctured torus, with the convention . Each primitive pair is identified with , so this is half the signed primitive-vector count for the corresponding norm ball. A positive trace triple satisfies and a Farey edge replaces by . The identification of Farey regions with simple curves and this edge relation are described in [112, Sections 1–2]. For the experiment take the reduced triples (30.10) The first is the modular torus; the second is an asymmetric example. Both satisfy .
Assign the root curves the slopes , , and , respectively. The three open sectors between these roots enumerate every other unoriented primitive slope once by Farey mediants. In the negative-slope sector use the signed endpoints ; the other two sectors have endpoints and . Canonical representatives have , with as the only representative at infinity. Sector endpoints are counted only as roots. After introducing an outward trace , the two new traces are and , both strictly larger than . Therefore pruning a sector when its new curve exceeds the cutoff does not omit shorter descendants. Equal traces are retained with their curve multiplicities; they are not deduplicated. The hyperbolic length associated with trace is .
To avoid overflow the computation uses logarithmic traces. If , , and , then On the chosen outward edges the subtracted ratio is at most , so this computation avoids catastrophic cancellation. The supplied draft describes extended-precision arithmetic for this recursion and double precision for sorting the resulting lengths. That reported implementation was not included in the supplied materials. Both maintained replacement calculations below use binary64 logarithmic recursion, with separate multiprecision trace checks. Neither provides an interval certificate of every event location.
Historical report and reproduced printed values.
The supplied draft reports enumeration through hyperbolic length , obtaining curves for the modular torus and for the asymmetric torus. Such a cutoff permits evaluating the dyadic block statistics through , because the largest count used in a block is . The following selected values are retained verbatim from that report. The new full campaign below matches both integer counts and every displayed entry at four decimal places.
Modular torus
Asymmetric torus
32
2.1686
0.6015
0.8134
0.2734
128
1.1130
0.3501
0.5285
0.1494
512
0.7415
0.1697
0.3756
0.0950
2048
0.4342
0.0950
0.2492
0.0612
According to the supplied draft, the reported maxima use all computed length events, including the half-length events, rather than an integer mesh. It reports that an independent direct-trace computation at decimal digits reproduces all lengths through within , and thirty selected long recursion paths reaching lengths near agree within . The latter include long repeated-twist paths. The same report states that every dyadic cutoff used for the integer counts is separated from the computed spectrum by at least .
It also describes a separate sensitivity calculation treating nearby events as having an unknown internal order and allows errors up to in each event position. Over all blocks the resulting lower and upper bounds for differ by less than . This is a conditional sensitivity check, not a proof that every computed length has that error bound. The advertised source, full block table, precision report, and sensitivity tables were not found in the supplied archive or repositories. The new campaign reproduces the counts and rounded table entries, but does not recover that implementation, its selected precision comparisons, or its sensitivity construction. Those historical precision and sensitivity claims remain unverified historical reports. This edition does not claim that the original diagnostic archive accompanies the book.
The displayed finite-range normalized excursions decrease overall; they do not establish an asymptotic linear or sublinear bound. The modular torus was already singled out as a candidate for exceptional behavior in [16, Conjecture 4.3]. Neither example is asserted to have a verified lattice-rational supporting normal at an infinitely flat irrational point. Sparse resonances can occur beyond the tested range. The historical stability claims remain distinct from the new evidence.
A new full campaign through length .
The maintained recipe experiments/torus_campaign/run.py gives new counts and for the two ordered trace triples. It records every dyadic count and all ten blocks for each surface, including the full/half event sweep, both relevant one-sided limits and simultaneous multiplicities. The compact result artifacts/torus_campaign/result.json retains all twenty block rows, selected paths, residuals, conditional sensitivity rows and source/input identities. The recipe describes the separately hashed slope and sorted-length streams and their regeneration. The checkpoint docs/execution/counting-mixing-review-2026-11-01/ records independent review and final source/generation identities.
The full campaign is supported by a complete exact-trace comparison through length , an independent direct-trace traversal and membership probes through , and selected long-path references. The latter use and decimal digits on modular and asymmetric samples, including distinct curves near length on each surface. The largest observed difference from binary64 is below ; this is a sampled residual, not a bound at every node. Independent review additionally checked long samples by matrix words at and digits and recomputed every dyadic primitive and signed all-point count from the full stored length streams. Exact arithmetic on stored binary64 values does not certify membership or ordering for the true transcendental lengths.
The new sensitivity calculation gives exact rational envelopes for conditional on an error at most in each listed length. Its maximum envelope widths across all ten blocks are below and , respectively. These conservative bounds differ from the historical reported construction and must not be substituted for its claimed width. Application to the complete true spectrum also requires completeness and exclusion of entry by omitted curves under perturbation. The sampled precision checks certify neither hypothesis. The result also records signed all-point counts and their dyadic differences, in hyperbolic length units, as used at the end of Section 31.
The frozen length- predecessor.
The earlier recipe experiments/section30/run.py records a frozen calculation through length for the same two exact trace triples. It finds modular and asymmetric curves. This was the first bounded replacement experiment; its code, README and result retain their earlier bytes. Its complete slope list, exact traces, numerical lengths, and block statistics are recorded in artifacts/section30/result.json, with that run’s source identity and precision settings. Its block values are
Modular torus
Asymmetric torus
4
3.3289
1.4538
1.4983
0.7563
8
3.2433
1.2476
1.2352
0.4951
16
2.0238
0.8521
1.2246
0.3942
The check uses two enumerations. The first traverses the three sectors with logarithmic traces. The second evaluates exact trace polynomials for all primitive slopes in the box , , using Euclidean Farey parents, without length-based pruning. This box suffices for these two fixtures: put . The outward subtraction bound gives , and each root has . The corresponding sector weight is for , for , and for . Thus and Every curve of length at most therefore lies in the stated box. There are primitive unoriented slopes in that box, including . Equal traces retain all their distinct slopes.
The oracle uses rational arithmetic in for traces and evaluates lengths at and decimal digits. Opposite-signed algebraic coefficients are evaluated through the exact norm and the conjugate denominator to avoid subtractive cancellation. Both precisions select the same slopes as the logarithmic traversal; the length comparisons differ by less than between the two decimal precisions and by less than from the binary64 logarithmic calculation. These are observed residuals, not rigorous error enclosures.
The displayed metrics use the oracle lengths rounded to binary64. An event sweep is compared with direct counts on every event interval, including one-sided limits and simultaneous jumps. Comparing metrics from the logarithmic and exact-trace length calculations gives differences below for and for . The recipe also supplies conservative rational bounds for , conditional on each stored length having error at most ; it does not certify that error hypothesis. These bounds concern the fixed supplied curve list; application to the complete spectrum also assumes that no omitted curve can enter a block threshold under the perturbation. The full derivation and run instructions are in experiments/section30/README.md. This bounded check provides no long-range sensitivity bound and no asymptotic remainder theorem. The analytic arguments in this section have their own hypotheses and claim ledger; their validity does not follow from this finite computation.
30.8 A recent qualification of irrational flatness
Doan–Li–Nguyen’s preprint [113], version 3 dated 9 October 2026, states a Diophantine refinement of the irrational flatness statement. Its Theorem 4.7 on page 23 states that infinite graph-flatness holds precisely when the exponential rational-approximation exponent vanishes; superexponentially approximable irrational directions can have graph-flatness order only one. In slope coordinates the relevant vanishing criterion is , where are continued-fraction denominators; Lemma 4.8 on pages 25–26 specifies the slope-coordinate normalization. The proposed local convexity mechanism is that a nearby rational corner can remain visible at a much smaller spatial scale than its exponentially small angle.
We have checked these statements against that pinned version, but have not independently audited its flatness proof or its global counting assertions. None is used as a proved input above. In particular, Propositions 29.1 and 30.2 retain their explicit flat-point hypotheses, and Proposition 30.1 uses only strict convexity. The preprint also continues to list the McShane–Rivin bound as the cumulative counting benchmark; its multiplicity estimate concerns exact length levels, a different question.