hyperell_regulator.lfunction module

Curve and standard \(L\)-functions of genus 2 curves over \(\QQ\).

The standard motive is \(\ker(\wedge^2 h^1(C) \to \QQ(-1))\), so \(L(\wedge^2 h^1(C),s)=L(M_{\mathrm{std}}(C),s)\zeta(s-1)\).

EXAMPLES:

sage: from hyperell_regulator.lfunction import StandardLFunction
sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^5 + x^3 + 1)
sage: L = StandardLFunction(C, bad_factors={2: None})  # doctest: +ELLIPSIS
...Warning: unknown valuation of conductor at 2.
sage: L.euler_factor(53).degree()
3
wedge2_euler_factor(P)[source]

The Euler polynomial \(\prod_{i<j}(1-\alpha_i\alpha_j T)\) from P equal to \(\prod_i(1-\alpha_i T)\) of degree four.

EXAMPLES:

sage: from hyperell_regulator.lfunction import wedge2_euler_factor
sage: S = PolynomialRing(QQ, ['a1','a2','a3','a4'])
sage: a1, a2, a3, a4 = S.gens()
sage: RT = PolynomialRing(S, 'T'); T = RT.gen()
sage: P = prod(1 - a*T for a in (a1, a2, a3, a4))
sage: W = prod(1 - a*b*T for a, b in Combinations([a1,a2,a3,a4], 2))
sage: wedge2_euler_factor(P) == W
True
class StandardLFunction(C, bad_factors=None, prec=None, h1_conductor=None, conductor_exponents=None)[source]

Bases: SageObject

The degree five \(L\)-function of \(M_{\mathrm{std}}(C)\).

Its local factor is \(P_p^{\wedge^2}(T)/(1-pT)\). Bad factors use monodromy and inertia data; unsupported cases require bad_factors. h1_conductor supplies the exact Jacobian conductor when needed at 2. conductor_exponents supplies exact local standard conductor exponents, including Swan contributions. The functional equation is \(s \leftrightarrow 3-s\), with sign \(+1\).

EXAMPLES:

sage: from hyperell_regulator.lfunction import StandardLFunction
sage: from hyperell_regulator.reduction import HyperellipticCurveWithReduction
sage: R.<x> = ZZ[]
sage: C = HyperellipticCurveWithReduction(x^5 + x^3 + 1)
sage: L = StandardLFunction(C, bad_factors={2: None})   # doctest: +ELLIPSIS
...Warning: unknown valuation of conductor at 2.
sage: L.euler_factor(53).degree()
3
h1_euler_factor(p)[source]

The \(h^1\) Euler factor at p; bad primes and 2 use PARI.

precompute_h1(primes, nthreads=None, *, progress=None)[source]

Cache \(h^1\) factors at good odd primes in one batch.

EXAMPLES:

sage: from sage.all import ZZ, PolynomialRing
sage: from hyperell_regulator import HyperellipticCurveWithReduction
sage: from hyperell_regulator.lfunction import StandardLFunction
sage: R = PolynomialRing(ZZ, 'x'); x = R.gen()
sage: L = StandardLFunction(HyperellipticCurveWithReduction(x**5 + x**3 + 1))
...Warning: unknown valuation of conductor at 2.
sage: L.precompute_h1([11, 13, 17])
sage: sorted(L._h1cache)
[11, 13, 17]
toric_factor(p)[source]

\(\det(1-\mathrm{Frob}_p T \mid H_1(\Gamma))\) for the dual graph \(\Gamma\).

wedge2_euler_factor(p)[source]

The \(\wedge^2 h^1\) Euler factor at p.

euler_factor(p)[source]

The standard Euler factor \(P_p^{\wedge^2}(T)/(1 - pT)\).

conductor()[source]

The standard conductor. Tame exponents are \(5-\deg P_p^{\mathrm{std}}\).

For the supported ramified complements at 2, add twice the \(h^1\) Swan conductor. Explicit conductor_exponents take precedence over these rules.

dirichlet_coefficients(num)[source]

The Dirichlet coefficients indexed from 1 through num.

lfun(num_coeffs=None, digits=10)[source]

The PARI object with gamma parameters \([-1,-1,0,0,1]\) and weight 3.

digits is the decimal working precision.

check_functional_equation(num_coeffs=None, digits=10)[source]

The functional equation residual 2^lfuncheckfeq.

vanishing_order(s=1, max_order=4, num_coeffs=None, digits=10, tol=None)[source]

The numerical order of vanishing at s.

