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.AbelianModuli.HilbertConstruction.Geometric.ConnectednessFieldTests |
| 2 | import Mathlib.AlgebraicGeometry.Cover.Open |
| 3 | |
| 4 | /-! # Open Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Connected.OpenGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Connected-fiber opens defined on an open cover glue to an open classifying all base changes. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | theorem fieldPoint_range_subset_iff {K : Type u} [Field K] {S : Scheme.{u}} |
| 17 | (c : Spec (.of K) ⟶ S) (V : Set S) : |
| 18 | Set.range c ⊆ V ↔ c (⊥ : PrimeSpectrum K) ∈ V := by |
| 19 | constructor |
| 20 | · exact fun h => h ⟨_, rfl⟩ |
| 21 | · rintro h s ⟨k, rfl⟩ |
| 22 | exact (congrArg c (Subsingleton.elim (⊥ : PrimeSpectrum K) k)) ▸ h |
| 23 | |
| 24 | theorem geometricallyConnected_open_glue {X S : Scheme.{u}} (p : X ⟶ S) |
| 25 | (C : S.OpenCover.{v}) |
| 26 | (hC : ∀ i, ∃ U : (C.X i).Opens, ∀ (T : Scheme.{u}) (c : T ⟶ C.X i), |
| 27 | GeometricallyConnected (pullback.snd (pullback.snd p (C.f i)) c) ↔ |
| 28 | Set.range c ⊆ (U : Set (C.X i))) : |
| 29 | ∃ U : S.Opens, ∀ (T : Scheme.{u}) (c : T ⟶ S), |
| 30 | GeometricallyConnected (pullback.snd p c) ↔ Set.range c ⊆ (U : Set S) := by |
| 31 | choose V hV using hC |
| 32 | let U : S.Opens := ⨆ i, ((V i).ι ≫ C.f i).opensRange |
| 33 | have hf : ∀ (K : Type u) [Field K] (c : Spec (.of K) ⟶ S), |
| 34 | GeometricallyConnected (pullback.snd p c) ↔ Set.range c ⊆ (U : Set S) := by |
| 35 | intro K _ c |
| 36 | let k : Spec (.of K) := (⊥ : PrimeSpectrum K) |
| 37 | have hl (i : C.I₀) (hc : Set.range c ⊆ Set.range (C.f i)) : |
| 38 | GeometricallyConnected (pullback.snd p c) ↔ |
| 39 | Set.range (IsOpenImmersion.lift (C.f i) c hc) ⊆ (V i : Set (C.X i)) := by |
| 40 | let b := IsOpenImmersion.lift (C.f i) c hc |
| 41 | have hb : b ≫ C.f i = c := IsOpenImmersion.lift_fac _ _ _ |
| 42 | exact ((Geometric.ConnectednessFieldTests.geometricallyConnected_iterated_pullback_iff p (C.f i) b).trans |
| 43 | (by rw [hb])).symm.trans (hV i _ b) |
| 44 | constructor |
| 45 | · intro hp |
| 46 | obtain ⟨i, y, hy⟩ := C.exists_eq (c k) |
| 47 | have hc : Set.range c ⊆ Set.range (C.f i) := |
| 48 | (fieldPoint_range_subset_iff c _).mpr ⟨y, hy⟩ |
| 49 | let b := IsOpenImmersion.lift (C.f i) c hc |
| 50 | have hb := (hl i hc).mp hp |
| 51 | apply (fieldPoint_range_subset_iff c _).mpr |
| 52 | apply (le_iSup (fun i => ((V i).ι ≫ C.f i).opensRange) i) |
| 53 | refine ⟨⟨b k, hb ⟨k, rfl⟩⟩, ?_⟩ |
| 54 | exact congrArg (fun f : Spec (.of K) ⟶ S => f k) (IsOpenImmersion.lift_fac (C.f i) c hc) |
| 55 | · intro hcU |
| 56 | have hk : c k ∈ U := hcU ⟨k, rfl⟩ |
| 57 | obtain ⟨i, z, hz⟩ := (TopologicalSpace.Opens.mem_iSup.mp hk) |
| 58 | have hc : Set.range c ⊆ Set.range (C.f i) := |
| 59 | (fieldPoint_range_subset_iff c _).mpr ⟨z.val, hz⟩ |
| 60 | let b := IsOpenImmersion.lift (C.f i) c hc |
| 61 | apply (hl i hc).mpr |
| 62 | apply (fieldPoint_range_subset_iff b _).mpr |
| 63 | have hb : C.f i (b k) = c k := |
| 64 | congrArg (fun f : Spec (.of K) ⟶ S => f k) (IsOpenImmersion.lift_fac (C.f i) c hc) |
| 65 | have he : b k = z.val := (C.f i).isOpenEmbedding.injective (hb.trans hz.symm) |
| 66 | exact he ▸ z.property |
| 67 | exact ⟨U, fun _ c => Geometric.ConnectednessFieldTests.geometricallyConnected_open_field_tests p U hf c⟩ |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Connected.OpenGluing |