Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable Artin L-functions with large conductor/degree #5627

Merged
merged 2 commits into from
Aug 9, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion lmfdb/lfunctions/Lfunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
)
import sage.libs.lcalc.lcalc_Lfunction as lc

from lmfdb.app import is_debug_mode

from lmfdb.backend.encoding import Json
from lmfdb.utils import (
Downloader,
Expand Down Expand Up @@ -1254,6 +1256,12 @@ def __init__(self, **args):
self.primitive = self.artin.primitive()
self.degree = self.artin.dimension()
self.level = self.artin.conductor()

# disable expensive L-functions, these should not be linked anywhere regardless
# this threshold comes from lmfdb/artin_representations/main.py
if not is_debug_mode() and self.level**self.degree > 729000000000000:
raise ValueError(f'Error constructing L-function for the Artin representation {self.origin_label}, as the conductor/degree is too large.')

self.level_factored = factor(self.level)
self.mu_fe = self.artin.mu_fe()
self.nu_fe = self.artin.nu_fe()
Expand Down Expand Up @@ -1320,7 +1328,7 @@ def __init__(self, **args):
# Check for compulsory arguments
if "t" in args and "family" in args:
args["label"] = args["family"] + "_" + args["t"]
validate_required_args ('Unable to construct hypergeometric motive L-function.', args, 'label')
validate_required_args('Unable to construct hypergeometric motive L-function.', args, 'label')
self._Ltype = "hgmQ"

# Put the arguments into the object dictionary
Expand Down