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.Ideal.AssociatedPrime.Finiteness |
| 2 | |
| 3 | /-! # Associated Prime Scalar Injectivity -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AssociatedPrimeScalarInjectivity |
| 6 | |
| 7 | /-! Multiplication on a finite module over a Noetherian ring is injective exactly when the scalar avoids its finite set of associated primes. This is a concrete finite family of scheme-point conditions, including embedded associated primes. -/ |
| 8 | universe u v |
| 9 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 10 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 11 | |
| 12 | theorem scalar_injective_iff_avoids_associatedPrimes (r : R) : |
| 13 | Function.Injective (fun x : M => r • x) ↔ |
| 14 | ∀ P ∈ associatedPrimes R M, r ∉ P := by |
| 15 | constructor |
| 16 | · intro hinj P hP hr |
| 17 | have hz : r ∈ ⋃ Q ∈ associatedPrimes R M, (Q : Set R) := |
| 18 | Set.mem_iUnion₂.mpr ⟨P, hP, hr⟩ |
| 19 | rw [biUnion_associatedPrimes_eq_zero_divisors R M] at hz |
| 20 | obtain ⟨x, hx, hrx⟩ := hz |
| 21 | exact hx (hinj (hrx.trans (smul_zero r).symm)) |
| 22 | · intro havoid x y hxy |
| 23 | change r • x = r • y at hxy |
| 24 | apply sub_eq_zero.mp |
| 25 | by_contra hne |
| 26 | have hz : r ∈ {a : R | ∃ z : M, z ≠ 0 ∧ a • z = 0} := |
| 27 | ⟨x - y, hne, by rw [smul_sub, hxy, sub_self]⟩ |
| 28 | rw [← biUnion_associatedPrimes_eq_zero_divisors R M] at hz |
| 29 | obtain ⟨P, hP, hr⟩ := Set.mem_iUnion₂.mp hz |
| 30 | exact havoid P hP hr |
| 31 | |
| 32 | theorem exists_finite_prime_scalar_injectivity_test [Module.Finite R M] : |
| 33 | ∃ (ι : Type u) (_ : Finite ι) (p : ι → PrimeSpectrum R), |
| 34 | ∀ r : R, Function.Injective (fun x : M => r • x) ↔ |
| 35 | ∀ i, r ∉ (p i).asIdeal := by |
| 36 | let ι := associatedPrimes R M |
| 37 | have : Finite ι := (associatedPrimes.finite R M).to_subtype |
| 38 | let p : ι → PrimeSpectrum R := fun P => ⟨P.val, P.property.isPrime⟩ |
| 39 | refine ⟨ι, inferInstance, p, fun r => ?_⟩ |
| 40 | rw [scalar_injective_iff_avoids_associatedPrimes] |
| 41 | exact ⟨fun h i => h i.val i.property, fun h P hP => h ⟨P, hP⟩⟩ |
| 42 | |
| 43 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AssociatedPrimeScalarInjectivity |