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.Polynomial.CoordinateChangeEvaluation |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Configuration.EvaluationInvariance |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Configuration.CokernelRelabeling |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Unit.RowLinearEquivalence |
| 5 | |
| 6 | /-! # Frame Rank Invariance -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Configuration.FrameRankInvariance |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Common invertible projective-coordinate changes and independent |
| 13 | unit rescalings of rows preserve the actual flat-cokernel rank |
| 14 | condition. The homogeneous relation kernel transforms by the |
| 15 | explicit polynomial-degree substitution. -/ |
| 16 | universe u v |
| 17 | variable {R : Type u} [CommRing R] {ι : Type v} {n : ℕ} |
| 18 | variable (w : ι → Fin (n + 1) → R) (d : ℕ) |
| 19 | variable (T : (Fin (n + 1) → R) ≃ₗ[R] (Fin (n + 1) → R)) (s : ι → Rˣ) |
| 20 | |
| 21 | theorem homogeneousConfigurationEvaluation_range_linearCoordinates : |
| 22 | (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation (fun c => T (w c)) d).range = |
| 23 | (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation w d).range := by |
| 24 | rw [Polynomial.CoordinateChangeEvaluation.homogeneousConfigurationEvaluation_linearCoordinates] |
| 25 | ext y |
| 26 | constructor |
| 27 | · rintro ⟨x, rfl⟩ |
| 28 | exact ⟨Polynomial.CoordinateChangeEvaluation.pointCoordinatePolynomialDegreeEquiv T d x, rfl⟩ |
| 29 | · rintro ⟨x, rfl⟩ |
| 30 | refine ⟨(Polynomial.CoordinateChangeEvaluation.pointCoordinatePolynomialDegreeEquiv T d).symm x, ?_⟩ |
| 31 | change Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation w d |
| 32 | (Polynomial.CoordinateChangeEvaluation.pointCoordinatePolynomialDegreeEquiv T d ((Polynomial.CoordinateChangeEvaluation.pointCoordinatePolynomialDegreeEquiv T d).symm x)) = _ |
| 33 | rw [LinearEquiv.apply_symm_apply] |
| 34 | |
| 35 | theorem homogeneousConfigurationEvaluation_kernel_frameChange : |
| 36 | (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation (fun c j => (s c : R) * T (w c) j) d).ker = |
| 37 | (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation w d).ker.comap (Polynomial.CoordinateChangeEvaluation.pointCoordinatePolynomialDegreeEquiv T d).toLinearMap := by |
| 38 | rw [EvaluationInvariance.homogeneousConfigurationEvaluation_kernel_rowUnits, |
| 39 | Polynomial.CoordinateChangeEvaluation.homogeneousConfigurationEvaluation_linearCoordinates, LinearMap.ker_comp] |
| 40 | |
| 41 | def configurationEvaluationCokernelFrameEquiv : |
| 42 | ((ι → R) ⧸ (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation w d).range) ≃ₗ[R] |
| 43 | ((ι → R) ⧸ (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation (fun c j => (s c : R) * T (w c) j) d).range) := |
| 44 | (Submodule.quotEquivOfEq _ _ (homogeneousConfigurationEvaluation_range_linearCoordinates w d T).symm).trans |
| 45 | (CokernelRelabeling.linearCokernelCodomainEquiv (Unit.RowLinearEquivalence.unitRowLinearEquiv (fun c => (s c) ^ d)) |
| 46 | (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation (fun c => T (w c)) d) |
| 47 | (Homogeneous.ConfigurationEvaluation.homogeneousConfigurationEvaluation (fun c j => (s c : R) * T (w c) j) d) (by |
| 48 | apply LinearMap.ext |
| 49 | intro p |
| 50 | funext c |
| 51 | exact (EvaluationInvariance.homogeneousConfigurationEvaluation_rowScale (fun c => T (w c)) (fun c => (s c : R)) p c).symm)) |
| 52 | |
| 53 | variable [Fintype ι] [DecidableEq ι] |
| 54 | |
| 55 | def configurationMatrixCokernelFrameEquiv : |
| 56 | ((ι → R) ⧸ (Matrix.toLin' (MonomialMatrix.configurationMonomialMatrix w d)).range) ≃ₗ[R] |
| 57 | ((ι → R) ⧸ (Matrix.toLin' (MonomialMatrix.configurationMonomialMatrix (fun c j => (s c : R) * T (w c) j) d)).range) := |
| 58 | (Submodule.quotEquivOfEq _ _ (MonomialMatrix.configurationMonomialMatrix_range w)).trans |
| 59 | ((configurationEvaluationCokernelFrameEquiv w d T s).trans |
| 60 | (Submodule.quotEquivOfEq _ _ |
| 61 | (MonomialMatrix.configurationMonomialMatrix_range (fun c j => (s c : R) * T (w c) j)).symm)) |
| 62 | |
| 63 | theorem configurationMonomialMatrix_flatRank_frameChange_iff (k m : ℕ) : |
| 64 | (Module.Flat R ((ι → R) ⧸ |
| 65 | (Matrix.toLin' (MonomialMatrix.configurationMonomialMatrix (fun c j => (s c : R) * T (w c) j) d)).range) ∧ |
| 66 | ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) |
| 67 | ((ι → R) ⧸ (Matrix.toLin' (MonomialMatrix.configurationMonomialMatrix (fun c j => (s c : R) * T (w c) j) d)).range) p + k = m) ↔ |
| 68 | (Module.Flat R ((ι → R) ⧸ (Matrix.toLin' (MonomialMatrix.configurationMonomialMatrix w d)).range) ∧ |
| 69 | ∀ p : PrimeSpectrum R, Module.rankAtStalk (R := R) |
| 70 | ((ι → R) ⧸ (Matrix.toLin' (MonomialMatrix.configurationMonomialMatrix w d)).range) p + k = m) := by |
| 71 | let E := configurationMatrixCokernelFrameEquiv w d T s |
| 72 | have h := Module.rankAtStalk_eq_of_equiv E |
| 73 | constructor |
| 74 | · rintro ⟨hflat, hrank⟩ |
| 75 | let := hflat |
| 76 | refine ⟨Module.Flat.of_linearEquiv E, fun p => ?_⟩ |
| 77 | rw [congrFun h p] |
| 78 | exact hrank p |
| 79 | · rintro ⟨hflat, hrank⟩ |
| 80 | let := hflat |
| 81 | refine ⟨Module.Flat.of_linearEquiv E.symm, fun p => ?_⟩ |
| 82 | rw [← congrFun h p] |
| 83 | exact hrank p |
| 84 | |
| 85 | end |
| 86 | |
| 87 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Configuration.FrameRankInvariance |