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.Module.LocalizedModule.Basic |
| 2 | import Mathlib.RingTheory.Ideal.Operations |
| 3 | |
| 4 | /-! # Localization Range -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.LocalizationRange.LocalizationRangeDescent |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Descent of module images from principal localizations |
| 12 | |
| 13 | For coefficients generating the unit ideal, membership in the image of a |
| 14 | linear map can be checked after localizing source and target at each |
| 15 | coefficient. Denominator clearing gives a power multiple in the original |
| 16 | image; the unit-ideal criterion then gives the original membership. |
| 17 | -/ |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (R ι M N : Type u) [CommRing R] [AddCommGroup M] [Module R M] |
| 22 | [AddCommGroup N] [Module R N] (f : M →ₗ[R] N) (s : ι → R) |
| 23 | (ML NL : ι → Type u) [∀ i, AddCommGroup (ML i)] [∀ i, Module R (ML i)] |
| 24 | [∀ i, AddCommGroup (NL i)] [∀ i, Module R (NL i)] |
| 25 | (m : ∀ i, M →ₗ[R] ML i) (n : ∀ i, N →ₗ[R] NL i) |
| 26 | [∀ i, IsLocalizedModule (Submonoid.powers (s i)) (m i)] |
| 27 | [∀ i, IsLocalizedModule (Submonoid.powers (s i)) (n i)] |
| 28 | (fl : ∀ i, ML i →ₗ[R] NL i) |
| 29 | (commute : ∀ i x, n i (f x) = fl i (m i x)) |
| 30 | |
| 31 | include commute in |
| 32 | theorem power_smul_mem (i : ι) (x : N) (hx : n i x ∈ LinearMap.range (fl i)) : |
| 33 | ∃ e : ℕ, (s i) ^ e • x ∈ LinearMap.range f := by |
| 34 | obtain ⟨y, hy⟩ := hx |
| 35 | obtain ⟨⟨z, t⟩, ht⟩ := IsLocalizedModule.surj (Submonoid.powers (s i)) (m i) y |
| 36 | have he : n i (f z) = n i ((t : R) • x) := by |
| 37 | rw [commute, ← ht] |
| 38 | change fl i ((t : R) • y) = n i ((t : R) • x) |
| 39 | rw [map_smul, hy, map_smul] |
| 40 | obtain ⟨v, hv⟩ := IsLocalizedModule.exists_of_eq (S := Submonoid.powers (s i)) (f := n i) he |
| 41 | obtain ⟨a, ha⟩ := t.property |
| 42 | obtain ⟨b, hb⟩ := v.property |
| 43 | have hp : (v : R) * (t : R) = s i ^ (b + a) := by rw [← hb, ← ha, pow_add] |
| 44 | refine ⟨b + a, ⟨(v : R) • z, ?_⟩⟩ |
| 45 | change (v : R) • f z = (v : R) • ((t : R) • x) at hv |
| 46 | exact ((f.map_smul (v : R) z).trans hv).trans (by rw [← mul_smul, hp]) |
| 47 | |
| 48 | include commute in |
| 49 | theorem mem_range (hs : Ideal.span (Set.range s) = ⊤) (x : N) |
| 50 | (hx : ∀ i, n i x ∈ LinearMap.range (fl i)) : x ∈ LinearMap.range f := by |
| 51 | apply Submodule.mem_of_span_eq_top_of_smul_pow_mem (LinearMap.range f) (Set.range s) hs x |
| 52 | intro r |
| 53 | obtain ⟨i, hi⟩ := r.property |
| 54 | obtain ⟨e, he⟩ := power_smul_mem R ι M N f s ML NL m n fl commute i x (hx i) |
| 55 | exact ⟨e, hi ▸ he⟩ |
| 56 | |
| 57 | include commute in |
| 58 | theorem mem_range_iff (hs : Ideal.span (Set.range s) = ⊤) (x : N) : |
| 59 | x ∈ LinearMap.range f ↔ ∀ i, n i x ∈ LinearMap.range (fl i) := by |
| 60 | constructor |
| 61 | · rintro ⟨y, rfl⟩ i |
| 62 | exact ⟨m i y, (commute i y).symm⟩ |
| 63 | · exact mem_range R ι M N f s ML NL m n fl commute hs x |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.LocalizationRange.LocalizationRangeDescent |