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 Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 2 | import Mathlib.AlgebraicGeometry.Morphisms.Etale |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.UnramifiedQuasiFinite |
| 4 | |
| 5 | /-! # Finite Reduction -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.FiniteReduction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Finiteness of an actual etale map descends from a surjective |
| 12 | closed source reduction whose composite map is finite. The separated |
| 13 | diagonal is proved explicitly from the reduced diagonal. -/ |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 18 | universe u |
| 19 | variable {X₀ X Y₀ Y : Scheme.{u}} (i : X₀ ⟶ X) [IsClosedImmersion i] |
| 20 | (j : Y₀ ⟶ Y) [IsClosedImmersion j] [Surjective j] |
| 21 | (f₀ : Y₀ ⟶ X₀) [IsFinite f₀] (f : Y ⟶ X) [Etale f] |
| 22 | (h : j ≫ f = f₀ ≫ i) |
| 23 | |
| 24 | private def productMap : pullback (f₀ ≫ i) (f₀ ≫ i) ⟶ pullback f f := |
| 25 | pullback.map _ _ _ _ j j (𝟙 X) ((Category.comp_id _).trans h.symm) |
| 26 | ((Category.comp_id _).trans h.symm) |
| 27 | |
| 28 | private instance productMap_closed : IsClosedImmersion (productMap i j f₀ f h) := |
| 29 | MorphismProperty.pullbackMap (P := @IsClosedImmersion) inferInstance inferInstance h.symm h.symm |
| 30 | |
| 31 | omit [IsClosedImmersion i] [IsClosedImmersion j] [Surjective j] [IsFinite f₀] [Etale f] in |
| 32 | private theorem reduced_diagonal : j ≫ pullback.diagonal f = |
| 33 | pullback.diagonal f₀ ≫ pullback.mapDesc f₀ f₀ i ≫ productMap i j f₀ f h := by |
| 34 | apply pullback.hom_ext <;> simp [productMap] |
| 35 | |
| 36 | include h in |
| 37 | omit [Etale f] in |
| 38 | theorem separated : IsSeparated f := by |
| 39 | have hd : IsClosedImmersion (j ≫ pullback.diagonal f) := by |
| 40 | rw [reduced_diagonal i j f₀ f h] |
| 41 | infer_instance |
| 42 | have hr : Set.range (j ≫ pullback.diagonal f) = Set.range (pullback.diagonal f) := by |
| 43 | change Set.range (pullback.diagonal f ∘ j) = _ |
| 44 | rw [Set.range_comp, Set.range_eq_univ.mpr j.surjective, Set.image_univ] |
| 45 | exact ⟨IsClosedImmersion.of_isPreimmersion _ |
| 46 | (hr ▸ (j ≫ pullback.diagonal f).isClosedEmbedding.isClosed_range)⟩ |
| 47 | |
| 48 | include h in |
| 49 | theorem finite : IsFinite f := by |
| 50 | let : IsSeparated f := separated i j f₀ f h |
| 51 | let : IsFinite (j ≫ f) := h ▸ (inferInstance : IsFinite (f₀ ≫ i)) |
| 52 | let : UniversallyClosed f := UniversallyClosed.of_comp_surjective j f |
| 53 | let : IsProper f := ⟨⟩ |
| 54 | let : LocallyQuasiFinite f := OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.UnramifiedQuasiFinite.locallyQuasiFinite_of_unramified f |
| 55 | exact IsFinite.of_isProper_of_locallyQuasiFinite f |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.FiniteReduction |