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.QuotientCoefficientMap |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.StalkQuotientZeroSection |
| 3 | import Mathlib.RingTheory.LocalRing.RingHom.Basic |
| 4 | |
| 5 | /-! # Stalk Quotient Zero Section -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.StalkQuotientZeroSection |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The coefficient ideal in the global functions of the spectrum of an actual stalk is maximal when its affine quotient maps scheme-theoretically to the rational zero point. The canonical global-functions/stalk isomorphism is retained explicitly. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | universe u |
| 14 | |
| 15 | theorem stalkSpecGlobalSections_isLocalRing (X : Scheme.{u}) (x : X) : |
| 16 | IsLocalRing Γ(Spec (X.presheaf.stalk x), ⊤) := |
| 17 | (Scheme.ΓSpecIso (X.presheaf.stalk x)).commRingCatIsoToRingEquiv.symm.isLocalRing |
| 18 | |
| 19 | theorem stalk_function_zero_of_residue_factor |
| 20 | (X : Scheme.{u}) (x : X) {B : Type u} [CommRing B] |
| 21 | (q : X.presheaf.stalk x ⟶ .of B) (t : Spec (.of B) ⟶ Spec (X.residueField x)) |
| 22 | (h : Spec.map q ≫ X.fromSpecStalk x = t ≫ X.fromSpecResidueField x) |
| 23 | (r : X.presheaf.stalk x) (hr : r ∈ IsLocalRing.maximalIdeal (X.presheaf.stalk x)) : |
| 24 | q.hom r = 0 := by |
| 25 | let φ : X.residueField x ⟶ .of B := Spec.preimage t |
| 26 | have hφ : X.residue x ≫ φ = q := by |
| 27 | apply Spec.map_injective |
| 28 | rw [Spec.map_comp, Spec.map_preimage] |
| 29 | apply (cancel_mono (X.fromSpecStalk x)).mp |
| 30 | exact (Category.assoc t (Spec.map (X.residue x)) (X.fromSpecStalk x)).trans h.symm |
| 31 | have hz : X.residue x r = 0 := (IsLocalRing.residue_eq_zero_iff r).mpr hr |
| 32 | exact (ConcreteCategory.congr_hom hφ r).symm.trans |
| 33 | ((congrArg φ.hom hz).trans (map_zero φ.hom)) |
| 34 | |
| 35 | theorem affine_stalk_quotient_eq_maximal_of_rational_zero |
| 36 | {K : Type u} [Field K] {X : Scheme.{u}} |
| 37 | (p : X ⟶ Spec (.of K)) (z : Spec (.of K) ⟶ X) (hz : z ≫ p = 𝟙 _) |
| 38 | [IsLocalRing Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤)] |
| 39 | (I : Ideal Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤)) |
| 40 | (hI : I ≤ IsLocalRing.maximalIdeal |
| 41 | Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤)) |
| 42 | (hzero : let j : Spec (.of (Γ(Spec (X.presheaf.stalk |
| 43 | (z (IsLocalRing.closedPoint K))), ⊤) ⧸ I)) ⟶ X := |
| 44 | (QuotientCoefficientMap.affineCoordinateMap (S := Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K)))) |
| 45 | (Ideal.Quotient.mk I)) ≫ X.fromSpecStalk (z (IsLocalRing.closedPoint K)); |
| 46 | j = (j ≫ p) ≫ z) : |
| 47 | I = IsLocalRing.maximalIdeal Γ(Spec (X.presheaf.stalk (z (IsLocalRing.closedPoint K))), ⊤) := by |
| 48 | let x := z (IsLocalRing.closedPoint K) |
| 49 | let O := X.presheaf.stalk x |
| 50 | let S := Spec O |
| 51 | let R := Γ(S, ⊤) |
| 52 | let B := R ⧸ I |
| 53 | let j : Spec (.of B) ⟶ S := QuotientCoefficientMap.affineCoordinateMap (Ideal.Quotient.mk I) |
| 54 | let q : O ⟶ .of B := Spec.preimage j |
| 55 | let e : Γ(S, ⊤) ≅ O := Scheme.ΓSpecIso O |
| 56 | have hc : e.hom ≫ q = CommRingCat.ofHom (Ideal.Quotient.mk I) := by |
| 57 | apply Spec.map_injective |
| 58 | calc |
| 59 | Spec.map (e.hom ≫ q) = Spec.map q ≫ Spec.map e.hom := Spec.map_comp _ _ |
| 60 | _ = j ≫ S.isoSpec.hom := congrArg₂ (fun v w => v ≫ w) |
| 61 | (Spec.map_preimage j) (Scheme.isoSpec_Spec_hom O).symm |
| 62 | _ = Spec.map (CommRingCat.ofHom (HilbertConstruction.Spec.CoefficientCechComparison.specBaseCoefficientMap j)) := |
| 63 | (QuotientCoefficientMap.specBaseCoefficientMap_specMap j).symm |
| 64 | _ = Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk I)) := |
| 65 | congrArg (fun v : R →+* B => Spec.map (CommRingCat.ofHom v)) |
| 66 | (QuotientCoefficientMap.specBaseCoefficientMap_affineCoordinateMap (Ideal.Quotient.mk I)) |
| 67 | let er := Rational.PointResidue.rationalPointResidueIso p z hz |
| 68 | let t : Spec (.of B) ⟶ Spec (X.residueField x) := |
| 69 | ((j ≫ X.fromSpecStalk x) ≫ p) ≫ Spec.map er.hom |
| 70 | have hfactor : Spec.map q ≫ X.fromSpecStalk x = t ≫ X.fromSpecResidueField x := by |
| 71 | calc |
| 72 | _ = j ≫ X.fromSpecStalk x := congrArg (fun v => v ≫ X.fromSpecStalk x) (Spec.map_preimage j) |
| 73 | _ = ((j ≫ X.fromSpecStalk x) ≫ p) ≫ z := hzero |
| 74 | _ = ((j ≫ X.fromSpecStalk x) ≫ p) ≫ (Spec.map er.hom ≫ X.fromSpecResidueField x) := |
| 75 | congrArg (fun v => ((j ≫ X.fromSpecStalk x) ≫ p) ≫ v) |
| 76 | (Rational.PointResidue.rationalPointResidueIso_factor p z hz).symm |
| 77 | _ = t ≫ X.fromSpecResidueField x := (Category.assoc _ _ _).symm |
| 78 | have : IsLocalHom e.hom.hom := IsLocalHom.of_surjective e.hom.hom e.commRingCatIsoToRingEquiv.surjective |
| 79 | apply le_antisymm hI |
| 80 | intro r hr |
| 81 | apply Ideal.Quotient.eq_zero_iff_mem.mp |
| 82 | have he : e.hom r ∈ IsLocalRing.maximalIdeal O := |
| 83 | IsLocalRing.map_maximalIdeal_le e.hom.hom (Ideal.mem_map_of_mem e.hom.hom hr) |
| 84 | exact (ConcreteCategory.congr_hom hc r).symm.trans |
| 85 | (stalk_function_zero_of_residue_factor X x q t hfactor (e.hom r) he) |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.StalkQuotientZeroSection |