Derivatives below tol are treated as zero; the default is \(10^{-\mathrm{digits}/2}\).

value(s=1, derivative=2, num_coeffs=None, digits=10, certified=False, progress=None)[source]

\(L^{(k)}(M_{\mathrm{std}}(C),s)\); by default \(L^{\prime\prime}(M_{\mathrm{std}}(C),1)\).

standard_lvalue(C, bad_factors=None, derivative=2, num_coeffs=None, digits=10, verbose=True, h1_conductor=None, certified=False, conductor_exponents=None)[source]

\(L^{\prime\prime}(M_{\mathrm{std}}(C),1)\) and its numerical data.

Return the value, conductor, Euler factors and functional equation residual. h1_conductor supplies the exact Jacobian conductor when needed at 2. conductor_exponents supplies exact local standard conductor exponents.

class CurveLFunction(C)[source]

Bases: SageObject

The degree four \(L\)-function \(L(C,s)=L(h^1(C),s)\).

Its gamma factor is \(\Gamma_{\mathbb C}(s)^2\); the functional equation is \(s \leftrightarrow 2-s\).

EXAMPLES:

sage: from sage.all import ZZ, PolynomialRing
sage: from hyperell_regulator import HyperellipticCurveWithReduction
sage: from hyperell_regulator.lfunction import CurveLFunction
sage: R = PolynomialRing(ZZ, 'x'); x = R.gen()
sage: L = CurveLFunction(HyperellipticCurveWithReduction(x**5 + x**3 + 1))  # doctest: +ELLIPSIS
...Warning: unknown valuation of conductor at 2.
sage: L.euler_factor(11).degree()
4
sage: L.conductor()
3233
precompute_h1(primes, nthreads=None, *, progress=None)[source]

Cache the Euler factors at good odd primes in one batch.

euler_factor(p)[source]

\(P_p(T)\) with \(L(C,s)=\prod_p P_p(p^{-s})^{-1}\).

Bad primes and 2 use PARI.

EXAMPLES:

sage: from sage.all import ZZ, PolynomialRing
sage: from hyperell_regulator import HyperellipticCurveWithReduction
sage: from hyperell_regulator.lfunction import CurveLFunction
sage: R = PolynomialRing(ZZ, 'x'); x = R.gen()
sage: L = CurveLFunction(HyperellipticCurveWithReduction(x**5 + x**3 + 1))
...Warning: unknown valuation of conductor at 2.
sage: L.euler_factor(11)[0]
1
conductor()[source]

The conductor of \(C\).

dirichlet_coefficients(num)[source]

The first num Dirichlet coefficients, with a zero sentinel at index 0.

root_number(num_coeffs=200, digits=10)[source]

The sign \(\pm1\) minimizing the functional equation residual.

lfun(num_coeffs=None, digits=10, der=2)[source]

The PARI object with gamma parameters \([0,0,1,1]\) and weight 2.

check_functional_equation(num_coeffs=None, digits=10)[source]

The functional equation residual 2^lfuncheckfeq.

value(s=1, derivative=0, num_coeffs=None, digits=10, certified=False, progress=None)[source]

\(L^{(k)}(C, s)\) at digits decimal digits.

EXAMPLES:

sage: from sage.all import ZZ, PolynomialRing
sage: from hyperell_regulator import HyperellipticCurveWithReduction
sage: from hyperell_regulator.lfunction import CurveLFunction
sage: R = PolynomialRing(ZZ, 'x'); x = R.gen()
sage: L = CurveLFunction(HyperellipticCurveWithReduction(x**5 + x**3 + 1))  # doctest: +ELLIPSIS
...Warning: unknown valuation of conductor at 2.
sage: bool(L.value(2, digits=10) > 0)            # long time
True
curve_lvalue(C, s=1, derivative=0, num_coeffs=None, digits=10, verbose=False, certified=False)[source]

\(L^{(k)}(C,s)\) to digits decimal digits.

Return the value, conductor, root number and functional equation residual.

EXAMPLES:

sage: from sage.all import ZZ, PolynomialRing
sage: from hyperell_regulator import HyperellipticCurveWithReduction
sage: from hyperell_regulator.lfunction import curve_lvalue
sage: R = PolynomialRing(ZZ, 'x'); x = R.gen()
sage: d = curve_lvalue(HyperellipticCurveWithReduction(x**5 + x**3 + 1),  # doctest: +ELLIPSIS
....:                  s=2, digits=12)                      # long time
...Warning: unknown valuation of conductor at 2.
...
sage: d["conductor"]                                         # long time
3233