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.CycleClass.Thom.ProperImage.EtaleFiberDegree |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 5 | |
| 6 | /-! # Etale Geometric Cardinality -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.EtaleGeometricCardinality |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The number of actual rational points of a finite etale scheme over an |
| 13 | algebraically closed field equals its scheme-theoretic rank. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.Foundations.Scheme.AffineComplexPoints |
| 20 | |
| 21 | def affineFieldBaseIso (K : Type) [Field K] : |
| 22 | Foundations.Scheme.AffineComplexPoints.affineSchemeOver K K ≅ Over.mk (𝟙 (Spec (.of K))) := |
| 23 | Over.isoMk (Iso.refl _) (by |
| 24 | change 𝟙 (Spec (.of K)) ≫ 𝟙 (Spec (.of K)) = Spec.map (CommRingCat.ofHom (algebraMap K K)) |
| 25 | simp) |
| 26 | |
| 27 | theorem finiteEtale_geometric_point_card {K : Type} [Field K] [IsAlgClosed K] |
| 28 | (H : Over (Spec (.of K))) [IsFinite H.hom] [Etale H.hom] (z : Spec (.of K)) : |
| 29 | Nat.card (Over.mk (𝟙 (Spec (.of K))) ⟶ H) = H.hom.finrank z := by |
| 30 | have : IsAffine H.left := isAffine_of_isAffineHom H.hom |
| 31 | obtain ⟨B, ⟨e⟩⟩ := (essImage_algSpec (R := CommRingCat.of K) (G := H)).mpr |
| 32 | (inferInstanceAs (IsAffine H.left)) |
| 33 | let A := B.unop |
| 34 | let Q := Foundations.Scheme.AffineComplexPoints.affineSchemeOver K A |
| 35 | change Q ≅ H at e |
| 36 | have : IsFinite Q.hom := by |
| 37 | rw [← e.hom.w] |
| 38 | infer_instance |
| 39 | have : Etale Q.hom := by |
| 40 | rw [← e.hom.w] |
| 41 | infer_instance |
| 42 | have hfin : (algebraMap K A).Finite := (IsFinite.SpecMap_iff |
| 43 | (CommRingCat.ofHom (algebraMap K A))).mp (inferInstanceAs (IsFinite Q.hom)) |
| 44 | have : Module.Finite K A := (RingHom.finite_algebraMap).mp hfin |
| 45 | have het : (algebraMap K A).Etale := (HasRingHomProperty.Spec_iff (P := @Etale) |
| 46 | (φ := CommRingCat.ofHom (algebraMap K A))).mp (inferInstanceAs (Etale Q.hom)) |
| 47 | have : Algebra.Etale K A := (RingHom.etale_algebraMap).mp het |
| 48 | let ep := (Foundations.Scheme.AffineComplexPoints.affineAlgHomOverSpecEquiv K A K).trans ((affineFieldBaseIso K).homCongr e) |
| 49 | have hc : Nat.card (Over.mk (𝟙 (Spec (.of K))) ⟶ H) = Module.finrank K A := |
| 50 | (Nat.card_congr ep).symm.trans |
| 51 | (CycleClass.Thom.ProperImage.EtaleFiberDegree.Constructions.Construction.card_characters_eq_finrank_of_etale K A) |
| 52 | have hr : Q.hom.finrank z = H.hom.finrank z := by |
| 53 | rw [← e.hom.w, Scheme.Hom.finrank_comp_left_of_isIso] |
| 54 | rw [hc, ← hr] |
| 55 | change Module.finrank K A = (Spec.map (CommRingCat.ofHom (algebraMap K A))).finrank z |
| 56 | rw [Scheme.Hom.finrank_SpecMap_algebraMap, Module.rankAtStalk_eq_finrank_of_free] |
| 57 | rfl |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.EtaleGeometricCardinality |