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.IntersectionTheory.ProjectionFormula.Parameter.ExactPieces |
| 2 | |
| 3 | /-! # Homology -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.Homology |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The Bockstein short exact sequence for homology of a complex |
| 10 | whose terms have no parameter torsion. All maps come from the native |
| 11 | homology sequence of multiplication by the parameter. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.QuotientComplex |
| 20 | |
| 21 | variable (R : Type u) [CommRing R] (r : R) |
| 22 | (K : ChainComplex (ModuleCat.{u} R) ℕ) |
| 23 | (hr : ∀ i, IsSMulRegular (K.X i) r) |
| 24 | |
| 25 | def reduction (i : ℕ) : K.homology i ⟶ (QuotientComplex.complex R r K).homology i := |
| 26 | HomologicalComplex.homologyMap (QuotientComplex.projection R r K) i |
| 27 | |
| 28 | theorem scalar_hom (M : ModuleCat.{u} R) : |
| 29 | (r • 𝟙 M).hom = LinearMap.lsmul R M r := by |
| 30 | apply LinearMap.ext |
| 31 | intro x |
| 32 | simp |
| 33 | |
| 34 | include hr |
| 35 | |
| 36 | theorem exact_scalar_reduction (i : ℕ) : |
| 37 | Function.Exact (LinearMap.lsmul R (K.homology i) r) (reduction R r K i).hom := by |
| 38 | have h := (QuotientComplex.shortExact R r K hr).homology_exact₂ i |
| 39 | rw [ShortComplex.ShortExact.moduleCat_exact_iff_function_exact] at h |
| 40 | rw [← scalar_hom R r (K.homology i), ← QuotientComplex.homology_scalar R r K i] |
| 41 | exact h |
| 42 | |
| 43 | theorem exact_reduction_connecting (i : ℕ) : |
| 44 | Function.Exact (reduction R r K (i + 1)).hom (QuotientComplex.connecting R r K hr i).hom := by |
| 45 | exact (ShortComplex.ShortExact.moduleCat_exact_iff_function_exact _).mp |
| 46 | ((QuotientComplex.shortExact R r K hr).homology_exact₃ (i + 1) i (by simp)) |
| 47 | |
| 48 | theorem exact_connecting_scalar (i : ℕ) : |
| 49 | Function.Exact (QuotientComplex.connecting R r K hr i).hom (LinearMap.lsmul R (K.homology i) r) := by |
| 50 | have h := (QuotientComplex.shortExact R r K hr).homology_exact₁ (i + 1) i (by simp) |
| 51 | rw [ShortComplex.ShortExact.moduleCat_exact_iff_function_exact] at h |
| 52 | rw [← scalar_hom R r (K.homology i), ← QuotientComplex.homology_scalar R r K i] |
| 53 | exact h |
| 54 | |
| 55 | def sequence (i : ℕ) : ShortComplex (ModuleCat.{u} R) := |
| 56 | ExactPieces.sequence R r (K.homology (i + 1)) |
| 57 | ((QuotientComplex.complex R r K).homology (i + 1)) (K.homology i) |
| 58 | (reduction R r K (i + 1)).hom (QuotientComplex.connecting R r K hr i).hom |
| 59 | (exact_scalar_reduction R r K hr (i + 1)) |
| 60 | (exact_reduction_connecting R r K hr i) (exact_connecting_scalar R r K hr i) |
| 61 | |
| 62 | theorem sequence_shortExact (i : ℕ) : (sequence R r K hr i).ShortExact := |
| 63 | ExactPieces.shortExact R r _ _ _ _ _ _ _ _ |
| 64 | |
| 65 | theorem reduction_zero_surjective : Function.Surjective (reduction R r K 0) := by |
| 66 | let : Epi (QuotientComplex.projection R r K) := (QuotientComplex.shortExact R r K hr).epi_g |
| 67 | let : Epi (HomologicalComplex.homologyMap (QuotientComplex.projection R r K) 0) := |
| 68 | HomologicalComplex.epi_homologyMap_of_epi_of_not_rel (QuotientComplex.projection R r K) 0 (by simp) |
| 69 | exact (ModuleCat.epi_iff_surjective |
| 70 | (HomologicalComplex.homologyMap (QuotientComplex.projection R r K) 0)).mp inferInstance |
| 71 | |
| 72 | def zeroEquiv : QuotSMulTop r (K.homology 0) ≃ₗ[R] (QuotientComplex.complex R r K).homology 0 := |
| 73 | LinearEquiv.ofBijective |
| 74 | (ExactPieces.left R r _ _ (reduction R r K 0).hom |
| 75 | (exact_scalar_reduction R r K hr 0)) |
| 76 | ⟨ExactPieces.left_injective R r _ _ _ _, by |
| 77 | intro b |
| 78 | obtain ⟨a, ha⟩ := reduction_zero_surjective R r K hr b |
| 79 | exact ⟨Submodule.Quotient.mk a, ha⟩⟩ |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Parameter.Homology |