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.FormalGeometry.Completion.Projective.LiteralCycles |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.ComparisonCech |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.IdempotentObstruction |
| 4 | |
| 5 | /-! # Functions -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Projective.Functions.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual projective formal functions and connectedness from the infinitesimal idempotent obstruction. -/ |
| 12 | |
| 13 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 21 | {X : Scheme.{u}} [X.IsSeparated] (f : X ⟶ Spec (CommRingCat.of R)) |
| 22 | |
| 23 | /-- The existing actual formal-functions comparison is surjective for a flat projective |
| 24 | family whose actual global functions equal the base. -/ |
| 25 | theorem projective_formalFunctionsComparison_surjective [Flat f] [IsIso f.appTop] |
| 26 | (P : AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.ProjectivePresentation (Over.mk f)) (I : Ideal R) : |
| 27 | Function.Surjective (FunctionsComparison.Construction.formalFunctionsComparison I f) := |
| 28 | ComparisonCech.Construction.formalFunctionsComparison_surjective_of_cech I f |
| 29 | (Quotients.FiniteDescent.ProjectiveCechAt.Construction.ProjectiveCechComplex.cover (Over.mk f) P) |
| 30 | (Quotients.FiniteDescent.ProjectiveCechAt.Construction.ProjectiveCechComplex.affine (Over.mk f) P) |
| 31 | (Quotients.FiniteDescent.ProjectiveCechAt.Construction.ProjectiveCechComplex.covers (Over.mk f) P) |
| 32 | (LiteralCycles.Construction.projectiveLiteralCech_formalZeroCycleComparisonSurjective f P I) |
| 33 | |
| 34 | omit [X.IsSeparated] in |
| 35 | /-- Surjectivity of the actual formal-functions map contradicts every nontrivial clopen |
| 36 | piece of the actual initial infinitesimal fiber. -/ |
| 37 | theorem infinitesimal_preconnected_of_formalFunctionsComparison_surjective [IsLocalRing R] |
| 38 | (h : Function.Surjective (FunctionsComparison.Construction.formalFunctionsComparison (IsLocalRing.maximalIdeal R) f)) : |
| 39 | PreconnectedSpace (Infinitesimal.Neighborhoods.Construction.infinitesimalNeighborhood (IsLocalRing.maximalIdeal R) f 0) := by |
| 40 | rw [preconnectedSpace_iff_clopen] |
| 41 | intro s hs |
| 42 | by_cases hzero : s = ∅ |
| 43 | · exact Or.inl hzero |
| 44 | by_cases hone : s = Set.univ |
| 45 | · exact Or.inr hone |
| 46 | exfalso |
| 47 | let U : (Infinitesimal.Neighborhoods.Construction.infinitesimalNeighborhood (IsLocalRing.maximalIdeal R) f 0).Opens := ⟨s, hs.isOpen⟩ |
| 48 | have hUzero : U ≠ ⊥ := fun hu => hzero (congrArg TopologicalSpace.Opens.carrier hu) |
| 49 | have hUone : U ≠ ⊤ := fun hu => hone (congrArg TopologicalSpace.Opens.carrier hu) |
| 50 | exact IdempotentObstruction.Construction.infinitesimalClopenIndicator_not_mem_comparison_range f U hs.isClosed hUzero hUone |
| 51 | (h (Infinitesimal.ClopenSections.Construction.infinitesimalClopenIndicator (IsLocalRing.maximalIdeal R) f U hs.isClosed)) |
| 52 | |
| 53 | /-- The actual special fiber of the flat projective family cannot split into clopen pieces. -/ |
| 54 | theorem projective_infinitesimal_preconnected [IsLocalRing R] [Flat f] [IsIso f.appTop] |
| 55 | (P : AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.ProjectivePresentation (Over.mk f)) : |
| 56 | PreconnectedSpace (Infinitesimal.Neighborhoods.Construction.infinitesimalNeighborhood (IsLocalRing.maximalIdeal R) f 0) := |
| 57 | infinitesimal_preconnected_of_formalFunctionsComparison_surjective f |
| 58 | (projective_formalFunctionsComparison_surjective f P (IsLocalRing.maximalIdeal R)) |
| 59 | |
| 60 | omit [X.IsSeparated] [IsNoetherianRing R] in |
| 61 | theorem infinitesimal_initial_nonempty_of_surjective [IsLocalRing R] [Surjective f] : |
| 62 | Nonempty (Infinitesimal.Neighborhoods.Construction.infinitesimalNeighborhood (IsLocalRing.maximalIdeal R) f 0) := by |
| 63 | have : Nontrivial (R ⧸ (IsLocalRing.maximalIdeal R) ^ (0 + 1)) := by |
| 64 | simpa only [Nat.zero_add, pow_one] using |
| 65 | (inferInstance : Nontrivial (R ⧸ IsLocalRing.maximalIdeal R)) |
| 66 | have hn : Nonempty (Infinitesimal.Neighborhoods.Construction.infinitesimalBase (IsLocalRing.maximalIdeal R) 0) := |
| 67 | inferInstanceAs (Nonempty (Spec _)) |
| 68 | exact ⟨((pullback.snd f (Infinitesimal.Neighborhoods.Construction.infinitesimalBaseToSpec (IsLocalRing.maximalIdeal R) 0)).surjective |
| 69 | hn.some).choose⟩ |
| 70 | |
| 71 | /-- The actual initial infinitesimal fiber is connected for the surjective flat projective family. -/ |
| 72 | theorem projective_infinitesimal_connected [IsLocalRing R] [Flat f] [Surjective f] [IsIso f.appTop] |
| 73 | (P : AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.ProjectivePresentation (Over.mk f)) : |
| 74 | ConnectedSpace (Infinitesimal.Neighborhoods.Construction.infinitesimalNeighborhood (IsLocalRing.maximalIdeal R) f 0) := by |
| 75 | have := projective_infinitesimal_preconnected f P |
| 76 | have := infinitesimal_initial_nonempty_of_surjective f |
| 77 | exact ⟨inferInstance⟩ |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Projective.Functions.Construction |