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.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteImageNeighborhood |
| 2 | import Mathlib.AlgebraicGeometry.Group.Abelian |
| 3 | |
| 4 | /-! # Rigidity -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.Rigidity.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Rigidity for morphisms out of proper families over an algebraically closed field. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | open MonoidalCategory CartesianMonoidalCategory |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem graph_image_fiber_subset_singleton |
| 18 | {k : Type u} [Field k] [IsAlgClosed k] |
| 19 | (Y X Z : Over (Spec (.of k))) |
| 20 | [LocallyOfFiniteType Y.hom] [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Z.hom] |
| 21 | (y₀ : 𝟙_ (Over (Spec (.of k))) ⟶ Y) |
| 22 | (z₀ : 𝟙_ (Over (Spec (.of k))) ⟶ Z) |
| 23 | (f : Y ⊗ X ⟶ Z) |
| 24 | (h₀ : lift (toUnit X ≫ y₀) (𝟙 X) ≫ f = toUnit X ≫ z₀) : |
| 25 | (lift (fst Y X) f).left '' ((fst Y X).left ⁻¹' |
| 26 | {y₀.left (IsLocalRing.closedPoint k)}) ⊆ |
| 27 | {(lift y₀ z₀).left (IsLocalRing.closedPoint k)} := by |
| 28 | let point : Spec (.of k) := IsLocalRing.closedPoint k |
| 29 | let γ := lift (fst Y X) f |
| 30 | have : LocallyOfFiniteType (Y ⊗ X).hom := by dsimp; infer_instance |
| 31 | have : LocallyOfFiniteType (Y ⊗ Z).hom := by dsimp; infer_instance |
| 32 | have : JacobsonSpace (Y ⊗ X).left := LocallyOfFiniteType.jacobsonSpace (Y ⊗ X).hom |
| 33 | have hy₀ : IsClosed {y₀.left point} := |
| 34 | ((pointEquivClosedPoint Y.hom) ⟨y₀.left, Over.w y₀⟩).2 |
| 35 | have hz₀ : IsClosed {(lift y₀ z₀).left point} := |
| 36 | ((pointEquivClosedPoint (Y ⊗ Z).hom) ⟨(lift y₀ z₀).left, Over.w _⟩).2 |
| 37 | rw [Set.image_subset_iff, ← Set.sdiff_eq_empty, ← Set.not_nonempty_iff_eq_empty] |
| 38 | intro H |
| 39 | obtain ⟨c₀, ⟨hc₁, hc₂⟩, hc₃⟩ := nonempty_inter_closedPoints H (by |
| 40 | rw [Set.sdiff_eq_compl_inter] |
| 41 | exact ((hz₀.preimage γ.left.continuous).isOpen_compl.isLocallyClosed).inter |
| 42 | ((hy₀.preimage (fst Y X).left.continuous).isLocallyClosed)) |
| 43 | obtain ⟨⟨c, hc⟩, e⟩ := (pointEquivClosedPoint (Y ⊗ X).hom).surjective ⟨c₀, hc₃⟩ |
| 44 | obtain rfl : c point = c₀ := congr(($e).1) |
| 45 | let c' : 𝟙_ (Over (Spec (.of k))) ⟶ Y ⊗ X := Over.homMk c hc |
| 46 | have hfst : c' ≫ fst Y X = y₀ := by |
| 47 | ext1 |
| 48 | exact ext_of_apply_closedPoint_eq Y.hom (Over.w (c' ≫ fst Y X)) (Over.w y₀) hc₁ |
| 49 | have hfac : c' = (c' ≫ snd Y X) ≫ lift (toUnit X ≫ y₀) (𝟙 X) := by |
| 50 | apply CartesianMonoidalCategory.hom_ext <;> simp [hfst] |
| 51 | have hγ : c' ≫ γ = lift y₀ z₀ := by |
| 52 | rw [hfac] |
| 53 | apply CartesianMonoidalCategory.hom_ext |
| 54 | · simp [γ] |
| 55 | · simp only [Category.assoc, γ, lift_snd] |
| 56 | rw [← Category.assoc, h₀] |
| 57 | simp |
| 58 | apply hc₂ |
| 59 | change γ.left (c point) = (lift y₀ z₀).left point |
| 60 | exact congrArg (fun q : Spec (.of k) ⟶ (Y ⊗ Z).left ↦ q point) |
| 61 | (congrArg Over.Hom.left hγ) |
| 62 | |
| 63 | /-- If a morphism on an integral product is constant on one fiber of its |
| 64 | proper factor, it is independent of that factor. -/ |
| 65 | theorem rigidity_of_constant_fiber |
| 66 | {k : Type u} [Field k] [IsAlgClosed k] |
| 67 | (Y X Z : Over (Spec (.of k))) |
| 68 | [LocallyOfFiniteType Y.hom] [IsProper X.hom] |
| 69 | [LocallyOfFiniteType Z.hom] [IsSeparated Z.hom] |
| 70 | [IsIntegral (Y ⊗ X).left] |
| 71 | (y₀ : 𝟙_ (Over (Spec (.of k))) ⟶ Y) |
| 72 | (x₀ : 𝟙_ (Over (Spec (.of k))) ⟶ X) |
| 73 | (z₀ : 𝟙_ (Over (Spec (.of k))) ⟶ Z) |
| 74 | (f : Y ⊗ X ⟶ Z) |
| 75 | (h₀ : lift (toUnit X ≫ y₀) (𝟙 X) ≫ f = toUnit X ≫ z₀) : |
| 76 | f = fst Y X ≫ lift (𝟙 Y) (toUnit Y ≫ x₀) ≫ f := by |
| 77 | let point : Spec (.of k) := IsLocalRing.closedPoint k |
| 78 | let γ := lift (fst Y X) f |
| 79 | let r : Y ⊗ X ⟶ Y ⊗ X := fst Y X ≫ lift (𝟙 Y) (toUnit Y ≫ x₀) |
| 80 | have : Nonempty X.left := ⟨x₀.left point⟩ |
| 81 | have : Nonempty Y.left := ⟨y₀.left point⟩ |
| 82 | have : Surjective X.hom := ⟨Function.surjective_to_subsingleton _⟩ |
| 83 | have : Surjective Y.hom := ⟨Function.surjective_to_subsingleton _⟩ |
| 84 | have : IsProper (fst Y X).left := by dsimp; infer_instance |
| 85 | have : Surjective (fst Y X).left := by dsimp; infer_instance |
| 86 | have : IsSeparated (fst Y Z).left := by dsimp; infer_instance |
| 87 | have : LocallyOfFiniteType (fst Y Z).left := by dsimp; infer_instance |
| 88 | have : LocallyOfFiniteType (Y ⊗ X).hom := by dsimp; infer_instance |
| 89 | have : JacobsonSpace (Y ⊗ X).left := LocallyOfFiniteType.jacobsonSpace (Y ⊗ X).hom |
| 90 | have : IsProper (γ.left ≫ (fst Y Z).left) := by |
| 91 | simpa only [← Over.comp_left, γ, lift_fst] using |
| 92 | (inferInstance : IsProper (fst Y X).left) |
| 93 | have : IsProper γ.left := .of_comp _ (fst Y Z).left |
| 94 | have hfinite : (γ.left '' ((γ.left ≫ (fst Y Z).left) ⁻¹' |
| 95 | {y₀.left point})).Finite := by |
| 96 | rw [← Over.comp_left] |
| 97 | simpa only [γ, lift_fst] using (Set.finite_singleton _).subset |
| 98 | (graph_image_fiber_subset_singleton Y X Z y₀ z₀ f h₀) |
| 99 | obtain ⟨U, hy₀U, hU⟩ := |
| 100 | FiniteImageNeighborhood.Construction.finite_image_fiber_neighborhood γ.left (fst Y Z).left (y₀.left point) hfinite |
| 101 | ext1 |
| 102 | have : LocallyOfFiniteType (f.left ≫ Z.hom) := by rw [Over.w]; infer_instance |
| 103 | refine ext_of_apply_eq Z.hom _ |
| 104 | ((fst Y X).left ⁻¹ᵁ U).isOpen.isLocallyClosed |
| 105 | (((fst Y X).left ⁻¹ᵁ U).isOpen.dense ?_) ?_ ?_ |
| 106 | · exact .preimage ⟨_, hy₀U⟩ (fst Y X).left.surjective |
| 107 | · intro c hcU hc |
| 108 | have hy : IsClosed {(fst Y X).left c} := by |
| 109 | simpa only [Set.image_singleton] using (fst Y X).left.isClosedMap _ hc |
| 110 | let y : 𝟙_ (Over (Spec (.of k))) ⟶ Y := |
| 111 | Over.homMk (pointOfClosedPoint Y.hom _ hy) (pointOfClosedPoint_comp Y.hom _ hy) |
| 112 | let c' : (Y ⊗ X).left := r.left c |
| 113 | have hr : (fst Y X).left c' = (fst Y X).left c := by |
| 114 | change (r ≫ fst Y X).left c = _ |
| 115 | simp [r] |
| 116 | have hγ : γ.left c = γ.left c' := by |
| 117 | refine subsingleton_image_closure_of_finite_of_isPreirreducible |
| 118 | (hy.preimage (fst Y X).left.continuous).isLocallyClosed ?_ γ.left.continuous |
| 119 | γ.left.isClosedMap ((hU ⟨_, hcU⟩).subset (Set.image_subset_iff.mpr ?_)) ?_ ?_ |
| 120 | · let α : Y ⊗ X ⟶ Y ⊗ X := (toUnit Y ≫ y) ⊗ₘ 𝟙 X |
| 121 | convert! |
| 122 | ((IrreducibleSpace.isIrreducible_univ _).image α.left |
| 123 | α.left.continuous.continuousOn).isPreirreducible |
| 124 | rw [Over.tensorHom_left] |
| 125 | simp [Set.range_comp, Scheme.Pullback.range_map, y, |
| 126 | Set.range_eq_univ.mpr Y.hom.surjective] |
| 127 | · intro t ht |
| 128 | refine ⟨?_, ⟨t, rfl⟩⟩ |
| 129 | change (γ ≫ fst Y Z).left t = (fst Y X).left c |
| 130 | change (fst Y X).left t = (fst Y X).left c at ht |
| 131 | simpa only [γ, lift_fst] using ht |
| 132 | · exact ⟨c, subset_closure (by simp), rfl⟩ |
| 133 | · exact ⟨c', subset_closure hr, rfl⟩ |
| 134 | have h := congrArg (fun z ↦ (snd Y Z).left z) hγ |
| 135 | change (γ ≫ snd Y Z).left c = (r ≫ γ ≫ snd Y Z).left c at h |
| 136 | simpa only [γ, lift_snd, r, Category.assoc] using h |
| 137 | · exact (Over.w f).trans (Over.w (fst Y X ≫ lift (𝟙 Y) (toUnit Y ≫ x₀) ≫ f)).symm |
| 138 | |
| 139 | end |
| 140 | |
| 141 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.Rigidity.Construction |