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.AbelianScheme.TateComparison.CubeProductLift |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.GeometricChowModification |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProjectiveModification |
| 4 | import OAI.ArithmeticGeometry.Models.SpreadingOut.SmoothGeometricIntegrality |
| 5 | import OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Geometric.Points |
| 6 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Ample.ProjectivePresentation |
| 7 | |
| 8 | /-! # Group Ample -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.GroupAmple |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | section |
| 15 | |
| 16 | /-! The theorem of the square for translations of an actual proper |
| 17 | smooth connected commutative group. Projectivity is not an input. -/ |
| 18 | |
| 19 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 21 | open scoped _root_.CategoryTheory.MonObj |
| 22 | |
| 23 | variable {K : Type} [Field K] [IsAlgClosed K] |
| 24 | (A : Over (Spec (.of K))) [GrpObj A] [IsCommMonObj A] |
| 25 | |
| 26 | omit [IsAlgClosed K] in |
| 27 | def groupConstant {T : Over (Spec (.of K))} (x : 𝟙_ (Over (Spec (.of K))) ⟶ A) : T ⟶ A := |
| 28 | toUnit T ≫ x |
| 29 | |
| 30 | omit [IsAlgClosed K] [GrpObj A] [IsCommMonObj A] in |
| 31 | theorem picardValue_constant (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A.left) {T : Over (Spec (.of K))} |
| 32 | (x : 𝟙_ (Over (Spec (.of K))) ⟶ A) : |
| 33 | Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (groupConstant A (T := T) x) = 1 := by |
| 34 | change AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass (T.hom ≫ x.left) (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L) = 1 |
| 35 | rw [AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass_comp] |
| 36 | have hx : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass x.left (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L) = |
| 37 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.trivialClass (Spec (.of K)) := |
| 38 | Quotient.sound (Quotients.FiniteDescent.LineTrivializationOf.Construction.LineTrivialization.pullback_trivial_over_field x.left L) |
| 39 | rw [hx, AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass_trivial] |
| 40 | rfl |
| 41 | |
| 42 | variable [IsProper A.hom] [Smooth A.hom] [GeometricallyConnected A.hom] |
| 43 | |
| 44 | theorem cube_identity_two_constants (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A.left) |
| 45 | (a b : 𝟙_ (Over (Spec (.of K))) ⟶ A) : |
| 46 | Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.cube A L (𝟙 A) (groupConstant A a) (groupConstant A b) = 1 := by |
| 47 | have : ConnectedSpace A.left := GeometricallyConnected.connectedSpace_of_subsingleton A.hom |
| 48 | have : IsIntegral A.left := ArithmeticGeometry.Models.SpreadingOut.SmoothGeometricIntegrality.Construction.smooth_connected_scheme_integral A.hom |
| 49 | have : GeometricallyIrreducible A.hom := |
| 50 | ArithmeticGeometry.Models.SpreadingOut.SmoothGeometricIntegrality.Construction.smooth_proper_geometricallyConnected_is_geometricallyIrreducible A.hom |
| 51 | have : GeometricallyReduced A.hom := Quotients.FiniteDescent.SchemeSmooth.Construction.SchemeSmoothReduced.geometricallyReduced_of_smooth A.hom |
| 52 | have : GeometricallyIntegral A.hom := |
| 53 | GeometricallyIntegral.of_geometricallyReduced_of_geometricallyIrreducible A.hom |
| 54 | let D := Quotients.FiniteDescent.ChowModificationModel.Construction.ChowModification.build A.hom |
| 55 | have : IsProper D.projection := D.proper |
| 56 | have : Surjective D.projection := D.surjective |
| 57 | have : IsProper (D.projection ≫ A.hom) := inferInstance |
| 58 | have : GeometricallyIntegral (D.projection ≫ A.hom) := D.geometricallyIntegral A.hom |
| 59 | let Z := Over.mk (D.projection ≫ A.hom) |
| 60 | have : IsProper Z.hom := inferInstanceAs (IsProper (D.projection ≫ A.hom)) |
| 61 | have : GeometricallyIntegral Z.hom := D.geometricallyIntegral A.hom |
| 62 | let p : Z ⟶ A := Over.homMk D.projection rfl |
| 63 | have hp : Surjective p.left := D.surjective |
| 64 | have : LocallyOfFiniteType p.left := inferInstanceAs (LocallyOfFiniteType D.projection) |
| 65 | obtain ⟨z₀, hz₀⟩ := IsogenyQuotient.Geometric.Points.Construction.surjective_on_geometric_points p K (𝟙 (Spec (.of K))) (MonObj.one (X := A)) |
| 66 | obtain ⟨za, hza⟩ := IsogenyQuotient.Geometric.Points.Construction.surjective_on_geometric_points p K (𝟙 (Spec (.of K))) a |
| 67 | have hzero : z₀.left ≫ D.projection = Quotients.FiniteDescent.CubeProductFrames.Construction.CubeProductCoordinates.origin A := congrArg Over.Hom.left hz₀ |
| 68 | have hmod := CubeProductLift.modifiedCube_trivial A Z.hom Z.hom D.sectionCover D.sectionCover |
| 69 | D.projection rfl D.projection rfl z₀.left z₀.w hzero z₀.left z₀.w hzero L |
| 70 | have hz := CubeProductLift.cube_eq_one_of_modifiedCube_trivial A Z.hom Z.hom |
| 71 | D.projection rfl D.projection rfl L hmod (𝟙 Z) (toUnit Z ≫ za) (groupConstant A (T := Z) b) |
| 72 | have hn (x : A.left) : IsIntegrallyClosed (A.left.presheaf.stalk x) := by |
| 73 | have := Quotients.FiniteDescent.SmoothStalk.Construction.SmoothStalkFactorial.stalk A.hom x |
| 74 | infer_instance |
| 75 | apply D.picard_injective hn |
| 76 | rw [map_one] |
| 77 | change Quotients.FiniteDescent.PicardPullbackId.Construction.PicardPullback.map p.left |
| 78 | (Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.cube A L (𝟙 A) (groupConstant A a) (groupConstant A b)) = 1 |
| 79 | rw [Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.pullback A L p] |
| 80 | change za ≫ p = a at hza |
| 81 | change Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.cube A L (𝟙 Z ≫ p) ((toUnit Z ≫ za) ≫ p) (toUnit Z ≫ b) = 1 at hz |
| 82 | rw [Category.id_comp, Category.assoc, hza] at hz |
| 83 | simpa only [Category.comp_id, groupConstant, ← Category.assoc, comp_toUnit] using hz |
| 84 | |
| 85 | theorem translation_picard_square (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A.left) |
| 86 | (a : 𝟙_ (Over (Spec (.of K))) ⟶ A) : |
| 87 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (L.pullback (GrpObj.mulRight a).hom.left) * |
| 88 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (L.pullback (GrpObj.mulRight a⁻¹).hom.left) = |
| 89 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L ^ 2 := by |
| 90 | have hc := div_eq_one.mp (cube_identity_two_constants A L a a⁻¹) |
| 91 | have hi : groupConstant A (T := A) a⁻¹ = (groupConstant A a)⁻¹ := |
| 92 | GrpObj.comp_inv (toUnit A) a |
| 93 | have hid : Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (𝟙 A) = AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L := by |
| 94 | change AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass (𝟙 A.left) (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L) = AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf L |
| 95 | exact AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.pullbackClass_id _ |
| 96 | change Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (𝟙 A * groupConstant A a * groupConstant A a⁻¹) * |
| 97 | Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (𝟙 A) * Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (groupConstant A a) * |
| 98 | Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (groupConstant A a⁻¹) = |
| 99 | Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (𝟙 A * groupConstant A a) * |
| 100 | Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (𝟙 A * groupConstant A a⁻¹) * |
| 101 | Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value A L (groupConstant A a * groupConstant A a⁻¹) at hc |
| 102 | have hp : groupConstant A (T := A) a * groupConstant A a⁻¹ = 1 := by |
| 103 | rw [hi, mul_inv_cancel] |
| 104 | have ht : (𝟙 A : A ⟶ A) * groupConstant A a * groupConstant A a⁻¹ = 𝟙 A := by |
| 105 | rw [mul_assoc, hp, mul_one] |
| 106 | rw [picardValue_constant, picardValue_constant, ht, hp, |
| 107 | Quotients.FiniteDescent.CubePicardValue.Construction.CubePicardClass.value_one, hid, mul_one, mul_one, mul_one] at hc |
| 108 | exact hc.symm.trans (pow_two _).symm |
| 109 | |
| 110 | end |
| 111 | |
| 112 | /-! Constructing an ample line bundle on the actual proper smooth |
| 113 | connected group from affine section neighborhoods and translation squares. -/ |
| 114 | |
| 115 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 116 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 117 | open scoped _root_.CategoryTheory.MonObj |
| 118 | |
| 119 | variable {K : Type} [Field K] [IsAlgClosed K] |
| 120 | (A : Over (Spec (.of K))) [GrpObj A] [IsCommMonObj A] |
| 121 | [IsProper A.hom] [Smooth A.hom] [GeometricallyConnected A.hom] |
| 122 | |
| 123 | omit [Smooth A.hom] in |
| 124 | theorem exists_opposite_translates_mem (U : A.left.Opens) (hne : (U : Set A.left).Nonempty) |
| 125 | (x : 𝟙_ (Over (Spec (.of K))) ⟶ A) : |
| 126 | ∃ a : 𝟙_ (Over (Spec (.of K))) ⟶ A, |
| 127 | (GrpObj.mulRight a).hom.left (x.left (IsLocalRing.closedPoint K)) ∈ U ∧ |
| 128 | (GrpObj.mulRight a⁻¹).hom.left (x.left (IsLocalRing.closedPoint K)) ∈ U := by |
| 129 | have : IrreducibleSpace A.left := Quotients.FiniteDescent.GroupIrreducibleOf.Construction.GroupIrreducible.irreducibleSpace_of_connected_group A |
| 130 | have : JacobsonSpace A.left := LocallyOfFiniteType.jacobsonSpace A.hom |
| 131 | let α := Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.translate A x |
| 132 | let β : A.left ≅ A.left := (Over.forget (Spec (.of K))).mapIso (asIso (GrpObj.inv (X := A))) ≪≫ α |
| 133 | let V := α.hom ⁻¹ᵁ U |
| 134 | let W := β.hom ⁻¹ᵁ U |
| 135 | have hV : (Set.univ ∩ (V : Set A.left)).Nonempty := by |
| 136 | obtain ⟨y, hy⟩ := hne |
| 137 | exact ⟨α.inv y, trivial, by |
| 138 | change α.hom (α.inv y) ∈ U |
| 139 | rw [Scheme.inv_hom_apply] |
| 140 | exact hy⟩ |
| 141 | have hW : (Set.univ ∩ (W : Set A.left)).Nonempty := by |
| 142 | obtain ⟨y, hy⟩ := hne |
| 143 | exact ⟨β.inv y, trivial, by |
| 144 | change β.hom (β.inv y) ∈ U |
| 145 | rw [Scheme.inv_hom_apply] |
| 146 | exact hy⟩ |
| 147 | have hinter : ((V ⊓ W : A.left.Opens) : Set A.left).Nonempty := by |
| 148 | have h := (IrreducibleSpace.isIrreducible_univ A.left).2 V W V.isOpen W.isOpen hV hW |
| 149 | obtain ⟨z, _, hzV, hzW⟩ := h |
| 150 | exact ⟨z, hzV, hzW⟩ |
| 151 | obtain ⟨a₀, ha₀, hac⟩ := nonempty_inter_closedPoints hinter (V ⊓ W).isOpen.isLocallyClosed |
| 152 | let a : 𝟙_ (Over (Spec (.of K))) ⟶ A := |
| 153 | Over.homMk (pointOfClosedPoint A.hom a₀ hac) (pointOfClosedPoint_comp A.hom a₀ hac) |
| 154 | have ha : a.left (IsLocalRing.closedPoint K) = a₀ := pointOfClosedPoint_apply A.hom a₀ hac _ |
| 155 | have he₁ := congrArg (fun f : Spec (.of K) ⟶ A.left => f (IsLocalRing.closedPoint K)) |
| 156 | (Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.exchange A x a) |
| 157 | have he₂ := congrArg (fun f : Spec (.of K) ⟶ A.left => f (IsLocalRing.closedPoint K)) |
| 158 | (Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.exchange A x a⁻¹) |
| 159 | refine ⟨a, ?_, ?_⟩ |
| 160 | · change (Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.translate A a).hom (x.left (IsLocalRing.closedPoint K)) ∈ U |
| 161 | have he : (Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.translate A a).hom (x.left (IsLocalRing.closedPoint K)) = |
| 162 | α.hom a₀ := he₁.trans (congrArg α.hom ha) |
| 163 | exact he.symm ▸ ha₀.1 |
| 164 | · change (Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.translate A a⁻¹).hom (x.left (IsLocalRing.closedPoint K)) ∈ U |
| 165 | have he : (Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.translate A a⁻¹).hom (x.left (IsLocalRing.closedPoint K)) = |
| 166 | β.hom a₀ := he₂.trans (congrArg β.hom ha) |
| 167 | exact he.symm ▸ ha₀.2 |
| 168 | |
| 169 | theorem groupLineBundle_ample_of_affine_section (L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A.left) |
| 170 | (s : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left ⟶ L.sheaf) |
| 171 | (hne : (AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s : Set A.left).Nonempty) |
| 172 | (haff : IsAffineOpen (AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s)) : L.IsAmple := by |
| 173 | have : CompactSpace A.left := QuasiCompact.compactSpace_of_compactSpace A.hom |
| 174 | have : JacobsonSpace A.left := LocallyOfFiniteType.jacobsonSpace A.hom |
| 175 | have : A.left.IsSeparated := ⟨by rw [← terminal.comp_from A.hom]; infer_instance⟩ |
| 176 | apply L.isAmple_iff_tensorPower.mpr |
| 177 | refine ⟨isCompact_univ, fun x => ?_⟩ |
| 178 | obtain ⟨y, hy, hyc⟩ := nonempty_inter_closedPoints (Set.singleton_nonempty x).closure |
| 179 | isClosed_closure.isLocallyClosed |
| 180 | let yp : 𝟙_ (Over (Spec (.of K))) ⟶ A := |
| 181 | Over.homMk (pointOfClosedPoint A.hom y hyc) (pointOfClosedPoint_comp A.hom y hyc) |
| 182 | have hyp : yp.left (IsLocalRing.closedPoint K) = y := pointOfClosedPoint_apply A.hom y hyc _ |
| 183 | obtain ⟨a, hya, hyb⟩ := exists_opposite_translates_mem A (AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s) hne yp |
| 184 | rw [hyp] at hya hyb |
| 185 | let f := (GrpObj.mulRight a).hom.left |
| 186 | let g := (GrpObj.mulRight a⁻¹).hom.left |
| 187 | have : IsIso f := (Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.translate A a).isIso_hom |
| 188 | have : IsIso g := (Quotients.FiniteDescent.GroupAffine.Construction.GroupAffineNeighborhood.translate A a⁻¹).isIso_hom |
| 189 | let M := (L.pullback f).tensor (L.pullback g) |
| 190 | let t : AbelianModuli.HilbertConstruction.Line.Bundles.structureModule A.left ⟶ M.sheaf := |
| 191 | Quotients.FiniteDescent.BinaryTensorId.Construction.BinaryTensorMap.tensorSection (AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection f s) (AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection g s) |
| 192 | have ht : AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing t = f ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s ⊓ g ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s := |
| 193 | (Quotients.FiniteDescent.TensorSection.Construction.TensorSectionLocus.nonvanishing (L := L.pullback f) (M := L.pullback g) |
| 194 | (AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection f s) (AbelianModuli.HilbertConstruction.Ample.LineBundles.pullbackSection g s)).trans |
| 195 | (congrArg₂ (· ⊓ ·) (Quotients.FiniteDescent.SectionBase.Construction.SectionBaseChange.nonvanishing_pullback f L s) |
| 196 | (Quotients.FiniteDescent.SectionBase.Construction.SectionBaseChange.nonvanishing_pullback g L s)) |
| 197 | have hclass : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf M = AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (L.tensorPower 2) := |
| 198 | (translation_picard_square A L a).trans (Quotients.FiniteDescent.PicardPowersAdd.Construction.PicardPowers.class_pow L 2).symm |
| 199 | obtain ⟨e⟩ := Quotient.exact hclass |
| 200 | refine ⟨2, by decide, t ≫ e.hom, ?_, ?_⟩ |
| 201 | · rw [AbelianModuli.HilbertConstruction.Ample.Powers.sectionNonvanishing_comp_iso, ht] |
| 202 | apply (specializes_iff_mem_closure.mpr hy).mem_open |
| 203 | (f ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s ⊓ g ⁻¹ᵁ AbelianModuli.HilbertConstruction.Ample.LineBundles.sectionNonvanishing s).isOpen |
| 204 | exact ⟨hya, hyb⟩ |
| 205 | · rw [AbelianModuli.HilbertConstruction.Ample.Powers.sectionNonvanishing_comp_iso, ht] |
| 206 | exact (haff.preimage f).inf (haff.preimage g) |
| 207 | |
| 208 | theorem properGroup_exists_ample : ∃ L : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A.left, L.IsAmple := by |
| 209 | let x := (MonObj.one (X := A)).left (IsLocalRing.closedPoint K) |
| 210 | obtain ⟨L, s, hx, hs, _⟩ := Quotients.FiniteDescent.SymmetricAffine.Construction.SymmetricAffineSections.exists_for_group A x |
| 211 | exact ⟨L, groupLineBundle_ample_of_affine_section A L s ⟨x, hx⟩ hs⟩ |
| 212 | |
| 213 | def properGroupProjectivePresentation : AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.ProjectivePresentation A := |
| 214 | (properGroup_exists_ample A).choose_spec.projectivePresentation A.hom |
| 215 | |
| 216 | end |
| 217 | |
| 218 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.GroupAmple |