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 | import OAI.AlgebraicGeometry.Comparison.Betti.Module.HomologyClasses |
| 2 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 3 | |
| 4 | /-! # Cochain Classes -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.CochainClasses.Homology |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual cochain classes, using explicit adjacent degrees, and their naturality. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 13 | |
| 14 | universe v u |
| 15 | |
| 16 | variable {R : Type u} [Ring R] |
| 17 | |
| 18 | def adjacentHomologyIso (K : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) : |
| 19 | K.homology n ≅ (K.sc' (n - 1) n (n + 1)).homology := |
| 20 | (HomologicalComplex.homologyFunctorIso' (ModuleCat.{v} R) (ComplexShape.up ℕ) |
| 21 | (n - 1) n (n + 1) (by cases n <;> simp) (CochainComplex.next ℕ n)).app K |
| 22 | |
| 23 | def cochainClass (K : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) |
| 24 | (x : K.X n) (hx : K.d n (n + 1) x = 0) : K.homology n := |
| 25 | (adjacentHomologyIso K n).inv (Module.HomologyClasses.homologyClass (K.sc' (n - 1) n (n + 1)) x hx) |
| 26 | |
| 27 | theorem cochainClass_surjective (K : CochainComplex (ModuleCat.{v} R) ℕ) (n : ℕ) |
| 28 | (a : K.homology n) : ∃ (x : K.X n) (hx : K.d n (n + 1) x = 0), cochainClass K n x hx = a := by |
| 29 | obtain ⟨x, hx, hxa⟩ := Module.HomologyClasses.homologyClass_surjective (K.sc' (n - 1) n (n + 1)) |
| 30 | ((adjacentHomologyIso K n).hom a) |
| 31 | refine ⟨x, hx, ?_⟩ |
| 32 | change (adjacentHomologyIso K n).inv _ = a |
| 33 | rw [hxa] |
| 34 | exact (adjacentHomologyIso K n).toLinearEquiv.symm_apply_apply a |
| 35 | |
| 36 | theorem cochain_map_closed {K L : CochainComplex (ModuleCat.{v} R) ℕ} |
| 37 | (f : K ⟶ L) (n : ℕ) (x : K.X n) (hx : K.d n (n + 1) x = 0) : |
| 38 | L.d n (n + 1) (f.f n x) = 0 := by |
| 39 | have h := ConcreteCategory.congr_hom (f.comm n (n + 1)) x |
| 40 | simpa only [ConcreteCategory.comp_apply, hx, map_zero] using h |
| 41 | |
| 42 | theorem cochainClass_naturality {K L : CochainComplex (ModuleCat.{v} R) ℕ} |
| 43 | (f : K ⟶ L) (n : ℕ) (x : K.X n) (hx : K.d n (n + 1) x = 0) : |
| 44 | HomologicalComplex.homologyMap f n (cochainClass K n x hx) = |
| 45 | cochainClass L n (f.f n x) (cochain_map_closed f n x hx) := by |
| 46 | let e := HomologicalComplex.homologyFunctorIso' (ModuleCat.{v} R) (ComplexShape.up ℕ) |
| 47 | (n - 1) n (n + 1) (by cases n <;> simp) (CochainComplex.next ℕ n) |
| 48 | let sf := (HomologicalComplex.shortComplexFunctor' (ModuleCat.{v} R) (ComplexShape.up ℕ) |
| 49 | (n - 1) n (n + 1)).map f |
| 50 | have h := ConcreteCategory.congr_hom (e.inv.naturality f) |
| 51 | (Module.HomologyClasses.homologyClass (K.sc' (n - 1) n (n + 1)) x hx) |
| 52 | change HomologicalComplex.homologyMap f n ((e.inv.app K) _) = (e.inv.app L) _ |
| 53 | calc |
| 54 | _ = (e.inv.app L) (ShortComplex.homologyMap sf |
| 55 | (Module.HomologyClasses.homologyClass (K.sc' (n - 1) n (n + 1)) x hx)) := h.symm |
| 56 | _ = _ := congrArg (e.inv.app L) (Module.HomologyClasses.homologyClass_naturality sf x hx) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.Comparison.Betti.CochainClasses.Homology |