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.PELModuli.IntegralModel.HilbertFamilyOfImmersion |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.HomFunctor |
| 3 | |
| 4 | /-! # Fiber Hilbert Family -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.FiberHilbertFamily |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The graph of a finite flat cover is the actual Hilbert family |
| 13 | of its fibers inside the covering scheme. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | theorem schemeSeparatedGraph_closed {B V W : Scheme.{0}} (p : V ⟶ B) (f : W ⟶ B) |
| 18 | [IsSeparated f] (g : V ⟶ W) (hg : g ≫ f = p) : |
| 19 | IsClosedImmersion (pullback.lift (𝟙 V) g (by simpa using hg.symm)) := by |
| 20 | subst p |
| 21 | exact inferInstanceAs |
| 22 | (IsClosedImmersion (pullback.lift (𝟙 V) g (Category.id_comp (g ≫ f)))) |
| 23 | |
| 24 | variable {S : Scheme.{0}} {X Y : Over S} (q : X ⟶ Y) |
| 25 | |
| 26 | def fiberGraph : X ⟶ Y ⨯ X := prod.lift q (𝟙 X) |
| 27 | |
| 28 | theorem fiberGraph_projection : |
| 29 | (fiberGraph q).left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientProjection X Y = q.left := by |
| 30 | change (fiberGraph q).left ≫ (prod.fst : Y ⨯ X ⟶ Y).left = _ |
| 31 | rw [← Over.comp_left, fiberGraph, prod.lift_fst] |
| 32 | |
| 33 | theorem fiberGraph_closed [IsSeparated Y.hom] : IsClosedImmersion (fiberGraph q).left := by |
| 34 | let e := Over.prodLeftIsoPullback Y X ≪≫ pullbackSymmetry Y.hom X.hom |
| 35 | have h : (fiberGraph q).left ≫ e.hom = |
| 36 | pullback.lift (𝟙 X.left) q.left (by simp) := by |
| 37 | apply pullback.hom_ext |
| 38 | · simp only [e, Iso.trans_hom, Category.assoc, pullbackSymmetry_hom_comp_fst, |
| 39 | Over.prodLeftIsoPullback_hom_snd, ← Over.comp_left, fiberGraph, prod.lift_snd, |
| 40 | pullback.lift_fst, Over.id_left] |
| 41 | · simp only [e, Iso.trans_hom, Category.assoc, pullbackSymmetry_hom_comp_snd, |
| 42 | Over.prodLeftIsoPullback_hom_fst, ← Over.comp_left, fiberGraph, prod.lift_fst, |
| 43 | pullback.lift_snd] |
| 44 | rw [← MorphismProperty.cancel_right_of_respectsIso @IsClosedImmersion _ e.hom, h] |
| 45 | exact schemeSeparatedGraph_closed X.hom Y.hom q.left q.w |
| 46 | |
| 47 | def finiteFiberHilbertFamily [IsSeparated Y.hom] |
| 48 | [IsFinite q.left] [Flat q.left] [LocallyOfFinitePresentation q.left] : HilbertScheme.Presentations.Hilbert.Functor.Family X Y := by |
| 49 | have : IsClosedImmersion (fiberGraph q).left := fiberGraph_closed q |
| 50 | have : Flat ((fiberGraph q).left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientProjection X Y) := |
| 51 | (fiberGraph_projection q).symm ▸ inferInstanceAs (Flat q.left) |
| 52 | have : IsProper ((fiberGraph q).left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientProjection X Y) := |
| 53 | (fiberGraph_projection q).symm ▸ inferInstanceAs (IsProper q.left) |
| 54 | have : LocallyOfFinitePresentation ((fiberGraph q).left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientProjection X Y) := |
| 55 | (fiberGraph_projection q).symm ▸ inferInstanceAs (LocallyOfFinitePresentation q.left) |
| 56 | exact HilbertFamilyOfImmersion.hilbertFamilyOfClosedImmersion X Y (fiberGraph q).left |
| 57 | |
| 58 | end |
| 59 | |
| 60 | /-! The Hilbert family of fibers of a faithfully flat cover separates |
| 61 | all maps to its target, including maps from nonreduced schemes. -/ |
| 62 | |
| 63 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 64 | |
| 65 | variable {S : Scheme.{0}} {X Y T V : Over S} (q : X ⟶ Y) [IsSeparated Y.hom] |
| 66 | |
| 67 | theorem fiberGraph_relation_of_equal_pullbacks (h k : T ⟶ Y) |
| 68 | (he : (fiberGraph q).left.ker.comap (HilbertScheme.Presentations.Hilbert.Functor.ambientMap X h) = |
| 69 | (fiberGraph q).left.ker.comap (HilbertScheme.Presentations.Hilbert.Functor.ambientMap X k)) |
| 70 | (a : V ⟶ T) (z : V ⟶ X) (hz : z ≫ q = a ≫ h) : z ≫ q = a ≫ k := by |
| 71 | let j := prod.lift a z |
| 72 | have hj : j ≫ prod.map h (𝟙 X) = z ≫ fiberGraph q := by |
| 73 | apply prod.hom_ext <;> simp [j, fiberGraph, hz] |
| 74 | have hle : (fiberGraph q).left.ker ≤ (j.left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientMap X h).ker := by |
| 75 | change (fiberGraph q).left.ker ≤ (j ≫ prod.map h (𝟙 X)).left.ker |
| 76 | rw [hj] |
| 77 | exact z.left.le_ker_comp (fiberGraph q).left |
| 78 | have hb : ((fiberGraph q).left.ker.comap (HilbertScheme.Presentations.Hilbert.Functor.ambientMap X h)).comap j.left ≤ ⊥ := by |
| 79 | have H : (fiberGraph q).left.ker ≤ |
| 80 | (⊥ : V.left.IdealSheafData).map (j.left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientMap X h) := by |
| 81 | simpa only [Scheme.IdealSheafData.map_bot] using hle |
| 82 | have H' := Scheme.IdealSheafData.le_map_iff_comap_le.mp H |
| 83 | rw [Scheme.IdealSheafData.comap_comp] at H' |
| 84 | exact H' |
| 85 | rw [he] at hb |
| 86 | have hk : (fiberGraph q).left.ker ≤ (j.left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientMap X k).ker := by |
| 87 | have H : (fiberGraph q).left.ker.comap (j.left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientMap X k) ≤ |
| 88 | (⊥ : V.left.IdealSheafData) := by |
| 89 | rw [Scheme.IdealSheafData.comap_comp] |
| 90 | exact hb |
| 91 | simpa only [Scheme.IdealSheafData.map_bot] using |
| 92 | (Scheme.IdealSheafData.le_map_iff_comap_le.mpr H) |
| 93 | have : IsClosedImmersion (fiberGraph q).left := fiberGraph_closed q |
| 94 | let m := IsClosedImmersion.lift (fiberGraph q).left (j.left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientMap X k) hk |
| 95 | have hm : m ≫ (fiberGraph q).left = j.left ≫ HilbertScheme.Presentations.Hilbert.Functor.ambientMap X k := |
| 96 | IsClosedImmersion.lift_fac _ _ _ |
| 97 | have hms : m = z.left := by |
| 98 | have H := congrArg (fun t => t ≫ (prod.snd : Y ⨯ X ⟶ X).left) hm |
| 99 | simpa only [Category.assoc, ← Over.comp_left, fiberGraph, prod.lift_snd, |
| 100 | Over.id_left, Category.comp_id, HilbertScheme.Presentations.Hilbert.Functor.ambientMap, prod.map_snd, prod.lift_snd_assoc, |
| 101 | j] using H |
| 102 | apply Over.OverMorphism.ext |
| 103 | have H := congrArg (fun t => t ≫ (prod.fst : Y ⨯ X ⟶ Y).left) hm |
| 104 | simpa only [hms, Category.assoc, ← Over.comp_left, fiberGraph, prod.lift_fst, |
| 105 | HilbertScheme.Presentations.Hilbert.Functor.ambientMap, prod.map_fst, prod.lift_fst_assoc, j] using H |
| 106 | |
| 107 | theorem fiberGraph_pullback_injective [Flat q.left] [Surjective q.left] (T : Over S) : |
| 108 | Function.Injective (fun h : T ⟶ Y => (fiberGraph q).left.ker.comap (HilbertScheme.Presentations.Hilbert.Functor.ambientMap X h)) := by |
| 109 | intro h k he |
| 110 | let W := pullback q h |
| 111 | let a : W ⟶ T := pullback.snd q h |
| 112 | let z : W ⟶ X := pullback.fst q h |
| 113 | have hc := (IsPullback.of_hasPullback q h).map (Over.forget S) |
| 114 | have : Flat a.left := MorphismProperty.of_isPullback hc (inferInstanceAs (Flat q.left)) |
| 115 | have : Surjective a.left := MorphismProperty.of_isPullback hc (inferInstanceAs (Surjective q.left)) |
| 116 | have : Epi a.left := Flat.epi_of_flat_of_surjective a.left |
| 117 | have hcq : z ≫ q = a ≫ h := pullback.condition |
| 118 | have H := fiberGraph_relation_of_equal_pullbacks q h k he a z hcq |
| 119 | apply Over.OverMorphism.ext |
| 120 | apply (cancel_epi a.left).mp |
| 121 | exact congrArg Over.Hom.left (hcq.symm.trans H) |
| 122 | |
| 123 | end |
| 124 | |
| 125 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.FiberHilbertFamily |