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.ArithmeticGeometry.OrdinaryLocus.Openness.AffineLocalLifts |
| 2 | import Mathlib.Topology.Sheaves.LocallySurjective |
| 3 | import Mathlib.CategoryTheory.Sites.EpiMono |
| 4 | import Mathlib.CategoryTheory.Sites.Abelian |
| 5 | import Mathlib.Algebra.Category.ModuleCat.FilteredColimits |
| 6 | |
| 7 | /-! # Affine Epi Cover -/ |
| 8 | |
| 9 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineEpiCover.Construction |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Finite principal covers on which a section lifts through a sheaf epimorphism. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (R : CommRingCat.{u}) |
| 20 | (E G : TopCat.Sheaf (ModuleCat.{u} R) (TopCat.of (PrimeSpectrum R))) (b : E ⟶ G) |
| 21 | |
| 22 | theorem affine_epi_local_principal_lift [hbEpi : Epi b] (s : G.obj.obj (op ⊤)) (p : PrimeSpectrum R) : |
| 23 | ∃ r : R, p ∈ PrimeSpectrum.basicOpen r ∧ |
| 24 | ∃ t : E.obj.obj (op (PrimeSpectrum.basicOpen r)), |
| 25 | b.hom.app _ t = G.obj.map (PrimeSpectrum.basicOpen r).leTop.op s := by |
| 26 | have hb : CategoryTheory.Sheaf.IsLocallySurjective b := |
| 27 | (CategoryTheory.Sheaf.isLocallySurjective_iff_epi' (ModuleCat.{u} R) b).mpr hbEpi |
| 28 | obtain ⟨U, i, ⟨t, ht⟩, hp⟩ := hb.imageSieve_mem s p (by trivial) |
| 29 | obtain ⟨_, ⟨_, ⟨r, rfl⟩, rfl⟩, hpr, hrU⟩ := |
| 30 | PrimeSpectrum.isBasis_basic_opens.exists_subset_of_mem_open hp U.isOpen |
| 31 | refine ⟨r, hpr, E.obj.map (homOfLE hrU).op t, ?_⟩ |
| 32 | have hn := NatTrans.naturality_apply b.hom (homOfLE hrU).op t |
| 33 | refine hn.trans ?_ |
| 34 | rw [ht] |
| 35 | have hc : G.obj.map (PrimeSpectrum.basicOpen r).leTop.op = |
| 36 | G.obj.map i.op ≫ G.obj.map (homOfLE hrU).op := |
| 37 | G.obj.map_comp i.op (homOfLE hrU).op |
| 38 | exact (congrArg (fun q : G.obj.obj (op ⊤) ⟶ G.obj.obj (op (PrimeSpectrum.basicOpen r)) ↦ q s) hc).symm |
| 39 | |
| 40 | theorem affine_epi_finite_principal_lifts [Epi b] (s : G.obj.obj (op ⊤)) : |
| 41 | ∃ (q : Finset (PrimeSpectrum R)) (f : q → R), |
| 42 | Ideal.span (Set.range f) = ⊤ ∧ |
| 43 | ∃ x : AffineCech.Construction.affineCechC0 R E f, AffineCechGluing.Construction.affineCechMap0 R E f b x = AffineCechGluing.Construction.affineCechUnit R G f s := by |
| 44 | classical |
| 45 | choose r hr t ht using affine_epi_local_principal_lift R E G b s |
| 46 | obtain ⟨q, hq⟩ := isCompact_univ.elim_finite_subcover |
| 47 | (fun p : PrimeSpectrum R ↦ (PrimeSpectrum.basicOpen (r p) : Set (PrimeSpectrum R))) |
| 48 | (fun p ↦ (PrimeSpectrum.basicOpen (r p)).isOpen) |
| 49 | (fun p _ ↦ Set.mem_iUnion.mpr ⟨p, hr p⟩) |
| 50 | refine ⟨q, fun p ↦ r p.1, ?_, fun p ↦ t p.1, ?_⟩ |
| 51 | · apply PrimeSpectrum.iSup_basicOpen_eq_top_iff.mp |
| 52 | apply top_unique |
| 53 | intro p _ |
| 54 | obtain ⟨j, hj, hpj⟩ := Set.mem_iUnion₂.mp (hq (Set.mem_univ p)) |
| 55 | exact TopologicalSpace.Opens.mem_iSup.mpr ⟨⟨j, hj⟩, hpj⟩ |
| 56 | · funext p |
| 57 | exact ht p.1 |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineEpiCover.Construction |