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.Finiteness.Descent |
| 2 | import Mathlib.RingTheory.Flat.LocallyFree |
| 3 | |
| 4 | /-! # Flat Rank One Descent -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FlatRankOneDescent |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A module whose faithfully flat scalar extension has an actual rank-one basis is finite, flat, has rank one at every prime, and is locally free. -/ |
| 11 | open TensorProduct |
| 12 | variable {R S M : Type*} [CommRing R] [CommRing S] [Algebra R S] |
| 13 | [Module.FaithfullyFlat R S] [AddCommGroup M] [Module R M] |
| 14 | |
| 15 | theorem faithfullyFlat_rankOne_descent (e : S ⊗[R] M ≃ₗ[S] S) : |
| 16 | Module.Finite R M ∧ Module.Flat R M ∧ ∀ p : PrimeSpectrum R, Module.rankAtStalk M p = 1 := by |
| 17 | have : Module.Finite S (S ⊗[R] M) := Module.Finite.equiv e.symm |
| 18 | have : Module.Free S (S ⊗[R] M) := Module.Free.of_equiv e.symm |
| 19 | have hf : Module.Finite R M := Module.Finite.of_finite_tensorProduct_of_faithfullyFlat S |
| 20 | have hflat : Module.Flat R M := Module.Flat.of_flat_tensorProduct R M S |
| 21 | refine ⟨hf, hflat, ?_⟩ |
| 22 | intro p |
| 23 | obtain ⟨q, rfl⟩ := PrimeSpectrum.comap_surjective_of_faithfullyFlat (A := R) (B := S) p |
| 24 | have : Nontrivial S := ⟨⟨0, 1, fun h => q.isPrime.one_notMem (h ▸ q.asIdeal.zero_mem)⟩⟩ |
| 25 | calc |
| 26 | Module.rankAtStalk M (q.comap (algebraMap R S)) = Module.rankAtStalk (S ⊗[R] M) q := |
| 27 | (Module.rankAtStalk_baseChange (R := R) (M := M) q).symm |
| 28 | _ = Module.rankAtStalk (R := S) S q := congrFun (Module.rankAtStalk_eq_of_equiv e) q |
| 29 | _ = 1 := congrFun (Module.rankAtStalk_self (R := S)) q |
| 30 | |
| 31 | theorem faithfullyFlat_rankOne_locallyFree (e : S ⊗[R] M ≃ₗ[S] S) |
| 32 | (p : Ideal R) [p.IsPrime] : |
| 33 | ∃ r ∉ p, Module.Free (Localization.Away r) (LocalizedModule.Away r M) := by |
| 34 | obtain ⟨hf, hflat, hrank⟩ := faithfullyFlat_rankOne_descent e |
| 35 | exact Module.Free.away_of_finite_of_flat_of_rankAtStalk_constant M p |
| 36 | (fun m _ => (hrank ⟨m, inferInstance⟩).trans (hrank ⟨p, inferInstance⟩).symm) |
| 37 | |
| 38 | end |
| 39 | |
| 40 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.FlatRankOneDescent |