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.Algebra.Category.ModuleCat.ChangeOfRings |
| 2 | import Mathlib.Algebra.Module.LocalizedModule.Basic |
| 3 | |
| 4 | /-! # Power Scalar Localization -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PowerScalarLocalization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: localization is preserved when scalars act through a positive-power endomorphism |
| 12 | -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | variable {R : Type u} [CommRing R] (σ : R →+* R) (q : ℕ) |
| 19 | (hσ : ∀ r, σ r = r ^ q) (hq : 0 < q) (S : Submonoid R) |
| 20 | {M N : ModuleCat.{v} R} (f : M ⟶ N) [IsLocalizedModule S f.hom] |
| 21 | |
| 22 | include hσ hq in |
| 23 | theorem isLocalizedModule : IsLocalizedModule S ((ModuleCat.restrictScalars σ).map f).hom := by |
| 24 | obtain ⟨m, rfl⟩ := Nat.exists_eq_succ_of_ne_zero hq.ne' |
| 25 | constructor |
| 26 | · intro s |
| 27 | rw [Module.End.isUnit_iff] |
| 28 | change Function.Bijective (fun x : N => σ (s : R) • x) |
| 29 | rw [hσ] |
| 30 | exact (Module.End.isUnit_iff _).mp |
| 31 | (IsLocalizedModule.map_units f.hom (⟨(s : R) ^ (m + 1), S.pow_mem s.2 _⟩ : S)) |
| 32 | · intro y |
| 33 | obtain ⟨⟨x, s⟩, hs⟩ := IsLocalizedModule.surj S f.hom (show N from y) |
| 34 | refine ⟨⟨(s : R) ^ m • x, s⟩, ?_⟩ |
| 35 | change σ (s : R) • (show N from y) = f.hom ((s : R) ^ m • x) |
| 36 | rw [hσ, pow_succ, mul_smul, show (s : R) • (show N from y) = f.hom x from hs, |
| 37 | f.hom.map_smul] |
| 38 | · intro x y h |
| 39 | obtain ⟨s, hs⟩ := IsLocalizedModule.exists_of_eq (S := S) (f := f.hom) h |
| 40 | refine ⟨s, ?_⟩ |
| 41 | change σ (s : R) • (show M from x) = σ (s : R) • (show M from y) |
| 42 | rw [hσ, pow_succ, mul_smul, mul_smul] |
| 43 | exact congrArg (fun z : M => (s : R) ^ m • z) hs |
| 44 | |
| 45 | end |
| 46 | |
| 47 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PowerScalarLocalization |