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.NumberTheory.PadicHodge.IntegralComparison.Principal.OpenCover |
| 2 | import Mathlib.RingTheory.Etale.Basic |
| 3 | import Mathlib.RingTheory.Finiteness.ModuleFinitePresentation |
| 4 | import Mathlib.RingTheory.Spectrum.Prime.FreeLocus |
| 5 | |
| 6 | /-! # Free Cover -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.FreeCover |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A finite étale algebra has a finite principal cover on which its |
| 13 | actual base-changed coordinate algebra is free. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | variable (A B : Type u) [CommRing A] [CommRing B] [Algebra A B] |
| 20 | [Algebra.Etale A B] [Module.Finite A B] |
| 21 | |
| 22 | theorem exists_at_prime (p : PrimeSpectrum A) : |
| 23 | ∃ r ∉ p.asIdeal, |
| 24 | Module.Free (Localization.Away r) (Localization.Away r ⊗[A] B) := by |
| 25 | let : Module.FinitePresentation A B := |
| 26 | Module.FinitePresentation.of_finite_of_finitePresentation A B |
| 27 | let : Module.Free (Localization.AtPrime p.asIdeal) |
| 28 | (LocalizedModule p.asIdeal.primeCompl B) := Module.free_of_flat_of_isLocalRing |
| 29 | obtain ⟨r, hr, hfree, _⟩ := Module.FinitePresentation.exists_free_localizedModule_powers |
| 30 | p.asIdeal.primeCompl (LocalizedModule.mkLinearMap p.asIdeal.primeCompl B) |
| 31 | (Localization.AtPrime p.asIdeal) |
| 32 | let : Module.Free (Localization.Away r) (LocalizedModule.Away r B) := hfree |
| 33 | exact ⟨r, hr, Module.Free.of_equiv (LocalizedModule.equivTensorProduct (.powers r) B)⟩ |
| 34 | |
| 35 | theorem exists_finite_cover : |
| 36 | ∃ s : Finset A, Ideal.span (s : Set A) = ⊤ ∧ |
| 37 | ∀ r ∈ s, Module.Free (Localization.Away r) (Localization.Away r ⊗[A] B) := by |
| 38 | obtain ⟨s, hs, hspan⟩ := Principal.OpenCover.finite_unit_family |
| 39 | (fun r : A => Module.Free (Localization.Away r) (Localization.Away r ⊗[A] B)) (by |
| 40 | intro p |
| 41 | obtain ⟨r, hr, hf⟩ := exists_at_prime A B p |
| 42 | exact ⟨r, hf, hr⟩) |
| 43 | exact ⟨s, hspan, hs⟩ |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.PadicHodge.IntegralComparison.FiniteEtale.FreeCover |