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.Finite.ConstantScheme |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Level.Scheme |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 4 | import Mathlib.LinearAlgebra.Dimension.Constructions |
| 5 | |
| 6 | /-! # Degree -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ConstantScheme.Degree |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The rank of a finite constant scheme over the spectrum of a field is its number of labels. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable (K : Type u) [Field K] (I : Type u) |
| 19 | |
| 20 | theorem constantScheme_spec_structure : |
| 21 | (Iff.constantScheme (Spec (.of K)) I).hom = |
| 22 | sigmaSpec (fun _ : I => CommRingCat.of K) ≫ |
| 23 | Spec.map (CommRingCat.ofHom (algebraMap K (I → K))) := by |
| 24 | apply Sigma.hom_ext |
| 25 | intro i |
| 26 | rw [Iff.constantScheme_ι_hom, ← Category.assoc, ι_sigmaSpec, ← Spec.map_comp] |
| 27 | have h : CommRingCat.ofHom (algebraMap K (I → K)) ≫ |
| 28 | CommRingCat.ofHom (Pi.evalRingHom (fun _ : I => K) i) = 𝟙 (CommRingCat.of K) := by |
| 29 | ext x |
| 30 | rfl |
| 31 | rw [h, Spec.map_id] |
| 32 | |
| 33 | variable [Fintype I] |
| 34 | |
| 35 | theorem constantScheme_spec_finrank (x : Spec (.of K)) : |
| 36 | (Iff.constantScheme (Spec (.of K)) I).hom.finrank x = Fintype.card I := by |
| 37 | have : IsFinite (Spec.map (CommRingCat.ofHom (algebraMap K (I → K)))) := by |
| 38 | rw [IsFinite.SpecMap_iff] |
| 39 | exact (RingHom.finite_algebraMap).mpr inferInstance |
| 40 | have he := congrArg (fun f : (∐ fun _ : I => Spec (.of K)) ⟶ Spec (.of K) => f.finrank x) |
| 41 | (constantScheme_spec_structure K I) |
| 42 | have hc := congrFun (Scheme.Hom.finrank_comp_left_of_isIso |
| 43 | (sigmaSpec (fun _ : I => CommRingCat.of K)) |
| 44 | (Spec.map (CommRingCat.ofHom (algebraMap K (I → K))))) x |
| 45 | have hr : Module.rankAtStalk (I → K) x = Fintype.card I := by |
| 46 | rw [Module.rankAtStalk_eq_finrank_of_free, Module.finrank_fintype_fun_eq_card] |
| 47 | rfl |
| 48 | exact he.trans (hc.trans ((Scheme.Hom.finrank_SpecMap_algebraMap K (I → K) x).trans hr)) |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.ConstantScheme.Degree |