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 | |
| 6 | /-! # Mono Family Gluing -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.MonoFamilyGluing |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! An actual scheme obtained by gluing a family of subobjects along their |
| 13 | open intersections in one ambient scheme. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | variable {X : Scheme.{u}} {J : Type u} (Z : J → Scheme.{u}) (f : ∀ i, Z i ⟶ X) |
| 19 | variable [∀ i, Mono (f i)] [hopen : ∀ i j, IsOpenImmersion (pullback.fst (f i) (f j))] |
| 20 | |
| 21 | def schemeMonoFamilyGlueData : Scheme.GlueData where |
| 22 | toGlueData := MonoFamilyGlueData.monoFamilyGlueData Z f |
| 23 | f_open i j := hopen i j |
| 24 | |
| 25 | def schemeMonoFamilyParameter : (schemeMonoFamilyGlueData Z f).glued ⟶ X := by |
| 26 | fapply Multicoequalizer.desc |
| 27 | · exact f |
| 28 | · rintro ⟨i, j⟩ |
| 29 | change pullback.fst (f i) (f j) ≫ f i = |
| 30 | ((pullbackSymmetry (f i) (f j)).hom ≫ pullback.fst (f j) (f i)) ≫ f j |
| 31 | rw [pullbackSymmetry_hom_comp_fst] |
| 32 | exact pullback.condition |
| 33 | |
| 34 | @[reassoc] |
| 35 | theorem schemeMonoFamilyChart_parameter (i : J) : |
| 36 | (schemeMonoFamilyGlueData Z f).ι i ≫ schemeMonoFamilyParameter Z f = f i := |
| 37 | Multicoequalizer.π_desc _ _ _ _ _ |
| 38 | |
| 39 | theorem schemeMonoFamilyChart_intersection (i j : J) : |
| 40 | IsPullback (pullback.fst (f i) (f j)) (pullback.snd (f i) (f j)) |
| 41 | ((schemeMonoFamilyGlueData Z f).ι i) ((schemeMonoFamilyGlueData Z f).ι j) := by |
| 42 | have hp := IsPullback.of_isLimit ((schemeMonoFamilyGlueData Z f).vPullbackConeIsLimit i j) |
| 43 | change IsPullback (pullback.fst (f i) (f j)) |
| 44 | ((pullbackSymmetry (f i) (f j)).hom ≫ pullback.fst (f j) (f i)) _ _ at hp |
| 45 | rwa [pullbackSymmetry_hom_comp_fst] at hp |
| 46 | |
| 47 | theorem schemeMonoFamilyParameter_injective : Function.Injective (schemeMonoFamilyParameter Z f) := by |
| 48 | intro x y h |
| 49 | obtain ⟨i, xi, rfl⟩ := (schemeMonoFamilyGlueData Z f).ι_jointly_surjective x |
| 50 | obtain ⟨j, yj, rfl⟩ := (schemeMonoFamilyGlueData Z f).ι_jointly_surjective y |
| 51 | have he : f i xi = f j yj := by |
| 52 | rw [← schemeMonoFamilyChart_parameter Z f i, ← schemeMonoFamilyChart_parameter Z f j] |
| 53 | exact h |
| 54 | obtain ⟨z, hz₁, hz₂⟩ := Scheme.exists_preimage_of_isPullback |
| 55 | (IsPullback.of_hasPullback (f i) (f j)) xi yj he |
| 56 | rw [← hz₁, ← hz₂] |
| 57 | exact congrArg (fun g : pullback (f i) (f j) ⟶ (schemeMonoFamilyGlueData Z f).glued => g z) |
| 58 | (schemeMonoFamilyChart_intersection Z f i j).w |
| 59 | |
| 60 | instance schemeMonoFamilyParameter_surjectiveOnStalks [hs : ∀ i, SurjectiveOnStalks (f i)] : |
| 61 | SurjectiveOnStalks (schemeMonoFamilyParameter Z f) := by |
| 62 | apply (IsZariskiLocalAtSource.iff_of_openCover |
| 63 | (P := @SurjectiveOnStalks) (schemeMonoFamilyGlueData Z f).openCover).mpr |
| 64 | intro i |
| 65 | change J at i |
| 66 | change SurjectiveOnStalks ((schemeMonoFamilyGlueData Z f).ι i ≫ schemeMonoFamilyParameter Z f) |
| 67 | rw [schemeMonoFamilyChart_parameter] |
| 68 | exact hs i |
| 69 | |
| 70 | instance schemeMonoFamilyParameter_mono [∀ i, SurjectiveOnStalks (f i)] : |
| 71 | Mono (schemeMonoFamilyParameter Z f) := |
| 72 | SurjectiveOnStalks.mono_of_injective (schemeMonoFamilyParameter_injective Z f) |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.MonoFamilyGluing |