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.Models.SpreadingOut.ClosedImmersionDescent |
| 2 | import Mathlib.CategoryTheory.Limits.Preserves.Shapes.BinaryProducts |
| 3 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Products |
| 4 | |
| 5 | /-! # Separated Descent -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.Models.SpreadingOut.SeparatedDescent.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Separatedness descends by applying closed-immersion descent to the diagonal. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | open scoped _root_.NumberField |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | theorem over_diagonal_comp (S : Scheme.{u}) (X : Over S) : |
| 19 | (Limits.diag X).left ≫ (Over.prodLeftIsoPullback X X).hom = |
| 20 | pullback.diagonal X.hom := by |
| 21 | apply pullback.hom_ext |
| 22 | · rw [Category.assoc, Over.prodLeftIsoPullback_hom_fst, pullback.diagonal_fst] |
| 23 | exact congrArg (fun f : X ⟶ X ↦ f.left) (prod.lift_fst (𝟙 X) (𝟙 X)) |
| 24 | · rw [Category.assoc, Over.prodLeftIsoPullback_hom_snd, pullback.diagonal_snd] |
| 25 | exact congrArg (fun f : X ⟶ X ↦ f.left) (prod.lift_snd (𝟙 X) (𝟙 X)) |
| 26 | |
| 27 | theorem isSeparated_iff_over_diagonal {S : Scheme.{u}} (X : Over S) : |
| 28 | IsSeparated X.hom ↔ IsClosedImmersion (Limits.diag X).left := by |
| 29 | rw [← MorphismProperty.cancel_right_of_respectsIso @IsClosedImmersion _ |
| 30 | (Over.prodLeftIsoPullback X X).hom, over_diagonal_comp] |
| 31 | exact isSeparated_iff _ |
| 32 | |
| 33 | theorem baseChange_diagonal_closed_iff |
| 34 | {S T : Scheme.{u}} (g : T ⟶ S) (X : Over S) : |
| 35 | IsClosedImmersion ((Over.pullback g).map (Limits.diag X)).left ↔ |
| 36 | IsSeparated ((Over.pullback g).obj X).hom := by |
| 37 | let B := Over.pullback g |
| 38 | have he : B.map (Limits.diag X) ≫ prodComparison B X X = Limits.diag (B.obj X) := by |
| 39 | apply prod.hom_ext |
| 40 | · rw [Category.assoc, prodComparison_fst, ← B.map_comp] |
| 41 | simp only [Limits.diag, prod.lift_fst, B.map_id] |
| 42 | · rw [Category.assoc, prodComparison_snd, ← B.map_comp] |
| 43 | simp only [Limits.diag, prod.lift_snd, B.map_id] |
| 44 | have : IsIso (prodComparison B X X).left := |
| 45 | inferInstanceAs (IsIso ((Over.forget T).map (prodComparison B X X))) |
| 46 | rw [← MorphismProperty.cancel_right_of_respectsIso @IsClosedImmersion _ |
| 47 | (prodComparison B X X).left] |
| 48 | change IsClosedImmersion (B.map (Limits.diag X) ≫ prodComparison B X X).left ↔ _ |
| 49 | rw [he] |
| 50 | exact (isSeparated_iff_over_diagonal (B.obj X)).symm |
| 51 | |
| 52 | theorem over_product_finitePresentation |
| 53 | {S : Scheme.{u}} (X Y : Over S) |
| 54 | (hX : Models.Scheme.Constructions.Foundations.FinitePresentationMorphism X.hom) (hY : Models.Scheme.Constructions.Foundations.FinitePresentationMorphism Y.hom) : |
| 55 | Models.Scheme.Constructions.Foundations.FinitePresentationMorphism (X ⨯ Y).hom := by |
| 56 | have : LocallyOfFinitePresentation X.hom := hX.1 |
| 57 | have : QuasiCompact X.hom := hX.2.1 |
| 58 | have : QuasiSeparated X.hom := hX.2.2 |
| 59 | have h := Over.isPullback_of_binaryFan_isLimit _ (prodIsProd X Y) |
| 60 | have : LocallyOfFinitePresentation (prod.snd : X ⨯ Y ⟶ Y).left := |
| 61 | MorphismProperty.of_isPullback h hX.1 |
| 62 | have : QuasiCompact (prod.snd : X ⨯ Y ⟶ Y).left := |
| 63 | MorphismProperty.of_isPullback h hX.2.1 |
| 64 | have : QuasiSeparated (prod.snd : X ⨯ Y ⟶ Y).left := |
| 65 | MorphismProperty.of_isPullback h hX.2.2 |
| 66 | have : LocallyOfFinitePresentation Y.hom := hY.1 |
| 67 | have : QuasiCompact Y.hom := hY.2.1 |
| 68 | have : QuasiSeparated Y.hom := hY.2.2 |
| 69 | rw [← (prod.snd : X ⨯ Y ⟶ Y).w] |
| 70 | exact ⟨inferInstance, inferInstance, inferInstance⟩ |
| 71 | |
| 72 | theorem closed_generic_map_eventually_closed |
| 73 | {K : Type u} [Field K] [NumberField K] {s : Finset K} |
| 74 | (X Y : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K s)) |
| 75 | (hX : Models.Scheme.Constructions.Foundations.FinitePresentationMorphism X.hom) (hY : Models.Scheme.Constructions.Foundations.FinitePresentationMorphism Y.hom) |
| 76 | (a : X ⟶ Y) |
| 77 | [IsClosedImmersion ((Over.pullback (CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K s)).map a).left] : |
| 78 | ∃ (t : Finset K) (h : s ⊆ t), |
| 79 | IsClosedImmersion ((Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K h)).map a).left := by |
| 80 | let g := CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K s |
| 81 | let B := Over.pullback g |
| 82 | have hXg : IsPullback (pullback.fst X.hom g) (B.obj X).hom X.hom g := |
| 83 | IsPullback.of_hasPullback X.hom g |
| 84 | have hYg : IsPullback (pullback.fst Y.hom g) (B.obj Y).hom Y.hom g := |
| 85 | IsPullback.of_hasPullback Y.hom g |
| 86 | have hcompat : pullback.fst X.hom g ≫ a.left = |
| 87 | (B.map a).left ≫ pullback.fst Y.hom g := |
| 88 | (FoundationsPullback.Constructions.pullback_over_map_isPullback g a).w.symm |
| 89 | exact ClosedImmersionDescent.Construction.closed_immersion_eventually_on_models (X := B.obj X) (Y := B.obj Y) X Y hX hY |
| 90 | (pullback.fst X.hom g) (pullback.fst Y.hom g) |
| 91 | hXg hYg (B.map a) a hcompat |
| 92 | |
| 93 | /-- A finite-presentation model with separated generic fiber is separated |
| 94 | after enlarging its finite set of coefficients. -/ |
| 95 | theorem separated_generic_model_eventually_separated |
| 96 | {K : Type u} [Field K] [NumberField K] {s : Finset K} |
| 97 | (X : Over (CoefficientSystem.Constructions.Foundations.coefficientBase (𝓞 K) K s)) |
| 98 | (hX : Models.Scheme.Constructions.Foundations.FinitePresentationMorphism X.hom) |
| 99 | [IsSeparated ((Over.pullback (CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K s)).obj X).hom] : |
| 100 | ∃ (t : Finset K) (h : s ⊆ t), |
| 101 | IsSeparated ((Over.pullback (CoefficientSystem.Constructions.Foundations.coefficientBaseMap (𝓞 K) K h)).obj X).hom := by |
| 102 | have : IsClosedImmersion |
| 103 | ((Over.pullback (CoefficientSystem.Constructions.Foundations.genericBaseMap (𝓞 K) K s)).map (Limits.diag X)).left := |
| 104 | (baseChange_diagonal_closed_iff _ X).mpr inferInstance |
| 105 | obtain ⟨t, h, hc⟩ := closed_generic_map_eventually_closed X (X ⨯ X) hX |
| 106 | (over_product_finitePresentation X X hX hX) (Limits.diag X) |
| 107 | exact ⟨t, h, (baseChange_diagonal_closed_iff _ X).mp hc⟩ |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.ArithmeticGeometry.Models.SpreadingOut.SeparatedDescent.Construction |