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.Foundations.Scheme.SmoothLocalDomain |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.LocalDomainComponents |
| 3 | import OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 5 | import Mathlib.AlgebraicGeometry.Morphisms.Proper |
| 6 | |
| 7 | /-! # Smooth Components -/ |
| 8 | |
| 9 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.SmoothComponents.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Reducedness and the finite integral component decomposition of a smooth |
| 14 | proper scheme over any field. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | theorem smooth_scheme_stalk_domain |
| 21 | {K : Type u} [Field K] {X : Scheme.{u}} |
| 22 | (f : X ⟶ Spec (.of K)) [Smooth f] (x : X) : |
| 23 | IsDomain (X.presheaf.stalk x) := by |
| 24 | obtain ⟨_, ⟨U, hU, rfl⟩, hxU, -⟩ := |
| 25 | X.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ x) isOpen_univ |
| 26 | let := OAI.AlgebraicGeometry.Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 27 | have : Algebra.Smooth K Γ(X, U) := |
| 28 | (RingHom.Smooth.respectsIso.cancel_left_isIso |
| 29 | (Scheme.ΓSpecIso (.of K)).inv (f.appLE ⊤ U le_top)).mpr |
| 30 | (f.smooth_appLE (isAffineOpen_top (Spec (.of K))) hU le_top) |
| 31 | let := X.presheaf.algebra_section_stalk ⟨x, hxU⟩ |
| 32 | have := hU.isLocalization_stalk ⟨x, hxU⟩ |
| 33 | let p := (hU.primeIdealOf ⟨x, hxU⟩).asIdeal |
| 34 | exact OAI.AlgebraicGeometry.Foundations.Scheme.SmoothLocalDomain.isDomain_of_isLocalizationAtPrime_of_smooth |
| 35 | K Γ(X, U) (X.presheaf.stalk x) p |
| 36 | |
| 37 | theorem smooth_scheme_reduced |
| 38 | {K : Type u} [Field K] {X : Scheme.{u}} |
| 39 | (f : X ⟶ Spec (.of K)) [Smooth f] : IsReduced X := |
| 40 | OAI.AlgebraicGeometry.Foundations.Scheme.LocalDomainComponents.isReduced_of_stalkDomains (smooth_scheme_stalk_domain f) |
| 41 | |
| 42 | variable {K : Type u} [Field K] {X : Scheme.{u}} |
| 43 | (f : X ⟶ Spec (.of K)) [Smooth f] [IsNoetherian X] |
| 44 | |
| 45 | def smoothComponentOpen (C : irreducibleComponents X) : X.Opens := |
| 46 | ⟨C.val, OAI.AlgebraicGeometry.Foundations.Scheme.LocalDomainComponents.isOpen_irreducibleComponent_of_stalkDomains |
| 47 | (smooth_scheme_stalk_domain f) finite_irreducibleComponents_of_isNoetherian C.property⟩ |
| 48 | |
| 49 | theorem smoothComponentOpen_integral (C : irreducibleComponents X) : |
| 50 | IsIntegral (smoothComponentOpen f C).toScheme := by |
| 51 | have : IsReduced X := smooth_scheme_reduced f |
| 52 | have : IrreducibleSpace (smoothComponentOpen f C).toScheme := |
| 53 | isIrreducible_iff_irreducibleSpace.mp C.property.1 |
| 54 | exact isIntegral_of_irreducibleSpace_of_isReduced _ |
| 55 | |
| 56 | theorem smoothComponentOpen_closedImmersion (C : irreducibleComponents X) : |
| 57 | IsClosedImmersion (smoothComponentOpen f C).ι := by |
| 58 | apply IsClosedImmersion.of_isPreimmersion |
| 59 | rw [Scheme.Opens.range_ι] |
| 60 | exact isClosed_of_mem_irreducibleComponents C.val C.property |
| 61 | |
| 62 | theorem smoothComponentOpen_disjoint (C D : irreducibleComponents X) (h : C ≠ D) : |
| 63 | Disjoint (smoothComponentOpen f C) (smoothComponentOpen f D) := by |
| 64 | rw [← Opens.coe_disjoint] |
| 65 | exact OAI.AlgebraicGeometry.Foundations.Scheme.LocalDomainComponents.irreducibleComponents_disjoint_of_stalkDomains |
| 66 | (smooth_scheme_stalk_domain f) C.property D.property (fun hCD ↦ h (Subtype.ext hCD)) |
| 67 | |
| 68 | theorem smoothComponentOpen_cover : (⨆ C, smoothComponentOpen f C) = ⊤ := by |
| 69 | apply top_unique |
| 70 | intro x _ |
| 71 | apply Opens.mem_iSup.mpr |
| 72 | exact ⟨⟨irreducibleComponent x, irreducibleComponent_mem_irreducibleComponents x⟩, |
| 73 | mem_irreducibleComponent⟩ |
| 74 | |
| 75 | theorem smoothComponentOpen_smooth_proper [IsProper f] (C : irreducibleComponents X) : |
| 76 | Smooth ((smoothComponentOpen f C).ι ≫ f) ∧ |
| 77 | IsProper ((smoothComponentOpen f C).ι ≫ f) := by |
| 78 | have := smoothComponentOpen_closedImmersion f C |
| 79 | exact ⟨inferInstance, inferInstance⟩ |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.ArithmeticGeometry.Models.SpreadingOut.SmoothComponents.Construction |