Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | /- |
| 2 | Copyright (c) 2026 Chris Birkbeck. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: Chris Birkbeck |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.OrderedCech.ProjectionSplitting |
| 8 | import Mathlib.Data.Fin.Tuple.Sort |
| 9 | import Mathlib.GroupTheory.Perm.Fin |
| 10 | |
| 11 | /-! # Deleted Tuple Signs -/ |
| 12 | |
| 13 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.DeletedTupleSigns |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Category _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite _root_.TopologicalSpace |
| 18 | universe u |
| 19 | |
| 20 | /-- The permutation relating the two faces obtained by deleting `k` and `l`. -/ |
| 21 | def cechDeleteSwapFullPerm {n : ℕ} (k l : Fin (n + 2)) : |
| 22 | Equiv.Perm (Fin (n + 2)) := |
| 23 | (k.cycleRange.symm.trans (Equiv.swap k l)).trans l.cycleRange |
| 24 | |
| 25 | /-- The restriction of `cechDeleteSwapFullPerm` to the positive indices. -/ |
| 26 | def cechDeleteSwapPerm {n : ℕ} (k l : Fin (n + 2)) : |
| 27 | Equiv.Perm (Fin (n + 1)) := |
| 28 | (Equiv.Perm.decomposeFin (cechDeleteSwapFullPerm k l)).2 |
| 29 | |
| 30 | theorem cechDeleteSwapFullPerm_apply_zero {n : ℕ} (k l : Fin (n + 2)) : |
| 31 | cechDeleteSwapFullPerm k l 0 = 0 := by |
| 32 | simp [cechDeleteSwapFullPerm] |
| 33 | |
| 34 | theorem cechDeleteSwapFullPerm_eq_decomposeFin {n : ℕ} |
| 35 | (k l : Fin (n + 2)) : |
| 36 | cechDeleteSwapFullPerm k l = |
| 37 | Equiv.Perm.decomposeFin.symm (0, cechDeleteSwapPerm k l) := by |
| 38 | apply Equiv.Perm.decomposeFin.injective |
| 39 | apply Prod.ext |
| 40 | · simpa [Equiv.Perm.decomposeFin] using |
| 41 | cechDeleteSwapFullPerm_apply_zero k l |
| 42 | · rfl |
| 43 | |
| 44 | theorem cechDeleteSwapFullPerm_apply_succ {n : ℕ} |
| 45 | (k l : Fin (n + 2)) (x : Fin (n + 1)) : |
| 46 | cechDeleteSwapFullPerm k l x.succ = (cechDeleteSwapPerm k l x).succ := by |
| 47 | rw [cechDeleteSwapFullPerm_eq_decomposeFin] |
| 48 | simp |
| 49 | |
| 50 | theorem succAbove_cechDeleteSwapPerm {n : ℕ} |
| 51 | (k l : Fin (n + 2)) (x : Fin (n + 1)) : |
| 52 | l.succAbove (cechDeleteSwapPerm k l x) = |
| 53 | Equiv.swap k l (k.succAbove x) := by |
| 54 | apply l.cycleRange.injective |
| 55 | rw [Fin.cycleRange_succAbove] |
| 56 | rw [← cechDeleteSwapFullPerm_apply_succ k l x] |
| 57 | simp [cechDeleteSwapFullPerm] |
| 58 | |
| 59 | theorem comp_succAbove_cechDeleteSwapPerm_of_eq {n : ℕ} |
| 60 | {ι : Type*} (i : Fin (n + 2) → ι) (k l : Fin (n + 2)) |
| 61 | (hkl : i k = i l) : |
| 62 | (i ∘ l.succAbove) ∘ cechDeleteSwapPerm k l = |
| 63 | i ∘ k.succAbove := by |
| 64 | funext x |
| 65 | rw [Function.comp_apply, Function.comp_apply, Function.comp_apply, |
| 66 | succAbove_cechDeleteSwapPerm] |
| 67 | exact Equiv.apply_swap_eq_self hkl _ |
| 68 | |
| 69 | theorem cechDeleteSwapPerm_sign {n : ℕ} |
| 70 | (k l : Fin (n + 2)) (hkl : k ≠ l) : |
| 71 | (Equiv.Perm.sign (cechDeleteSwapPerm k l) : ℤ) = |
| 72 | -((-1 : ℤ) ^ (k : ℕ) * (-1 : ℤ) ^ (l : ℕ)) := by |
| 73 | have hsign := congrArg Equiv.Perm.sign |
| 74 | (cechDeleteSwapFullPerm_eq_decomposeFin k l) |
| 75 | simp only [Equiv.Perm.decomposeFin.symm_sign, ite_eq_left, one_mul] at hsign |
| 76 | rw [← hsign] |
| 77 | simp [cechDeleteSwapFullPerm, Equiv.Perm.sign_trans, |
| 78 | Equiv.Perm.sign_swap hkl, Units.val_mul, mul_comm] |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.DeletedTupleSigns |