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.FormalGeometry.Completion.Proper.GlobalFunctions |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 3 | |
| 4 | /-! # Affine Base Change -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Proper.AffineBaseChange.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Completion: global functions after affine base change of a proper geometric scheme |
| 12 | |
| 13 | Flat base change identifies the global functions on X × Y with those on Y |
| 14 | when X is proper integral over an algebraically closed field and Y is affine. |
| 15 | This is the function-theoretic input for the product rigidity argument. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | variable {K : Type u} [Field K] [IsAlgClosed K] {X Y : Scheme.{u}} |
| 27 | (p : X ⟶ Spec (CommRingCat.of K)) [IsIntegral X] [IsProper p] |
| 28 | (q : Y ⟶ Spec (CommRingCat.of K)) [IsAffine Y] |
| 29 | |
| 30 | /-- The structure projection induces an isomorphism of global section rings. -/ |
| 31 | theorem properIntegral_affineBaseChange_appTop_isIso : |
| 32 | IsIso (pullback.snd p q).appTop := by |
| 33 | have : CompactSpace X := QuasiCompact.compactSpace_of_compactSpace p |
| 34 | have : QuasiSeparatedSpace X := quasiSeparatedSpace_of_quasiSeparated p |
| 35 | have hp : IsIso p.appTop := GlobalFunctions.Construction.properIntegral_appTop_isIso p |
| 36 | have h := isIso_pushoutSection_of_isQuasiSeparated_of_flat_right |
| 37 | (IsPullback.of_hasPullback p q) (US := ⊤) (UT := ⊤) (UX := ⊤) (UY := ⊤) |
| 38 | (by simp) (by simp) (by simp) (isAffineOpen_top _) (isAffineOpen_top _) |
| 39 | isCompact_univ isQuasiSeparated_univ |
| 40 | have hs := (isIso_pushoutSection_iff |
| 41 | (IsPullback.of_hasPullback p q) (US := ⊤) (UT := ⊤) (UX := ⊤) (UY := ⊤) |
| 42 | (by simp) (by simp) (by simp)).mp h |
| 43 | have hs' : IsPushout p.appTop q.appTop (pullback.fst p q).appTop (pullback.snd p q).appTop := by |
| 44 | simpa only [Scheme.Hom.appTop, Scheme.Hom.app_eq_appLE, TopologicalSpace.Opens.map_top] using hs |
| 45 | exact hs'.isIso_inr_of_isIso |
| 46 | |
| 47 | /-- The axis supplied by a section of the proper factor. -/ |
| 48 | def properProductSection (e : Spec (CommRingCat.of K) ⟶ X) (he : e ≫ p = 𝟙 _) : |
| 49 | Y ⟶ pullback p q := |
| 50 | pullback.lift (q ≫ e) (𝟙 Y) (by simp [Category.assoc, he]) |
| 51 | |
| 52 | /-- Every map from the product to an affine scheme factors through the affine base. -/ |
| 53 | theorem properIntegral_product_to_affine {Z : Scheme.{u}} [IsAffine Z] |
| 54 | (e : Spec (CommRingCat.of K) ⟶ X) (he : e ≫ p = 𝟙 _) |
| 55 | (f : pullback p q ⟶ Z) : |
| 56 | f = pullback.snd p q ≫ properProductSection p q e he ≫ f := by |
| 57 | have : IsIso (pullback.snd p q).appTop := properIntegral_affineBaseChange_appTop_isIso p q |
| 58 | have h : (pullback.snd p q).appTop ≫ (properProductSection p q e he).appTop = 𝟙 _ := by |
| 59 | rw [← Scheme.Hom.comp_appTop] |
| 60 | change (pullback.lift (q ≫ e) (𝟙 Y) _ ≫ pullback.snd p q).appTop = _ |
| 61 | rw [pullback.lift_snd, Scheme.Hom.id_appTop] |
| 62 | have h' : (properProductSection p q e he).appTop ≫ (pullback.snd p q).appTop = 𝟙 _ := by |
| 63 | rw [← cancel_epi (pullback.snd p q).appTop, ← Category.assoc, h] |
| 64 | simp |
| 65 | apply ext_of_isAffine |
| 66 | simp only [Scheme.Hom.comp_appTop, ← Category.assoc, h', Category.comp_id] |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Proper.AffineBaseChange.Construction |