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.Matrix.CokernelLocalization |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Matrix.FlatRankLocus |
| 3 | |
| 4 | /-! # Rank Affine Criterion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The represented matrix rank locus has the expected criterion on affine tests: flatness and constant rank of the actual coefficient-matrix cokernel. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry OAI.AlgebraicGeometry.HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {ι μ ν : Type u} [Fintype ι] [Fintype μ] [Fintype ν] |
| 17 | variable [DecidableEq ι] [DecidableEq μ] [DecidableEq ν] |
| 18 | |
| 19 | omit [Fintype μ] [Fintype ν] [DecidableEq μ] [DecidableEq ν] in |
| 20 | theorem matrixPivotCondition_ringEquiv {R T U : Type u} [CommRing R] [CommRing T] [CommRing U] |
| 21 | (A : Matrix ν μ R) (a : ι → μ) (b : ι → ν) (φ : R →+* T) (e : T ≃+* U) : |
| 22 | HilbertScheme.Presentations.MatrixPivot.Locus.Grassmannian.matrixPivotCondition (A.submatrix b a) (A.submatrix b id) (A.submatrix id a) A |
| 23 | (e.toRingHom.comp φ) ↔ |
| 24 | HilbertScheme.Presentations.MatrixPivot.Locus.Grassmannian.matrixPivotCondition (A.submatrix b a) (A.submatrix b id) (A.submatrix id a) A φ := by |
| 25 | simp only [HilbertScheme.Presentations.MatrixPivot.Locus.Grassmannian.matrixPivotCondition, RingHom.comp_apply, RingEquiv.toRingHom_eq_coe, |
| 26 | RingEquiv.coe_toRingHom, isUnit_map_iff] |
| 27 | exact and_congr_right (fun _ => forall_congr' (fun p => e.map_eq_zero_iff)) |
| 28 | |
| 29 | variable {S : Scheme.{u}} (M : Over S) (A : Matrix ν μ Γ(M.left, ⊤)) |
| 30 | variable (R : CommRingCat.{u}) {f : Spec R ⟶ S} (x : Over.mk f ⟶ M) |
| 31 | |
| 32 | def affineMatrixCoefficients : Matrix ν μ R := |
| 33 | A.map ((Scheme.ΓSpecIso R).hom.hom.comp x.left.appTop.hom) |
| 34 | |
| 35 | theorem affineMatrix_stalk_coefficients (p : PrimeSpectrum R) : |
| 36 | (Spec.stalkIso R p).hom.hom.comp |
| 37 | (((Spec R).presheaf.Γgerm p).hom.comp x.left.appTop.hom) = |
| 38 | (algebraMap R (Localization.AtPrime p.asIdeal)).comp |
| 39 | ((Scheme.ΓSpecIso R).hom.hom.comp x.left.appTop.hom) := by |
| 40 | ext s |
| 41 | exact ConcreteCategory.congr_hom (Spec.germ_stalkMapIso_hom (R := R) p) (x.left.appTop s) |
| 42 | |
| 43 | theorem matrixRank_affine_iff : |
| 44 | HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian.MatrixCokernelFlatRank (ι := ι) M A x ↔ |
| 45 | (Module.Flat R ((ν → R) ⧸ (Matrix.toLin' (affineMatrixCoefficients M A R x)).range) ∧ |
| 46 | ∀ p, Module.rankAtStalk (R := R) |
| 47 | ((ν → R) ⧸ (Matrix.toLin' (affineMatrixCoefficients M A R x)).range) p + |
| 48 | Fintype.card ι = Fintype.card ν) := by |
| 49 | rw [HilbertScheme.Presentations.Matrix.FlatRankLocus.Grassmannian.matrixCokernelFlatRank_iff_stalk, |
| 50 | CokernelLocalization.matrixCokernel_flatRank_iff_localizations] |
| 51 | apply forall_congr' |
| 52 | intro p |
| 53 | rw [HilbertScheme.Presentations.Local.FixedRankCokernel.Grassmannian.local_cokernel_flat_fixed_rank_iff (ι := ι)] |
| 54 | change (∃ ab : HilbertScheme.Presentations.MatrixPivot.Charts.Grassmannian.MatrixPivotIndex ι μ ν, |
| 55 | HilbertScheme.Presentations.MatrixPivot.Locus.Grassmannian.matrixPivotCondition (A.submatrix ab.2 ab.1) (A.submatrix ab.2 id) |
| 56 | (A.submatrix id ab.1) A (((Spec R).presheaf.Γgerm p).hom.comp x.left.appTop.hom)) ↔ _ |
| 57 | constructor |
| 58 | · rintro ⟨⟨a, b⟩, h⟩ |
| 59 | have he := (matrixPivotCondition_ringEquiv A a b _ |
| 60 | (Spec.stalkIso R p).commRingCatIsoToRingEquiv).mpr h |
| 61 | change HilbertScheme.Presentations.MatrixPivot.Locus.Grassmannian.matrixPivotCondition _ _ _ _ |
| 62 | ((Spec.stalkIso R p).hom.hom.comp (((Spec R).presheaf.Γgerm p).hom.comp x.left.appTop.hom)) at he |
| 63 | rw [affineMatrix_stalk_coefficients M R x p] at he |
| 64 | have hp := (HilbertScheme.Presentations.MatrixPivot.Condition.Grassmannian.fullMatrixPivotCondition_iff A a b _).mp he |
| 65 | exact ⟨a, b, hp⟩ |
| 66 | · rintro ⟨a, b, h⟩ |
| 67 | refine ⟨⟨a, b⟩, ?_⟩ |
| 68 | apply (matrixPivotCondition_ringEquiv A a b _ |
| 69 | (Spec.stalkIso R p).commRingCatIsoToRingEquiv).mp |
| 70 | change HilbertScheme.Presentations.MatrixPivot.Locus.Grassmannian.matrixPivotCondition _ _ _ _ |
| 71 | ((Spec.stalkIso R p).hom.hom.comp (((Spec R).presheaf.Γgerm p).hom.comp x.left.appTop.hom)) |
| 72 | rw [affineMatrix_stalk_coefficients M R x p] |
| 73 | exact (HilbertScheme.Presentations.MatrixPivot.Condition.Grassmannian.fullMatrixPivotCondition_iff A a b _).mpr h |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Matrix.RankAffineCriterion |