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.IntersectionTheory.ProjectionFormula.Support.LocalFraction |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.GenericField |
| 3 | |
| 4 | /-! # Generic Field -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.GenericField |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Canonical restriction at a support's generic point, and the exact |
| 11 | generic stalk lift of a function from the target. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction.Restriction OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 18 | |
| 19 | theorem generic_algebraMap (Y : Scheme) [IsIntegral Y] : |
| 20 | letI := stalkFunctionFieldAlgebra Y (genericPoint Y) |
| 21 | CommRingCat.ofHom (algebraMap (Y.presheaf.stalk (genericPoint Y)) Y.functionField) = 𝟙 Y.functionField := by |
| 22 | change Y.presheaf.stalkSpecializes (specializes_refl (genericPoint Y)) = 𝟙 _ |
| 23 | exact TopCat.Presheaf.stalkSpecializes_refl _ _ |
| 24 | |
| 25 | private theorem at_generic_aux (X : Scheme) (W : IrreducibleCloseds X) |
| 26 | (y : CycleClass.Geometric.GenericPoint.reducedSupportScheme W) (he : CycleClass.Geometric.GenericPoint.reducedSupportι W y = CycleClass.Thom.IntersectionGeometry.supportPoint W) |
| 27 | (hy : y = genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) : |
| 28 | (eqToHom (congrArg (fun x => X.presheaf.stalk x) he.symm) ≫ (CycleClass.Geometric.GenericPoint.reducedSupportι W).stalkMap y) ≫ |
| 29 | CommRingCat.ofHom (algebraMap ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W).presheaf.stalk y) (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) = |
| 30 | eqToHom (congrArg (fun x => X.presheaf.stalk x) (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W).symm) ≫ |
| 31 | (CycleClass.Geometric.GenericPoint.reducedSupportι W).stalkMap (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) := by |
| 32 | subst y |
| 33 | rw [generic_algebraMap (CycleClass.Geometric.GenericPoint.reducedSupportScheme W), Category.comp_id] |
| 34 | |
| 35 | theorem toFunctionField_generic (X : Scheme) (W : IrreducibleCloseds X) |
| 36 | (hx : CycleClass.Thom.IntersectionGeometry.supportPoint W ∈ (W : Set X)) : |
| 37 | LocalFraction.Restriction.toFunctionField X W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hx = |
| 38 | eqToHom (congrArg (fun x => X.presheaf.stalk x) (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W).symm) ≫ |
| 39 | (CycleClass.Geometric.GenericPoint.reducedSupportι W).stalkMap (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) := by |
| 40 | have hy : CycleClass.Thom.IntersectionGeometry.supportPreimage W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hx = genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W) := by |
| 41 | apply (CycleClass.Geometric.GenericPoint.reducedSupportι W).isClosedEmbedding.injective |
| 42 | exact (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec W _ hx).trans (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W).symm |
| 43 | exact at_generic_aux X W (CycleClass.Thom.IntersectionGeometry.supportPreimage W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hx) (CycleClass.Thom.IntersectionGeometry.supportPreimage_spec W _ hx) hy |
| 44 | |
| 45 | theorem generic_transport (Y : Scheme) [IsIntegral Y] (y : Y) (hy : y = genericPoint Y) : |
| 46 | eqToHom (congrArg (fun z => Y.presheaf.stalk z) hy.symm) ≫ |
| 47 | CommRingCat.ofHom (algebraMap (Y.presheaf.stalk y) Y.functionField) = 𝟙 Y.functionField := by |
| 48 | subst y |
| 49 | rw [generic_algebraMap Y, eqToHom_refl, Category.id_comp] |
| 50 | |
| 51 | theorem stalkCongr_eqToHom (X : Scheme) {x y : X} (h : x = y) : |
| 52 | (X.presheaf.stalkCongr (Inseparable.of_eq h)).hom = |
| 53 | eqToHom (congrArg (fun z => X.presheaf.stalk z) h) := by |
| 54 | subst y |
| 55 | simp only [TopCat.Presheaf.stalkCongr_hom, TopCat.Presheaf.stalkSpecializes_refl, eqToHom_refl] |
| 56 | |
| 57 | theorem stalkMap_congr {X Y : Scheme} (f : X ⟶ Y) {x y : X} (h : x = y) : |
| 58 | eqToHom (congrArg (fun z => Y.presheaf.stalk z) (congrArg f h)) ≫ f.stalkMap y = |
| 59 | f.stalkMap x ≫ eqToHom (congrArg (fun z => X.presheaf.stalk z) h) := by |
| 60 | subst y |
| 61 | simp only [eqToHom_refl, Category.id_comp, Category.comp_id] |
| 62 | |
| 63 | def germMap {X Y : Scheme} [IsIntegral Y] (f : X ⟶ Y) (x : X) (hx : f x = genericPoint Y) : |
| 64 | Y.functionField ⟶ X.presheaf.stalk x := |
| 65 | eqToHom (congrArg (fun z => Y.presheaf.stalk z) hx.symm) ≫ f.stalkMap x |
| 66 | |
| 67 | theorem germMap_congr {X Y : Scheme} [IsIntegral Y] (f : X ⟶ Y) {x y : X} (h : x = y) |
| 68 | (hx : f x = genericPoint Y) (hy : f y = genericPoint Y) : |
| 69 | germMap f x hx ≫ eqToHom (congrArg (fun z => X.presheaf.stalk z) h) = germMap f y hy := by |
| 70 | subst y |
| 71 | rw [eqToHom_refl, Category.comp_id] |
| 72 | |
| 73 | theorem germMap_field {X Y : Scheme} [IsIntegral X] [IsIntegral Y] (f : X ⟶ Y) |
| 74 | (hη : f (genericPoint X) = genericPoint Y) (x : X) (hx : f x = genericPoint Y) (g : Y.functionField) : |
| 75 | algebraMap (X.presheaf.stalk x) X.functionField (germMap f x hx g) = Cycles.Functoriality.FunctionFields.Construction.genericFieldMap f hη g := by |
| 76 | have h := Divisor.DivisorRestriction.genericFieldMap_stalk f hη x |
| 77 | (eqToHom (congrArg (fun z => Y.presheaf.stalk z) hx.symm) g) |
| 78 | have he := congrArg (fun k : Y.functionField ⟶ Y.functionField => k g) (generic_transport Y (f x) hx) |
| 79 | change algebraMap (Y.presheaf.stalk (f x)) Y.functionField |
| 80 | (eqToHom (congrArg (fun z => Y.presheaf.stalk z) hx.symm) g) = g at he |
| 81 | rw [he] at h |
| 82 | exact h.symm |
| 83 | |
| 84 | theorem germMap_restrict {X Y : Scheme} [IsIntegral Y] (f : X ⟶ Y) |
| 85 | (W : IrreducibleCloseds X) (hx : CycleClass.Thom.IntersectionGeometry.supportPoint W ∈ (W : Set X)) |
| 86 | (hW : f (CycleClass.Thom.IntersectionGeometry.supportPoint W) = genericPoint Y) |
| 87 | (hη : (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ f) (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) = genericPoint Y) : |
| 88 | germMap f (CycleClass.Thom.IntersectionGeometry.supportPoint W) hW ≫ LocalFraction.Restriction.toFunctionField X W (CycleClass.Thom.IntersectionGeometry.supportPoint W) hx = |
| 89 | Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ f) hη := by |
| 90 | rw [toFunctionField_generic] |
| 91 | have hw : CycleClass.Thom.IntersectionGeometry.supportPoint W = CycleClass.Geometric.GenericPoint.reducedSupportι W (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) := |
| 92 | (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W).symm |
| 93 | have ht := germMap_congr f hw hW hη |
| 94 | have hr : Cycles.Functoriality.FunctionFields.Construction.genericFieldMap (CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ f) hη = |
| 95 | germMap f (CycleClass.Geometric.GenericPoint.reducedSupportι W (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W))) hη ≫ |
| 96 | (CycleClass.Geometric.GenericPoint.reducedSupportι W).stalkMap (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) := by |
| 97 | rw [Cycles.Functoriality.FunctionFields.Construction.genericFieldMap, Scheme.Hom.stalkMap_comp] |
| 98 | have he := stalkCongr_eqToHom Y hη.symm |
| 99 | exact congrArg (fun k : Y.functionField ⟶ Y.presheaf.stalk |
| 100 | ((CycleClass.Geometric.GenericPoint.reducedSupportι W ≫ f) (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W))) => |
| 101 | k ≫ f.stalkMap (CycleClass.Geometric.GenericPoint.reducedSupportι W (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W))) ≫ |
| 102 | (CycleClass.Geometric.GenericPoint.reducedSupportι W).stalkMap (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W))) he |
| 103 | rw [hr, ← Category.assoc] |
| 104 | exact congrArg (fun k => k ≫ (CycleClass.Geometric.GenericPoint.reducedSupportι W).stalkMap (genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W))) ht |
| 105 | |
| 106 | end |
| 107 | |
| 108 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.GenericField |