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.Quotients.FiniteDescent.IntegralImageReduced |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperOpen |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Immersion |
| 4 | |
| 5 | /-! # Graph Closure Is -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.GraphClosureIs.Construction.GraphClosure |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Closing the graph of a morphism from a nonempty affine open to a |
| 12 | proper scheme gives a proper integral modification of the source. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {S X P : Scheme.{u}} |
| 19 | variable (f : X ⟶ S) (p : P ⟶ S) |
| 20 | variable (U : X.Opens) |
| 21 | variable (j : U.toScheme ⟶ P) (hj : U.ι ≫ f = j ≫ p) |
| 22 | |
| 23 | def graph : U.toScheme ⟶ pullback f p := pullback.lift U.ι j hj |
| 24 | |
| 25 | theorem graph_fst : graph f p U j hj ≫ pullback.fst f p = U.ι := pullback.lift_fst _ _ _ |
| 26 | theorem graph_snd : graph f p U j hj ≫ pullback.snd f p = j := pullback.lift_snd _ _ _ |
| 27 | |
| 28 | local instance graph_immersion : IsImmersion (graph f p U j hj) := by |
| 29 | have : IsImmersion (graph f p U j hj ≫ pullback.fst f p) := by |
| 30 | rw [graph_fst] |
| 31 | infer_instance |
| 32 | exact IsImmersion.of_comp (graph f p U j hj) (pullback.fst f p) |
| 33 | |
| 34 | abbrev scheme : Scheme.{u} := (graph f p U j hj).image |
| 35 | |
| 36 | def projection : scheme f p U j hj ⟶ X := |
| 37 | (graph f p U j hj).imageι ≫ pullback.fst f p |
| 38 | |
| 39 | def map : scheme f p U j hj ⟶ P := |
| 40 | (graph f p U j hj).imageι ≫ pullback.snd f p |
| 41 | |
| 42 | def chart : U.toScheme ⟶ scheme f p U j hj := (graph f p U j hj).toImage |
| 43 | |
| 44 | theorem chart_projection : chart f p U j hj ≫ projection f p U j hj = U.ι := by |
| 45 | rw [chart, projection, Scheme.Hom.toImage_imageι_assoc, graph_fst] |
| 46 | |
| 47 | theorem chart_map : chart f p U j hj ≫ map f p U j hj = j := by |
| 48 | rw [chart, map, Scheme.Hom.toImage_imageι_assoc, graph_snd] |
| 49 | |
| 50 | theorem map_base : map f p U j hj ≫ p = projection f p U j hj ≫ f := by |
| 51 | simp only [map, projection, Category.assoc, pullback.condition] |
| 52 | |
| 53 | variable [QuasiSeparatedSpace X] [IsProper p] [CompactSpace U.toScheme] |
| 54 | |
| 55 | local instance graph_quasiCompact : QuasiCompact (graph f p U j hj) := by |
| 56 | have : QuasiCompact (graph f p U j hj ≫ pullback.fst f p) := by |
| 57 | rw [graph_fst] |
| 58 | infer_instance |
| 59 | exact QuasiCompact.of_comp (graph f p U j hj) (pullback.fst f p) |
| 60 | |
| 61 | omit [QuasiSeparatedSpace X] [CompactSpace U.toScheme] in |
| 62 | theorem proper : IsProper (projection f p U j hj) := by |
| 63 | dsimp only [projection] |
| 64 | infer_instance |
| 65 | |
| 66 | omit [QuasiSeparatedSpace X] [CompactSpace U.toScheme] in |
| 67 | theorem map_isProper [IsProper f] : IsProper (map f p U j hj) := by |
| 68 | have := proper f p U j hj |
| 69 | have : IsProper (map f p U j hj ≫ p) := by |
| 70 | rw [map_base] |
| 71 | infer_instance |
| 72 | exact IsProper.of_comp (map f p U j hj) p |
| 73 | |
| 74 | theorem openImmersion : IsOpenImmersion (chart f p U j hj) := by |
| 75 | dsimp only [chart] |
| 76 | infer_instance |
| 77 | |
| 78 | theorem dominant : IsDominant (chart f p U j hj) := by |
| 79 | dsimp only [chart] |
| 80 | infer_instance |
| 81 | |
| 82 | theorem isIso_restrict : IsIso (projection f p U j hj ∣_ U) := by |
| 83 | have := proper f p U j hj |
| 84 | have := openImmersion f p U j hj |
| 85 | have := dominant f p U j hj |
| 86 | exact ProperOpen.Construction.ProperOpenSection.isIso_restrict (projection f p U j hj) U (chart f p U j hj) |
| 87 | (chart_projection f p U j hj) |
| 88 | |
| 89 | variable [IsIntegral X] [Nonempty U] |
| 90 | |
| 91 | theorem integral : IsIntegral (scheme f p U j hj) := IntegralImageReduced.Construction.IntegralImage.integral _ |
| 92 | |
| 93 | omit [QuasiSeparatedSpace X] [CompactSpace U.toScheme] in |
| 94 | theorem surjective : Surjective (projection f p U j hj) := by |
| 95 | have := proper f p U j hj |
| 96 | have : IsDominant U.ι := AlgebraicGeometry.Opens.isDominant_ι |
| 97 | (U.isOpen.dense (by simpa using ‹Nonempty U›)) |
| 98 | have : IsDominant (chart f p U j hj ≫ projection f p U j hj) := by |
| 99 | rw [chart_projection] |
| 100 | infer_instance |
| 101 | have : IsDominant (projection f p U j hj) := |
| 102 | IsDominant.of_comp (chart f p U j hj) (projection f p U j hj) |
| 103 | infer_instance |
| 104 | |
| 105 | end |
| 106 | |
| 107 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.GraphClosureIs.Construction.GraphClosure |