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.Divisors.LineBundles.Affine.SectionChartConormal |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Section.QuotientConormalRank |
| 3 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Section.OpenRelativeDimension |
| 4 | |
| 5 | /-! # Section Chart Conormal Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.SectionChartConormalRank.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! On the actual affine charts of a smooth closed section, the quotient |
| 12 | conormal module has rank equal to the relative dimension of the projection. -/ |
| 13 | |
| 14 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 15 | |
| 16 | theorem AffineSchemeSection.conormal_rank {X Y : Scheme.{0}} [IsAffine X] [IsAffine Y] |
| 17 | (p : Y ⟶ X) [Smooth p] (n : ℕ) [SmoothOfRelativeDimension n p] |
| 18 | (s : X ⟶ Y) (hs : s ≫ p = 𝟙 X) (q : PrimeSpectrum (Γ(Y, ⊤) ⧸ RingHom.ker s.appTop.hom)) : |
| 19 | Module.rankAtStalk (R := Γ(Y, ⊤) ⧸ RingHom.ker s.appTop.hom) (RingHom.ker s.appTop.hom).Cotangent q = n := by |
| 20 | let := SchemeSection.BundleCycles.AffineSchemeSection.baseAlgebra p |
| 21 | let := SchemeSection.BundleCycles.AffineSchemeSection.quotientAlgebra s |
| 22 | let := SchemeSection.BundleCycles.AffineSchemeSection.scalarTower p s hs |
| 23 | let := SchemeSection.BundleCycles.AffineSchemeSection.sectionRing_smooth p |
| 24 | have hr : RingHom.Locally (RingHom.IsStandardSmoothOfRelativeDimension n) p.appTop.hom := |
| 25 | HasRingHomProperty.appTop (P := @SmoothOfRelativeDimension n) p inferInstance |
| 26 | exact Section.QuotientConormalRank.BundleCycles.sectionQuotientConormal_rank_of_relativeDimension Γ(X, ⊤) Γ(Y, ⊤) n hr q |
| 27 | |
| 28 | theorem affineSectionChart_conormal_rank_of_restrictedDimension {X Y : Scheme.{0}} (p : Y ⟶ X) [Smooth p] |
| 29 | (n : ℕ) (s : X ⟶ Y) [IsClosedImmersion s] (hs : s ≫ p = 𝟙 X) |
| 30 | (U : Y.Opens) (V : X.Opens) (hUaff : IsAffineOpen U) (hVaff : IsAffineOpen V) |
| 31 | (hV : V ≤ s ⁻¹ᵁ U) (hU : U ≤ p ⁻¹ᵁ V) |
| 32 | (hrel : SmoothOfRelativeDimension n (Section.OpenRestriction.BundleCycles.sectionOpenProjection p U V hU)) : |
| 33 | ∀ q : PrimeSpectrum (Γ(Y, U) ⧸ s.ker.ideal ⟨U, hUaff⟩), |
| 34 | Module.rankAtStalk (s.ker.ideal ⟨U, hUaff⟩).Cotangent q = n := by |
| 35 | let : IsAffine U.toScheme := hUaff |
| 36 | let : IsAffine V.toScheme := hVaff |
| 37 | let q := Section.OpenRestriction.BundleCycles.sectionOpenProjection p U V hU |
| 38 | let t := Section.OpenRestriction.BundleCycles.sectionOpenMap s U V hV |
| 39 | let : SmoothOfRelativeDimension n q := hrel |
| 40 | have ht : t ≫ q = 𝟙 V.toScheme := Section.OpenRestriction.BundleCycles.sectionOpen_retraction p s hs U V hV hU |
| 41 | have h := AffineSchemeSection.conormal_rank q n t ht |
| 42 | have he : s ⁻¹ᵁ U = V := Section.OpenRestriction.BundleCycles.sectionOpen_preimage p s hs U V hV hU |
| 43 | let : IsIso (X.homOfLE hV) := by |
| 44 | change IsIso (X.isoOfEq he.symm).hom |
| 45 | infer_instance |
| 46 | let W : U.toScheme.affineOpens := ⟨⊤, isAffineOpen_top U.toScheme⟩ |
| 47 | let W' : Y.affineOpens := ⟨U.ι ''ᵁ W.1, W.2.image_of_isOpenImmersion U.ι⟩ |
| 48 | have hker : RingHom.ker t.appTop.hom = s.ker.ideal W' := by |
| 49 | have h₁ : RingHom.ker t.appTop.hom = t.ker.ideal W := (Scheme.Hom.ker_apply t W).symm |
| 50 | have h₂ : t.ker.ideal W = (morphismRestrict s U).ker.ideal W := |
| 51 | congrArg (fun K : U.toScheme.IdealSheafData => K.ideal W) |
| 52 | (Scheme.Hom.ker_comp_of_isIso (X.homOfLE hV) (morphismRestrict s U)) |
| 53 | exact h₁.trans (h₂.trans (Scheme.ker_morphismRestrict_ideal s U W)) |
| 54 | have hW : ∀ a : PrimeSpectrum (Γ(Y, W'.1) ⧸ s.ker.ideal W'), |
| 55 | Module.rankAtStalk (s.ker.ideal W').Cotangent a = n := hker ▸ h |
| 56 | have hW' : W' = ⟨U, hUaff⟩ := Subtype.ext U.ι_image_top |
| 57 | exact (congrArg (fun Z : Y.affineOpens => ∀ a : PrimeSpectrum (Γ(Y, Z.1) ⧸ s.ker.ideal Z), |
| 58 | Module.rankAtStalk (s.ker.ideal Z).Cotangent a = n) hW') ▸ hW |
| 59 | |
| 60 | theorem affineSectionChart_conormal_rank {X Y : Scheme.{0}} (p : Y ⟶ X) [Smooth p] |
| 61 | (n : ℕ) [SmoothOfRelativeDimension n p] (s : X ⟶ Y) [IsClosedImmersion s] (hs : s ≫ p = 𝟙 X) |
| 62 | (U : Y.Opens) (V : X.Opens) (hUaff : IsAffineOpen U) (hVaff : IsAffineOpen V) |
| 63 | (hV : V ≤ s ⁻¹ᵁ U) (hU : U ≤ p ⁻¹ᵁ V) : |
| 64 | ∀ q : PrimeSpectrum (Γ(Y, U) ⧸ s.ker.ideal ⟨U, hUaff⟩), |
| 65 | Module.rankAtStalk (s.ker.ideal ⟨U, hUaff⟩).Cotangent q = n := |
| 66 | affineSectionChart_conormal_rank_of_restrictedDimension p n s hs U V hUaff hVaff hV hU |
| 67 | (Section.OpenRelativeDimension.BundleCycles.sectionOpenProjection_relativeDimension p n U V hU) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.SectionChartConormalRank.BundleCycles |