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.RingTheory.LocalRing.Module |
| 2 | |
| 3 | /-! # Residue Field Detection -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ResidueFieldDetection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A finite module vanishes if all its residue-field fibers vanish; the same criterion detects surjectivity with finite cokernel. -/ |
| 10 | |
| 11 | open TensorProduct |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | variable (R : Type u) [CommRing R] |
| 16 | |
| 17 | theorem finiteModule_subsingleton_of_residueFields |
| 18 | (M : Type v) [AddCommGroup M] [Module R M] [Module.Finite R M] |
| 19 | (h : ∀ p : PrimeSpectrum R, Subsingleton (p.asIdeal.ResidueField ⊗[R] M)) : Subsingleton M := by |
| 20 | apply (Module.support_eq_empty_iff (R := R) (M := M)).mp |
| 21 | apply Set.eq_empty_iff_forall_notMem.mpr |
| 22 | intro p hp |
| 23 | exact (not_nontrivial_iff_subsingleton.mpr (h p)) |
| 24 | ((Module.mem_support_iff_nontrivial_residueField_tensorProduct (M := M) p).mp hp) |
| 25 | |
| 26 | theorem surjective_of_residueFields_of_finite_cokernel |
| 27 | {M : Type v} [AddCommGroup M] [Module R M] |
| 28 | {N : Type w} [AddCommGroup N] [Module R N] |
| 29 | (f : M →ₗ[R] N) [Module.Finite R (N ⧸ f.range)] |
| 30 | (h : ∀ p : PrimeSpectrum R, Function.Surjective (f.lTensor p.asIdeal.ResidueField)) : |
| 31 | Function.Surjective f := by |
| 32 | let : Subsingleton (N ⧸ f.range) := finiteModule_subsingleton_of_residueFields R (N ⧸ f.range) (by |
| 33 | intro p |
| 34 | apply subsingleton_of_forall_eq 0 |
| 35 | intro x |
| 36 | obtain ⟨y, rfl⟩ := LinearMap.lTensor_surjective p.asIdeal.ResidueField f.range.mkQ_surjective x |
| 37 | obtain ⟨z, rfl⟩ := h p y |
| 38 | have hz : f.range.mkQ.comp f = 0 := by |
| 39 | apply LinearMap.ext |
| 40 | intro m |
| 41 | exact (Submodule.Quotient.mk_eq_zero f.range).mpr ⟨m, rfl⟩ |
| 42 | rw [← LinearMap.lTensor_comp_apply, hz, LinearMap.lTensor_zero, LinearMap.zero_apply]) |
| 43 | intro y |
| 44 | have hy : f.range.mkQ y = 0 := Subsingleton.elim _ _ |
| 45 | exact (Submodule.Quotient.mk_eq_zero f.range).mp hy |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ResidueFieldDetection |