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.ArithmeticGeometry.Descent.CMVariety.QuasiFinitePoints |
| 2 | import Mathlib.FieldTheory.IntermediateField.Algebraic |
| 3 | import Mathlib.Algebra.MvPolynomial.Eval |
| 4 | |
| 5 | /-! # Algebraic Coordinate Points -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Descent.CMVariety.AlgebraicCoordinatePoints.Abelian |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An affine complex evaluation with algebraic values has closed image. |
| 12 | Consequently points over such coordinates in a quasi-finite arithmetic |
| 13 | chart have actual number-field factorizations. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | theorem algebraic_evaluation_kernel_maximal {R : Type} [CommRing R] [Algebra ℚ R] |
| 18 | (x : R →ₐ[ℚ] ℂ) (hx : ∀ r, IsAlgebraic ℚ (x r)) : |
| 19 | (RingHom.ker x.toRingHom).IsMaximal := by |
| 20 | have hrange : x.range.IsAlgebraic := by |
| 21 | rintro z ⟨r, rfl⟩ |
| 22 | exact hx r |
| 23 | let K := hrange.toIntermediateField |
| 24 | let y : R →+* K := x.toRingHom.codRestrict K (fun r => x.mem_range_self r) |
| 25 | have hy : Function.Surjective y := by |
| 26 | rintro ⟨z, hz⟩ |
| 27 | obtain ⟨r, hr⟩ := hz |
| 28 | exact ⟨r, Subtype.ext hr⟩ |
| 29 | have hker : RingHom.ker y = RingHom.ker x.toRingHom := by |
| 30 | ext r |
| 31 | change y r = 0 ↔ x r = 0 |
| 32 | exact ⟨fun h => congrArg Subtype.val h, fun h => Subtype.ext h⟩ |
| 33 | exact hker ▸ RingHom.ker_isMaximal_of_surjective y hy |
| 34 | |
| 35 | theorem algebraic_affine_evaluation_closed {R : Type} [CommRing R] [Algebra ℚ R] |
| 36 | (x : R →ₐ[ℚ] ℂ) (hx : ∀ r, IsAlgebraic ℚ (x r)) : |
| 37 | IsClosed {(Spec.map (CommRingCat.ofHom x.toRingHom)) (IsLocalRing.closedPoint ℂ)} := by |
| 38 | apply (PrimeSpectrum.isClosed_singleton_iff_isMaximal _).mpr |
| 39 | change (Ideal.comap x.toRingHom (IsLocalRing.maximalIdeal ℂ)).IsMaximal |
| 40 | rw [IsLocalRing.maximalIdeal_eq_bot] |
| 41 | exact algebraic_evaluation_kernel_maximal x hx |
| 42 | |
| 43 | theorem polynomial_evaluation_algebraic {Index : Type*} (x : Index → ℂ) |
| 44 | (hx : ∀ i, IsAlgebraic ℚ (x i)) (P : MvPolynomial Index ℚ) : |
| 45 | IsAlgebraic ℚ (MvPolynomial.aeval x P) := by |
| 46 | induction P using MvPolynomial.induction_on with |
| 47 | | C a => simpa only [MvPolynomial.aeval_C] using (isAlgebraic_algebraMap (R := ℚ) (A := ℂ) a) |
| 48 | | add p q hp hq => simpa only [map_add] using hp.add hq |
| 49 | | mul_X p i hp => simpa only [map_mul, MvPolynomial.aeval_X] using hp.mul (hx i) |
| 50 | |
| 51 | theorem algebraic_polynomial_evaluation_closed {Index : Type} (x : Index → ℂ) |
| 52 | (hx : ∀ i, IsAlgebraic ℚ (x i)) : |
| 53 | IsClosed {(Spec.map (CommRingCat.ofHom (MvPolynomial.aeval (R := ℚ) x).toRingHom)) |
| 54 | (IsLocalRing.closedPoint ℂ)} := |
| 55 | algebraic_affine_evaluation_closed (MvPolynomial.aeval x) (polynomial_evaluation_algebraic x hx) |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.ArithmeticGeometry.Descent.CMVariety.AlgebraicCoordinatePoints.Abelian |