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.AbelianModuli.HilbertConstruction.RankOneDualPresentation |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Minimal.FirstDifferentialIdeal |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ShortComplexLastCokernel |
| 4 | import Mathlib.Algebra.Category.ModuleCat.Kernels |
| 5 | |
| 6 | /-! # Dual Cokernel Residue -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual last cokernel of the dual minimal short complex is the residue module when its first source has rank one and its coefficients generate the maximal ideal. Endpoint-controlled homotopies transfer this to the original model. -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits IsLocalRing |
| 14 | universe u |
| 15 | |
| 16 | def Minimal.DualCokernelResidue.rankOneDualEquiv {R M : Type u} [CommRing R] [AddCommGroup M] [Module R M] |
| 17 | (e : R ≃ₗ[R] M) : Module.Dual R M ≃ₗ[R] R where |
| 18 | toFun ℓ := ℓ (e 1) |
| 19 | invFun r := r • e.symm.toLinearMap |
| 20 | left_inv ℓ := by |
| 21 | apply LinearMap.ext |
| 22 | intro x |
| 23 | obtain ⟨r, rfl⟩ := e.surjective x |
| 24 | have he : e r = r • e 1 := by |
| 25 | simpa only [smul_eq_mul, mul_one] using e.map_smul r (1 : R) |
| 26 | change ℓ (e 1) * e.symm (e r) = ℓ (e r) |
| 27 | rw [e.symm_apply_apply, he, ℓ.map_smul, smul_eq_mul, mul_comm] |
| 28 | right_inv r := by |
| 29 | change r * e.symm (e 1) = r |
| 30 | rw [e.symm_apply_apply, mul_one] |
| 31 | map_add' _ _ := rfl |
| 32 | map_smul' _ _ := rfl |
| 33 | |
| 34 | variable {R : Type u} [CommRing R] [IsLocalRing R] |
| 35 | |
| 36 | def Local.MinimalShortComplex.LocalSectionLifting.LocalMinimalShortComplex.dualCokernelResidueIso |
| 37 | {S : ShortComplex (ModuleCat.{u} R)} (Q : Local.MinimalShortComplex.LocalSectionLifting.LocalMinimalShortComplex S) |
| 38 | (e : R ≃ₗ[R] Q.complex.X₁) (hI : Q.firstDifferentialIdeal = maximalIdeal R) : |
| 39 | cokernel (HilbertConstruction.Module.DualFunctor.dualModuleShortComplex Q.complex).g ≅ ModuleCat.of R (ResidueField R) := by |
| 40 | let c := Module.Free.chooseBasis R Q.complex.X₂ |
| 41 | let E := Minimal.DualCokernelResidue.rankOneDualEquiv e |
| 42 | have hmap : Q.complex.f.hom.dualMap.range.map E.toLinearMap = maximalIdeal R := by |
| 43 | rw [← LinearMap.range_comp] |
| 44 | change (RankOneDualPresentation.rankOneDualCoefficientMap e Q.complex.f.hom).range = maximalIdeal R |
| 45 | exact (RankOneDualPresentation.rankOneDualCoefficientMap_range c e Q.complex.f.hom).trans |
| 46 | ((RankOneDifferentialCoefficients.differentialCoefficientIdeal_of_rank_one_source |
| 47 | (Module.Free.chooseBasis R Q.complex.X₁) c Q.complex.f.hom e).symm.trans hI) |
| 48 | let eQ : (Module.Dual R Q.complex.X₁ ⧸ Q.complex.f.hom.dualMap.range) ≃ₗ[R] ResidueField R := |
| 49 | Submodule.Quotient.equiv Q.complex.f.hom.dualMap.range (maximalIdeal R) E hmap |
| 50 | exact ModuleCat.cokernelIsoRangeQuotient (HilbertConstruction.Module.DualFunctor.dualModuleShortComplex Q.complex).g ≪≫ eQ.toModuleIso |
| 51 | |
| 52 | def Local.MinimalShortComplex.LocalSectionLifting.LocalMinimalShortComplex.originalDualCokernelResidueIso |
| 53 | {S : ShortComplex (ModuleCat.{u} R)} (Q : Local.MinimalShortComplex.LocalSectionLifting.LocalMinimalShortComplex S) |
| 54 | (e : R ≃ₗ[R] Q.complex.X₁) (hI : Q.firstDifferentialIdeal = maximalIdeal R) : |
| 55 | cokernel (HilbertConstruction.Module.DualFunctor.dualModuleShortComplex S).g ≅ ModuleCat.of R (ResidueField R) := |
| 56 | ShortComplexLastCokernel.dualShortComplexLastCokernelIso Q.equivalence Q.hom_h₀ Q.inv_h₀ ≪≫ |
| 57 | Q.dualCokernelResidueIso e hI |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction |