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.Tor.LocalFree |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.Projectives |
| 3 | |
| 4 | /-! # Local Dimension -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.LocalDimension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! For finite modules over noetherian local rings, native Tor with the |
| 11 | residue field detects every finite projective-dimension bound. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits IsLocalRing |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : Type u) [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 20 | |
| 21 | theorem of_isZero (M : ModuleCat.{u} R) [Module.Finite R M] (d : ℕ) |
| 22 | (h : IsZero (((Tor (ModuleCat R) (d + 1)).obj M).obj |
| 23 | (ModuleCat.of R (ResidueField R)))) : HasProjectiveDimensionLE M d := by |
| 24 | induction d generalizing M with |
| 25 | | zero => |
| 26 | let : Module.FinitePresentation R M := Module.finitePresentation_of_finite R M |
| 27 | let : Module.Free R M := LocalFree.of_residue_second R M h |
| 28 | let : Projective M := ModuleCat.projective_of_free (Module.Free.chooseBasis R M) |
| 29 | exact (projective_iff_hasProjectiveDimensionLE_zero M).mp inferInstance |
| 30 | | succ d ih => |
| 31 | obtain ⟨F, _, _, _, _, f, hf⟩ := Module.exists_finite_presentation R M |
| 32 | let π : ModuleCat.of R F ⟶ M := ModuleCat.ofHom f |
| 33 | let : Epi π := (ModuleCat.epi_iff_surjective π).mpr hf |
| 34 | let S := ShortComplex.mk (kernel.ι π) π (kernel.condition π) |
| 35 | have hS : S.ShortExact := |
| 36 | { exact := ShortComplex.exact_of_f_is_kernel S (kernelIsKernel π) |
| 37 | mono_f := inferInstanceAs (Mono (kernel.ι π)) |
| 38 | epi_g := inferInstanceAs (Epi π) } |
| 39 | let : Projective S.X₂ := inferInstanceAs (Projective (ModuleCat.of R F)) |
| 40 | let : Module.Finite R S.X₁ := Module.Finite.of_injective (kernel.ι π).hom |
| 41 | ((ModuleCat.mono_iff_injective (kernel.ι π)).mp inferInstance) |
| 42 | let e := FirstShift.shiftIso R (ModuleCat.of R (ResidueField R)) S hS d |
| 43 | let : HasProjectiveDimensionLE S.X₁ d := ih S.X₁ (h.of_iso e.symm) |
| 44 | exact (hS.hasProjectiveDimensionLT_X₃_iff d inferInstance).mpr inferInstance |
| 45 | |
| 46 | theorem iff_isZero (M : ModuleCat.{u} R) [Module.Finite R M] (d : ℕ) : |
| 47 | HasProjectiveDimensionLE M d ↔ |
| 48 | IsZero (((Tor (ModuleCat R) (d + 1)).obj M).obj |
| 49 | (ModuleCat.of R (ResidueField R))) := by |
| 50 | constructor |
| 51 | · intro h |
| 52 | let := h |
| 53 | exact (BoundedResolution.tor_isZero R (ModuleCat.of R (ResidueField R)) |
| 54 | M d (d + 1) (by omega)).of_iso |
| 55 | (Symmetry.iso R M (ModuleCat.of R (ResidueField R)) (d + 1)) |
| 56 | · exact of_isZero R M d |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Tor.LocalDimension |