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.Foundations.Scheme.ClosedProjective |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Smooth |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 4 | |
| 5 | /-! # Open Ambient -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Graph.OpenAmbient.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # LineBundleCycles: the scheme-theoretic graph factorization |
| 15 | |
| 16 | These are the actual graph, fiber product, and projection of a complex |
| 17 | scheme morphism. The source structure morphism is written `f.left ≫ Y.structureMap`, |
| 18 | which equals `X.structureMap` by the defining equation of a morphism over ℂ. |
| 19 | |
| 20 | This file constructs the geometry preceding the refined Gysin map. It does |
| 21 | not assert that a closed immersion alone supplies such a map on Chow groups. |
| 22 | -/ |
| 23 | |
| 24 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 25 | |
| 26 | variable {X Y : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} |
| 27 | |
| 28 | /-- The fiber product containing the graph, with the source base map |
| 29 | written as the composite supplied by the morphism over the base. -/ |
| 30 | def graphAmbient (f : X.toOver ⟶ Y.toOver) : Scheme := |
| 31 | pullback (f.left ≫ Y.structureMap) Y.structureMap |
| 32 | |
| 33 | /-- The first projection of the graph's ambient product. -/ |
| 34 | def graphFirstProjection (f : X.toOver ⟶ Y.toOver) : graphAmbient f ⟶ X.carrier := |
| 35 | pullback.fst (f.left ≫ Y.structureMap) Y.structureMap |
| 36 | |
| 37 | /-- The projection along which flat pullback is used in the graph construction. -/ |
| 38 | def graphSecondProjection (f : X.toOver ⟶ Y.toOver) : graphAmbient f ⟶ Y.carrier := |
| 39 | pullback.snd (f.left ≫ Y.structureMap) Y.structureMap |
| 40 | |
| 41 | /-- The actual scheme-theoretic graph morphism. -/ |
| 42 | def graph (f : X.toOver ⟶ Y.toOver) : X.carrier ⟶ graphAmbient f := |
| 43 | pullback.lift (𝟙 X.carrier) f.left (Category.id_comp (f.left ≫ Y.structureMap)) |
| 44 | |
| 45 | @[simp] |
| 46 | theorem graph_firstProjection (f : X.toOver ⟶ Y.toOver) : |
| 47 | graph f ≫ graphFirstProjection f = 𝟙 X.carrier := |
| 48 | pullback.lift_fst _ _ _ |
| 49 | |
| 50 | @[simp] |
| 51 | theorem graph_secondProjection (f : X.toOver ⟶ Y.toOver) : |
| 52 | graph f ≫ graphSecondProjection f = f.left := |
| 53 | pullback.lift_snd _ _ _ |
| 54 | |
| 55 | /-- The graph is a closed immersion because the target is separated over ℂ. -/ |
| 56 | instance graph_isClosedImmersion (f : X.toOver ⟶ Y.toOver) : |
| 57 | IsClosedImmersion (graph f) := by |
| 58 | have hsep : IsSeparated Y.structureMap := |
| 59 | @IsProper.toIsSeparated _ _ _ Y.projective.isProper |
| 60 | exact @IsSeparated.instIsClosedImmersionLiftSchemeId X.carrier Y.carrier Foundations.Scheme.ProjectiveSpace.complexBase |
| 61 | f.left Y.structureMap hsep |
| 62 | |
| 63 | /-- The first projection is the base change of the smooth target structure map. -/ |
| 64 | instance graphFirstProjection_smooth (f : X.toOver ⟶ Y.toOver) : |
| 65 | Smooth (graphFirstProjection f) := by |
| 66 | exact AlgebraicGeometry.instSmoothFstScheme (f.left ≫ Y.structureMap) Y.structureMap |
| 67 | |
| 68 | /-- The second projection is the base change of the smooth source structure map. -/ |
| 69 | instance graphSecondProjection_smooth (f : X.toOver ⟶ Y.toOver) : |
| 70 | Smooth (graphSecondProjection f) := by |
| 71 | have hbase : f.left ≫ Y.structureMap = X.structureMap := f.w |
| 72 | have : Smooth (f.left ≫ Y.structureMap) := hbase.symm ▸ X.smooth |
| 73 | exact AlgebraicGeometry.instSmoothSndScheme (f.left ≫ Y.structureMap) Y.structureMap |
| 74 | |
| 75 | instance graphSecondProjection_flat (f : X.toOver ⟶ Y.toOver) : |
| 76 | Flat (graphSecondProjection f) := by infer_instance |
| 77 | |
| 78 | end |
| 79 | |
| 80 | /-! Actual open maps of source and target induce the corresponding open map of graph ambient products. -/ |
| 81 | |
| 82 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 83 | |
| 84 | variable {X Y X' Y' : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation} |
| 85 | (f : X.toOver ⟶ Y.toOver) (g : X'.toOver ⟶ Y'.toOver) |
| 86 | (a : X'.toOver ⟶ X.toOver) (b : Y'.toOver ⟶ Y.toOver) |
| 87 | |
| 88 | def graphOpenAmbientMap : graphAmbient g ⟶ graphAmbient f := |
| 89 | pullback.map (g.left ≫ Y'.structureMap) Y'.structureMap (f.left ≫ Y.structureMap) Y.structureMap |
| 90 | a.left b.left (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) |
| 91 | ((Category.comp_id _).trans (g.w.trans |
| 92 | ((congrArg (fun k => a.left ≫ k) f.w).trans a.w).symm)) |
| 93 | ((Category.comp_id _).trans b.w.symm) |
| 94 | |
| 95 | theorem graphOpenAmbientMap_first : |
| 96 | graphOpenAmbientMap f g a b ≫ graphFirstProjection f = graphFirstProjection g ≫ a.left := |
| 97 | pullback.lift_fst .. |
| 98 | |
| 99 | theorem graphOpenAmbientMap_second : |
| 100 | graphOpenAmbientMap f g a b ≫ graphSecondProjection f = graphSecondProjection g ≫ b.left := |
| 101 | pullback.lift_snd .. |
| 102 | |
| 103 | instance graphOpenAmbientMap_open [IsOpenImmersion a.left] [IsOpenImmersion b.left] : |
| 104 | IsOpenImmersion (graphOpenAmbientMap f g a b) := by |
| 105 | exact @Scheme.pullback_map_isOpenImmersion X'.carrier Y'.carrier Foundations.Scheme.ProjectiveSpace.complexBase X.carrier Y.carrier Foundations.Scheme.ProjectiveSpace.complexBase |
| 106 | (g.left ≫ Y'.structureMap) Y'.structureMap (f.left ≫ Y.structureMap) Y.structureMap |
| 107 | a.left b.left (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) |
| 108 | ((Category.comp_id _).trans (g.w.trans |
| 109 | ((congrArg (fun k => a.left ≫ k) f.w).trans a.w).symm)) |
| 110 | ((Category.comp_id _).trans b.w.symm) |
| 111 | (inferInstanceAs (IsOpenImmersion a.left)) (inferInstanceAs (IsOpenImmersion b.left)) inferInstance |
| 112 | |
| 113 | theorem graphOpenAmbientMap_graph (h : a ≫ f = g ≫ b) : |
| 114 | graph g ≫ graphOpenAmbientMap f g a b = a.left ≫ graph f := by |
| 115 | apply pullback.hom_ext |
| 116 | · exact (Category.assoc _ _ _).trans |
| 117 | ((congrArg (fun k => graph g ≫ k) (graphOpenAmbientMap_first f g a b)).trans |
| 118 | ((Category.assoc _ _ _).symm.trans |
| 119 | ((congrArg (fun k => k ≫ a.left) (graph_firstProjection g)).trans |
| 120 | ((Category.id_comp _).trans |
| 121 | ((Category.comp_id _).symm.trans |
| 122 | ((congrArg (fun k => a.left ≫ k) (graph_firstProjection f)).symm.trans |
| 123 | (Category.assoc _ _ _).symm)))))) |
| 124 | · exact (Category.assoc _ _ _).trans |
| 125 | ((congrArg (fun k => graph g ≫ k) (graphOpenAmbientMap_second f g a b)).trans |
| 126 | ((Category.assoc _ _ _).symm.trans |
| 127 | ((congrArg (fun k => k ≫ b.left) (graph_secondProjection g)).trans |
| 128 | ((congrArg (fun k => k.left) h).symm.trans |
| 129 | ((congrArg (fun k => a.left ≫ k) (graph_secondProjection f)).symm.trans |
| 130 | (Category.assoc _ _ _).symm))))) |
| 131 | |
| 132 | end |
| 133 | |
| 134 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Graph.OpenAmbient.BundleCycles |