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.Isogenies.NeighborCounting.PoincareNormalization |
| 2 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.OpenImmersionGluing |
| 3 | |
| 4 | /-! # Product Open Cover -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ProductOpenCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Base change of disjoint open covers to product families, with the |
| 11 | original product sources and their native module comparisons retained. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {S : Scheme.{u}} (P : Over S) {T U : Over S} |
| 19 | |
| 20 | theorem productMap_isPullback (f : T ⟶ U) : |
| 21 | IsPullback (f ▷ P).left (fst T P).left (fst U P).left f.left := by |
| 22 | have hr : IsPullback (snd U P).left (fst U P).left P.hom U.hom := |
| 23 | (IsPullback.of_hasPullback U.hom P.hom).flip |
| 24 | have ho : IsPullback ((f ▷ P).left ≫ (snd U P).left) (fst T P).left |
| 25 | P.hom (f.left ≫ U.hom) := by |
| 26 | have hs : (f ▷ P).left ≫ (snd U P).left = (snd T P).left := |
| 27 | congrArg Over.Hom.left (whiskerRight_snd f P) |
| 28 | rw [hs, f.w] |
| 29 | exact (IsPullback.of_hasPullback T.hom P.hom).flip |
| 30 | exact IsPullback.of_right ho (congrArg Over.Hom.left (whiskerRight_fst f P)) hr |
| 31 | |
| 32 | instance productMap_open (f : T ⟶ U) [IsOpenImmersion f.left] : |
| 33 | IsOpenImmersion (f ▷ P).left := |
| 34 | MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 35 | (productMap_isPullback P f).flip (inferInstanceAs (IsOpenImmersion f.left)) |
| 36 | |
| 37 | instance productMap_flat (f : T ⟶ U) [Flat f.left] : Flat (f ▷ P).left := |
| 38 | MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 39 | (productMap_isPullback P f).flip (inferInstanceAs (Flat f.left)) |
| 40 | |
| 41 | instance productMap_surjective (f : T ⟶ U) [Surjective f.left] : Surjective (f ▷ P).left := |
| 42 | MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 43 | (productMap_isPullback P f).flip (inferInstanceAs (Surjective f.left)) |
| 44 | |
| 45 | instance productMap_quasiCompact (f : T ⟶ U) [QuasiCompact f.left] : QuasiCompact (f ▷ P).left := |
| 46 | MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 47 | (productMap_isPullback P f).flip (inferInstanceAs (QuasiCompact f.left)) |
| 48 | |
| 49 | variable {ι : Type v} (V : ι → Over S) (f : ∀ i, V i ⟶ T) |
| 50 | variable [∀ i, IsOpenImmersion (f i).left] |
| 51 | |
| 52 | def productCover (hc : ∀ x : T.left, ∃ i, ∃ y : (V i).left, (f i).left y = x) : |
| 53 | Scheme.OpenCover.{v} (T ⊗ P).left := by |
| 54 | let C : Scheme.OpenCover.{v} T.left := Scheme.Cover.mkOfCovers ι |
| 55 | (fun i ↦ (V i).left) (fun i ↦ (f i).left) hc |
| 56 | exact Scheme.Cover.copy (C.pullback₁ (fst T P).left) ι |
| 57 | (fun i ↦ (V i ⊗ P).left) (fun i ↦ (f i ▷ P).left) (Equiv.refl _) |
| 58 | (fun i ↦ (productMap_isPullback P (f i)).isoPullback) |
| 59 | (fun i ↦ (productMap_isPullback P (f i)).isoPullback_hom_fst.symm) |
| 60 | |
| 61 | theorem productMap_disjoint |
| 62 | (hd : Pairwise (fun i j ↦ Disjoint (f i).left.opensRange (f j).left.opensRange)) : |
| 63 | Pairwise (fun i j ↦ Disjoint (f i ▷ P).left.opensRange (f j ▷ P).left.opensRange) := by |
| 64 | intro i j hij W hWi hWj z hz |
| 65 | obtain ⟨zi, hzi⟩ := hWi hz |
| 66 | obtain ⟨zj, hzj⟩ := hWj hz |
| 67 | have hi : (fst T P).left z ∈ (f i).left.opensRange := |
| 68 | ⟨(fst (V i) P).left zi, |
| 69 | (congrArg (fun a ↦ a zi) (productMap_isPullback P (f i)).w).symm.trans |
| 70 | (congrArg (fst T P).left hzi)⟩ |
| 71 | have hj : (fst T P).left z ∈ (f j).left.opensRange := |
| 72 | ⟨(fst (V j) P).left zj, |
| 73 | (congrArg (fun a ↦ a zj) (productMap_isPullback P (f j)).w).symm.trans |
| 74 | (congrArg (fst T P).left hzj)⟩ |
| 75 | have hs : Disjoint ((f i).left.opensRange : Set T.left) ((f j).left.opensRange : Set T.left) := |
| 76 | Set.disjoint_iff_inter_eq_empty.mpr (congrArg SetLike.coe (hd hij).eq_bot) |
| 77 | exact Set.disjoint_left.mp hs hi hj |
| 78 | |
| 79 | theorem existsUnique_disjoint_product_iso |
| 80 | (hc : ∀ x : T.left, ∃ i, ∃ y : (V i).left, (f i).left y = x) |
| 81 | (hd : Pairwise (fun i j ↦ Disjoint (f i).left.opensRange (f j).left.opensRange)) |
| 82 | {M N : (T ⊗ P).left.Modules} |
| 83 | (e : ∀ i, (Scheme.Modules.pullback (f i ▷ P).left).obj M ≅ |
| 84 | (Scheme.Modules.pullback (f i ▷ P).left).obj N) : |
| 85 | ∃! d : M ≅ N, ∀ i, (Scheme.Modules.pullback (f i ▷ P).left).mapIso d = e i := |
| 86 | OpenImmersionGluing.existsUnique_disjoint_immersion_iso |
| 87 | (fun i ↦ (V i ⊗ P).left) (fun i ↦ (f i ▷ P).left) |
| 88 | (productCover P V f hc).iSup_opensRange.ge (productMap_disjoint P V f hd) e |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.ProductOpenCover |