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.Quotient.Operations |
| 2 | import Mathlib.RingTheory.Ideal.Maximal |
| 3 | import Mathlib.Algebra.Algebra.Subalgebra.Lattice |
| 4 | |
| 5 | /-! # Algebra Rational Point Ideal -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Generated.AlgebraRationalPointIdeal |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! In an algebra generated by specified coordinates, the differences |
| 12 | between those coordinates and their values at a rational point generate |
| 13 | the point's entire maximal ideal. This also separates it from arbitrary |
| 14 | prime ideals, with no closed-point assumption on the other prime. -/ |
| 15 | universe u v w |
| 16 | variable {K : Type u} [CommRing K] {B : Type v} [CommRing B] [Algebra K B] |
| 17 | variable {ι : Type w} |
| 18 | |
| 19 | theorem generatedAlgebra_rationalPoint_kernel (v : ι → B) |
| 20 | (hv : Algebra.adjoin K (Set.range v) = ⊤) (φ : B →ₐ[K] K) : |
| 21 | RingHom.ker φ.toRingHom = |
| 22 | Ideal.span (Set.range fun i => v i - algebraMap K B (φ (v i))) := by |
| 23 | let I : Ideal B := Ideal.span (Set.range fun i => v i - algebraMap K B (φ (v i))) |
| 24 | let q := Ideal.Quotient.mkₐ K I |
| 25 | have hq : q = (Algebra.ofId K (B ⧸ I)).comp φ := by |
| 26 | apply AlgHom.ext_of_adjoin_eq_top hv |
| 27 | rintro _ ⟨i, rfl⟩ |
| 28 | have hz : q (v i - algebraMap K B (φ (v i))) = 0 := |
| 29 | Ideal.Quotient.eq_zero_iff_mem.mpr (Ideal.subset_span ⟨i, rfl⟩) |
| 30 | rw [map_sub, q.commutes] at hz |
| 31 | exact sub_eq_zero.mp hz |
| 32 | apply le_antisymm |
| 33 | · intro b hb |
| 34 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 35 | change q b = 0 |
| 36 | rw [hq] |
| 37 | change algebraMap K (B ⧸ I) (φ b) = 0 |
| 38 | rw [show φ b = 0 from hb, map_zero] |
| 39 | · apply Ideal.span_le.mpr |
| 40 | rintro _ ⟨i, rfl⟩ |
| 41 | change φ (v i - algebraMap K B (φ (v i))) = 0 |
| 42 | simp only [map_sub, φ.commutes, Algebra.algebraMap_self, RingHom.id_apply, sub_self] |
| 43 | |
| 44 | theorem rationalPoint_kernel_isMaximal |
| 45 | {F : Type u} [Field F] {A : Type v} [CommRing A] [Algebra F A] |
| 46 | (φ : A →ₐ[F] F) : (RingHom.ker φ.toRingHom).IsMaximal := by |
| 47 | apply RingHom.ker_isMaximal_of_surjective |
| 48 | intro a |
| 49 | exact ⟨algebraMap F A a, φ.commutes a⟩ |
| 50 | |
| 51 | theorem generatedAlgebra_prime_eq_rationalPoint |
| 52 | {F : Type u} [Field F] {A : Type v} [CommRing A] [Algebra F A] |
| 53 | (v : ι → A) (hv : Algebra.adjoin F (Set.range v) = ⊤) |
| 54 | (φ : A →ₐ[F] F) (P : Ideal A) [P.IsPrime] |
| 55 | (hP : ∀ i, v i - algebraMap F A (φ (v i)) ∈ P) : |
| 56 | P = RingHom.ker φ.toRingHom := by |
| 57 | apply Eq.symm |
| 58 | apply (rationalPoint_kernel_isMaximal φ).eq_of_le (Ideal.IsPrime.ne_top (inferInstance : P.IsPrime)) |
| 59 | rw [generatedAlgebra_rationalPoint_kernel v hv φ] |
| 60 | exact Ideal.span_le.mpr (by rintro _ ⟨i, rfl⟩; exact hP i) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Generated.AlgebraRationalPointIdeal |