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.Local.TorsionEvaluationCokernel |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.TorsionConfigurationEvaluationKernel |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Configuration.MonomialMatrix |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.ProjectiveQuotientRank |
| 5 | |
| 6 | /-! # Torsion Evaluation Rank -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.TorsionEvaluationRank |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The exact monomial evaluation matrix of a normalized high-torsion |
| 13 | configuration has flat cokernel of rank label-count minus Hilbert rank |
| 14 | over every noetherian local ring, including nonreduced local rings. -/ |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open scoped Classical |
| 17 | universe u |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] [IsLocalRing R] |
| 21 | variable {g N n r : ℕ} {δ : Fin g → ℕ} [NeZero n] {P : Polynomial ℚ} |
| 22 | variable (A : PolarizationData.PolarizedAbelianWithFullLevel g δ N (Spec (.of R))) |
| 23 | variable (I : SaturatedFlatIdeals.SaturatedFlatHilbertIdeal R r P) |
| 24 | variable (e : A.abelian.scheme ≅ HilbertConstruction.Projective.EmbeddingBaseChange.homogeneousProjectiveFamily I.ideal) |
| 25 | variable (eL : ((ProjectiveTwisting.Bundle.projectiveTwistingBundle I.ideal 1).pullback e.hom.left).sheaf ≅ |
| 26 | (A.graphBundle.tensorPower (2 * Graph.EmbeddingNumerics.graphSquareSectionRank g δ)).sheaf) |
| 27 | variable (hg : 0 < g) (hδ : ∀ j, 0 < δ j) (hN : 3 ≤ N) |
| 28 | variable (hunit : IsUnit (N : Γ(Spec (.of R), ⊤))) |
| 29 | variable (level : A.abelian.FullLevel n) (D : ℕ) (hD : 0 < D) |
| 30 | variable (hdegree : HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree.{u} r P ≤ D) |
| 31 | variable (hlarge : Bounded.GraphTorsionSectionDetection.boundedGraphTorsionDegree g δ D < n ^ 2) |
| 32 | variable (w : Multiplicative (Fin (2 * g) → ZMod n) → Fin (r + 1) → R) |
| 33 | variable (i : Multiplicative (Fin (2 * g) → ZMod n) → Fin (r + 1)) (hi : ∀ c, w c (i c) = 1) |
| 34 | variable (hw : ∀ c, (A.abelian.fullLevelGlobalSection level c ≫ e.hom.left) ≫ HilbertScheme.Presentations.Projective.Quotient.GradedHilbert.projectiveQuotientInclusion I.ideal = |
| 35 | AffineProjective.CoordinateMaps.affineProjectiveCoordinateMap (.of R) R (w c) (i c) (hi c)) |
| 36 | |
| 37 | include A I e eL hg hδ hN hunit level hD hdegree hlarge i hi hw |
| 38 | |
| 39 | theorem localAuxiliaryTorsionEvaluation_flatRank : |
| 40 | Module.Flat R ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ |
| 41 | (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation w D).range) ∧ |
| 42 | ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) |
| 43 | ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation w D).range) p + |
| 44 | (P.eval (D : ℚ)).num.toNat = n ^ (2 * g) := by |
| 45 | let F := Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation w D |
| 46 | have hk : F.ker = HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.degreeRelations I.ideal.toIdeal D := |
| 47 | TorsionConfigurationEvaluationKernel.auxiliaryTorsionConfiguration_evaluation_kernel A I e eL hg hδ hN hunit |
| 48 | level D hD hlarge w i hi hw |
| 49 | have : Module.Projective R (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.ideal.toIdeal D) := |
| 50 | HilbertScheme.Presentations.Uniform.SaturatedCoordinates.GradedHilbert.uniform_saturated_coordinate_projective I.ideal I.saturated P I.hilbert D |
| 51 | ((le_max_left _ _).trans hdegree) |
| 52 | have : Module.Free R (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.ideal.toIdeal D) := Module.free_of_flat_of_isLocalRing |
| 53 | have hQ : Module.finrank R (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.ideal.toIdeal D) = (P.eval (D : ℚ)).num.toNat := by |
| 54 | have h := HilbertScheme.Presentations.Uniform.FamilyCoordinates.GradedHilbert.uniformHilbertFamilyDegree_rankAtStalk I.ideal I.saturated P I.hilbert |
| 55 | D hdegree (IsLocalRing.closedPoint R) |
| 56 | rwa [Module.rankAtStalk_eq_finrank_of_free] at h |
| 57 | have hr : Module.finrank R F.range = (P.eval (D : ℚ)).num.toNat := by |
| 58 | calc |
| 59 | _ = Module.finrank R ((HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.grading R r D) ⧸ F.ker) := F.quotKerEquivRange.finrank_eq.symm |
| 60 | _ = Module.finrank R (HilbertScheme.Presentations.Hilbert.Polynomial.GradedHilbert.DegreeQuotient I.ideal.toIdeal D) := by rw [hk] |
| 61 | _ = _ := hQ |
| 62 | have : Module.Projective R ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ F.range) := |
| 63 | TorsionEvaluationCokernel.localAuxiliaryTorsionEvaluation_projective_cokernel A I e eL hg hδ hN hunit |
| 64 | level D hD ((le_max_left _ _).trans hdegree) hlarge w i hi hw |
| 65 | have : Module.Free R ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ F.range) := |
| 66 | Module.free_of_flat_of_isLocalRing |
| 67 | have hfin : Module.finrank R ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ F.range) + |
| 68 | (P.eval (D : ℚ)).num.toNat = n ^ (2 * g) := by |
| 69 | have h := ProjectiveQuotientRank.localProjectiveQuotient_finrank_add F.range |
| 70 | rw [hr, Module.finrank_fintype_fun_eq_card] at h |
| 71 | simpa using h |
| 72 | refine ⟨inferInstance, fun p => ?_⟩ |
| 73 | rw [Module.rankAtStalk_eq_finrank_of_free] |
| 74 | exact hfin |
| 75 | |
| 76 | theorem localAuxiliaryTorsionMonomialMatrix_flatRank : |
| 77 | Module.Flat R ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ |
| 78 | (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix w D)).range) ∧ |
| 79 | ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) |
| 80 | ((Multiplicative (Fin (2 * g) → ZMod n) → R) ⧸ (Matrix.toLin' (Configuration.MonomialMatrix.configurationMonomialMatrix w D)).range) p + |
| 81 | (P.eval (D : ℚ)).num.toNat = n ^ (2 * g) := by |
| 82 | rw [Configuration.MonomialMatrix.configurationMonomialMatrix_range] |
| 83 | exact localAuxiliaryTorsionEvaluation_flatRank A I e eL hg hδ hN hunit |
| 84 | level D hD hdegree hlarge w i hi hw |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Local.TorsionEvaluationRank |