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 Mathlib.AlgebraicGeometry.PullbackCarrier |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.NoetherianVerticalImage |
| 3 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 4 | |
| 5 | /-! # Generic Open Equality Localization -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.GenericOpenEqualityLocalization |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Equal generic opens agree after one coefficient localization. |
| 12 | The generic condition can be verified on an actual field base change. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem noetherian_generic_open_inclusion_away |
| 17 | {R : Type} [CommRing R] [IsDomain R] {X : Scheme.{0}} [IsNoetherian X] |
| 18 | (p : X ⟶ Spec (.of R)) (U V : X.Opens) |
| 19 | (hgeneric : ∀ x : X, (p x).asIdeal = ⊥ → x ∈ U → x ∈ V) : |
| 20 | ∃ r : R, r ≠ 0 ∧ ∀ x : X, r ∉ (p x).asIdeal → x ∈ U → x ∈ V := by |
| 21 | have : CompactSpace U.toScheme := QuasiCompact.compactSpace_of_compactSpace U.ι |
| 22 | have : IsNoetherian U.toScheme := ⟨⟩ |
| 23 | obtain ⟨r, hr, h⟩ := NoetherianVerticalImage.noetherian_generic_open_locus_away (U.ι ≫ p) (U.ι ⁻¹ᵁ V) |
| 24 | (fun x hx => hgeneric x.val hx x.property) |
| 25 | exact ⟨r, hr, fun x hx hu => h ⟨x, hu⟩ hx⟩ |
| 26 | |
| 27 | theorem noetherian_generic_open_equality_away |
| 28 | {R : Type} [CommRing R] [IsDomain R] {X : Scheme.{0}} [IsNoetherian X] |
| 29 | (p : X ⟶ Spec (.of R)) (U V : X.Opens) |
| 30 | (hgeneric : ∀ x : X, (p x).asIdeal = ⊥ → (x ∈ U ↔ x ∈ V)) : |
| 31 | ∃ r : R, r ≠ 0 ∧ ∀ x : X, r ∉ (p x).asIdeal → (x ∈ U ↔ x ∈ V) := by |
| 32 | obtain ⟨r, hr, hUV⟩ := noetherian_generic_open_inclusion_away p U V |
| 33 | (fun x hx => (hgeneric x hx).mp) |
| 34 | obtain ⟨s, hs, hVU⟩ := noetherian_generic_open_inclusion_away p V U |
| 35 | (fun x hx => (hgeneric x hx).mpr) |
| 36 | refine ⟨r * s, mul_ne_zero hr hs, fun x hx => ⟨hUV x ?_, hVU x ?_⟩⟩ |
| 37 | · exact fun h => hx ((p x).asIdeal.mul_mem_right s h) |
| 38 | · exact fun h => hx ((p x).asIdeal.mul_mem_left r h) |
| 39 | |
| 40 | theorem generic_open_equality_away_of_field_baseChange |
| 41 | {R K : Type} [CommRing R] [IsDomain R] [Field K] |
| 42 | (ι : R →+* K) (hι : Function.Injective ι) |
| 43 | {X : Scheme.{0}} [IsNoetherian X] (p : X ⟶ Spec (.of R)) (U V : X.Opens) |
| 44 | (h : pullback.fst p (Spec.map (CommRingCat.ofHom ι)) ⁻¹ᵁ U = |
| 45 | pullback.fst p (Spec.map (CommRingCat.ofHom ι)) ⁻¹ᵁ V) : |
| 46 | ∃ r : R, r ≠ 0 ∧ ∀ x : X, r ∉ (p x).asIdeal → (x ∈ U ↔ x ∈ V) := by |
| 47 | apply noetherian_generic_open_equality_away p U V |
| 48 | intro x hx |
| 49 | let b := Spec.map (CommRingCat.ofHom ι) |
| 50 | have hb : p x ∈ Set.range b := by |
| 51 | refine ⟨(⊥ : PrimeSpectrum K), PrimeSpectrum.ext ?_⟩ |
| 52 | exact (Ideal.comap_bot_of_injective ι hι).trans hx.symm |
| 53 | have hlift : x ∈ Set.range (pullback.fst p b) := by |
| 54 | rw [Scheme.Pullback.range_fst] |
| 55 | exact hb |
| 56 | obtain ⟨y, rfl⟩ := hlift |
| 57 | exact Iff.of_eq (congrArg (fun W => y ∈ W) h) |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.GenericOpenEqualityLocalization |