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.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RigidifiedLineCanonicalComparisons |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PoincareFixedComparison |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Polarized.PoincareTotalMap |
| 5 | |
| 6 | /-! # Poincare Transitions -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PoincareTransitions.DirectedPolarizedSchemeGluing |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The original local Poincare bundles on the already glued abelian |
| 13 | family. Their transition compatibility follows from the original |
| 14 | polarized isomorphisms and the actual colimit triangles. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | open OAI.AlgebraicGeometry.Isogenies.NeighborCounting.PoincareNormalization |
| 20 | |
| 21 | private theorem postcompose_commuting_square |
| 22 | {B : Type*} [Category* B] {W X Y Z T : B} |
| 23 | (q : W ⟶ X) (x : X ⟶ Y) (w : W ⟶ Z) (d : Z ⟶ Y) |
| 24 | (a : Y ⟶ T) (b : Z ⟶ T) |
| 25 | (h : q ≫ x = w ≫ d) (k : d ≫ a = b) : |
| 26 | q ≫ (x ≫ a) = w ≫ b := by |
| 27 | rw [← Category.assoc, h, Category.assoc, k] |
| 28 | |
| 29 | private theorem comparison_first_projection |
| 30 | {B : Type*} [Category* B] {P Q U V I J : B} |
| 31 | (ci : P ⟶ U) (cj : Q ⟶ V) (t : U ⟶ V) (q : P ⟶ Q) |
| 32 | (pi : U ⟶ I) (pj : V ⟶ J) (ri : P ⟶ I) (rj : Q ⟶ J) (d : I ⟶ J) |
| 33 | (ht : t ≫ pj = pi ≫ d) (hi : ci ≫ pi = ri) |
| 34 | (hj : cj ≫ pj = rj) (hq : q ≫ rj = ri ≫ d) : |
| 35 | (ci ≫ t) ≫ pj = (q ≫ cj) ≫ pj := by |
| 36 | calc |
| 37 | (ci ≫ t) ≫ pj = ci ≫ (t ≫ pj) := Category.assoc _ _ _ |
| 38 | _ = ci ≫ (pi ≫ d) := congrArg (fun x => ci ≫ x) ht |
| 39 | _ = (ci ≫ pi) ≫ d := (Category.assoc _ _ _).symm |
| 40 | _ = ri ≫ d := congrArg (fun x => x ≫ d) hi |
| 41 | _ = q ≫ rj := hq.symm |
| 42 | _ = q ≫ (cj ≫ pj) := congrArg (fun x => q ≫ x) hj.symm |
| 43 | _ = (q ≫ cj) ≫ pj := (Category.assoc _ _ _).symm |
| 44 | |
| 45 | private theorem comparison_second_projection |
| 46 | {B : Type*} [Category* B] {P Q U V I J Z : B} |
| 47 | (ci : P ⟶ U) (cj : Q ⟶ V) (t : U ⟶ V) (q : P ⟶ Q) |
| 48 | (pi : U ⟶ Z) (pj : V ⟶ Z) (ri : P ⟶ I) (rj : Q ⟶ J) |
| 49 | (ai : I ⟶ Z) (aj : J ⟶ Z) (u : I ⟶ J) |
| 50 | (ht : t ≫ pj = pi) (hi : ci ≫ pi = ri ≫ ai) |
| 51 | (hj : cj ≫ pj = rj ≫ aj) (hq : q ≫ rj = ri ≫ u) (hu : u ≫ aj = ai) : |
| 52 | (ci ≫ t) ≫ pj = (q ≫ cj) ≫ pj := by |
| 53 | calc |
| 54 | (ci ≫ t) ≫ pj = ci ≫ (t ≫ pj) := Category.assoc _ _ _ |
| 55 | _ = ci ≫ pi := congrArg (fun x => ci ≫ x) ht |
| 56 | _ = ri ≫ ai := hi |
| 57 | _ = q ≫ (rj ≫ aj) := (postcompose_commuting_square q rj ri u aj ai hq hu).symm |
| 58 | _ = q ≫ (cj ≫ pj) := congrArg (fun x => q ≫ x) hj.symm |
| 59 | _ = (q ≫ cj) ≫ pj := (Category.assoc _ _ _).symm |
| 60 | |
| 61 | variable {S : Scheme.{0}} [IsLocallyNoetherian S] (C : S.OpenCover.{0}) |
| 62 | [Category C.I₀] [C.LocallyDirected] [Small.{0} C.I₀] [Quiver.IsThin C.I₀] |
| 63 | [∀ i, IsLocallyNoetherian (C.X i)] {g N : ℕ} {δ : Fin g → ℕ} |
| 64 | (F : ∀ i, PolarizationData.PolarizedAbelianWithFullLevel g δ N (C.X i)) (hN : 3 ≤ N) |
| 65 | (e : ∀ {i j : C.I₀} (f : i ⟶ j), Moduli.Isomorphisms.LevelPreservingIso (F i) ((F j).pullback (C.trans f))) |
| 66 | |
| 67 | local notation "A" => OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelian C F hN e |
| 68 | local notation "DA" => OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianData C F hN e |
| 69 | local notation "DE" => OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualData C F hN e |
| 70 | |
| 71 | abbrev poincareParameter (i : C.I₀) : Over S := (Over.map (C.f i)).obj (F i).dual.abelian.scheme |
| 72 | |
| 73 | def poincareParameterInclusion (i : C.I₀) : poincareParameter C F i ⟶ (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.dualAbelian C F hN e).scheme := |
| 74 | Over.homMk ((DE).chartMap i) ((DE).chartMap_over i) |
| 75 | |
| 76 | instance poincareParameterInclusion_open (i : C.I₀) : |
| 77 | IsOpenImmersion (poincareParameterInclusion C F hN e i).left := (DE).chartMap_open i |
| 78 | |
| 79 | def poincareParameterTransition {i j : C.I₀} (f : i ⟶ j) : |
| 80 | poincareParameter C F i ⟶ poincareParameter C F j := |
| 81 | Over.homMk ((DE).transition f) |
| 82 | (postcompose_commuting_square ((DE).transition f) |
| 83 | (F j).dual.abelian.scheme.hom (F i).dual.abelian.scheme.hom |
| 84 | (C.trans f) (C.f j) (C.f i) ((DE).cartesian f).w (C.trans_map f)) |
| 85 | |
| 86 | omit [IsLocallyNoetherian S] in |
| 87 | theorem poincareParameterTransition_inclusion {i j : C.I₀} (f : i ⟶ j) : |
| 88 | poincareParameterTransition C F hN e f ≫ poincareParameterInclusion C F hN e j = |
| 89 | poincareParameterInclusion C F hN e i := by |
| 90 | apply Over.OverMorphism.ext |
| 91 | exact (DE).chartMap_transition f |
| 92 | |
| 93 | omit [IsLocallyNoetherian S] [Small.{0} C.I₀] [Quiver.IsThin C.I₀] in |
| 94 | theorem poincareParameterTransition_id (i : C.I₀) : |
| 95 | poincareParameterTransition C F hN e (𝟙 i) = 𝟙 (poincareParameter C F i) := by |
| 96 | apply Over.OverMorphism.ext |
| 97 | exact (DE).transition_id i |
| 98 | |
| 99 | omit [IsLocallyNoetherian S] [Small.{0} C.I₀] [Quiver.IsThin C.I₀] in |
| 100 | theorem poincareParameterTransition_comp {i j k : C.I₀} (f : i ⟶ j) (h : j ⟶ k) : |
| 101 | poincareParameterTransition C F hN e (f ≫ h) = |
| 102 | poincareParameterTransition C F hN e f ≫ poincareParameterTransition C F hN e h := by |
| 103 | apply Over.OverMorphism.ext |
| 104 | exact (DE).transition_comp f h |
| 105 | |
| 106 | /-- Each local line is the original Poincare line transported only in |
| 107 | its abelian factor. The parameter remains the original local dual. -/ |
| 108 | def localPoincare (i : C.I₀) : Line.Bundles.LineBundle (poincareParameter C F i ⊗ (A).scheme).left := |
| 109 | ReferenceFamily.PoincareFixed.fixedFamilyPoincare (F i).dual A (C.f i) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) |
| 110 | |
| 111 | def localPoincareZero (i : C.I₀) : |
| 112 | ((localPoincare C F hN e i).pullback (Isogenies.NeighborCounting.PoincareNormalization.familyZero A (poincareParameter C F i)).left).sheaf ≅ |
| 113 | Line.Bundles.structureModule (poincareParameter C F i).left := |
| 114 | ReferenceFamily.PoincareFixed.fixedFamilyPoincare_zeroIso (F i).dual A (C.f i) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) |
| 115 | |
| 116 | omit [IsLocallyNoetherian S] in |
| 117 | theorem localPoincare_homogeneous (i : C.I₀) : |
| 118 | (A).IsHomogeneousPicardClass (poincareParameter C F i) (Line.Bundles.LineBundle.classOf (localPoincare C F hN e i)) := |
| 119 | ReferenceFamily.PoincareFixed.fixedFamilyPoincare_homogeneous (F i).dual A (C.f i) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) |
| 120 | |
| 121 | def localPoincareRigidified (i : C.I₀) : RigidifiedLineBundles.RigidifiedLineBundle (Isogenies.NeighborCounting.PoincareNormalization.familyZero A (poincareParameter C F i)).left := |
| 122 | ⟨localPoincare C F hN e i, localPoincareZero C F hN e i⟩ |
| 123 | |
| 124 | def localPoincareComparison (i : C.I₀) : |
| 125 | ((F i).dual.abelian.scheme ⊗ (F i).abelian.scheme).left ≅ |
| 126 | (poincareParameter C F i ⊗ (A).scheme).left := |
| 127 | ReferenceFamily.PoincareFixedComparison.fixedFamilyPoincareComparison (F i).dual A (C.f i) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) |
| 128 | |
| 129 | omit [IsLocallyNoetherian S] in |
| 130 | theorem localPoincareComparison_transition {i j : C.I₀} (f : i ⟶ j) : |
| 131 | (localPoincareComparison C F hN e i).hom ≫ |
| 132 | (poincareParameterTransition C F hN e f ▷ (A).scheme).left = |
| 133 | ReferenceFamily.Polarized.PoincareTotalMap.polarizedPoincareTotalMap (F j) (F i) (C.trans f) (e f) ≫ |
| 134 | (localPoincareComparison C F hN e j).hom := by |
| 135 | let ci := localPoincareComparison C F hN e i |
| 136 | let cj := localPoincareComparison C F hN e j |
| 137 | let t := poincareParameterTransition C F hN e f |
| 138 | let q := ReferenceFamily.Polarized.PoincareTotalMap.polarizedPoincareTotalMap (F j) (F i) (C.trans f) (e f) |
| 139 | let ai := ReferenceFamily.CartesianFiberComparison.CartesianFamily.totalMap (C.f i) (F i).abelian.scheme (A).scheme |
| 140 | (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) |
| 141 | let aj := ReferenceFamily.CartesianFiberComparison.CartesianFamily.totalMap (C.f j) (F j).abelian.scheme (A).scheme |
| 142 | (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e j) |
| 143 | have hai : ai = (DA).chartMap i := (DA).chartIso_fst i |
| 144 | have haj : aj = (DA).chartMap j := (DA).chartIso_fst j |
| 145 | let u : (F i).abelian.scheme.left ⟶ (F j).abelian.scheme.left := |
| 146 | ReferenceFamily.Polarized.TotalMaps.polarizedTotalMap (F j) (F i) (C.trans f) (e f) |
| 147 | have hchart : u ≫ (DA).chartMap j = (DA).chartMap i := (DA).chartMap_transition f |
| 148 | have hta : u ≫ aj = ai := |
| 149 | (congrArg (fun m : (F j).abelian.scheme.left ⟶ (A).scheme.left => u ≫ m) haj).trans |
| 150 | (hchart.trans hai.symm) |
| 151 | have hci₁ : ci.hom ≫ (fst (poincareParameter C F i) (A).scheme).left = |
| 152 | (fst (F i).dual.abelian.scheme (F i).abelian.scheme).left := |
| 153 | ReferenceFamily.PoincareFixedComparison.fixedFamilyPoincareComparison_fst (F i).dual A (C.f i) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) |
| 154 | have hcj₁ : cj.hom ≫ (fst (poincareParameter C F j) (A).scheme).left = |
| 155 | (fst (F j).dual.abelian.scheme (F j).abelian.scheme).left := |
| 156 | ReferenceFamily.PoincareFixedComparison.fixedFamilyPoincareComparison_fst (F j).dual A (C.f j) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e j) |
| 157 | have hci₂ : ci.hom ≫ (snd (poincareParameter C F i) (A).scheme).left = |
| 158 | (snd (F i).dual.abelian.scheme (F i).abelian.scheme).left ≫ ai := |
| 159 | ReferenceFamily.PoincareFixedComparison.fixedFamilyPoincareComparison_snd (F i).dual A (C.f i) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) |
| 160 | have hcj₂ : cj.hom ≫ (snd (poincareParameter C F j) (A).scheme).left = |
| 161 | (snd (F j).dual.abelian.scheme (F j).abelian.scheme).left ≫ aj := |
| 162 | ReferenceFamily.PoincareFixedComparison.fixedFamilyPoincareComparison_snd (F j).dual A (C.f j) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e j) |
| 163 | have hq₁ : q ≫ (fst (F j).dual.abelian.scheme (F j).abelian.scheme).left = |
| 164 | (fst (F i).dual.abelian.scheme (F i).abelian.scheme).left ≫ t.left := |
| 165 | ReferenceFamily.Polarized.PoincareTotalMap.polarizedPoincareTotalMap_fst (F j) (F i) (C.trans f) (e f) |
| 166 | have hq₂ : q ≫ (snd (F j).dual.abelian.scheme (F j).abelian.scheme).left = |
| 167 | (snd (F i).dual.abelian.scheme (F i).abelian.scheme).left ≫ u := |
| 168 | ReferenceFamily.Polarized.PoincareTotalMap.polarizedPoincareTotalMap_snd (F j) (F i) (C.trans f) (e f) |
| 169 | have ht₁ : (t ▷ (A).scheme).left ≫ (fst (poincareParameter C F j) (A).scheme).left = |
| 170 | (fst (poincareParameter C F i) (A).scheme).left ≫ t.left := |
| 171 | congrArg Over.Hom.left (whiskerRight_fst t (A).scheme) |
| 172 | have ht₂ : (t ▷ (A).scheme).left ≫ (snd (poincareParameter C F j) (A).scheme).left = |
| 173 | (snd (poincareParameter C F i) (A).scheme).left := |
| 174 | congrArg Over.Hom.left (whiskerRight_snd t (A).scheme) |
| 175 | change ci.hom ≫ (t ▷ (A).scheme).left = q ≫ cj.hom |
| 176 | apply Over.tensorObj_ext |
| 177 | · exact comparison_first_projection ci.hom cj.hom (t ▷ (A).scheme).left q |
| 178 | (fst (poincareParameter C F i) (A).scheme).left |
| 179 | (fst (poincareParameter C F j) (A).scheme).left |
| 180 | (fst (F i).dual.abelian.scheme (F i).abelian.scheme).left |
| 181 | (fst (F j).dual.abelian.scheme (F j).abelian.scheme).left t.left ht₁ hci₁ hcj₁ hq₁ |
| 182 | · exact comparison_second_projection ci.hom cj.hom (t ▷ (A).scheme).left q |
| 183 | (snd (poincareParameter C F i) (A).scheme).left |
| 184 | (snd (poincareParameter C F j) (A).scheme).left |
| 185 | (snd (F i).dual.abelian.scheme (F i).abelian.scheme).left |
| 186 | (snd (F j).dual.abelian.scheme (F j).abelian.scheme).left ai aj u ht₂ hci₂ hcj₂ hq₂ hta |
| 187 | |
| 188 | omit [IsLocallyNoetherian S] in |
| 189 | theorem localPoincare_transition_class {i j : C.I₀} (f : i ⟶ j) : |
| 190 | Line.Bundles.LineBundle.pullbackClass (poincareParameterTransition C F hN e f ▷ (A).scheme).left |
| 191 | (Line.Bundles.LineBundle.classOf (localPoincare C F hN e j)) = |
| 192 | Line.Bundles.LineBundle.classOf (localPoincare C F hN e i) := by |
| 193 | let ci := localPoincareComparison C F hN e i |
| 194 | let cj := localPoincareComparison C F hN e j |
| 195 | let t := (poincareParameterTransition C F hN e f ▷ (A).scheme).left |
| 196 | let q := ReferenceFamily.Polarized.PoincareTotalMap.polarizedPoincareTotalMap (F j) (F i) (C.trans f) (e f) |
| 197 | let Li := Line.Bundles.LineBundle.classOf (localPoincare C F hN e i) |
| 198 | let Lj := Line.Bundles.LineBundle.classOf (localPoincare C F hN e j) |
| 199 | have hi : Line.Bundles.LineBundle.pullbackClass ci.hom Li = Line.Bundles.LineBundle.classOf (F i).dual.poincare := |
| 200 | ReferenceFamily.PoincareFixedComparison.fixedFamilyPoincare_recovery_class (F i).dual A (C.f i) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e i) |
| 201 | have hj : Line.Bundles.LineBundle.pullbackClass cj.hom Lj = Line.Bundles.LineBundle.classOf (F j).dual.poincare := |
| 202 | ReferenceFamily.PoincareFixedComparison.fixedFamilyPoincare_recovery_class (F j).dual A (C.f j) (PolarizedSchemeGluing.DirectedPolarizedSchemeGluing.abelianChartIso C F hN e j) |
| 203 | apply (Line.Bundles.LineBundle.pullbackIso ci).injective |
| 204 | change Line.Bundles.LineBundle.pullbackClass ci.hom (Line.Bundles.LineBundle.pullbackClass t Lj) = Line.Bundles.LineBundle.pullbackClass ci.hom Li |
| 205 | exact (Line.Bundles.LineBundle.pullbackClass_comp ci.hom t Lj).symm.trans |
| 206 | ((congrArg (fun m => Line.Bundles.LineBundle.pullbackClass m Lj) (localPoincareComparison_transition C F hN e f)).trans |
| 207 | ((Line.Bundles.LineBundle.pullbackClass_comp q cj.hom Lj).trans |
| 208 | ((congrArg (Line.Bundles.LineBundle.pullbackClass q) hj).trans |
| 209 | ((ReferenceFamily.Polarized.PoincareTotalMap.polarizedPoincareTotalMap_class (F j) (F i) (C.trans f) (e f)).trans hi.symm)))) |
| 210 | |
| 211 | /-- The local transition has its unique actual representative preserving |
| 212 | both chosen zero frames. -/ |
| 213 | def localPoincareTransitionIso {i j : C.I₀} (f : i ⟶ j) : |
| 214 | RigidifiedLineBundles.RigidifiedLineBundleIso |
| 215 | ((localPoincareRigidified C F hN e j).pullbackSquare |
| 216 | (poincareParameterTransition C F hN e f ▷ (A).scheme).left |
| 217 | (Isogenies.NeighborCounting.PoincareNormalization.familyZero A (poincareParameter C F i)).left |
| 218 | (poincareParameterTransition C F hN e f).left |
| 219 | (congrArg Over.Hom.left (Isogenies.NeighborCounting.PoincareNormalization.familyZero_naturality A (poincareParameterTransition C F hN e f)))) |
| 220 | (localPoincareRigidified C F hN e i) := |
| 221 | (A).rigidifiedProductComparison (poincareParameter C F i) _ _ |
| 222 | (Quotient.exact (s := Line.Bundles.LineBundle.isoSetoid _) |
| 223 | (a := (localPoincare C F hN e j).pullback |
| 224 | (poincareParameterTransition C F hN e f ▷ (A).scheme).left) |
| 225 | (b := localPoincare C F hN e i) (localPoincare_transition_class C F hN e f)) |
| 226 | |
| 227 | end |
| 228 | |
| 229 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Directed.PoincareTransitions.DirectedPolarizedSchemeGluing |