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 The AINTLIB contributors. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: AINTLIB ModularCurves project |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleContraction |
| 8 | |
| 9 | /-! # Tuple Boundary Square -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleBoundarySquare |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Category _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite _root_.TopologicalSpace |
| 16 | universe u |
| 17 | |
| 18 | open Set |
| 19 | |
| 20 | theorem cechTupleBoundary_boundary_single {ι : Type u} (n : ℕ) |
| 21 | (i : Fin (n + 3) → ι) : |
| 22 | TupleChains.cechTupleBoundary n |
| 23 | (TupleChains.cechTupleBoundary (n + 1) (Finsupp.single i 1)) = 0 := by |
| 24 | simp only [TupleChains.cechTupleBoundary_single, one_smul] |
| 25 | unfold TupleChains.cechTupleBoundaryBasis |
| 26 | rw [map_sum] |
| 27 | simp only [TupleChains.cechTupleBoundary_single] |
| 28 | unfold TupleChains.cechTupleBoundaryBasis |
| 29 | simp only [Finset.smul_sum] |
| 30 | rw [← Finset.sum_product'] |
| 31 | let P := Fin (n + 3) × Fin (n + 2) |
| 32 | let T : Finset P := {kl : P | (kl.1 : ℕ) ≤ (kl.2 : ℕ)} |
| 33 | rw [Finset.univ_product_univ, ← Finset.sum_add_sum_compl T, |
| 34 | ← eq_neg_iff_add_eq_zero, ← Finset.sum_neg_distrib] |
| 35 | let φ : ∀ kl : P, kl ∈ T → P := fun kl hkl => |
| 36 | (kl.2.succ, Fin.castLT kl.1 |
| 37 | (lt_of_le_of_lt (Finset.mem_filter.mp hkl).right (Fin.is_lt kl.2))) |
| 38 | apply Finset.sum_bij φ |
| 39 | · intro kl hkl |
| 40 | simp_rw [T, φ, Finset.compl_filter, Finset.mem_filter_univ, |
| 41 | Fin.val_succ, Fin.val_castLT] at hkl ⊢ |
| 42 | omega |
| 43 | · rintro ⟨k, l⟩ hkl ⟨k', l'⟩ hkl' h |
| 44 | rw [Prod.mk_inj] |
| 45 | exact ⟨by simpa [φ, Fin.castSucc_castLT] using! |
| 46 | congr_arg Fin.castSucc (congr_arg Prod.snd h), |
| 47 | by simpa [φ] using! congr_arg Prod.fst h⟩ |
| 48 | · rintro ⟨k', l'⟩ hkl' |
| 49 | simp_rw [T, Finset.compl_filter, Finset.mem_filter_univ, |
| 50 | not_le] at hkl' |
| 51 | refine ⟨(Fin.castSucc l', k'.pred (by |
| 52 | rintro rfl |
| 53 | simp only [Fin.val_zero, not_lt_zero] at hkl')), ?_, ?_⟩ |
| 54 | · simpa [T] using! Nat.le_sub_one_of_lt hkl' |
| 55 | · simp only [φ, Fin.succ_pred, Fin.castLT_castSucc] |
| 56 | · rintro ⟨k, l⟩ hkl |
| 57 | dsimp |
| 58 | rw [TupleChains.cechTupleDelete_delete i] |
| 59 | · simp [φ, pow_succ, Finsupp.smul_single, mul_comm] |
| 60 | · simpa [T] using! hkl |
| 61 | |
| 62 | theorem cechTupleBoundary_boundary_single_smul {ι : Type u} (n : ℕ) |
| 63 | (i : Fin (n + 3) → ι) (a : ℤ) : |
| 64 | TupleChains.cechTupleBoundary n |
| 65 | (TupleChains.cechTupleBoundary (n + 1) (Finsupp.single i a)) = 0 := by |
| 66 | have h := congrArg (fun x => a • x) (cechTupleBoundary_boundary_single n i) |
| 67 | simpa using h |
| 68 | |
| 69 | /-- Consecutive free tuple-chain boundaries compose to zero. -/ |
| 70 | theorem cechTupleBoundary_boundary {ι : Type u} (n : ℕ) |
| 71 | (x : TupleChains.CechTupleChain ι (n + 2)) : |
| 72 | TupleChains.cechTupleBoundary n (TupleChains.cechTupleBoundary (n + 1) x) = 0 := by |
| 73 | induction x using Finsupp.induction_linear with |
| 74 | | zero => simp |
| 75 | | add x y hx hy => simp [hx, hy] |
| 76 | | single i a => exact cechTupleBoundary_boundary_single_smul n i a |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleBoundarySquare |