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.ComplexMultiplication.AffineProducts |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.UniversallyOpen |
| 3 | import Mathlib.AlgebraicGeometry.PullbackCarrier |
| 4 | |
| 5 | /-! # Integral Products -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.IntegralProducts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # Integrality of the actual scheme product |
| 12 | |
| 13 | Both irreducibility and reducedness are proved on actual affine product charts. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry _root_.Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | variable {K : Type u} [Field K] [IsAlgClosed K] |
| 21 | {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] |
| 22 | (f : X ⟶ Spec (.of K)) (g : Y ⟶ Spec (.of K)) [LocallyOfFiniteType f] |
| 23 | |
| 24 | theorem integralPullbackChart (i : X.affineCover.I₀) (j : Y.affineCover.I₀) |
| 25 | [Nonempty (X.affineCover.X i)] [Nonempty (Y.affineCover.X j)] : |
| 26 | IsIntegral (pullback (X.affineCover.f i ≫ f) (Y.affineCover.f j ≫ g)) := by |
| 27 | have : IsIntegral (X.affineCover.X i) := isIntegral_of_isOpenImmersion (X.affineCover.f i) |
| 28 | have : IsIntegral (Y.affineCover.X j) := isIntegral_of_isOpenImmersion (Y.affineCover.f j) |
| 29 | exact AffineProducts.affineIntegralProduct _ _ |
| 30 | |
| 31 | /-- The actual fibred product over an algebraically closed field is integral. -/ |
| 32 | theorem integralSchemeProduct : IsIntegral (pullback f g) := by |
| 33 | classical |
| 34 | have hred : IsReduced (pullback f g) := by |
| 35 | apply +allowSynthFailures @isReduced_of_isReduced_stalk |
| 36 | intro z |
| 37 | let i := X.affineCover.idx (pullback.fst f g z) |
| 38 | let j := Y.affineCover.idx (pullback.snd f g z) |
| 39 | have hi : pullback.fst f g z ∈ Set.range (X.affineCover.f i) := X.affineCover.covers _ |
| 40 | have hj : pullback.snd f g z ∈ Set.range (Y.affineCover.f j) := Y.affineCover.covers _ |
| 41 | have : Nonempty (X.affineCover.X i) := ⟨hi.choose⟩ |
| 42 | have : Nonempty (Y.affineCover.X j) := ⟨hj.choose⟩ |
| 43 | have := integralPullbackChart f g i j |
| 44 | let m := pullback.map (X.affineCover.f i ≫ f) (Y.affineCover.f j ≫ g) f g |
| 45 | (X.affineCover.f i) (Y.affineCover.f j) (𝟙 _) (by simp) (by simp) |
| 46 | have hz : z ∈ Set.range m := by |
| 47 | rw [Scheme.Pullback.range_map] |
| 48 | exact ⟨hi, hj⟩ |
| 49 | obtain ⟨w, hw⟩ := hz |
| 50 | have hstalk : _root_.IsReduced ((pullback f g).presheaf.stalk (m w)) := |
| 51 | isReduced_of_injective (m.stalkMap w).hom |
| 52 | (asIso (m.stalkMap w)).commRingCatIsoToRingEquiv.injective |
| 53 | exact (congrArg (fun q : ↥(pullback f g) => |
| 54 | _root_.IsReduced ((pullback f g).presheaf.stalk q)) hw).mp hstalk |
| 55 | let x : X := Nonempty.some inferInstance |
| 56 | let y : Y := Nonempty.some inferInstance |
| 57 | let i := X.affineCover.idx x |
| 58 | let j := Y.affineCover.idx y |
| 59 | have hi : x ∈ Set.range (X.affineCover.f i) := X.affineCover.covers x |
| 60 | have hj : y ∈ Set.range (Y.affineCover.f j) := Y.affineCover.covers y |
| 61 | have : Nonempty (X.affineCover.X i) := ⟨hi.choose⟩ |
| 62 | have : Nonempty (Y.affineCover.X j) := ⟨hj.choose⟩ |
| 63 | have := integralPullbackChart f g i j |
| 64 | let m := pullback.map (X.affineCover.f i ≫ f) (Y.affineCover.f j ≫ g) f g |
| 65 | (X.affineCover.f i) (Y.affineCover.f j) (𝟙 _) (by simp) (by simp) |
| 66 | have hdense : Dense (Set.range m) := by |
| 67 | rw [Scheme.Pullback.range_map] |
| 68 | exact ((X.affineCover.f i).isOpenEmbedding.isOpen_range.dense ⟨x, hi⟩).preimage |
| 69 | (pullback.fst f g).isOpenMap |>.inter_of_isOpen_left |
| 70 | (((Y.affineCover.f j).isOpenEmbedding.isOpen_range.dense ⟨y, hj⟩).preimage |
| 71 | (pullback.snd f g).isOpenMap) |
| 72 | ((X.affineCover.f i).isOpenEmbedding.isOpen_range.preimage |
| 73 | (pullback.fst f g).continuous) |
| 74 | have hirr : IsIrreducible (Set.range m) := by |
| 75 | simpa only [Set.image_univ] using |
| 76 | (IrreducibleSpace.isIrreducible_univ |
| 77 | ↥(pullback (X.affineCover.f i ≫ f) (Y.affineCover.f j ≫ g))).image |
| 78 | m m.continuous.continuousOn |
| 79 | have : IrreducibleSpace ↥(pullback f g) := by |
| 80 | rw [irreducibleSpace_def] |
| 81 | simpa only [hdense.closure_eq, Set.top_eq_univ] using hirr.closure |
| 82 | exact isIntegral_of_irreducibleSpace_of_isReduced _ |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.ComplexMultiplication.IntegralProducts |