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.Affine.OverChartPoints |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Over.IsoMorphismProperty |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 4 | |
| 5 | /-! # Field Point Coordinates -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FieldPointCoordinates |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Actual rational points and finite ranks of affine schemes over a field are the algebra homomorphisms and dimension of their canonical coordinate algebra. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 13 | universe u |
| 14 | |
| 15 | def algebraSelfSpecIso (K : Type u) [CommRing K] : |
| 16 | Over.mk (𝟙 (Spec (.of K))) ≅ (algSpec (.of K)).obj (op (CommAlgCat.of K K)) := by |
| 17 | refine Over.isoMk (Iso.refl _) ?_ |
| 18 | change 𝟙 _ ≫ Spec.map (CommRingCat.ofHom (algebraMap K K)) = 𝟙 _ |
| 19 | simp |
| 20 | |
| 21 | def affineFieldPointCoordinates (K : Type u) [Field K] |
| 22 | (M : Over (Spec (.of K))) [IsAffine M.left] : |
| 23 | (Over.mk (𝟙 (Spec (.of K))) ⟶ M) ≃ (OverChartPoints.affineOverAlgebra K M →ₐ[K] K) := |
| 24 | ((algebraSelfSpecIso K).homCongr (OverChartPoints.affineOverIso K M)).trans |
| 25 | (((algSpec.fullyFaithful (R := CommRingCat.of K)).homEquiv.symm.trans (opEquiv _ _)).trans |
| 26 | { toFun := fun f => f.hom |
| 27 | invFun := CommAlgCat.ofHom |
| 28 | left_inv := CommAlgCat.ofHom_hom |
| 29 | right_inv := CommAlgCat.hom_ofHom }) |
| 30 | |
| 31 | theorem finiteAffineField_coordinateAlgebra_finite (K : Type u) [Field K] |
| 32 | (M : Over (Spec (.of K))) [IsAffine M.left] [IsFinite M.hom] : |
| 33 | Module.Finite K (OverChartPoints.affineOverAlgebra K M) := by |
| 34 | have hF : IsFinite (Spec.map (CommRingCat.ofHom (algebraMap K (OverChartPoints.affineOverAlgebra K M)))) := |
| 35 | (HilbertConstruction.Over.IsoMorphismProperty.overIso_morphismProperty_iff (@IsFinite) (OverChartPoints.affineOverIso K M)).mp inferInstance |
| 36 | exact (IsFinite.SpecMap_iff _).mp hF |
| 37 | |
| 38 | theorem finiteAffineField_finrank (K : Type u) [Field K] |
| 39 | (M : Over (Spec (.of K))) [IsAffine M.left] [IsFinite M.hom] (x : Spec (.of K)) : |
| 40 | M.hom.finrank x = Module.finrank K (OverChartPoints.affineOverAlgebra K M) := by |
| 41 | let B := OverChartPoints.affineOverAlgebra K M |
| 42 | have : Module.Finite K B := finiteAffineField_coordinateAlgebra_finite K M |
| 43 | have hflat : Flat (Spec.map (CommRingCat.ofHom (algebraMap K B))) := |
| 44 | HasRingHomProperty.Spec_iff.mpr (RingHom.flat_algebraMap_iff.mpr inferInstance) |
| 45 | have hfinite : IsFinite (Spec.map (CommRingCat.ofHom (algebraMap K B))) := |
| 46 | (IsFinite.SpecMap_iff _).mpr (RingHom.finite_algebraMap.mpr inferInstance) |
| 47 | let e := OverChartPoints.affineOverIso K M |
| 48 | have hiso : IsIso e.hom.left := (Over.forget _).map_isIso e.hom |
| 49 | have hc := congrFun (@Scheme.Hom.finrank_comp_left_of_isIso (X := M.left) (Y := Spec (.of B)) (S := Spec (.of K)) |
| 50 | e.hom.left (Spec.map (CommRingCat.ofHom (algebraMap K B))) hiso hflat hfinite) x |
| 51 | have he : M.hom.finrank x = (Spec.map (CommRingCat.ofHom (algebraMap K B))).finrank x := |
| 52 | (congrArg (fun f : M.left ⟶ Spec (.of K) => f.finrank x) e.hom.w.symm).trans hc |
| 53 | have hr : Module.rankAtStalk (R := K) B x = Module.finrank K B := by |
| 54 | rw [Module.rankAtStalk_eq_finrank_of_free] |
| 55 | rfl |
| 56 | exact he.trans ((Scheme.Hom.finrank_SpecMap_algebraMap K B x).trans hr) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.FieldPointCoordinates |