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.Embedded.TorsionCoefficientCoordinates |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.TorsionEvaluationRank |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Configuration.CokernelRelabeling |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.TorsionStableRankLift |
| 5 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.MatrixKernelGrassmannian |
| 6 | |
| 7 | /-! # Torsion Evaluation Rank -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.TorsionEvaluationRank |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! The actual high-torsion monomial matrix has flat cokernel of the |
| 14 | prescribed complementary rank over every noetherian coefficient ring. |
| 15 | The proof uses the actual saturated family and O(1) after localization, |
| 16 | then detects flatness and rank with the localized matrices. -/ |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 18 | universe u |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 22 | variable {g N n r : ℕ} {δ : Fin g → ℕ} [NeZero n] {P : Polynomial ℚ} |
| 23 | variable (A : PolarizationData.PolarizedAbelianWithFullLevel g δ N (Spec (.of R))) |
| 24 | variable (I : SaturatedFlatIdeals.SaturatedFlatHilbertIdeal R r P) |
| 25 | variable (e : A.abelian.scheme ≅ Projective.EmbeddingBaseChange.homogeneousProjectiveFamily I.ideal) |
| 26 | variable (eL : ((ProjectiveTwisting.Bundle.projectiveTwistingBundle I.ideal 1).pullback e.hom.left).sheaf ≅ |
| 27 | (A.graphBundle.tensorPower (2 * Graph.EmbeddingNumerics.graphSquareSectionRank g δ)).sheaf) |
| 28 | variable (hg : 0 < g) (hδ : ∀ j, 0 < δ j) (hN : 3 ≤ N) |
| 29 | variable (hunit : IsUnit (N : Γ(Spec (.of R), ⊤))) |
| 30 | variable (level : A.abelian.FullLevel n) (D : ℕ) (hD : 0 < D) |
| 31 | variable (hdegree : HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} r P ≤ D) |
| 32 | variable (hlarge : Bounded.GraphTorsionSectionDetection.boundedGraphTorsionDegree g δ D < n ^ 2) |
| 33 | variable (w : Multiplicative (Fin (2 * g) → ZMod n) → Fin (r + 1) → R) |
| 34 | variable (i : Multiplicative (Fin (2 * g) → ZMod n) → Fin (r + 1)) (hi : ∀ c, w c (i c) = 1) |
| 35 | variable (hw : ∀ c, (A.abelian.fullLevelGlobalSection level c ≫ e.hom.left) ≫ HilbertScheme.Presentations.Projective.Quotient.GradedHilbert.projectiveQuotientInclusion I.ideal = |
| 36 | AffineProjective.CoordinateMaps.affineProjectiveCoordinateMap (.of R) R (w c) (i c) (hi c)) |
| 37 | |
| 38 | include A I e eL hg hδ hN hunit level hD hdegree hlarge i hi hw |
| 39 | |
| 40 | theorem auxiliaryTorsionMonomialMatrix_localCoefficient_flatRank |
| 41 | (C : Type u) [CommRing C] [IsNoetherianRing C] [IsLocalRing C] (φ : R →+* C) : |
| 42 | Module.Flat C ((Multiplicative (Fin (2 * g) → ZMod n) → C) ⧸ |
| 43 | (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix (fun c j => φ (w c j)) D)).range) ∧ |
| 44 | ∀ p : PrimeSpectrum C, Module.rankAtStalk (R := C) |
| 45 | ((Multiplicative (Fin (2 * g) → ZMod n) → C) ⧸ |
| 46 | (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix (fun c j => φ (w c j)) D)).range) p + |
| 47 | (P.eval (D : ℚ)).num.toNat = n ^ (2 * g) := by |
| 48 | let f := Spec.map (CommRingCat.ofHom φ) |
| 49 | have hunitC : IsUnit (N : Γ(Spec (.of C), ⊤)) := by |
| 50 | simpa only [map_natCast] using hunit.map f.appTop.hom |
| 51 | exact Local.TorsionEvaluationRank.localAuxiliaryTorsionMonomialMatrix_flatRank (A.pullback f) (I.coefficientChange φ) |
| 52 | (Embedded.PolarizedCoefficientChange.embeddedCoefficientChangeIso A I e φ) (Embedded.PolarizedCoefficientChange.embeddedCoefficientChangeTwistingIso A I e φ eL) |
| 53 | hg hδ hN hunitC (level.pullback f) D hD hdegree hlarge (fun c j => φ (w c j)) i |
| 54 | (fun c => (congrArg φ (hi c)).trans φ.map_one) |
| 55 | (fun c => Embedded.TorsionCoefficientCoordinates.embeddedTorsionCoefficientChange_coordinates A I e level φ c (w c) (i c) (hi c) (hw c)) |
| 56 | |
| 57 | theorem noetherianAuxiliaryTorsionMonomialMatrix_flatRank : |
| 58 | Module.Flat R ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ |
| 59 | (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix w D)).range) ∧ |
| 60 | ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) |
| 61 | ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ |
| 62 | (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix w D)).range) p + |
| 63 | (P.eval (D : ℚ)).num.toNat = n ^ (2 * g) := by |
| 64 | let ℓ := Local.TorsionStableRankLift.liftedFullLevelLabelEnumeration (g := g) (n := n) |
| 65 | let v := fun c => w (ℓ c) |
| 66 | let F := Configuration.MonomialMatrix.configurationMonomialMatrix v D |
| 67 | have hF : Module.Flat R ((ULift.{u} (Fin (n ^ (2 * g))) → R) ⧸ (Matrix.toLin' F).range) ∧ |
| 68 | ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) |
| 69 | ((ULift.{u} (Fin (n ^ (2 * g))) → R) ⧸ (Matrix.toLin' F).range) p + |
| 70 | (P.eval (D : ℚ)).num.toNat = Fintype.card (ULift.{u} (Fin (n ^ (2 * g)))) := by |
| 71 | apply (HilbertConstruction.Matrix.CokernelLocalization.matrixCokernel_flatRank_iff_localizations F (P.eval (D : ℚ)).num.toNat).mpr |
| 72 | intro p |
| 73 | let C := Localization.AtPrime p.asIdeal |
| 74 | let φ := algebraMap R C |
| 75 | have h := auxiliaryTorsionMonomialMatrix_localCoefficient_flatRank A I e eL hg hδ hN hunit |
| 76 | level D hD hdegree hlarge w i hi hw C φ |
| 77 | have he := (Configuration.CokernelRelabeling.configurationMonomialMatrix_flatRank_relabel_iff |
| 78 | (fun c j => φ (w c j)) D (P.eval (D : ℚ)).num.toNat (n ^ (2 * g)) ℓ).mpr h |
| 79 | have hmap : F.map φ = Configuration.MonomialMatrix.configurationMonomialMatrix (fun c j => φ (w (ℓ c) j)) D := |
| 80 | Configuration.MonomialMatrix.configurationMonomialMatrix_map φ v |
| 81 | rw [hmap] |
| 82 | have := HilbertConstruction.Flat.MatrixKernelGrassmannian.matrixCokernel_projective_of_flat |
| 83 | (Configuration.MonomialMatrix.configurationMonomialMatrix (fun c j => φ (w (ℓ c) j)) D) he.1 |
| 84 | have : Module.Free C ((ULift.{u} (Fin (n ^ (2 * g))) → C) ⧸ |
| 85 | (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix (fun c j => φ (w (ℓ c) j)) D)).range) := |
| 86 | Module.free_of_flat_of_isLocalRing |
| 87 | refine ⟨he.1, ?_⟩ |
| 88 | simpa [Module.rankAtStalk_eq_finrank_of_free] using |
| 89 | he.2 (IsLocalRing.closedPoint C) |
| 90 | apply (Configuration.CokernelRelabeling.configurationMonomialMatrix_flatRank_relabel_iff w D (P.eval (D : ℚ)).num.toNat (n ^ (2 * g)) ℓ).mp |
| 91 | simpa only [Fintype.card_ulift, Fintype.card_fin] using hF |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Noetherian.TorsionEvaluationRank |