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

Lessmalle #6199

Merged
merged 3 commits into from
Oct 12, 2024
Merged
Show file tree
Hide file tree
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
14 changes: 8 additions & 6 deletions lmfdb/galois_groups/templates/gg-show-group.html
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,20 @@
{% endfor %}
</tbody>
</table>
{% else %}
{{ info.cclass_knowl | safe }}
{% endif %}
</p>
<p>{{ place_code('ccs') }}</p>
<p>
{{KNOWL('gg.malle_a', "Malle's constant $a(G)$")}}: &nbsp; &nbsp;
{% if info.malle_a is not none %}
${{info.malle_a}}$
${{info.malle_a}}$
{% else %}
not computed
{% endif %}
{% elif cclasses not in info %}
Conjugacy classes not computed
{% else %}
{{ info.cclass_knowl | safe }}
{% endif %}
</p>
<p>{{ place_code('ccs') }}</p>



Expand Down
18 changes: 17 additions & 1 deletion lmfdb/galois_groups/transitive_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
from lmfdb.groups.abstract.main import abstract_group_namecache, abstract_group_display_knowl
from lmfdb.groups.abstract.web_groups import WebAbstractGroup

CC_LIMIT = 160

def knowl_cache(galois_labels=None, results=None):
"""
Returns a dictionary for use in abstract_group_display_knowl, group_display and
Expand Down Expand Up @@ -190,6 +192,8 @@ def characters(self):

@lazy_attribute
def conjclasses(self):
if self.num_conjclasses()>CC_LIMIT:
return None
g = self.gapgroupnt()
n = self.n()
wag = self.wag
Expand Down Expand Up @@ -222,6 +226,8 @@ def conjclasses(self):
@lazy_attribute
def malle_a(self):
ccs = self.conjclasses
if not ccs:
return None
inds = [z[5] for z in ccs]
if len(inds) == 1:
return 0
Expand All @@ -233,6 +239,8 @@ def malle_a(self):

@lazy_attribute
def can_chartable(self):
if self.num_conjclasses() > CC_LIMIT:
return False
if not db.gps_groups.lookup(self.abstract_label()):
return False
return self.wag.complex_characters_known
Expand Down Expand Up @@ -477,6 +485,12 @@ def group_cclasses_knowl_guts(n, t):
rest += '<blockquote>'
rest += cclasses(n, t)
rest += '</blockquote></div>'
rest += "<p><a title='Malle's constant $a(G)$' knowl='gg.malle_a'>'Malle's constant $a(G)$</a>: &nbsp; &nbsp;"
wgg = WebGaloisGroup(label)
if wgg.malle_a:
rest += '$%s$'%str(wgg.malle_a)
else:
rest += 'not computed'
return rest


Expand Down Expand Up @@ -566,7 +580,7 @@ def resolve_display(resolves):
if deg != old_deg:
if old_deg < 0:
ans += '<table><tr><th>'
ans += '|G/N|<th>Galois groups for <a title = "stem field(s)" knowl="nf.stem_field">stem field(s)</a>'
ans += r'$\card{(G/N)}$<th>Galois groups for <a title = "stem field(s)" knowl="nf.stem_field">stem field(s)</a>'
else:
ans += '</td></tr>'
old_deg = deg
Expand Down Expand Up @@ -606,6 +620,8 @@ def cclasses(n, t):
<tbody>
"""
cc = group.conjclasses
if not cc:
return None
for c in cc:
html += f'<tr><td>${c[3]}$</td>'
html += f'<td>${c[2]}$</td>'
Expand Down
Loading