Skip to content

Incorrect Hecke Operators in conda-forge Sage 9.7–10.6 (fixed in 10.7) #41267

@MaximKontsevich

Description

@MaximKontsevich

Steps To Reproduce

Create a clean conda environment:

 conda create -n sage_test -c conda-forge sage=10.6
 conda activate sage_test

Run the following one-line test:

 CuspForms(Gamma1(2), 10).hecke_matrix(5)

This computes the Hecke operator T_5 on the 1-dimensional space S_10(Gamma1(2)).

Expected Behavior

Since S_10(Gamma1(2)) is 1-dimensional, the Hecke operator T_5 must be the 1×1 matrix

 [870]

This is the correct value and agrees with:

  • conda-forge sage=10.7
  • Debian/apt sage=9.5
  • SageCell server
  • Theoretical value of a_5 for the unique normalized weight-10 level-2 eigenform.

Actual Behavior

In conda-forge builds of Sage 9.7, 10.1, 10.4, 10.5, and 10.6, the same code produces:

[534154/3]

This value is mathematically incorrect:

  • it is not equal to 870,
  • it is not integral,
  • it cannot arise from any normalization convention,
  • and it does not match the true Hecke eigenvalue.

The error occurs even at a good prime p=5, for a 1-dimensional cusp form space,
so it is not related to basis choice, modular symbols, or sign issues.

In conda-forge sage=10.7, the correct value [870] is obtained.

Additional Information

This bug appears to affect all conda-forge builds of SageMath from 9.7 through 10.6.
It does NOT appear in:

  • conda-forge sage=10.7 (correct)
  • Debian/apt sage=9.5 (correct)
  • SageCell (correct)

This suggests a conda-forge build-chain or ABI issue rather than a Sage
source code bug.

The example above is intentionally minimal: a single one-line computation
on a 1-dimensional space, so the Hecke eigenvalue is completely unambiguous.

A regression test such as:

CuspForms(Gamma1(2), 10).hecke_matrix(5) == matrix([[870]])

would detect this problem automatically.

Environment

For the conda-forge versions showing the bug:

  OS: Linux (Ubuntu 22.04 and ChromeOS Linux container; bug reproduced on both)
  Sage version: 9.7, 10.1, 10.4, 10.5, 10.6 (conda-forge)
  Python: default conda-forge Python (3.11 or 3.12 depending on environment)
  Installation method: conda create -n sageX -c conda-forge sage=X

For the correct versions:

  Sage version (working): 10.7 (conda-forge), 9.5 (Debian/apt), SageCell

Checklist

  • I have searched the existing issues for a bug report that matches the one I want to file, without success.
  • I have read the documentation and troubleshoot guide

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions