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.NumberTheory.PadicHodge.IntegralComparison.Principal.AdditiveSections |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.CoefficientProducts |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCech.Intersections |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenRestriction |
| 5 | |
| 6 | /-! # Open Reindex -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenReindex |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The principal reindex from the actual appLE coefficient map is |
| 13 | exactly source-open restriction. Both its opens and additive section |
| 14 | maps retain the original ambient principal objects. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.TopologicalSpace |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | universe u |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf |
| 21 | variable {Y Z : Scheme.{u}} (π : Y ⟶ Z) |
| 22 | (U : Z.Opens) (hU : IsAffineOpen U) (V : Y.Opens) (hVa : IsAffineOpen V) |
| 23 | (hV : V ≤ π ⁻¹ᵁ U) |
| 24 | |
| 25 | def scalar : Γ(Z,U) →+* Γ(Y,V) := (π.appLE U V hV).hom |
| 26 | |
| 27 | def reindex : Principal.SectionPresheaf.Index U ⥤ Principal.SectionPresheaf.Index V := Principal.CoefficientChange.functor (scalar π U V hV) |
| 28 | |
| 29 | instance reindex_preserves : PreservesFiniteLimits (reindex π U V hV) := |
| 30 | Principal.CoefficientProducts.preserves (scalar π U V hV) |
| 31 | |
| 32 | theorem reindex_obj_val (r : Principal.SectionPresheaf.Index U) : |
| 33 | ((reindex π U V hV).obj r).val = π.appLE U V hV r.val := rfl |
| 34 | |
| 35 | def wideOpens : Principal.SectionPresheaf.Index U ⥤ Y.Opens := Principal.AdditiveSections.opens U hU ⋙ Opens.map π.base |
| 36 | |
| 37 | def geometricOpens : Principal.SectionPresheaf.Index U ⥤ Y.Opens := |
| 38 | wideOpens π U hU ⋙ RelativeCech.Intersections.intersect V |
| 39 | |
| 40 | def nativeOpens : Principal.SectionPresheaf.Index U ⥤ Y.Opens := |
| 41 | reindex π U V hV ⋙ Principal.AdditiveSections.opens V hVa |
| 42 | |
| 43 | theorem open_eq (r : Principal.SectionPresheaf.Index U) : |
| 44 | (nativeOpens π U V hVa hV).obj r = V ⊓ π ⁻¹ᵁ (Z.basicOpen r.val) := |
| 45 | Scheme.basicOpen_appLE π V U hV r.val |
| 46 | |
| 47 | theorem opens_eq : nativeOpens π U V hVa hV = geometricOpens π U hU V := |
| 48 | CategoryTheory.Functor.ext (open_eq π U V hVa hV) (fun _ _ _ => Subsingleton.elim _ _) |
| 49 | |
| 50 | def geometricInclusion : geometricOpens π U hU V ⟶ wideOpens π U hU where |
| 51 | app _ := homOfLE inf_le_right |
| 52 | |
| 53 | def nativeInclusion : nativeOpens π U V hVa hV ⟶ wideOpens π U hU where |
| 54 | app r := homOfLE (by rw [open_eq]; exact inf_le_right) |
| 55 | |
| 56 | private abbrev sectionPresheaf (N : Y.Modules) : Y.Opensᵒᵖ ⥤ AddCommGrpCat.{u} := |
| 57 | ((SheafOfModules.toSheaf Y.ringCatSheaf).obj N).obj |
| 58 | |
| 59 | variable (N : Y.Modules) |
| 60 | |
| 61 | def nativeSections : (Principal.SectionPresheaf.Index U)ᵒᵖ ⥤ AddCommGrpCat.{u} := |
| 62 | (reindex π U V hV).op ⋙ (Principal.AdditiveSections.additiveFunctor V hVa).obj N |
| 63 | |
| 64 | def geometricSections : (Principal.SectionPresheaf.Index U)ᵒᵖ ⥤ AddCommGrpCat.{u} := |
| 65 | (geometricOpens π U hU V).op ⋙ sectionPresheaf N |
| 66 | |
| 67 | def sectionsIso : nativeSections π U V hVa hV N ≅ geometricSections π U hU V N := |
| 68 | NatIso.ofComponents |
| 69 | (fun r => (sectionPresheaf N).mapIso ((eqToIso (open_eq π U V hVa hV r.unop)).symm.op)) |
| 70 | (fun {_ _} a => by |
| 71 | change (sectionPresheaf N).map _ ≫ (sectionPresheaf N).map _ = |
| 72 | (sectionPresheaf N).map _ ≫ (sectionPresheaf N).map _ |
| 73 | rw [← (sectionPresheaf N).map_comp, ← (sectionPresheaf N).map_comp] |
| 74 | congr 1) |
| 75 | |
| 76 | def restriction : (wideOpens π U hU).op ⋙ sectionPresheaf N ⟶ |
| 77 | nativeSections π U V hVa hV N := |
| 78 | Functor.whiskerRight (NatTrans.op (nativeInclusion π U hU V hVa hV)) (sectionPresheaf N) |
| 79 | |
| 80 | theorem restriction_app (r : Principal.SectionPresheaf.Index U) : |
| 81 | (restriction π U hU V hVa hV N).app (op r) = |
| 82 | N.presheaf.map (homOfLE ((nativeInclusion π U hU V hVa hV).app r).le).op := rfl |
| 83 | |
| 84 | theorem restriction_square : |
| 85 | restriction π U hU V hVa hV N ≫ (sectionsIso π U hU V hVa hV N).hom = |
| 86 | Functor.whiskerRight (NatTrans.op (geometricInclusion π U hU V)) (sectionPresheaf N) := by |
| 87 | apply NatTrans.ext |
| 88 | funext r |
| 89 | change (sectionPresheaf N).map _ ≫ (sectionPresheaf N).map _ = (sectionPresheaf N).map _ |
| 90 | rw [← (sectionPresheaf N).map_comp] |
| 91 | congr 1 |
| 92 | |
| 93 | def pushforwardIso : |
| 94 | (Principal.AdditiveSections.additiveFunctor U hU).obj ((Scheme.Modules.pushforward π).obj N) ≅ |
| 95 | (wideOpens π U hU).op ⋙ sectionPresheaf N := |
| 96 | NatIso.ofComponents (fun _ => Iso.refl _) (fun {_ _} _ => rfl) |
| 97 | |
| 98 | abbrev extensionOpen (r : Principal.SectionPresheaf.Index U) := V.ι ''ᵁ (V.ι ⁻¹ᵁ (π ⁻¹ᵁ (Z.basicOpen r.val))) |
| 99 | |
| 100 | theorem extensionOpen_eq (r : Principal.SectionPresheaf.Index U) : |
| 101 | extensionOpen π U V r = (geometricOpens π U hU V).obj r := by |
| 102 | rw [extensionOpen, Scheme.Hom.image_preimage_eq_opensRange_inf, Scheme.Opens.opensRange_ι] |
| 103 | rfl |
| 104 | |
| 105 | def extensionOpens : Principal.SectionPresheaf.Index U ⥤ Y.Opens := |
| 106 | wideOpens π U hU ⋙ Opens.map V.ι.base ⋙ V.ι.opensFunctor |
| 107 | |
| 108 | def extensionSections : (Principal.SectionPresheaf.Index U)ᵒᵖ ⥤ AddCommGrpCat.{u} := |
| 109 | (extensionOpens π U hU V).op ⋙ sectionPresheaf N |
| 110 | |
| 111 | def extensionCoordinates : |
| 112 | (Principal.AdditiveSections.additiveFunctor U hU).obj |
| 113 | ((Scheme.Modules.pushforward π).obj (OpenRestriction.extension V N)) ≅ |
| 114 | extensionSections π U hU V N := |
| 115 | NatIso.ofComponents (fun _ => Iso.refl _) (fun {_ _} _ => rfl) |
| 116 | |
| 117 | def extensionGeometricIso : extensionSections π U hU V N ≅ geometricSections π U hU V N := |
| 118 | NatIso.ofComponents |
| 119 | (fun r => (sectionPresheaf N).mapIso ((eqToIso (extensionOpen_eq π U hU V r.unop)).symm.op)) |
| 120 | (fun {_ _} a => by |
| 121 | change (sectionPresheaf N).map _ ≫ (sectionPresheaf N).map _ = |
| 122 | (sectionPresheaf N).map _ ≫ (sectionPresheaf N).map _ |
| 123 | rw [← (sectionPresheaf N).map_comp, ← (sectionPresheaf N).map_comp] |
| 124 | congr 1) |
| 125 | |
| 126 | def extensionIso : |
| 127 | (Principal.AdditiveSections.additiveFunctor U hU).obj |
| 128 | ((Scheme.Modules.pushforward π).obj (OpenRestriction.extension V N)) ≅ |
| 129 | geometricSections π U hU V N := |
| 130 | extensionCoordinates π U hU V N ≪≫ extensionGeometricIso π U hU V N |
| 131 | |
| 132 | def extensionInclusion : extensionOpens π U hU V ⟶ wideOpens π U hU where |
| 133 | app r := homOfLE (V.ι.image_preimage_le (π ⁻¹ᵁ (Z.basicOpen r.val))) |
| 134 | |
| 135 | def extensionRestriction : (wideOpens π U hU).op ⋙ sectionPresheaf N ⟶ |
| 136 | extensionSections π U hU V N := |
| 137 | Functor.whiskerRight (NatTrans.op (extensionInclusion π U hU V)) (sectionPresheaf N) |
| 138 | |
| 139 | theorem actual_restriction_coordinates : |
| 140 | (Principal.AdditiveSections.additiveFunctor U hU).map |
| 141 | ((Scheme.Modules.pushforward π).map ((Scheme.Modules.restrictAdjunction V.ι).unit.app N)) ≫ |
| 142 | (extensionCoordinates π U hU V N).hom = |
| 143 | (pushforwardIso π U hU N).hom ≫ extensionRestriction π U hU V N := by |
| 144 | apply NatTrans.ext |
| 145 | funext r |
| 146 | rfl |
| 147 | |
| 148 | theorem extension_restriction_square : |
| 149 | extensionRestriction π U hU V N ≫ (extensionGeometricIso π U hU V N).hom = |
| 150 | Functor.whiskerRight (NatTrans.op (geometricInclusion π U hU V)) (sectionPresheaf N) := by |
| 151 | apply NatTrans.ext |
| 152 | funext r |
| 153 | change (sectionPresheaf N).map _ ≫ (sectionPresheaf N).map _ = (sectionPresheaf N).map _ |
| 154 | rw [← (sectionPresheaf N).map_comp] |
| 155 | congr 1 |
| 156 | |
| 157 | theorem actual_restriction : |
| 158 | (Principal.AdditiveSections.additiveFunctor U hU).map |
| 159 | ((Scheme.Modules.pushforward π).map ((Scheme.Modules.restrictAdjunction V.ι).unit.app N)) ≫ |
| 160 | (extensionIso π U hU V N).hom = |
| 161 | (pushforwardIso π U hU N).hom ≫ restriction π U hU V hVa hV N ≫ |
| 162 | (sectionsIso π U hU V hVa hV N).hom := by |
| 163 | change _ ≫ ((extensionCoordinates π U hU V N).hom ≫ |
| 164 | (extensionGeometricIso π U hU V N).hom) = _ |
| 165 | rw [← Category.assoc, actual_restriction_coordinates, Category.assoc, |
| 166 | extension_restriction_square, restriction_square] |
| 167 | |
| 168 | def extensionToNative : |
| 169 | (Principal.AdditiveSections.additiveFunctor U hU).obj |
| 170 | ((Scheme.Modules.pushforward π).obj (OpenRestriction.extension V N)) ≅ |
| 171 | nativeSections π U V hVa hV N := |
| 172 | extensionIso π U hU V N ≪≫ (sectionsIso π U hU V hVa hV N).symm |
| 173 | |
| 174 | end |
| 175 | |
| 176 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenReindex |