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.Rational.FiberIsomorphism |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.LocallyNoetherian.FiberEuler |
| 3 | |
| 4 | /-! # Fiber Euler -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.FiberEuler |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Rational fibers compute the intrinsic Euler function, and have equal Euler characteristics over a connected locally Noetherian parameter space. -/ |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 12 | universe u |
| 13 | |
| 14 | theorem rationalFiber_euler_eq {K : Type u} [Field K] {S X P : Scheme.{u}} |
| 15 | (p : S ⟶ Spec (.of K)) (s : Spec (.of K) ⟶ S) (hs : s ≫ p = 𝟙 _) |
| 16 | {a : P ⟶ X} {b : P ⟶ Spec (.of K)} {f : X ⟶ S} [IsSeparated f] |
| 17 | (H : IsPullback a b f s) (L : Line.Bundles.LineBundle X) : |
| 18 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic b (L.pullback a).sheaf = |
| 19 | Geometric.FiberEuler.fiberEulerCharacteristic f L (s (IsLocalRing.closedPoint K)) := by |
| 20 | let x := s (IsLocalRing.closedPoint K) |
| 21 | let j := (FiberIsomorphism.rationalFiberIso p s hs H).hom |
| 22 | let q := f.fiberToSpecResidueField x |
| 23 | let L₀ := L.pullback (f.fiberι x) |
| 24 | let M := L.pullback a |
| 25 | have : IsIso j := inferInstanceAs (IsIso (FiberIsomorphism.rationalFiberIso p s hs H).hom) |
| 26 | have : IsSeparated q := inferInstanceAs (IsSeparated (pullback.snd f (S.fromSpecResidueField x))) |
| 27 | have : (f.fiber x).IsSeparated := ⟨by rw [← terminal.comp_from q]; infer_instance⟩ |
| 28 | let e := (PointResidue.rationalPointResidueIso p s hs).commRingCatIsoToRingEquiv |
| 29 | have he : CohomologyEulerCharacteristic.coefficientEulerCharacteristic (b ≫ Spec.map (PointResidue.rationalPointResidueIso p s hs).hom) M.sheaf = |
| 30 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic b M.sheaf := HilbertConstruction.Field.CoefficientEuler.coefficientEulerCharacteristic_fieldIso e b M.sheaf |
| 31 | calc |
| 32 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic b M.sheaf = |
| 33 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic (b ≫ Spec.map (PointResidue.rationalPointResidueIso p s hs).hom) M.sheaf := he.symm |
| 34 | _ = CohomologyEulerCharacteristic.coefficientEulerCharacteristic (j ≫ q) M.sheaf := |
| 35 | congrArg (fun r => CohomologyEulerCharacteristic.coefficientEulerCharacteristic r M.sheaf) (FiberIsomorphism.rationalFiberIso_structure p s hs H).symm |
| 36 | _ = CohomologyEulerCharacteristic.coefficientEulerCharacteristic (j ≫ q) (L₀.pullback j).sheaf := |
| 37 | Proper.LineBundleEuler.coefficientEulerCharacteristic_eq_of_sheafIso (j ≫ q) (FiberIsomorphism.rationalFiberBundleIso p s hs H L).symm |
| 38 | _ = CohomologyEulerCharacteristic.coefficientEulerCharacteristic q L₀.sheaf := EulerPullbackIso.coefficientEulerCharacteristic_pullback_iso j q L₀ |
| 39 | _ = Geometric.FiberEuler.fiberEulerCharacteristic f L x := (FiberEulerGroundField.fiberEulerCharacteristic_eq_groundField f L x).symm |
| 40 | |
| 41 | theorem connected_rationalFiber_euler_eq {K : Type u} [Field K] {S X P Q : Scheme.{u}} |
| 42 | [IsLocallyNoetherian S] [PreconnectedSpace S] |
| 43 | (p : S ⟶ Spec (.of K)) (s t : Spec (.of K) ⟶ S) |
| 44 | (hs : s ≫ p = 𝟙 _) (ht : t ≫ p = 𝟙 _) |
| 45 | {a : P ⟶ X} {b : P ⟶ Spec (.of K)} {c : Q ⟶ X} {d : Q ⟶ Spec (.of K)} |
| 46 | {f : X ⟶ S} [IsProper f] [Flat f] |
| 47 | (Hs : IsPullback a b f s) (Ht : IsPullback c d f t) (L : Line.Bundles.LineBundle X) : |
| 48 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic b (L.pullback a).sheaf = |
| 49 | CohomologyEulerCharacteristic.coefficientEulerCharacteristic d (L.pullback c).sheaf := |
| 50 | (rationalFiber_euler_eq p s hs Hs L).trans |
| 51 | ((LocallyNoetherian.FiberEuler.locallyNoetherian_properFlat_fiberEuler_eq_of_preconnected f L _ _).trans |
| 52 | (rationalFiber_euler_eq p t ht Ht L).symm) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Rational.FiberEuler |