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.PointProjectiveCoefficientNaturality |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ProjectiveFrame.PointNormalization |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RelativeProjective.TwistingSectionsFinite |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.PresentedGroupCoordinateTransport |
| 5 | |
| 6 | /-! # Relative Coordinate Transport -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.RelativeCoordinateTransport |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Affine coordinate changes agree with the original relative projective |
| 13 | coordinate changes after the actual spectrum/global-sections comparison. |
| 14 | Thus their action on O(1), bounded group graphs, and ordered projective |
| 15 | points uses the original relative projective space. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | universe u v |
| 19 | |
| 20 | private theorem pointCoordinateBaseChangeEquiv_ringEquiv_cancel |
| 21 | {R A : Type u} [CommRing R] [CommRing A] {ι : Type v} [Fintype ι] [DecidableEq ι] |
| 22 | (c : R ≃+* A) (T : (ι → R) ≃ₗ[R] (ι → R)) : |
| 23 | PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.symm.toRingHom (PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.toRingHom T) = T := by |
| 24 | apply LinearEquiv.ext |
| 25 | intro x |
| 26 | calc |
| 27 | _ = PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.symm.toRingHom |
| 28 | (PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.toRingHom T) (fun i => c.symm (c (x i))) := |
| 29 | congrArg (PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.symm.toRingHom |
| 30 | (PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.toRingHom T)) |
| 31 | (funext fun i => (c.symm_apply_apply (x i)).symm) |
| 32 | _ = fun i => c.symm (PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.toRingHom T (fun j => c (x j)) i) := |
| 33 | PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv_apply_map c.symm.toRingHom _ _ |
| 34 | _ = fun i => c.symm (c (T x i)) := |
| 35 | congrArg (fun y i => c.symm (y i)) (PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv_apply_map c.toRingHom T x) |
| 36 | _ = T x := funext fun i => c.symm_apply_apply _ |
| 37 | |
| 38 | variable {C : Type u} [CommRing C] {n : ℕ} |
| 39 | |
| 40 | def affinePointCoordinateRelativeIso |
| 41 | (T : (Fin (n + 1) → C) ≃ₗ[C] (Fin (n + 1) → C)) : |
| 42 | Projective.ProjectivePresentations.projectiveSpaceOver (Spec (.of C)) n ≅ Projective.ProjectivePresentations.projectiveSpaceOver (Spec (.of C)) n := |
| 43 | Relative.LinearCoordinateIsomorphism.relativeLinearCoordinateIso n (Spec (.of C)) |
| 44 | (Dual.CoordinateTransform.pointCoordinateCoefficientTransform |
| 45 | (PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv (Scheme.ΓSpecIso (.of C)).inv.hom T)).symm |
| 46 | |
| 47 | theorem affinePointCoordinateRelativeIso_chart |
| 48 | (T : (Fin (n + 1) → C) ≃ₗ[C] (Fin (n + 1) → C)) : |
| 49 | (PointCoordinateProjectiveAction.pointCoordinateProjectiveIso T).hom ≫ (RelativeProjective.TwistingSectionsFinite.identityAffineProjectiveChartIso (R := C) (n := n)).hom = |
| 50 | (RelativeProjective.TwistingSectionsFinite.identityAffineProjectiveChartIso (R := C) (n := n)).hom ≫ (affinePointCoordinateRelativeIso T).hom := by |
| 51 | let c := (Scheme.ΓSpecIso (.of C)).symm.commRingCatIsoToRingEquiv |
| 52 | let V := PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.toRingHom T |
| 53 | let q := RelativeProjective.TwistingSectionsFinite.identityAffineProjectiveChartIso (R := C) (n := n) |
| 54 | let a := affinePointCoordinateRelativeIso T |
| 55 | let p := RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection (Spec (.of C)) n |
| 56 | have hV : PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c.symm.toRingHom V = T := |
| 57 | pointCoordinateBaseChangeEquiv_ringEquiv_cancel c T |
| 58 | have hN := PointProjectiveCoefficientNaturality.pointCoordinateProjectiveIso_coefficient_natural c.symm.toRingHom V |
| 59 | rw [hV] at hN |
| 60 | have hq : q.hom.left ≫ p = Projective.CoefficientFunctoriality.polynomialProjectiveMap (Scheme.ΓSpecIso (.of C)).hom n := by |
| 61 | change AffineProjective.Charts.affineProjectiveChartMap (𝟙 (Spec (.of C))) n ≫ |
| 62 | Limits.pullback.fst (Projective.ProjectivePresentations.affineProjectiveSpace Γ(Spec (.of C), ⊤) n).hom |
| 63 | (Spec (.of C)).toSpecΓ = _ |
| 64 | simpa only [AffineProjective.Charts.affinePointCoefficients, Scheme.Hom.id_appTop, Category.id_comp] using |
| 65 | (AffineProjective.Charts.affineProjectiveChartMap_fst (𝟙 (Spec (.of C))) n) |
| 66 | have ha : a.hom.left ≫ p = p ≫ (PointCoordinateProjectiveAction.pointCoordinateProjectiveIso V).hom.left := |
| 67 | Pullback.Comparisons.overPullback_map_left_fst (PointCoordinateProjectiveAction.pointCoordinateProjectiveIso V).hom (Spec (.of C)).toSpecΓ |
| 68 | apply Over.OverMorphism.ext |
| 69 | apply (RelativeProjective.BaseMaps.relativeProjectiveCoefficientProjection_isPullback (Spec (.of C)) n).hom_ext |
| 70 | · change ((PointCoordinateProjectiveAction.pointCoordinateProjectiveIso T).hom.left ≫ q.hom.left) ≫ p = |
| 71 | (q.hom.left ≫ a.hom.left) ≫ p |
| 72 | calc |
| 73 | _ = (PointCoordinateProjectiveAction.pointCoordinateProjectiveIso T).hom.left ≫ |
| 74 | Projective.CoefficientFunctoriality.polynomialProjectiveMap (Scheme.ΓSpecIso (.of C)).hom n := by rw [Category.assoc, hq] |
| 75 | _ = Projective.CoefficientFunctoriality.polynomialProjectiveMap (Scheme.ΓSpecIso (.of C)).hom n ≫ |
| 76 | (PointCoordinateProjectiveAction.pointCoordinateProjectiveIso V).hom.left := hN |
| 77 | _ = (q.hom.left ≫ a.hom.left) ≫ p := by |
| 78 | rw [Category.assoc, ha, ← Category.assoc, hq] |
| 79 | · exact ((PointCoordinateProjectiveAction.pointCoordinateProjectiveIso T).hom ≫ q.hom).w.trans (q.hom ≫ a.hom).w.symm |
| 80 | |
| 81 | variable {ι : Type v} (v w : ι → Fin (n + 1) → C) (h : Configuration.ProjectiveTransport.ConfigurationFrameRelated v w) |
| 82 | |
| 83 | def affineConfigurationRelativeIso : |
| 84 | Projective.ProjectivePresentations.projectiveSpaceOver (Spec (.of C)) n ≅ Projective.ProjectivePresentations.projectiveSpaceOver (Spec (.of C)) n := |
| 85 | affinePointCoordinateRelativeIso h.choose |
| 86 | |
| 87 | theorem affineConfigurationRelativeIso_chart : |
| 88 | (Configuration.ProjectiveTransport.configurationProjectiveTransport v w h).hom ≫ (RelativeProjective.TwistingSectionsFinite.identityAffineProjectiveChartIso (R := C) (n := n)).hom = |
| 89 | (RelativeProjective.TwistingSectionsFinite.identityAffineProjectiveChartIso (R := C) (n := n)).hom ≫ (affineConfigurationRelativeIso v w h).hom := |
| 90 | affinePointCoordinateRelativeIso_chart h.choose |
| 91 | |
| 92 | theorem affineConfigurationRelativeIso_point (z : ι) |
| 93 | (hv : ∀ x : Spec (.of C), ∃ i, |
| 94 | x ∈ (Spec (.of C)).basicOpen ((Scheme.ΓSpecIso (.of C)).inv (v z i))) |
| 95 | (hw : ∀ x : Spec (.of C), ∃ i, |
| 96 | x ∈ (Spec (.of C)).basicOpen ((Scheme.ΓSpecIso (.of C)).inv (w z i))) : |
| 97 | Family.SectionProjectiveCoordinates.scalarCoordinateProjectivePoint (fun i => (Scheme.ΓSpecIso (.of C)).inv (v z i)) hv ≫ |
| 98 | (affineConfigurationRelativeIso v w h).hom = |
| 99 | Family.SectionProjectiveCoordinates.scalarCoordinateProjectivePoint (fun i => (Scheme.ΓSpecIso (.of C)).inv (w z i)) hw := by |
| 100 | let S := Spec (.of C) |
| 101 | let c := (Scheme.ΓSpecIso (.of C)).inv.hom |
| 102 | let V := PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c h.choose |
| 103 | let u := Units.map c.toMonoidHom (h.choose_spec.choose z) |
| 104 | let vz := fun i => c (v z i) |
| 105 | let wz := fun i => c (w z i) |
| 106 | have hc (i : Fin (n + 1)) : wz i = (u : Γ(S, ⊤)) * V vz i := by |
| 107 | change c (w z i) = c (h.choose_spec.choose z) * |
| 108 | PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv c h.choose (fun j => c (v z j)) i |
| 109 | rw [PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv_apply_map] |
| 110 | exact (congrArg c (congrFun (h.choose_spec.choose_spec z) i)).trans (map_mul c _ _) |
| 111 | have hV : ∀ x : S, ∃ i, x ∈ S.basicOpen (V vz i) := by |
| 112 | intro x |
| 113 | obtain ⟨i, hi⟩ := hw x |
| 114 | change x ∈ S.basicOpen (wz i) at hi |
| 115 | rw [hc i, S.basicOpen_mul] at hi |
| 116 | exact ⟨i, hi.2⟩ |
| 117 | change Family.SectionProjectiveCoordinates.scalarCoordinateProjectivePoint vz hv ≫ |
| 118 | (Relative.LinearCoordinateIsomorphism.relativeLinearCoordinateIso n S (Dual.CoordinateTransform.pointCoordinateCoefficientTransform V).symm).hom = |
| 119 | Family.SectionProjectiveCoordinates.scalarCoordinateProjectivePoint wz hw |
| 120 | exact (Scalar.ProjectiveCoordinateAction.scalarCoordinateProjectivePoint_linear_action S vz V hv hV).trans |
| 121 | (ProjectiveFrame.PointNormalization.scalarCoordinateProjectivePoint_eq_of_unit_mul S wz (V vz) u hc hw hV).symm |
| 122 | |
| 123 | variable {X Y : Over (Spec (.of C))} |
| 124 | (i : X ⟶ Projective.ProjectivePresentations.projectiveSpaceOver (Spec (.of C)) n) |
| 125 | (j : Y ⟶ Projective.ProjectivePresentations.projectiveSpaceOver (Spec (.of C)) n) |
| 126 | [IsClosedImmersion i.left] [IsClosedImmersion j.left] (e : X ≅ Y) |
| 127 | (he : e.hom ≫ j ≫ (RelativeProjective.TwistingSectionsFinite.identityAffineProjectiveChartIso (R := C) (n := n)).inv = |
| 128 | i ≫ (RelativeProjective.TwistingSectionsFinite.identityAffineProjectiveChartIso (R := C) (n := n)).inv ≫ |
| 129 | (Configuration.ProjectiveTransport.configurationProjectiveTransport v w h).hom) |
| 130 | |
| 131 | include he |
| 132 | |
| 133 | omit [IsClosedImmersion (Over.Hom.left i)] [IsClosedImmersion (Over.Hom.left j)] in |
| 134 | theorem affineConfigurationRelativeIso_embedding : |
| 135 | e.hom ≫ j = i ≫ (affineConfigurationRelativeIso v w h).hom := by |
| 136 | let q := RelativeProjective.TwistingSectionsFinite.identityAffineProjectiveChartIso (R := C) (n := n) |
| 137 | have hq := affineConfigurationRelativeIso_chart v w h |
| 138 | have hi : q.inv ≫ (Configuration.ProjectiveTransport.configurationProjectiveTransport v w h).hom ≫ q.hom = |
| 139 | (affineConfigurationRelativeIso v w h).hom := by |
| 140 | rw [hq, q.inv_hom_id_assoc] |
| 141 | have H : (e.hom ≫ j ≫ q.inv) ≫ q.hom = |
| 142 | (i ≫ q.inv ≫ (Configuration.ProjectiveTransport.configurationProjectiveTransport v w h).hom) ≫ q.hom := |
| 143 | congrArg (fun f : X ⟶ Projective.ProjectivePresentations.affineProjectiveSpace C n => f ≫ q.hom) he |
| 144 | simpa only [Category.assoc, q.inv_hom_id, Category.comp_id, hi] using H |
| 145 | |
| 146 | def affineConfigurationEmbeddingTwistingIso : |
| 147 | ((((RelativeProjective.TwistingBundle.relativeProjectiveTwistingBundle (Spec (.of C)) n).pullback j.left).pullback e.hom.left).sheaf) ≅ |
| 148 | ((RelativeProjective.TwistingBundle.relativeProjectiveTwistingBundle (Spec (.of C)) n).pullback i.left).sheaf := |
| 149 | PresentedGroupCoordinateTransport.projectiveEmbeddingCoordinateTwistingIso i j e |
| 150 | (Dual.CoordinateTransform.pointCoordinateCoefficientTransform |
| 151 | (PointCoordinateCoefficientChange.pointCoordinateBaseChangeEquiv (Scheme.ΓSpecIso (.of C)).inv.hom h.choose)).symm |
| 152 | (affineConfigurationRelativeIso_embedding v w h i j e he) |
| 153 | |
| 154 | variable [Flat X.hom] [LocallyOfFinitePresentation X.hom] [IsSeparated X.hom] |
| 155 | [Flat Y.hom] [LocallyOfFinitePresentation Y.hom] [IsSeparated Y.hom] |
| 156 | |
| 157 | theorem _root_.OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FamilyGroup.Operations.FamilyGroupOperations.ProjectiveGraphBounds.ofAffineConfiguration |
| 158 | (D : FamilyGroup.Operations.FamilyGroupOperations X) (Hm Hi : Polynomial ℚ) |
| 159 | (hD : D.ProjectiveGraphBounds (⟨n, i, inferInstance⟩ : Projective.ProjectivePresentations.ProjectivePresentation X) Hm Hi) : |
| 160 | (D.ofIso e).ProjectiveGraphBounds (⟨n, j, inferInstance⟩ : Projective.ProjectivePresentations.ProjectivePresentation Y) Hm Hi := |
| 161 | FamilyGroup.Operations.FamilyGroupOperations.ProjectiveGraphBounds.ofBundleIso |
| 162 | (⟨n, i, inferInstance⟩ : Projective.ProjectivePresentations.ProjectivePresentation X) |
| 163 | (⟨n, j, inferInstance⟩ : Projective.ProjectivePresentations.ProjectivePresentation Y) e |
| 164 | (affineConfigurationEmbeddingTwistingIso v w h i j e he) D Hm Hi hD |
| 165 | |
| 166 | end |
| 167 | |
| 168 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.RelativeCoordinateTransport |