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.HilbertScheme.Presentations.MonoFamilyGlueData |
| 2 | import Mathlib.AlgebraicGeometry.Gluing |
| 3 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.SurjectiveOnStalks |
| 5 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Products |
| 6 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Basic |
| 7 | |
| 8 | /-! # Mono Family Gluing -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.MonoFamilyGluing |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Gluing relative subobjects with open pairwise intersections. All chart |
| 15 | intersections remain the actual ambient fiber products. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | |
| 19 | universe u |
| 20 | variable {S : Scheme.{u}} {J : Type u} (M : Over S) (U : J → Over S) (f : ∀ i, U i ⟶ M) |
| 21 | variable [∀ i, Mono (f i)] |
| 22 | variable [hopen : ∀ i j, IsOpenImmersion (pullback.fst (f i) (f j)).left] |
| 23 | |
| 24 | def relativeMonoFamilyGlueData : Scheme.GlueData where |
| 25 | toGlueData := (MonoFamilyGlueData.monoFamilyGlueData U f).mapGlueData (Over.forget S) |
| 26 | f_open i j := by |
| 27 | change IsOpenImmersion (pullback.fst (f i) (f j)).left |
| 28 | exact hopen i j |
| 29 | |
| 30 | def relativeMonoFamilyScheme : Scheme.{u} := (relativeMonoFamilyGlueData M U f).glued |
| 31 | |
| 32 | def relativeMonoFamilyChart (i : J) : (U i).left ⟶ relativeMonoFamilyScheme M U f := |
| 33 | (relativeMonoFamilyGlueData M U f).ι i |
| 34 | |
| 35 | instance relativeMonoFamilyChart_isOpenImmersion (i : J) : |
| 36 | IsOpenImmersion (relativeMonoFamilyChart M U f i) := |
| 37 | Scheme.GlueData.ι_isOpenImmersion (relativeMonoFamilyGlueData M U f) i |
| 38 | |
| 39 | def relativeMonoFamilyParameter : relativeMonoFamilyScheme M U f ⟶ M.left := by |
| 40 | fapply Multicoequalizer.desc |
| 41 | · exact fun i => (f i).left |
| 42 | · rintro ⟨i, j⟩ |
| 43 | change (pullback.fst (f i) (f j)).left ≫ (f i).left = |
| 44 | (((pullbackSymmetry (f i) (f j)).hom).left ≫ (pullback.fst (f j) (f i)).left) ≫ (f j).left |
| 45 | have he : pullback.fst (f i) (f j) ≫ f i = |
| 46 | (pullbackSymmetry (f i) (f j)).hom ≫ pullback.fst (f j) (f i) ≫ f j := by |
| 47 | simp only [pullbackSymmetry_hom_comp_fst_assoc] |
| 48 | exact pullback.condition |
| 49 | exact congrArg Over.Hom.left he |
| 50 | |
| 51 | theorem relativeMonoFamilyChart_parameter (i : J) : |
| 52 | relativeMonoFamilyChart M U f i ≫ relativeMonoFamilyParameter M U f = (f i).left := |
| 53 | Multicoequalizer.π_desc _ _ _ _ _ |
| 54 | |
| 55 | theorem relativeMonoFamilyCharts_cover (x : relativeMonoFamilyScheme M U f) : |
| 56 | ∃ i : J, ∃ y : (U i).left, relativeMonoFamilyChart M U f i y = x := |
| 57 | (relativeMonoFamilyGlueData M U f).ι_jointly_surjective x |
| 58 | |
| 59 | theorem relativeMonoFamilyChart_intersection (i j : J) : |
| 60 | IsPullback (pullback.fst (f i) (f j)).left (pullback.snd (f i) (f j)).left |
| 61 | (relativeMonoFamilyChart M U f i) (relativeMonoFamilyChart M U f j) := by |
| 62 | have hp := IsPullback.of_isLimit ((relativeMonoFamilyGlueData M U f).vPullbackConeIsLimit i j) |
| 63 | have he : (pullbackSymmetry (f i) (f j)).hom ≫ pullback.fst (f j) (f i) = |
| 64 | pullback.snd (f i) (f j) := pullbackSymmetry_hom_comp_fst _ _ |
| 65 | change IsPullback (pullback.fst (f i) (f j)).left |
| 66 | (((pullbackSymmetry (f i) (f j)).hom ≫ pullback.fst (f j) (f i)).left) _ _ at hp |
| 67 | rw [he] at hp |
| 68 | exact hp |
| 69 | |
| 70 | theorem relativeMonoFamilyParameter_injective : Function.Injective (relativeMonoFamilyParameter M U f) := by |
| 71 | intro x y h |
| 72 | obtain ⟨i, xi, rfl⟩ := relativeMonoFamilyCharts_cover M U f x |
| 73 | obtain ⟨j, yj, rfl⟩ := relativeMonoFamilyCharts_cover M U f y |
| 74 | have he : (f i).left xi = (f j).left yj := by |
| 75 | rw [← relativeMonoFamilyChart_parameter M U f i, ← relativeMonoFamilyChart_parameter M U f j] |
| 76 | exact h |
| 77 | obtain ⟨z, hz₁, hz₂⟩ := Scheme.exists_preimage_of_isPullback |
| 78 | ((IsPullback.of_hasPullback (f i) (f j)).map (Over.forget S)) xi yj he |
| 79 | rw [← hz₁, ← hz₂] |
| 80 | exact congrArg (fun g : (pullback (f i) (f j)).left ⟶ relativeMonoFamilyScheme M U f => g z) |
| 81 | (relativeMonoFamilyChart_intersection M U f i j).w |
| 82 | |
| 83 | instance relativeMonoFamilyParameter_surjectiveOnStalks [hs : ∀ i, SurjectiveOnStalks (f i).left] : |
| 84 | SurjectiveOnStalks (relativeMonoFamilyParameter M U f) := by |
| 85 | apply (IsZariskiLocalAtSource.iff_of_openCover |
| 86 | (P := @SurjectiveOnStalks) (relativeMonoFamilyGlueData M U f).openCover).mpr |
| 87 | intro i |
| 88 | change J at i |
| 89 | change SurjectiveOnStalks (relativeMonoFamilyChart M U f i ≫ relativeMonoFamilyParameter M U f) |
| 90 | rw [relativeMonoFamilyChart_parameter] |
| 91 | exact hs i |
| 92 | |
| 93 | instance relativeMonoFamilyParameter_mono [∀ i, SurjectiveOnStalks (f i).left] : |
| 94 | Mono (relativeMonoFamilyParameter M U f) := |
| 95 | SurjectiveOnStalks.mono_of_injective (relativeMonoFamilyParameter_injective M U f) |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.MonoFamilyGluing |