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.Directed.RefinementChartRecovery |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Geometric.MorphismBaseChange |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Over.HomOpenCoverDetection |
| 4 | |
| 5 | /-! # Family Hom Gluing -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.FamilyHomGluing.DirectedFamilyHomGluing |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Descent of actual family morphisms on a locally directed open cover. |
| 12 | The local maps have their native pullback types; compatibility is equality |
| 13 | under the existing geometric base-change operation. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | |
| 18 | variable {S : Scheme.{u}} (C : S.OpenCover.{u}) |
| 19 | [Category C.I₀] [C.LocallyDirected] (X Y : Over S) |
| 20 | |
| 21 | abbrev test (i : C.I₀) : Over S := Over.mk (C.f i) |
| 22 | |
| 23 | abbrev testMap {i j : C.I₀} (f : i ⟶ j) : test C i ⟶ test C j := |
| 24 | Over.homMk (C.trans f) (C.trans_map f) |
| 25 | |
| 26 | variable (p : ∀ i, (Over.pullback (C.f i)).obj X ⟶ (Over.pullback (C.f i)).obj Y) |
| 27 | (hp : ∀ {i j : C.I₀} (f : i ⟶ j), |
| 28 | Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange (testMap C f) (p j) = p i) |
| 29 | |
| 30 | include hp in |
| 31 | private theorem total_natural {i j : C.I₀} (f : i ⟶ j) : |
| 32 | (RefinementChartRecovery.parameterFamilyPullbackCover X C).trans f ≫ ((p j).left ≫ pullback.fst Y.hom (C.f j)) = |
| 33 | (p i).left ≫ pullback.fst Y.hom (C.f i) := by |
| 34 | have h := Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange_comp (testMap C f) (p j) |
| 35 | rw [hp f] at h |
| 36 | have hx : Single.ParameterBaseChange.singleParameterBaseChangeMap (testMap C f) X = |
| 37 | (RefinementChartRecovery.parameterFamilyPullbackCover X C).trans f := |
| 38 | RefinementChartRecovery.singleParameterBaseChangeMap_eq_coverTransition X C f |
| 39 | have hy : Single.ParameterBaseChange.singleParameterBaseChangeMap (testMap C f) Y ≫ |
| 40 | pullback.fst Y.hom (C.f j) = pullback.fst Y.hom (C.f i) := |
| 41 | Single.ParameterBaseChange.singleParameterBaseChangeMap_comp (testMap C f) Y |
| 42 | exact (Category.assoc _ _ _).symm.trans |
| 43 | ((congrArg (fun q => q ≫ pullback.fst Y.hom (C.f j)) |
| 44 | ((congrArg (fun q => q ≫ (p j).left) hx).symm.trans h.symm)).trans |
| 45 | ((Category.assoc _ _ _).trans (congrArg (fun q => (p i).left ≫ q) hy))) |
| 46 | |
| 47 | omit [Category C.I₀] [Scheme.Cover.LocallyDirected C] in |
| 48 | private theorem total_over (i : C.I₀) : |
| 49 | ((p i).left ≫ pullback.fst Y.hom (C.f i)) ≫ Y.hom = |
| 50 | (RefinementChartRecovery.parameterFamilyPullbackCover X C).f i ≫ X.hom := by |
| 51 | change ((p i).left ≫ pullback.fst Y.hom (C.f i)) ≫ Y.hom = |
| 52 | pullback.fst X.hom (C.f i) ≫ X.hom |
| 53 | have hw : (p i).left ≫ pullback.snd Y.hom (C.f i) = pullback.snd X.hom (C.f i) := (p i).w |
| 54 | rw [Category.assoc, pullback.condition, ← Category.assoc, hw, |
| 55 | ← pullback.condition] |
| 56 | |
| 57 | def glue : X ⟶ Y := |
| 58 | (RefinementChartRecovery.parameterFamilyPullbackCover X C).glueMorphismsOverOfLocallyDirected |
| 59 | (fun i => (p i).left ≫ pullback.fst Y.hom (C.f i)) |
| 60 | (total_natural C X Y p hp) (total_over C X Y p) |
| 61 | |
| 62 | theorem glue_total (i : C.I₀) : |
| 63 | pullback.fst X.hom (C.f i) ≫ (glue C X Y p hp).left = |
| 64 | (p i).left ≫ pullback.fst Y.hom (C.f i) := |
| 65 | (RefinementChartRecovery.parameterFamilyPullbackCover X C).map_glueMorphismsOverOfLocallyDirected_left |
| 66 | (fun i => (p i).left ≫ pullback.fst Y.hom (C.f i)) |
| 67 | (total_natural C X Y p hp) (total_over C X Y p) i |
| 68 | |
| 69 | theorem glue_pullback (i : C.I₀) : |
| 70 | (Over.pullback (C.f i)).map (glue C X Y p hp) = p i := by |
| 71 | apply Over.OverMorphism.ext |
| 72 | apply pullback.hom_ext |
| 73 | · exact (Pullback.Comparisons.overPullback_map_left_fst (glue C X Y p hp) (C.f i)).trans |
| 74 | (glue_total C X Y p hp i) |
| 75 | · exact ((Over.pullback (C.f i)).map (glue C X Y p hp)).w.trans (p i).w.symm |
| 76 | |
| 77 | theorem glue_unique (q : X ⟶ Y) |
| 78 | (hq : ∀ i, (Over.pullback (C.f i)).map q = p i) : q = glue C X Y p hp := |
| 79 | HilbertConstruction.Over.HomOpenCoverDetection.overHom_eq_of_openCoverPullbacks C q (glue C X Y p hp) |
| 80 | (fun i => (hq i).trans (glue_pullback C X Y p hp i).symm) |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.FamilyHomGluing.DirectedFamilyHomGluing |