hyperell_regulator.reduction module

Reduction and the integrality criterion for hyperelliptic curves over \(\QQ\).

At odd primes we use cluster pictures as in Dokchitser–Dokchitser– Maistret–Morgan, Theorems 1.8 and 8.5. At 2 we use Liu’s reduction data. Component tests refer to the stable model; linking chains are contracted to nodes. Component tests at 2 are undecided.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(f=x^5 + x^3 + 1)
sage: C.bad_primes()
[2, 53, 61]
sage: C.is_semistable_at(53)
True
sage: [(c.kind, c.genus) for c in C.components(53)]
[('principal', 1)]
sage: C.same_component((0, 1), (0, -1), 53)["answer"]
True

sage: from contextlib import redirect_stdout
sage: from io import StringIO
sage: output = StringIO()
sage: with redirect_stdout(output):
....:     C.report(P=(0, 1), Q=(0, -1))
sage: 'conductor' in output.getvalue()
True
potential_toric_rank(stable_type)[source]

The potential toric rank from Liu’s type (I)–(VII).

EXAMPLES:

sage: from hyperell_regulator.reduction import potential_toric_rank
sage: potential_toric_rank("II")
1
sage: potential_toric_rank("V")
0
nu_type_is_semistable(label)[source]

Whether the Namikawa–Ueno type has all component multiplicities equal to one.

EXAMPLES:

sage: from hyperell_regulator.reduction import nu_type_is_semistable
sage: nu_type_is_semistable("[I{1-0-0}]")
True
sage: nu_type_is_semistable("[I{1-1-0}]")
True
sage: nu_type_is_semistable("[V]")
False
sage: nu_type_is_semistable("[II-II-0]")
False
sage: nu_type_is_semistable("[VIII-1]")
False
sage: nu_type_is_semistable("[I*{1-0-0}]")
False
class SpecialFibreComponent(label, kind, cluster=None, sign=None, genus=None, equation=None)[source]

Bases: SageObject

An irreducible component of a semistable special fibre.

kind is "principal" or "chain". The latter is contracted in the stable model. sign distinguishes the two übereven components.

class PointReduction(prime, is_smooth, component=None, point=None, reason=None, cluster=None, y_datum=None)[source]

Bases: SageObject

The reduction of a rational point on the stable special fibre.

is_smooth excludes nodes. point is a residue-field pair, "infinity" or None; reason describes nonsmooth reduction.

HyperellipticCurveWithReduction(f, h=0, prec=250)[source]

The Sage curve \(y^2+h(x)y=f(x)\) over \(\QQ\), with reduction methods.

f and h are integral; prec is the \(p\)-adic working precision.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^5 + x^3 + 1)
sage: C
Hyperelliptic Curve over Rational Field defined by y^2 = x^5 + x^3 + 1
sage: C.genus()
2
sage: C.bad_primes()
[2, 53, 61]
sage: C.is_tame(53), C.is_semistable_at(53)
(True, True)

sage: C.jacobian()
Jacobian of Hyperelliptic Curve over Rational Field defined by y^2 = x^5 + x^3 + 1

sage: HyperellipticCurveWithReduction(x^7 - x^5 + x + 1).genus()
3
ClusterCurve(f, h=0, prec=250)

Short alias for HyperellipticCurveWithReduction(), for interactive use.

class HyperellipticReduction[source]

Bases: object

Reduction methods for Sage hyperelliptic curves.

F=4f+h^2 defines the square model.

curve()[source]

The underlying curve, self.

square_model()[source]

The model \(Y^2=4f+h^2\), isomorphic over \(\ZZ[1/2]\).

to_square_model(P)[source]

Send an affine point to the square model by \(Y=2y+h(x)\).

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^5 - x, x)
sage: C.to_square_model((1, 0))
(1, 1)
reduction_data()[source]

Liu’s reduction data from genus2reduction.

conductor()[source]

