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.FaithfullyFlat.Basic |
| 2 | import Mathlib.RingTheory.Flat.Localization |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.SequenceBasic |
| 4 | |
| 5 | /-! # Sequence Flat Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.SequenceFlatBaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | open _root_.Module |
| 12 | universe u v w x |
| 13 | variable {R : Type u} {S : Type v} {M : Type w} {N : Type x} |
| 14 | [CommRing R] [CommRing S] [Algebra R S] |
| 15 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] [Module S N] [IsScalarTower R S N] |
| 16 | |
| 17 | theorem weaklyRegular_flat_baseChange [Flat R S] {f : M →ₗ[R] N} (hf : IsBaseChange S f) |
| 18 | {rs : List R} (reg : SequenceBasic.RingTheory.Sequence.IsWeaklyRegular M rs) : SequenceBasic.RingTheory.Sequence.IsWeaklyRegular N (rs.map (algebraMap R S)) := by |
| 19 | induction rs generalizing M N with |
| 20 | | nil => simp |
| 21 | | cons r rs ih => |
| 22 | simp only [List.map_cons, SequenceBasic.RingTheory.Sequence.isWeaklyRegular_cons_iff] at reg ⊢ |
| 23 | let e := (QuotSMulTop.algebraMapTensorEquivTensorQuotSMulTop r M S).symm ≪≫ₗ |
| 24 | QuotSMulTop.congr ((algebraMap R S) r) hf.equiv |
| 25 | have he : IsBaseChange S |
| 26 | (e.toLinearMap.restrictScalars R ∘ₗ TensorProduct.mk R S (QuotSMulTop r M) 1) := |
| 27 | IsBaseChange.of_equiv e (fun _ => by simp) |
| 28 | exact ⟨reg.1.of_flat_of_isBaseChange hf, ih he reg.2⟩ |
| 29 | |
| 30 | theorem weaklyRegular_flat_algebra [Flat R S] {rs : List R} (reg : SequenceBasic.RingTheory.Sequence.IsWeaklyRegular R rs) : |
| 31 | SequenceBasic.RingTheory.Sequence.IsWeaklyRegular S (rs.map (algebraMap R S)) := |
| 32 | weaklyRegular_flat_baseChange (IsBaseChange.linearMap R S) reg |
| 33 | |
| 34 | theorem weaklyRegular_regular_localization |
| 35 | (S : Type v) [CommRing S] [Algebra R S] (p : Ideal R) [p.IsPrime] |
| 36 | [IsLocalization.AtPrime S p] {rs : List R} |
| 37 | (reg : SequenceBasic.RingTheory.Sequence.IsWeaklyRegular R rs) (mem : ∀ r ∈ rs, r ∈ p) : |
| 38 | SequenceBasic.RingTheory.Sequence.IsRegular S (rs.map (algebraMap R S)) := by |
| 39 | have : IsLocalRing S := IsLocalization.AtPrime.isLocalRing S p |
| 40 | have : Nontrivial S := IsLocalization.AtPrime.nontrivial S p |
| 41 | have : Flat R S := IsLocalization.flat S p.primeCompl |
| 42 | apply (SequenceBasic.IsLocalRing.isRegular_iff_isWeaklyRegular_of_subset_maximalIdeal (fun r hr => ?_)).mpr |
| 43 | · exact weaklyRegular_flat_algebra reg |
| 44 | · obtain ⟨r, hrmem, rfl⟩ := List.mem_map.mp hr |
| 45 | exact (IsLocalization.AtPrime.to_map_mem_maximal_iff S p r).mpr (mem r hrmem) |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Regular.SequenceFlatBaseChange |