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.Generic.FreeSubmodule |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SecondKernelDimension |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ComplexDeterminantBaseChange |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Extension |
| 5 | |
| 6 | /-! # Kernel Approximation -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.KernelApproximation |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Replacing a presentation kernel by a full-rank free submodule |
| 13 | gives a three-term free complex whose residual homology has smaller |
| 14 | projective dimension. Flat base change retains the actual residual module. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R : Type u) [CommRing R] (B C : ModuleCat.{u} R) |
| 24 | (g : B →ₗ[R] C) (N : Submodule R g.ker) |
| 25 | |
| 26 | def map : N →ₗ[R] B := g.ker.subtype.comp N.subtype |
| 27 | |
| 28 | theorem map_injective : Function.Injective (map R B C g N) := |
| 29 | g.ker.subtype_injective.comp N.subtype_injective |
| 30 | |
| 31 | theorem comp_zero : g.comp (map R B C g N) = 0 := by |
| 32 | ext x |
| 33 | exact x.val.property |
| 34 | |
| 35 | def complex : ShortComplex (ModuleCat.{u} R) := |
| 36 | ShortComplex.moduleCatMk (map R B C g N) g (comp_zero R B C g N) |
| 37 | |
| 38 | theorem toCycles_eq : (complex R B C g N).moduleCatToCycles = N.subtype := by |
| 39 | ext x |
| 40 | rfl |
| 41 | |
| 42 | def homologyIso : (complex R B C g N).homology ≅ ModuleCat.of R (g.ker ⧸ N) := |
| 43 | (complex R B C g N).moduleCatHomologyIso ≪≫ |
| 44 | (Submodule.quotEquivOfEq _ _ (by rw [toCycles_eq, Submodule.range_subtype])).toModuleIso |
| 45 | |
| 46 | theorem baseChange_length (S : Type u) [CommRing S] [Algebra R S] [Module.Flat R S] : |
| 47 | Module.length S (ComplexDeterminantBaseChange.complex R S (map R B C g N) g |
| 48 | (comp_zero R B C g N)).homology = Module.length S (S ⊗[R] (g.ker ⧸ N)) := by |
| 49 | let F := ProjectionFormula.Flat.Extension.baseChange R S |
| 50 | let e := (complex R B C g N).mapHomologyIso F ≪≫ F.mapIso (homologyIso R B C g N) |
| 51 | exact e.toLinearEquiv.length_eq |
| 52 | |
| 53 | theorem residual_dimension [Projective B] [Projective C] [Module.Free R N] |
| 54 | (M : ModuleCat.{u} R) (π : C →ₗ[R] M) (he : Function.Exact g π) |
| 55 | (hπ : Function.Surjective π) (d : ℕ) [HasProjectiveDimensionLE M (d + 3)] : |
| 56 | HasProjectiveDimensionLE (ModuleCat.of R (g.ker ⧸ N)) (d + 1) := by |
| 57 | let : HasProjectiveDimensionLE (ModuleCat.of R g.ker) (d + 1) := |
| 58 | SecondKernelDimension.bound R B C M g π he hπ (d + 1) |
| 59 | let T := ShortComplex.moduleCatMk N.subtype N.mkQ (by ext; simp) |
| 60 | have hT : T.ShortExact := ModuleCat.shortComplex_shortExact T |
| 61 | (LinearMap.exact_subtype_mkQ N) N.subtype_injective N.mkQ_surjective |
| 62 | exact hT.hasProjectiveDimensionLT_X₃ (d + 1) |
| 63 | (inferInstanceAs (HasProjectiveDimensionLT (ModuleCat.of R N) (d + 1))) |
| 64 | (inferInstanceAs (HasProjectiveDimensionLT (ModuleCat.of R g.ker) (d + 2))) |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.KernelApproximation |