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.AbelianModuli.HilbertConstruction.Affine.StalkQuotientZeroSection |
| 2 | import Mathlib.RingTheory.LocalRing.ResidueField.Ideal |
| 3 | |
| 4 | /-! # Stalk Coefficient Support -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.StalkCoefficientSupport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An affine coefficient map from the spectrum of the stalk at a rational section can map to that section only if its kernel contains the maximal ideal. In particular, the actual field-valued point attached to a different prime is not the rational zero point. -/ |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | universe u |
| 13 | |
| 14 | theorem affine_stalk_coefficient_maximal_le_kernel_of_rational_zero |
| 15 | {K B : Type u} [Field K] [CommRing B] {X : Scheme.{u}} |
| 16 | (p : X ⟶ Spec (.of K)) (z : Spec (.of K) ⟶ X) (hz : z ≫ p = 𝟙 _) |
| 17 | [IsLocalRing Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤)] |
| 18 | (φ : Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤) →+* B) |
| 19 | (hzero : let j : Spec (.of B) ⟶ X := |
| 20 | QuotientCoefficientMap.affineCoordinateMap φ ≫ X.fromSpecStalk (z (IsLocalRing.closedPoint K)); |
| 21 | j = (j ≫ p) ≫ z) : |
| 22 | IsLocalRing.maximalIdeal Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤) ≤ RingHom.ker φ := by |
| 23 | let x := z (IsLocalRing.closedPoint K) |
| 24 | let O := X.presheaf.stalk x |
| 25 | let S := Spec O |
| 26 | let R := Γ(S, ⊤) |
| 27 | let j : Spec (.of B) ⟶ S := QuotientCoefficientMap.affineCoordinateMap φ |
| 28 | let q : O ⟶ .of B := Spec.preimage j |
| 29 | let e : Γ(S, ⊤) ≅ O := Scheme.ΓSpecIso O |
| 30 | have hc : e.hom ≫ q = CommRingCat.ofHom φ := by |
| 31 | apply Spec.map_injective |
| 32 | calc |
| 33 | Spec.map (e.hom ≫ q) = Spec.map q ≫ Spec.map e.hom := Spec.map_comp _ _ |
| 34 | _ = j ≫ S.isoSpec.hom := congrArg₂ (fun v w => v ≫ w) |
| 35 | (Spec.map_preimage j) (Scheme.isoSpec_Spec_hom O).symm |
| 36 | _ = Spec.map (CommRingCat.ofHom (HilbertConstruction.Spec.CoefficientCechComparison.specBaseCoefficientMap j)) := |
| 37 | (QuotientCoefficientMap.specBaseCoefficientMap_specMap j).symm |
| 38 | _ = Spec.map (CommRingCat.ofHom φ) := |
| 39 | congrArg (fun v : R →+* B => Spec.map (CommRingCat.ofHom v)) |
| 40 | (QuotientCoefficientMap.specBaseCoefficientMap_affineCoordinateMap φ) |
| 41 | let er := Rational.PointResidue.rationalPointResidueIso p z hz |
| 42 | let t : Spec (.of B) ⟶ Spec (X.residueField x) := |
| 43 | ((j ≫ X.fromSpecStalk x) ≫ p) ≫ Spec.map er.hom |
| 44 | have hfactor : Spec.map q ≫ X.fromSpecStalk x = t ≫ X.fromSpecResidueField x := by |
| 45 | calc |
| 46 | _ = j ≫ X.fromSpecStalk x := congrArg (fun v => v ≫ X.fromSpecStalk x) (Spec.map_preimage j) |
| 47 | _ = ((j ≫ X.fromSpecStalk x) ≫ p) ≫ z := hzero |
| 48 | _ = ((j ≫ X.fromSpecStalk x) ≫ p) ≫ (Spec.map er.hom ≫ X.fromSpecResidueField x) := |
| 49 | congrArg (fun v => ((j ≫ X.fromSpecStalk x) ≫ p) ≫ v) |
| 50 | (Rational.PointResidue.rationalPointResidueIso_factor p z hz).symm |
| 51 | _ = t ≫ X.fromSpecResidueField x := (Category.assoc _ _ _).symm |
| 52 | have : IsLocalHom e.hom.hom := IsLocalHom.of_surjective e.hom.hom e.commRingCatIsoToRingEquiv.surjective |
| 53 | intro r hr |
| 54 | have he : e.hom r ∈ IsLocalRing.maximalIdeal O := |
| 55 | IsLocalRing.map_maximalIdeal_le e.hom.hom (Ideal.mem_map_of_mem e.hom.hom hr) |
| 56 | exact (ConcreteCategory.congr_hom hc r).symm.trans |
| 57 | (StalkQuotientZeroSection.stalk_function_zero_of_residue_factor X x q t hfactor (e.hom r) he) |
| 58 | |
| 59 | theorem affine_stalk_primeResidue_ne_rational_zero |
| 60 | {K : Type u} [Field K] {X : Scheme.{u}} |
| 61 | (p : X ⟶ Spec (.of K)) (z : Spec (.of K) ⟶ X) (hz : z ≫ p = 𝟙 _) |
| 62 | [IsLocalRing Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤)] |
| 63 | (v : PrimeSpectrum Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤)) |
| 64 | (hv : v ≠ IsLocalRing.closedPoint Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤)) : |
| 65 | let j : Spec (.of v.asIdeal.ResidueField) ⟶ X := |
| 66 | QuotientCoefficientMap.affineCoordinateMap (algebraMap Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤) |
| 67 | v.asIdeal.ResidueField) ≫ X.fromSpecStalk (z (IsLocalRing.closedPoint K)); |
| 68 | j ≠ (j ≫ p) ≫ z := by |
| 69 | dsimp only |
| 70 | intro hzero |
| 71 | have h := affine_stalk_coefficient_maximal_le_kernel_of_rational_zero p z hz |
| 72 | (algebraMap Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤) v.asIdeal.ResidueField) hzero |
| 73 | have hm : IsLocalRing.maximalIdeal Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤) ≤ v.asIdeal := |
| 74 | (congrArg (fun I => IsLocalRing.maximalIdeal Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤) ≤ I) |
| 75 | v.asIdeal.ker_algebraMap_residueField).mp h |
| 76 | apply hv |
| 77 | apply PrimeSpectrum.ext |
| 78 | exact le_antisymm (IsLocalRing.le_maximalIdeal v.2.ne_top) hm |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.StalkCoefficientSupport |