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.Flat.LocallyFree |
| 2 | |
| 3 | /-! # Quotient Rank Detection -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.QuotientRankDetection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! An inclusion of relation submodules is an equality when their finite flat quotients have the same ranks. -/ |
| 10 | |
| 11 | universe u v |
| 12 | |
| 13 | variable {R : Type u} [CommRing R] {M : Type v} [AddCommGroup M] [Module R M] |
| 14 | |
| 15 | theorem submodule_eq_of_flat_quotient_ranks (p q : Submodule R M) (hpq : p ≤ q) |
| 16 | [Module.Finite R (M ⧸ p)] [Module.Flat R (M ⧸ p)] |
| 17 | [Module.Finite R (M ⧸ q)] [Module.Flat R (M ⧸ q)] |
| 18 | (hr : ∀ x : PrimeSpectrum R, Module.rankAtStalk (R := R) (M ⧸ p) x = |
| 19 | Module.rankAtStalk (R := R) (M ⧸ q) x) : p = q := by |
| 20 | have hb := Module.bijective_of_surjective_of_rankAtStalk_eq (Submodule.factor_surjective hpq) |
| 21 | (fun m _ => hr ⟨m, inferInstance⟩) |
| 22 | apply le_antisymm hpq |
| 23 | intro x hx |
| 24 | have hq : q.mkQ x = 0 := (Submodule.Quotient.mk_eq_zero q).mpr hx |
| 25 | have hp : p.mkQ x = 0 := by |
| 26 | apply hb.injective |
| 27 | rw [Submodule.factor_mk, map_zero, hq] |
| 28 | exact (Submodule.Quotient.mk_eq_zero p).mp hp |
| 29 | |
| 30 | end |
| 31 | |
| 32 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Flat.QuotientRankDetection |