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.FlatRankOneDescent |
| 2 | |
| 3 | /-! # Rank One Local Basis -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.RankOneLocalBasis |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A finite flat module of constant rank one has an actual basis on a principal neighborhood of every prime. -/ |
| 10 | variable {R M : Type*} [CommRing R] [AddCommGroup M] [Module R M] |
| 11 | [Module.Finite R M] [Module.Flat R M] |
| 12 | |
| 13 | theorem finiteFlatRankOne_localBasis |
| 14 | (hrank : ∀ p : PrimeSpectrum R, Module.rankAtStalk M p = 1) |
| 15 | (p : PrimeSpectrum R) : |
| 16 | ∃ r ∉ p.asIdeal, Nonempty |
| 17 | (LocalizedModule.Away r M ≃ₗ[Localization.Away r] Localization.Away r) := by |
| 18 | obtain ⟨r, hr, hfree⟩ := Module.Free.away_of_finite_of_flat_of_rankAtStalk_constant M p.asIdeal |
| 19 | (fun m _ => (hrank ⟨m, inferInstance⟩).trans (hrank p).symm) |
| 20 | let S := Localization.Away r |
| 21 | let L := LocalizedModule.Away r M |
| 22 | obtain ⟨q, hq⟩ : p ∈ Set.range (PrimeSpectrum.comap (algebraMap R S)) := by |
| 23 | rw [PrimeSpectrum.localization_away_comap_range S r] |
| 24 | exact hr |
| 25 | have : Nontrivial S := ⟨⟨0, 1, fun h => q.isPrime.one_notMem (h ▸ q.asIdeal.zero_mem)⟩⟩ |
| 26 | have heq : Module.finrank S L = 1 := by |
| 27 | calc |
| 28 | Module.finrank S L = Module.rankAtStalk L q := |
| 29 | (congrFun (Module.rankAtStalk_eq_finrank_of_free (R := S) (M := L)) q).symm |
| 30 | _ = Module.rankAtStalk M (q.comap (algebraMap R S)) := |
| 31 | Module.rankAtStalk_isBaseChange (LocalizedModule.isBaseChange (.powers r) M) q |
| 32 | _ = 1 := hrank _ |
| 33 | obtain ⟨e⟩ := Module.nonempty_linearEquiv_of_finrank_eq_one heq |
| 34 | exact ⟨r, hr, ⟨e.symm⟩⟩ |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.RankOneLocalBasis |