The conductor of the Jacobian of \(C\).

minimal_discriminant()[source]

The minimal discriminant of \(C\).

bad_primes()[source]

The prime divisors of the minimal discriminant.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: HyperellipticCurveWithReduction(x^5 + x^3 + 1).bad_primes()
[2, 53, 61]
local_data(p)[source]

Liu’s data at p: stable_type, nu_type, conductor_exponent, raw.

cluster_picture(p)[source]

The cluster picture of \(Y^2=4f+h^2\) over \(\QQ_p\), for odd p.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^5 + x^3 + 1)
sage: C.cluster_picture(53)
Cluster with 5 roots and 4 children
is_tame(p)[source]

Whether wild inertia acts trivially on \(H^1(C)\) at p.

Return True, False or None if undecided.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^6 - 27)
sage: C.is_tame(3), C.is_semistable_at(3)
(True, False)

sage: HyperellipticCurveWithReduction(x^5 - x, x).is_tame(2)
True
semistabilising_index(p)[source]

A tame ramification index giving semistable reduction at p.

Return 1 exactly when \(C\) is already semistable over \(\QQ_p\).

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: HyperellipticCurveWithReduction(x^6 - 27).semistabilising_index(3)
4
sage: HyperellipticCurveWithReduction(x^5 + x^3 + 1).semistabilising_index(53)
1
semistability_at(p)[source]

Semistability at p, with the method and reason.

The dictionary entry semistable is True, False or None.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: HyperellipticCurveWithReduction(x^5 - x, x).semistability_at(65563)["semistable"]
True
is_semistable_at(p)[source]

Whether \(C\) is semistable at p (None if undecided).

is_semistable()[source]

Whether \(C\) is semistable at every prime; None if undecided.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: HyperellipticCurveWithReduction(x^5 - x, x).is_semistable()
True
semistability()[source]

The dictionary p -> semistability_at(p) over all bad primes.

components(p, model='stable')[source]

The special-fibre components at an odd bad prime.

model="stable" retains principal components; model="regular" also includes the linking chains. Return SpecialFibreComponent objects.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^5 + x^3 + 1)
sage: [(c.kind, c.genus) for c in C.components(53)]
[('principal', 1)]
special_fibre(p)[source]

The stable and regular components, dual graph, node count and toric rank at p.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: d = HyperellipticCurveWithReduction(x^5 + x^3 + 1).special_fibre(53)
sage: d["toric_rank"]
1
reduce_point(p, P)[source]

Reduce an affine rational point on the stable fibre at an odd bad prime.

Return a PointReduction.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^5 + x^3 + 1)
sage: C.reduce_point(53, (0, 1)).is_smooth
True
same_component(P, Q, p)[source]

Whether \(P\) and \(Q\) reduce smoothly on the same stable component at p.

Return prime, answer, the reductions P and Q, and reason.

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^5 + x^3 + 1)
sage: C.same_component((0, 1), (0, -1), 53)["answer"]
True
same_component_everywhere(P, Q)[source]

Component tests keyed by bad prime; answer=None where unavailable.

report(P=None, Q=None)[source]

Print reduction data and, if given, the component test for \(P\) and \(Q\).

EXAMPLES:

sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: HyperellipticCurveWithReduction(x^5 - x, x).report(P=(0, 0), Q=(1, 0))  # random
genus2_semistable_report(f, h=0, P=None, Q=None, prec=250)[source]

Construct the curve, print its reduction report and return it.

EXAMPLES:

sage: from hyperell_regulator.reduction import genus2_semistable_report
sage: R.<x> = ZZ[]
sage: C = genus2_semistable_report(x^5 - x, x, P=(0, 0), Q=(1, 0))  # random
self_test(verbose=True)[source]

Check reduction, conductors and component groups against Liu’s data.

EXAMPLES:

sage: from hyperell_regulator.reduction import self_test
sage: self_test(verbose=False)  # long time
True