The Hodge conjecture
Shorten the exceptional tuples that leave the Hodge conjecture open on Fermat varieties of degree 44, 51 and 52, and check the 2026 claims

| 1 | #!/usr/bin/env python3 |
| 2 | """docs/fermat-degrees.svg: for each degree d from 3 to 102, whether the Hodge conjecture is known for every Fermat |
| 3 | variety x_0^d + ... + x_{n+1}^d = 0 (all n). Its only words are the degrees, so README.md and README.zh.md each |
| 4 | caption it. Standard library only: |
| 5 | |
| 6 | python3 scripts/fermat_degrees.py > docs/fermat-degrees.svg |
| 7 | |
| 8 | The rule is Aoki's (1983; MMRV 2026, Corollary 4.2): the conjecture holds for degree d once every exceptional tuple |
| 9 | xi_q with q dividing d is algebraic. EXCEPTIONAL lists the q up to 102 that have one (MMRV's data file of Aoki's |
| 10 | tuples). Known before 2026: xi_12, xi_15, xi_20 (Shioda 1979: d <= 20) and xi_21 (da Silva Jr. 2021). Shortened to |
| 11 | length at most 6 by Miranda, Movasati, Rufino and Villaflor (arXiv:2609.27301, 2026-09, a preprint): 28, 33, 35, 39, |
| 12 | 55, 57. A degree is drawn filled when it needs only the first kind, in sand when it needs the second, dashed when |
| 13 | some xi_q dividing it is still open; 44, 51 and 52, the project's board, are drawn heavier. |
| 14 | """ |
| 15 | EXCEPTIONAL = (12, 15, 20, 21, 28, 33, 35, 39, 44, 51, 52, 55, 57, 65, 68, 69, 76, 77, 85, 87, 91, 92, 93, 95) |
| 16 | BEFORE = {12, 15, 20, 21} |
| 17 | MMRV = {28, 33, 35, 39, 55, 57} |
| 18 | BOARD = {44, 51, 52} |
| 19 | COLS, CELL_W, CELL_H, GAP, PAD = 10, 64, 30, 6, 13 |
| 20 | FIRST, LAST = 3, 102 |
| 21 | |
| 22 | |
| 23 | def state(d): |
| 24 | need = {q for q in EXCEPTIONAL if d % q == 0} |
| 25 | if need - BEFORE - MMRV: |
| 26 | return "board" if d in BOARD else "open" |
| 27 | return "mmrv" if need & MMRV else "known" |
| 28 | |
| 29 | |
| 30 | rows = (LAST - FIRST) // COLS + 1 |
| 31 | W = 2 * PAD + COLS * CELL_W + (COLS - 1) * GAP |
| 32 | H = 2 * PAD + rows * CELL_H + (rows - 1) * GAP |
| 33 | out = [f'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 {W} {H}" width="{W}" height="{H}" font-family="system-ui, -apple-system, \'Segoe UI\', sans-serif" font-size="13">', |
| 34 | '<title>Fermat varieties by degree: where the Hodge conjecture is known</title>', |
| 35 | '<style>.bg{fill:#fff}.known{fill:#dde3fb}.mmrv{fill:#f2e2c0}.open,.board{fill:#fff;stroke:#9aa0a6;stroke-dasharray:4 3}' |
| 36 | '.board{stroke:#4f6bed;stroke-width:2.2}.t{fill:#1f1f1f}.to{fill:#5f6368}.tb{fill:#1f1f1f;font-weight:700}' |
| 37 | '@media (prefers-color-scheme: dark){.bg{fill:#1f2023}.known{fill:#2b3566}.mmrv{fill:#4a3e22}.open,.board{fill:#1f2023;stroke:#6f7479}' |
| 38 | '.board{stroke:#93a6ff}.t,.tb{fill:#e8eaed}.to{fill:#9aa0a6}}</style>', |
| 39 | f'<rect class="bg" width="{W}" height="{H}"/>'] |
| 40 | for i, d in enumerate(range(FIRST, LAST + 1)): |
| 41 | x = PAD + (i % COLS) * (CELL_W + GAP) |
| 42 | y = PAD + (i // COLS) * (CELL_H + GAP) |
| 43 | s = state(d) |
| 44 | out.append(f'<rect class="{s}" x="{x + .5}" y="{y + .5}" width="{CELL_W - 1}" height="{CELL_H - 1}" rx="6"/>') |
| 45 | out.append(f'<text class="{"tb" if s == "board" else "to" if s == "open" else "t"}" x="{x + CELL_W / 2}" y="{y + CELL_H / 2 + 4.5}" text-anchor="middle">{d}</text>') |
| 46 | out.append('</svg>') |
| 47 | print("\n".join(out)) |