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.NumberTheory.PadicHodge.IntegralComparison.SmoothProper.EtaleCover |
| 2 | |
| 3 | /-! # Chart -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Chart |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual principal localizations of an affine chart retain their map to the scheme and form arbitrarily small neighborhoods. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable (k A : Type u) [CommRing k] [CommRing A] [Algebra k A] |
| 16 | {X : Scheme.{u}} (g : Spec (CommRingCat.of A) ⟶ X) (r : A) |
| 17 | |
| 18 | def map : Spec (CommRingCat.of (Localization.Away r)) ⟶ X := |
| 19 | Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away r))) ≫ g |
| 20 | |
| 21 | instance map_open [IsOpenImmersion g] : IsOpenImmersion (Chart.map A g r) := by |
| 22 | dsimp only [Chart.map] |
| 23 | infer_instance |
| 24 | |
| 25 | theorem localization_range : |
| 26 | Set.range (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away r)))) = |
| 27 | (PrimeSpectrum.basicOpen r : Set (PrimeSpectrum A)) := |
| 28 | PrimeSpectrum.localization_away_comap_range (Localization.Away r) r |
| 29 | |
| 30 | theorem lift (x : Spec (CommRingCat.of A)) (hx : r ∉ x.asIdeal) : |
| 31 | ∃ y : Spec (CommRingCat.of (Localization.Away r)), Chart.map A g r y = g x := by |
| 32 | have h : x ∈ Set.range (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away r)))) := by |
| 33 | rw [localization_range] |
| 34 | exact hx |
| 35 | obtain ⟨y, hy⟩ := h |
| 36 | exact ⟨y, congrArg g hy⟩ |
| 37 | |
| 38 | theorem over_base (f : X ⟶ Spec (CommRingCat.of k)) |
| 39 | (hg : g ≫ f = Spec.map (CommRingCat.ofHom (algebraMap k A))) : |
| 40 | Chart.map A g r ≫ f = Spec.map (CommRingCat.ofHom (algebraMap k (Localization.Away r))) := by |
| 41 | change (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away r))) ≫ g) ≫ f = _ |
| 42 | rw [Category.assoc, hg, ← Spec.map_comp] |
| 43 | congr 1 |
| 44 | |
| 45 | theorem neighborhood (U : X.Opens) (x : Spec (CommRingCat.of A)) (hx : g x ∈ U) : |
| 46 | ∃ r : A, (∃ y : Spec (CommRingCat.of (Localization.Away r)), Chart.map A g r y = g x) ∧ |
| 47 | Set.range (Chart.map A g r) ⊆ U := by |
| 48 | obtain ⟨_, ⟨r, rfl⟩, hr, hsub⟩ := |
| 49 | PrimeSpectrum.isTopologicalBasis_basic_opens.exists_subset_of_mem_open hx (U.isOpen.preimage g.continuous) |
| 50 | refine ⟨r, lift A g r x hr, ?_⟩ |
| 51 | rintro _ ⟨y, rfl⟩ |
| 52 | apply hsub |
| 53 | have hm := congrArg (fun V : Set (PrimeSpectrum A) => |
| 54 | (Spec.map (CommRingCat.ofHom (algebraMap A (Localization.Away r))) y : PrimeSpectrum A) ∈ V) |
| 55 | (localization_range A r) |
| 56 | exact hm.mp ⟨y, rfl⟩ |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Chart |