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.Cech.RepeatedTuplePartners |
| 8 | import Mathlib.LinearAlgebra.Finsupp.LSum |
| 9 | |
| 10 | /-! # Tuple Chains -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Category _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite _root_.TopologicalSpace |
| 17 | universe u |
| 18 | |
| 19 | open Set |
| 20 | |
| 21 | /-- The free integral module on tuples of length `n + 1`. -/ |
| 22 | abbrev CechTupleChain (ι : Type u) (n : ℕ) := |
| 23 | (Fin (n + 1) → ι) →₀ ℤ |
| 24 | |
| 25 | /-- Delete one entry from a tuple. -/ |
| 26 | def cechTupleDelete {ι : Type u} {n : ℕ} |
| 27 | (i : Fin (n + 2) → ι) (k : Fin (n + 2)) : |
| 28 | Fin (n + 1) → ι := |
| 29 | i ∘ k.succAbove |
| 30 | |
| 31 | /-- Extend a function on tuple generators linearly. -/ |
| 32 | def cechTupleLinearExtension {ι : Type u} {n m : ℕ} |
| 33 | (f : (Fin (n + 1) → ι) → CechTupleChain ι m) : |
| 34 | CechTupleChain ι n →ₗ[ℤ] CechTupleChain ι m := |
| 35 | Finsupp.lsum ℤ fun i => |
| 36 | LinearMap.toSpanSingleton ℤ (CechTupleChain ι m) (f i) |
| 37 | |
| 38 | @[simp] |
| 39 | theorem cechTupleLinearExtension_single {ι : Type u} {n m : ℕ} |
| 40 | (f : (Fin (n + 1) → ι) → CechTupleChain ι m) |
| 41 | (i : Fin (n + 1) → ι) (a : ℤ) : |
| 42 | cechTupleLinearExtension f (Finsupp.single i a) = a • f i := by |
| 43 | simp [cechTupleLinearExtension] |
| 44 | |
| 45 | /-- The alternating deletion boundary of a tuple generator. -/ |
| 46 | def cechTupleBoundaryBasis {ι : Type u} (n : ℕ) |
| 47 | (i : Fin (n + 2) → ι) : CechTupleChain ι n := |
| 48 | ∑ k : Fin (n + 2), |
| 49 | Finsupp.single (cechTupleDelete i k) ((-1 : ℤ) ^ (k : ℕ)) |
| 50 | |
| 51 | /-- The alternating deletion boundary on free tuple chains. -/ |
| 52 | def cechTupleBoundary {ι : Type u} (n : ℕ) : |
| 53 | CechTupleChain ι (n + 1) →ₗ[ℤ] CechTupleChain ι n := |
| 54 | cechTupleLinearExtension (cechTupleBoundaryBasis n) |
| 55 | |
| 56 | @[simp] |
| 57 | theorem cechTupleBoundary_single {ι : Type u} (n : ℕ) |
| 58 | (i : Fin (n + 2) → ι) (a : ℤ) : |
| 59 | cechTupleBoundary n (Finsupp.single i a) = |
| 60 | a • cechTupleBoundaryBasis n i := by |
| 61 | simp [cechTupleBoundary] |
| 62 | |
| 63 | /-- Prepend one entry to a tuple. -/ |
| 64 | def cechTuplePrepend {ι : Type u} {n : ℕ} |
| 65 | (i₀ : ι) (i : Fin (n + 1) → ι) : Fin (n + 2) → ι := |
| 66 | Fin.cases i₀ i |
| 67 | |
| 68 | /-- Prepending a fixed entry, extended to free tuple chains. -/ |
| 69 | def cechTuplePrependChain {ι : Type u} (i₀ : ι) (n : ℕ) : |
| 70 | CechTupleChain ι n →ₗ[ℤ] CechTupleChain ι (n + 1) := |
| 71 | cechTupleLinearExtension fun i => Finsupp.single (cechTuplePrepend i₀ i) 1 |
| 72 | |
| 73 | @[simp] |
| 74 | theorem cechTuplePrependChain_single {ι : Type u} (i₀ : ι) (n : ℕ) |
| 75 | (i : Fin (n + 1) → ι) (a : ℤ) : |
| 76 | cechTuplePrependChain i₀ n (Finsupp.single i a) = |
| 77 | Finsupp.single (cechTuplePrepend i₀ i) a := by |
| 78 | simp [cechTuplePrependChain] |
| 79 | |
| 80 | @[simp] |
| 81 | theorem cechTupleDelete_prepend_zero {ι : Type u} {n : ℕ} (i₀ : ι) |
| 82 | (i : Fin (n + 1) → ι) : |
| 83 | cechTupleDelete (cechTuplePrepend i₀ i) 0 = i := by |
| 84 | funext k |
| 85 | rfl |
| 86 | |
| 87 | @[simp] |
| 88 | theorem cechTupleDelete_prepend_succ {ι : Type u} {n : ℕ} (i₀ : ι) |
| 89 | (i : Fin (n + 2) → ι) (k : Fin (n + 2)) : |
| 90 | cechTupleDelete (cechTuplePrepend i₀ i) k.succ = |
| 91 | cechTuplePrepend i₀ (cechTupleDelete i k) := by |
| 92 | funext l |
| 93 | refine Fin.cases ?_ (fun m => ?_) l |
| 94 | · rfl |
| 95 | · simp [cechTupleDelete, cechTuplePrepend, Function.comp_apply] |
| 96 | |
| 97 | theorem cechTupleDelete_delete {ι : Type u} {n : ℕ} |
| 98 | (i : Fin (n + 3) → ι) {k : Fin (n + 3)} {l : Fin (n + 2)} |
| 99 | (hkl : k ≤ l.castSucc) : |
| 100 | cechTupleDelete (cechTupleDelete i l.succ) |
| 101 | (k.castLT (lt_of_le_of_lt hkl l.is_lt)) = |
| 102 | cechTupleDelete (cechTupleDelete i k) l := by |
| 103 | funext m |
| 104 | have hδ := CategoryTheory.ConcreteCategory.congr_hom |
| 105 | (SimplexCategory.δ_comp_δ'' hkl) |
| 106 | exact congrArg i (hδ m) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FreeCech.TupleChains |