hyperell_regulator.integrality module

Sufficient integrality criterion for sums of torsion-packet classes.

For a degree-zero divisor D = sum(n_i P_i) on a rational torsion packet, we test sum_{P_i -> Z} n_i = 0 on every component Z at every bad prime. This is sufficient for q_* B(D) to be integral.

Points are labelled when they reduce smoothly to a semistable component, or to the smooth locus of the original model at 2. Other points are unknown; kernels force their coefficients to zero, giving a certified sublattice.

class TorsionPacketIntegrality(C, points, torsion_primes=30)[source]

Bases: object

Multidegrees and balanced combinations on one verified torsion packet.

points are rational points on y^2+h*y=f, with ('infinity', eta) for eta=lim(y/x^(g+1)). Differences from the first point must be torsion: otherwise we raise ValueError, or NotImplementedError if the order is undetermined.

check(D) takes a coefficient vector in point order or a mapping from points to coefficients. kernel() returns a saturated lattice of integral degree-zero divisors; kernel(generators) returns integer combinations of the given divisors instead.

A failed criterion does not prove nonintegrality.

divisor(coefficients)[source]

Validate a rational degree-zero divisor and return its vector.

combine(divisors, coefficients)[source]

The divisor of sum_j coefficients[j] B(divisors[j]).

check(coefficients)[source]

Test multidegree zero; only q_integral=True is a certificate.

criterion_satisfied is true, false, or None. A nonzero coefficient on an unresolved point makes the local answer None.

kernel(generators=None)[source]

A saturated integer lattice of combinations certified by the criterion.

Rows of basis are coefficients of generators (point divisors by default); rows of divisors are the resulting point divisors. complete=False means unresolved support was forced to zero.

torsion_packets(C, points, torsion_primes=30)[source]

Partition points by verified torsion differences, retaining unknown pairs.

Return (packets, unresolved), where unresolved lists the pairs whose order is undetermined.