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.ReferenceFamily.Dual.AlgebraLiftCoordinates |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Relative.InfinitesimalAction |
| 3 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.RelativeLifts |
| 4 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.ConormalRestriction |
| 5 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Relative.TangentBaseChange |
| 6 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.PointCoefficients |
| 7 | import OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SubgroupFunctor |
| 8 | |
| 9 | /-! # Coefficient Lie Space -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Local.CoefficientLieSpace.LocalCoefficientLie |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Relative infinitesimal points at a local-ring-valued section, with |
| 16 | the original affine coefficient maps. The coefficient ring may have |
| 17 | nilpotents; its actual dual-number ring supplies the infinitesimal test. -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.AbelianScheme.TorsionQuotient.SubgroupFunctor |
| 22 | |
| 23 | variable (C : Type) [CommRing C] |
| 24 | |
| 25 | def dualBase : Spec (.of (DualNumber C)) ⟶ Spec (.of C) := |
| 26 | Spec.map (CommRingCat.ofHom (algebraMap C (DualNumber C))) |
| 27 | |
| 28 | instance dualNumber_isLocalRing [IsLocalRing C] : IsLocalRing (DualNumber C) := by |
| 29 | apply IsLocalRing.of_isUnit_or_isUnit_one_sub_self |
| 30 | intro x |
| 31 | simpa only [TrivSqZeroExt.isUnit_iff_isUnit_fst, TrivSqZeroExt.fst_sub, |
| 32 | TrivSqZeroExt.fst_one] using IsLocalRing.isUnit_or_isUnit_one_sub_self x.fst |
| 33 | |
| 34 | variable {C} [IsLocalRing C] {X Y : Scheme.{0}} (p : Y ⟶ X) (s : X ⟶ Y) |
| 35 | (q : Spec (.of C) ⟶ X) |
| 36 | |
| 37 | def zeroPoint : Spec (.of (DualNumber C)) ⟶ Y := (dualBase C ≫ q) ≫ s |
| 38 | |
| 39 | def Space := PELModuli.IntegralModel.Relative.TangentBaseChange.RelativeTangent.Space (Dual.AlgebraLiftCoordinates.DualCoefficientLifts.ideal C) |
| 40 | (Dual.AlgebraLiftCoordinates.DualCoefficientLifts.ideal_square C) p (zeroPoint s q) |
| 41 | |
| 42 | instance : AddCommGroup (Space p s q) := |
| 43 | inferInstanceAs (AddCommGroup (PELModuli.IntegralModel.Relative.TangentBaseChange.RelativeTangent.Space (Dual.AlgebraLiftCoordinates.DualCoefficientLifts.ideal C) |
| 44 | (Dual.AlgebraLiftCoordinates.DualCoefficientLifts.ideal_square C) p (zeroPoint s q))) |
| 45 | |
| 46 | instance : Module (DualNumber C) (Space p s q) := |
| 47 | inferInstanceAs (Module (DualNumber C) (PELModuli.IntegralModel.Relative.TangentBaseChange.RelativeTangent.Space (Dual.AlgebraLiftCoordinates.DualCoefficientLifts.ideal C) |
| 48 | (Dual.AlgebraLiftCoordinates.DualCoefficientLifts.ideal_square C) p (zeroPoint s q))) |
| 49 | |
| 50 | instance : Module C (Space p s q) := Module.compHom (Space p s q) (algebraMap C (DualNumber C)) |
| 51 | |
| 52 | instance : IsScalarTower C (DualNumber C) (Space p s q) := |
| 53 | by |
| 54 | constructor |
| 55 | intro a b v |
| 56 | change (a • b) • v = (algebraMap C (DualNumber C) a) • (b • v) |
| 57 | have h : (a • b : DualNumber C) = algebraMap C (DualNumber C) a * b := by |
| 58 | apply TrivSqZeroExt.ext <;> simp [TrivSqZeroExt.algebraMap_eq_inl] |
| 59 | rw [h, mul_smul] |
| 60 | |
| 61 | abbrev baseCoefficientAlgebra : Algebra Γ(X, ⊤) C := (HilbertScheme.Presentations.PointCoefficients.schemePointCoefficientMap q).toAlgebra |
| 62 | |
| 63 | abbrev ambientCoefficientAlgebra : Algebra Γ(Y, ⊤) C := |
| 64 | ((HilbertScheme.Presentations.PointCoefficients.schemePointCoefficientMap q).comp s.appTop.hom).toAlgebra |
| 65 | |
| 66 | omit [IsLocalRing C] in |
| 67 | theorem coefficientScalarTower (hs : s ≫ p = 𝟙 X) : |
| 68 | letI := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 69 | letI := baseCoefficientAlgebra q |
| 70 | letI := ambientCoefficientAlgebra s q |
| 71 | IsScalarTower Γ(X, ⊤) Γ(Y, ⊤) C := by |
| 72 | let := Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 73 | let := baseCoefficientAlgebra q |
| 74 | let := ambientCoefficientAlgebra s q |
| 75 | apply IsScalarTower.of_algebraMap_eq |
| 76 | intro r |
| 77 | exact (congrArg (HilbertScheme.Presentations.PointCoefficients.schemePointCoefficientMap q) |
| 78 | (ConcreteCategory.congr_hom (Divisors.LineBundles.Affine.SchemeSection.BundleCycles.AffineSchemeSection.section_appTop p s hs) r)).symm |
| 79 | |
| 80 | theorem zeroPoint_coefficients : |
| 81 | PELModuli.IntegralModel.Affine.StalkLifts.AffineStalkLifts.globalMap (Scheme.stalkClosedPointTo (zeroPoint s q)) = |
| 82 | (algebraMap C (DualNumber C)).comp |
| 83 | ((HilbertScheme.Presentations.PointCoefficients.schemePointCoefficientMap q).comp s.appTop.hom) := by |
| 84 | refine (HilbertScheme.Presentations.PointCoefficients.schemePointCoefficientMap_stalk (zeroPoint s q)).symm.trans ?_ |
| 85 | apply RingHom.ext |
| 86 | intro b |
| 87 | change (Scheme.ΓSpecIso (.of (DualNumber C))).hom ((zeroPoint s q).appTop b) = |
| 88 | algebraMap C (DualNumber C) ((Scheme.ΓSpecIso (.of C)).hom (q.appTop (s.appTop b))) |
| 89 | rw [zeroPoint, Scheme.Hom.comp_appTop, Scheme.Hom.comp_appTop] |
| 90 | exact ConcreteCategory.congr_hom |
| 91 | (Scheme.ΓSpecIso_naturality (CommRingCat.ofHom (algebraMap C (DualNumber C)))) |
| 92 | (q.appTop (s.appTop b)) |
| 93 | |
| 94 | theorem reference_eq : |
| 95 | letI := ambientCoefficientAlgebra s q |
| 96 | PELModuli.IntegralModel.Affine.StalkLifts.AffineStalkLifts.globalMap (Scheme.stalkClosedPointTo (zeroPoint s q)) = |
| 97 | algebraMap Γ(Y, ⊤) (DualNumber C) := by |
| 98 | let := ambientCoefficientAlgebra s q |
| 99 | exact zeroPoint_coefficients s q |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Local.CoefficientLieSpace.LocalCoefficientLie |