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.Limits |
| 2 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 3 | import Mathlib.CategoryTheory.Extensive |
| 4 | |
| 5 | /-! # Partition Base Maps -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.PartitionBaseMaps |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! Products with a fixed scheme over the base preserve a finite |
| 14 | disjoint decomposition of the parameter scheme. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 19 | |
| 20 | namespace FiniteBasePartition |
| 21 | variable {S : Scheme.{0}} {I : Type} [Finite I] |
| 22 | (U : I → Over S) (T : Over S) (j : ∀ i, U i ⟶ T) |
| 23 | (H : IsColimit (Cofan.mk T.left (fun i => (j i).left))) |
| 24 | |
| 25 | def productCofanIsColimit (X : Over S) : |
| 26 | IsColimit (Cofan.mk (T ⨯ X).left (fun i => (prod.map (j i) (𝟙 X)).left)) := by |
| 27 | have hP (V : Over S) : IsPullback (prod.snd : V ⨯ X ⟶ X).left |
| 28 | (prod.fst : V ⨯ X ⟶ V).left X.hom V.hom := |
| 29 | (Over.isPullback_of_binaryFan_isLimit _ (prodIsProd V X)).flip |
| 30 | let h := FinitaryPreExtensive.isUniversal_finiteCoproducts H |
| 31 | apply Classical.choice |
| 32 | refine h.nonempty_isColimit_of_isPullback_left (fun i => (U i).hom) T.hom X.hom |
| 33 | (fun i => (prod.snd : U i ⨯ X ⟶ X).left) |
| 34 | (fun i => (prod.fst : U i ⨯ X ⟶ U i).left) (fun i => hP (U i)) (hP T) |
| 35 | (Cofan.mk (T ⨯ X).left (fun i => (prod.map (j i) (𝟙 X)).left)) (Iso.refl _) ?_ ?_ ?_ |
| 36 | · exact fun i => (j i).w |
| 37 | · intro i |
| 38 | change (prod.map (j i) (𝟙 X)).left ≫ (prod.snd : T ⨯ X ⟶ X).left = _ |
| 39 | rw [← Over.comp_left, prod.map_snd, Category.comp_id] |
| 40 | · intro i |
| 41 | change (prod.map (j i) (𝟙 X)).left ≫ (prod.fst : T ⨯ X ⟶ T).left = _ |
| 42 | rw [← Over.comp_left, prod.map_fst, Over.comp_left] |
| 43 | rfl |
| 44 | |
| 45 | include H in |
| 46 | theorem product_hom_ext (X Y : Over S) (f g : T ⨯ X ⟶ Y) |
| 47 | (h : ∀ i, prod.map (j i) (𝟙 X) ≫ f = prod.map (j i) (𝟙 X) ≫ g) : f = g := by |
| 48 | apply Over.OverMorphism.ext |
| 49 | apply Cofan.IsColimit.hom_ext (productCofanIsColimit U T j H X) |
| 50 | intro i |
| 51 | exact congrArg Over.Hom.left (h i) |
| 52 | |
| 53 | def glue (X Y : Over S) (f : ∀ i, U i ⨯ X ⟶ Y) : T ⨯ X ⟶ Y := by |
| 54 | let C := productCofanIsColimit U T j H X |
| 55 | let m := Cofan.IsColimit.desc C (fun i => (f i).left) |
| 56 | refine Over.homMk m ?_ |
| 57 | apply Cofan.IsColimit.hom_ext C |
| 58 | intro i |
| 59 | change (prod.map (j i) (𝟙 X)).left ≫ (m ≫ Y.hom) = |
| 60 | (prod.map (j i) (𝟙 X)).left ≫ (T ⨯ X).hom |
| 61 | have hm : (prod.map (j i) (𝟙 X)).left ≫ m = (f i).left := |
| 62 | Cofan.IsColimit.fac C (fun i => (f i).left) i |
| 63 | rw [← Category.assoc, hm] |
| 64 | exact (f i).w.trans (prod.map (j i) (𝟙 X)).w.symm |
| 65 | |
| 66 | theorem glue_restrict (X Y : Over S) (f : ∀ i, U i ⨯ X ⟶ Y) (i : I) : |
| 67 | prod.map (j i) (𝟙 X) ≫ glue U T j H X Y f = f i := by |
| 68 | apply Over.OverMorphism.ext |
| 69 | exact Cofan.IsColimit.fac (productCofanIsColimit U T j H X) (fun i => (f i).left) i |
| 70 | |
| 71 | end FiniteBasePartition |
| 72 | |
| 73 | end |
| 74 | |
| 75 | /-! Maps out of a finite disjoint parameter decomposition glue over the |
| 76 | original base, with their exact component restrictions. -/ |
| 77 | |
| 78 | set_option backward.isDefEq.respectTransparency false |
| 79 | set_option backward.isDefEq.respectTransparency.types false |
| 80 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 81 | |
| 82 | namespace FiniteBasePartition |
| 83 | variable {S : Scheme.{0}} {I : Type} |
| 84 | (U : I → Over S) (T : Over S) (j : ∀ i, U i ⟶ T) |
| 85 | (H : IsColimit (Cofan.mk T.left (fun i => (j i).left))) |
| 86 | |
| 87 | include H in |
| 88 | theorem base_hom_ext (Y : Over S) (f g : T ⟶ Y) |
| 89 | (h : ∀ i, j i ≫ f = j i ≫ g) : f = g := by |
| 90 | apply Over.OverMorphism.ext |
| 91 | apply Cofan.IsColimit.hom_ext H |
| 92 | exact fun i => congrArg Over.Hom.left (h i) |
| 93 | |
| 94 | def glueBase (Y : Over S) (f : ∀ i, U i ⟶ Y) : T ⟶ Y := by |
| 95 | let m := Cofan.IsColimit.desc H (fun i => (f i).left) |
| 96 | refine Over.homMk m ?_ |
| 97 | apply Cofan.IsColimit.hom_ext H |
| 98 | intro i |
| 99 | have hm : (j i).left ≫ m = (f i).left := Cofan.IsColimit.fac H (fun i => (f i).left) i |
| 100 | change (j i).left ≫ (m ≫ Y.hom) = (j i).left ≫ T.hom |
| 101 | rw [← Category.assoc, hm] |
| 102 | exact (f i).w.trans (j i).w.symm |
| 103 | |
| 104 | theorem glueBase_restrict (Y : Over S) (f : ∀ i, U i ⟶ Y) (i : I) : |
| 105 | j i ≫ glueBase U T j H Y f = f i := by |
| 106 | apply Over.OverMorphism.ext |
| 107 | exact Cofan.IsColimit.fac H (fun i => (f i).left) i |
| 108 | |
| 109 | end FiniteBasePartition |
| 110 | |
| 111 | end |
| 112 | |
| 113 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.PartitionBaseMaps |