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.Picard.Homomorphisms.GroupRigidity |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.ProperFunctionsEq |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | |
| 5 | /-! # Proper Group Functions -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.ProperGroupFunctions |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Global functions on the product of a proper connected smooth group |
| 12 | with an arbitrary affine scheme come from the affine factor. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.CategoryTheory.Limits |
| 15 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 16 | open scoped _root_.CategoryTheory.MonObj |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | namespace Construction |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {k : Type u} [Field k] |
| 25 | variable (A : Over (Spec (.of k))) [GrpObj A] [Smooth A.hom] |
| 26 | variable [IsProper A.hom] [GeometricallyConnected A.hom] |
| 27 | |
| 28 | theorem properGroup_appTop_isIso : IsIso A.hom.appTop := by |
| 29 | have : ConnectedSpace A.left := GeometricallyConnected.connectedSpace_of_subsingleton A.hom |
| 30 | have : IsReduced A.left := ArithmeticGeometry.OrdinaryLocus.Openness.SmoothReduced.Construction.isReduced_smooth_over_field A.hom |
| 31 | exact Quotients.FiniteDescent.ProperFunctionsEq.Construction.ProperFunctions.isIso_appTop_of_section A η[A].left (Over.w η[A]) |
| 32 | |
| 33 | theorem properGroupProduct_appTop_isIso |
| 34 | (T : Over (Spec (.of k))) [IsAffine T.left] : IsIso (fst T A).left.appTop := by |
| 35 | have : CompactSpace A.left := QuasiCompact.compactSpace_of_compactSpace A.hom |
| 36 | have : IsLocallyNoetherian A.left := LocallyOfFiniteType.isLocallyNoetherian A.hom |
| 37 | have : IsNoetherian A.left := ⟨⟩ |
| 38 | have : QuasiSeparatedSpace A.left := inferInstance |
| 39 | let H := (IsPullback.of_hasPullback T.hom A.hom).flip |
| 40 | have hA : (⊤ : A.left.Opens) ≤ A.hom ⁻¹ᵁ ⊤ := le_rfl |
| 41 | have hT : (⊤ : T.left.Opens) ≤ T.hom ⁻¹ᵁ ⊤ := le_rfl |
| 42 | have hP : (fst T A).left ⁻¹ᵁ ⊤ = |
| 43 | (snd T A).left ⁻¹ᵁ ⊤ ⊓ (fst T A).left ⁻¹ᵁ ⊤ := by simp |
| 44 | have hq := isIso_pushoutSection_of_isQuasiSeparated_of_flat_right H hT hA hP |
| 45 | (isAffineOpen_top (Spec (.of k))) (isAffineOpen_top T.left) |
| 46 | isCompact_univ isQuasiSeparated_univ |
| 47 | have hp := (isIso_pushoutSection_iff H hT hA hP).mp hq |
| 48 | have : IsIso (A.hom.appLE ⊤ ⊤ hA) := by |
| 49 | change IsIso (A.hom.appLE ⊤ (A.hom ⁻¹ᵁ ⊤) le_rfl) |
| 50 | rw [Scheme.Hom.appLE_eq_app] |
| 51 | exact properGroup_appTop_isIso A |
| 52 | have h := hp.isIso_inr_of_isIso |
| 53 | change IsIso ((fst T A).left.appLE ⊤ ((fst T A).left ⁻¹ᵁ ⊤) le_rfl) at h |
| 54 | rw [Scheme.Hom.appLE_eq_app] at h |
| 55 | exact h |
| 56 | |
| 57 | def properGroupProductFunctionsEquiv |
| 58 | (T : Over (Spec (.of k))) [IsAffine T.left] : |
| 59 | Γ(T.left, ⊤) ≃+* Γ((T ⊗ A).left, ⊤) := by |
| 60 | have := properGroupProduct_appTop_isIso A T |
| 61 | exact (asIso (fst T A).left.appTop).commRingCatIsoToRingEquiv |
| 62 | |
| 63 | theorem properGroupProduct_affine_target |
| 64 | (T Z : Over (Spec (.of k))) [IsAffine T.left] [IsAffine Z.left] |
| 65 | (f : T ⊗ A ⟶ Z) : |
| 66 | f = fst T A ≫ lift (𝟙 T) (toUnit T ≫ η[A]) ≫ f := by |
| 67 | let p := fst T A |
| 68 | let s : T ⟶ T ⊗ A := lift (𝟙 T) (toUnit T ≫ η[A]) |
| 69 | have hs : s ≫ p = 𝟙 T := lift_fst _ _ |
| 70 | have : IsIso p.left.appTop := properGroupProduct_appTop_isIso A T |
| 71 | have he : p.left.appTop ≫ s.left.appTop = 𝟙 _ := by |
| 72 | rw [← Scheme.Hom.comp_appTop, ← Over.comp_left, hs, Over.id_left, Scheme.Hom.id_appTop] |
| 73 | have he' : s.left.appTop ≫ p.left.appTop = 𝟙 _ := by |
| 74 | apply (cancel_epi p.left.appTop).mp |
| 75 | rw [← Category.assoc, he, Category.id_comp, Category.comp_id] |
| 76 | apply Over.OverMorphism.ext |
| 77 | apply AlgebraicGeometry.ext_of_isAffine |
| 78 | change f.left.appTop = (p.left ≫ s.left ≫ f.left).appTop |
| 79 | rw [Scheme.Hom.comp_appTop, Scheme.Hom.comp_appTop, Category.assoc, he', Category.comp_id] |
| 80 | |
| 81 | end Construction |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.ProperGroupFunctions |