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 Mathlib.Algebra.Category.ModuleCat.Projective |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.LocalDualResolutionExactness |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Minimal.DualCokernelResidue |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Projective.ResolutionBasic |
| 5 | |
| 6 | /-! # Augmented Dual Projective Resolution -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AugmentedDualProjectiveResolution |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Identify the degree-zero cokernel and use exactness in positive degrees to build the actual projective resolution carried by the dual cochain model. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits IsLocalRing |
| 14 | universe u v |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | def projectiveResolutionOfCokernelIso |
| 19 | {V : Type u} [Category.{v} V] [Abelian V] |
| 20 | (K : ChainComplex V ℕ) (hproj : ∀ n, Projective (K.X n)) |
| 21 | (hexact : ∀ n, 0 < n → K.ExactAt n) {Z : V} (E : cokernel (K.d 1 0) ≅ Z) : |
| 22 | HilbertConstruction.Projective.ResolutionBasic.ProjectiveResolution Z := by |
| 23 | let p := cokernel.π (K.d 1 0) ≫ E.hom |
| 24 | have hp : K.d 1 0 ≫ p = 0 := by |
| 25 | dsimp only [p] |
| 26 | rw [← Category.assoc, cokernel.condition, zero_comp] |
| 27 | let π := (ChainComplex.toSingle₀Equiv K Z).symm ⟨p, hp⟩ |
| 28 | have hπzero : π.f 0 = p := ChainComplex.toSingle₀Equiv_symm_apply_f_zero p hp |
| 29 | have hpExact : (ShortComplex.mk (K.d 1 0) p hp).Exact := by |
| 30 | let e : ShortComplex.mk (K.d 1 0) (cokernel.π (K.d 1 0)) (cokernel.condition _) ≅ |
| 31 | ShortComplex.mk (K.d 1 0) p hp := |
| 32 | ShortComplex.isoMk (Iso.refl _) (Iso.refl _) E (by simp) (by simp [p]) |
| 33 | exact ShortComplex.exact_of_iso e (ShortComplex.cokernelSequence_exact (K.d 1 0)) |
| 34 | have : Epi p := inferInstanceAs (Epi (cokernel.π (K.d 1 0) ≫ E.hom)) |
| 35 | have hπ : QuasiIso π := ⟨fun n => by |
| 36 | cases n with |
| 37 | | zero => |
| 38 | rw [ChainComplex.quasiIsoAt₀_iff, ShortComplex.quasiIso_iff_of_zeros'] |
| 39 | · change (ShortComplex.mk (K.d 1 0) (π.f 0) _).Exact ∧ Epi (π.f 0) |
| 40 | simpa only [hπzero] using (And.intro hpExact (inferInstance : Epi p)) |
| 41 | all_goals first | rfl | simp |
| 42 | | succ n => |
| 43 | rw [quasiIsoAt_iff_exactAt' π (n + 1) |
| 44 | (ChainComplex.exactAt_succ_single_obj _ _)] |
| 45 | exact hexact (n + 1) (Nat.succ_pos n)⟩ |
| 46 | exact { complex := K, projective := hproj, π := π, quasiIso := hπ } |
| 47 | |
| 48 | variable {R : Type u} [CommRing R] [IsLocalRing R] [IsNoetherianRing R] |
| 49 | |
| 50 | def minimalDualProjectiveResolution |
| 51 | (C : CochainComplex (ModuleCat.{u} R) ℕ) (g : ℕ) |
| 52 | (hfin : ∀ q, Module.Finite R (C.X q)) (hfree : ∀ q, Module.Free R (C.X q)) |
| 53 | (hbound : ∀ q, g < q → IsZero (C.X q)) |
| 54 | (rs : List R) (hlen : rs.length = g) (hreg : Regular.SequenceBasic.RingTheory.Sequence.IsRegular R rs) |
| 55 | (hgen : Regular.SequenceBasic.Ideal.ofList rs = maximalIdeal R) (hfield : Cochain.FieldSupport.CochainFieldSupport C (maximalIdeal R)) |
| 56 | (Q : Local.MinimalShortComplex.LocalSectionLifting.LocalMinimalShortComplex (C.sc' 0 1 2)) |
| 57 | (e : R ≃ₗ[R] Q.complex.X₁) (hI : Q.firstDifferentialIdeal = maximalIdeal R) : |
| 58 | HilbertConstruction.Projective.ResolutionBasic.ProjectiveResolution (ModuleCat.of R (ResidueField R)) := by |
| 59 | let K : ChainComplex (ModuleCat.{u} R) ℕ := HilbertConstruction.Module.DualFunctor.dualModuleComplex C |
| 60 | have hproj (n : ℕ) : Projective (K.X n) := by |
| 61 | have : Module.Finite R (C.X n) := hfin n |
| 62 | have : Module.Free R (C.X n) := hfree n |
| 63 | have : Module.Free R (Module.Dual R (C.X n)) := inferInstance |
| 64 | have : Module.Projective R (Module.Dual R (C.X n)) := inferInstance |
| 65 | exact (ModuleCat.of R (Module.Dual R (C.X n))).projective_of_categoryTheory_projective |
| 66 | exact projectiveResolutionOfCokernelIso K hproj |
| 67 | (Regular.LocalDualResolutionExactness.regularLocal_dualComplex_exact_positive C g hfin hfree hbound rs hlen hreg hgen hfield) |
| 68 | (Q.originalDualCokernelResidueIso e hI) |
| 69 | |
| 70 | end |
| 71 | |
| 72 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AugmentedDualProjectiveResolution |