numerical-method.md

back to table · edit · history · where entries came from · files · download

4456 bytes, as of the version from 2026-11-30 16:30 (current). Recorded here, not run.

# Numerical method and error bounds for T870

For negative fundamental discriminant D put N=|D|. Gross–Dasgupta,
Sections 2–3, fixes the s derivative as sum chi_D(a) log_p Gamma_p(a/N),
including p-divisible a. The source's nonunit generator of q^h and its conjugate
are distinguished by overbars (PDF page 6, visually inspected). Our alpha is
the source's conjugate, the local unit: (alpha)=bar(q)^h. Thus G=(4/w)log_p(alpha).
This sign was read before fitting any values. The interpolation character is
chi_D omega_p; it is not the untwisted character at every interpolation integer.

Exact arithmetic in generate.arithmetic verifies the maximal discriminant,
class number (Sage proof=True), roots-of-unity count, reduced-form count, and
-B_{1,chi}=2h/w. It constructs alpha=(x+y sqrt(D))/2 by the norm equation,
checks integrality, norm p^h, the exact ideal equality (alpha)=bar(q)^h,
q*bar(q)=(p), and prime-ideal valuations 0,h. The smaller positive root residue
r0 of X^2-D modulo p defines q=(p,sqrt(D)-r0) and the unique Hensel embedding.
No root-sign selection is based on the numerical answer.

Let n_p be the least n with p^n>=10^100. If v=v_p(G), the returned uncertainty
is O(p^A), A=v+n_p. All rows are nonzero modulo p^A: 71 have v=1 and four
have v=2. No zero ball is treated as exact zero. Relative information is
at least 100 decimal digits' equivalent, not an archimedean error bound.

The Gamma sum uses native Sage Qp at n_p+24 capped-relative base-p digits,
exact QQ(a)/N inputs, PARI gamma and Sage's unit logarithm. Sage 10.9 /
PARI 2.17.1 were actually run. Native precision after summing is recorded per
row, with at least 22 base-p guard digits beyond A. PARI's documented gamma
on t_PADIC is Morita Gamma; it is evaluated at the input's p-adic precision.
Sage defaults to the same PARI routine, so those two interfaces are not
independent implementations. The reported O terms are software-tracked
precision, not a stand-alone proof of a transcendental routine's correctness.
The entire retained Gamma-sum residue is independently certified using the
algebraic theorem and the exact bounded series below. We make no separate
claim that every individual stored Gamma summand has been certified.

For the certified route, integer Hensel lifting gives r modulo p^M. Its residual
is zero modulo p^M and 2r is a unit; Hensel's lemma certifies the selected root.
Evaluate u=(x+yr)/2 modulo p^M. All denominators 2 and w are p-adic units for
these primes. Then z=u^(p-1)-1 is divisible by p and
log_p(u)=sum_{k>=1}(-1)^(k+1) z^k/(k(p-1)).
For k>=2A, v_p(z^k/k)>=k-floor(log_p(k))>=A. The bound is nondecreasing.
The implementation sums k=1,...,2A-1 and cancels the p-part of k before
inverting its unit part. M=A+floor(log_p(2A))+2 covers every denominator loss.
Uncertainty in u modulo p^M changes log(u) by O(p^M): log(u+delta)-log(u)
=log(1+delta/u). Multiplication by 4/w loses no precision. Thus the modular
residue of G is certified modulo the full p^A by the theorem and elementary
series error bound. Finite exact residue arithmetic avoids roundoff.

check_values.py is a second implementation, with Newton-doubling Hensel lifting,
3A series terms, independent character factorization and enumeration. It checks
all 75 values, the class-number character sum, non-vacuous precision, root and
norm conditions, coherent conjugation, sign under embedding-only reversal and
global units (including exceptional roots of unity). Known controls include
log_7(8) modulo 7^4 and log_5(-1)=0. Deliberate wrong controls change the last
stored digit, reverse only the embedding, omit 4/w at D=-3, or substitute an
unadjusted generator of a smaller ideal power in a class-number-two field.
These are builder checks, not the separate critique actor's verdict.

The first checker run exposed a checker bug: its prime-factor character code
failed to apply the special Kronecker factor at a remaining factor 2. The
class-number identity failed before any upload. The leftover-factor case was
fixed and every row/control rerun. This did not change generated values.
A preliminary Sage API probe also used a nonexistent ideal conjugation method;
explicit ideals (p,t+r0) were used instead. Both probe logs are retained.

The coordinated skill manifest is attached as skill-manifest.json. Core hash:
36a62fdb24135ef8d2d35cf66f5b5773adee90fd52d8c57b0128c42a2e680448;
bundle hash f20b09e3db5fd443660c0c6b29391ee369b7c710a43e22d8abb971ec3f54dd14.