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 Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 2 | import Mathlib.RingTheory.LocalRing.ResidueField.Ideal |
| 3 | |
| 4 | /-! # Scalar -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Residue.Scalar |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Maps between residue-field vector spaces that are linear over the base ring are automatically linear over the residue field. -/ |
| 11 | open _root_.CategoryTheory |
| 12 | universe u |
| 13 | |
| 14 | def fractionGeneratedLinearMap {R K : Type u} [CommRing R] [Field K] |
| 15 | (f : R →+* K) (hf : ∀ t : K, ∃ a b : R, f b ≠ 0 ∧ t * f b = f a) |
| 16 | {M Q : ModuleCat.{u} K} |
| 17 | (α : (ModuleCat.restrictScalars.{u} f).obj M ⟶ (ModuleCat.restrictScalars.{u} f).obj Q) : M ⟶ Q := |
| 18 | ModuleCat.ofHom |
| 19 | { toFun := α |
| 20 | map_add' := fun x y => α.hom.map_add x y |
| 21 | map_smul' := by |
| 22 | intro t x |
| 23 | obtain ⟨a, b, hb, ht⟩ := hf t |
| 24 | have hinj : Function.Injective (fun y : Q => f b • y) := by |
| 25 | intro y z hyz |
| 26 | have he := congrArg (fun v : Q => (f b)⁻¹ • v) hyz |
| 27 | simpa only [smul_smul, inv_mul_cancel₀ hb, one_smul] using he |
| 28 | apply hinj |
| 29 | have hbt : f b * t = f a := (mul_comm (f b) t).trans ht |
| 30 | calc |
| 31 | f b • α (t • x) = α (f b • (t • x)) := (α.hom.map_smul b (t • x)).symm |
| 32 | _ = α (f a • x) := congrArg α (by rw [smul_smul, hbt]) |
| 33 | _ = f a • α x := α.hom.map_smul a x |
| 34 | _ = f b • (t • α x) := by rw [smul_smul, hbt] } |
| 35 | |
| 36 | theorem restrictScalars_full_of_fractionGenerated {R K : Type u} [CommRing R] [Field K] |
| 37 | (f : R →+* K) (hf : ∀ t : K, ∃ a b : R, f b ≠ 0 ∧ t * f b = f a) : |
| 38 | (ModuleCat.restrictScalars.{u} f).Full where |
| 39 | map_surjective α := ⟨fractionGeneratedLinearMap f hf α, rfl⟩ |
| 40 | |
| 41 | theorem residueField_fractionGenerated {R : Type u} [CommRing R] (p : Ideal R) [p.IsPrime] : |
| 42 | ∀ t : p.ResidueField, ∃ a b : R, |
| 43 | algebraMap R p.ResidueField b ≠ 0 ∧ t * algebraMap R p.ResidueField b = algebraMap R p.ResidueField a := by |
| 44 | intro t |
| 45 | obtain ⟨⟨a, b⟩, hab⟩ := IsLocalization.surj (nonZeroDivisors (R ⧸ p)) t |
| 46 | obtain ⟨a₀, ha⟩ := Ideal.Quotient.mk_surjective a |
| 47 | obtain ⟨b₀, hb⟩ := Ideal.Quotient.mk_surjective b.val |
| 48 | have ha' : algebraMap (R ⧸ p) p.ResidueField a = algebraMap R p.ResidueField a₀ := by rw [← ha]; rfl |
| 49 | have hb' : algebraMap (R ⧸ p) p.ResidueField b.val = algebraMap R p.ResidueField b₀ := by rw [← hb]; rfl |
| 50 | have hbK : algebraMap (R ⧸ p) p.ResidueField b.val ≠ 0 := (IsLocalization.map_units p.ResidueField b).ne_zero |
| 51 | refine ⟨a₀, b₀, hb'.symm ▸ hbK, ?_⟩ |
| 52 | exact (congrArg (fun v => t * v) hb').symm.trans (hab.trans ha') |
| 53 | |
| 54 | theorem residueField_restrictScalars_full {R : Type u} [CommRing R] (p : Ideal R) [p.IsPrime] : |
| 55 | (ModuleCat.restrictScalars.{u} (algebraMap R p.ResidueField)).Full := |
| 56 | restrictScalars_full_of_fractionGenerated (algebraMap R p.ResidueField) (residueField_fractionGenerated p) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Residue.Scalar |