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.AlgebraicGeometry.AbelianScheme.TateComparison.CountableComplexEmbedding |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.FiniteType |
| 3 | import Mathlib.AlgebraicGeometry.ResidueField |
| 4 | |
| 5 | /-! # Countable Residue Fields -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.TateComparison.CountableResidueFields |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Countable fields of definition for geometric points of a scheme |
| 12 | locally of finite type over a countable field. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem countable_finiteType (R A : Type) [CommRing R] [CommRing A] |
| 17 | [Countable R] [Algebra R A] [Algebra.FiniteType R A] : Countable A := by |
| 18 | obtain ⟨n, f, hf⟩ := Algebra.FiniteType.iff_quotient_mvPolynomial''.mp |
| 19 | (inferInstance : Algebra.FiniteType R A) |
| 20 | have : Countable (MvPolynomial (Fin n) R) := |
| 21 | Cardinal.mk_le_aleph0_iff.mp (MvPolynomial.cardinalMk_le_max.trans |
| 22 | (sup_le (sup_le Cardinal.mk_le_aleph0 Cardinal.mk_le_aleph0) le_rfl)) |
| 23 | exact hf.countable |
| 24 | |
| 25 | theorem countable_localization (R A : Type) [CommRing R] [CommRing A] |
| 26 | [Countable R] (M : Submonoid R) [Algebra R A] [IsLocalization M A] : |
| 27 | Countable A := by |
| 28 | have h : Function.Surjective (Function.uncurry (IsLocalization.mk' (M := M) A)) := |
| 29 | fun x => by simpa using IsLocalization.exists_mk'_eq M x |
| 30 | exact h.countable |
| 31 | |
| 32 | theorem countable_ideal_residueField (R : Type) [CommRing R] [Countable R] |
| 33 | (p : Ideal R) [p.IsPrime] : Countable p.ResidueField := by |
| 34 | have : Countable (R ⧸ p) := (Ideal.Quotient.mk_surjective (I := p)).countable |
| 35 | exact countable_localization (R ⧸ p) p.ResidueField (nonZeroDivisors (R ⧸ p)) |
| 36 | |
| 37 | theorem countable_scheme_residueField (K : Type) [Field K] [Countable K] |
| 38 | {X : Scheme} (f : X ⟶ Spec (.of K)) [LocallyOfFiniteType f] (x : X) : |
| 39 | Countable (X.residueField x) := by |
| 40 | obtain ⟨R, i, hi, y, hy⟩ := Scheme.exists_Spec_apply_eq x |
| 41 | let : IsOpenImmersion i := hi |
| 42 | let φ := Spec.preimage (i ≫ f) |
| 43 | have hφ : Spec.map φ = i ≫ f := Spec.map_preimage _ |
| 44 | let : Algebra K R := φ.hom.toAlgebra |
| 45 | have : LocallyOfFiniteType (Spec.map φ) := by rw [hφ]; infer_instance |
| 46 | have : Algebra.FiniteType K R := |
| 47 | RingHom.finiteType_algebraMap.mp (HasRingHomProperty.Spec_iff.mp |
| 48 | (inferInstance : LocallyOfFiniteType (Spec.map φ))) |
| 49 | have : Countable R := countable_finiteType K R |
| 50 | have : y.asIdeal.IsPrime := y.isPrime |
| 51 | have : Countable y.asIdeal.ResidueField := countable_ideal_residueField R y.asIdeal |
| 52 | have : Countable ((Spec R).residueField y) := |
| 53 | (Scheme.Spec.residueFieldIso R y).commRingCatIsoToRingEquiv.injective.countable |
| 54 | have hc : Countable (X.residueField (i y)) := |
| 55 | (i.residueFieldMap y).hom.injective.countable |
| 56 | rwa [hy] at hc |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.AbelianScheme.TateComparison.CountableResidueFields |