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.PELModuli.IntegralModel.Reduced.RepresentationAtlas |
| 2 | |
| 3 | /-! # Over Open Cover Gluing -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.OverOpenCoverGluing |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Actual relative maps glue uniquely on a source open cover. -/ |
| 10 | |
| 11 | set_option backward.isDefEq.respectTransparency false |
| 12 | set_option backward.isDefEq.respectTransparency.types false |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | namespace OverOpenCover |
| 16 | variable {S : Scheme.{0}} (T : Over S) (C : T.left.OpenCover) |
| 17 | |
| 18 | def obj (i : C.I₀) : Over S := Over.mk (C.f i ≫ T.hom) |
| 19 | def inclusion (i : C.I₀) : obj T C i ⟶ T := Over.homMk (C.f i) rfl |
| 20 | |
| 21 | instance obj_reduced [IsReduced T.left] (i : C.I₀) : IsReduced (obj T C i).left := |
| 22 | isReduced_of_isOpenImmersion (C.f i) |
| 23 | |
| 24 | def overlap (i j : C.I₀) : Over S := Over.mk ((pullback.fst (C.f i) (C.f j) ≫ C.f i) ≫ T.hom) |
| 25 | |
| 26 | def overlapLeft (i j : C.I₀) : overlap T C i j ⟶ obj T C i := |
| 27 | Over.homMk (pullback.fst _ _) (Category.assoc _ _ _).symm |
| 28 | |
| 29 | def overlapRight (i j : C.I₀) : overlap T C i j ⟶ obj T C j := Over.homMk (pullback.snd _ _) (by |
| 30 | change pullback.snd (C.f i) (C.f j) ≫ (C.f j ≫ T.hom) = _ |
| 31 | rw [← Category.assoc] |
| 32 | exact congrArg (fun f => f ≫ T.hom) (pullback.condition (f := C.f i) (g := C.f j)).symm) |
| 33 | |
| 34 | theorem overlap_condition (i j : C.I₀) : |
| 35 | overlapLeft T C i j ≫ inclusion T C i = overlapRight T C i j ≫ inclusion T C j := by |
| 36 | apply Over.OverMorphism.ext |
| 37 | exact pullback.condition |
| 38 | |
| 39 | instance overlap_reduced [IsReduced T.left] (i j : C.I₀) : IsReduced (overlap T C i j).left := by |
| 40 | have : IsReduced (C.X i) := isReduced_of_isOpenImmersion (C.f i) |
| 41 | exact isReduced_of_isOpenImmersion (pullback.fst (C.f i) (C.f j)) |
| 42 | |
| 43 | theorem hom_ext {Z : Over S} (f g : T ⟶ Z) |
| 44 | (h : ∀ i, inclusion T C i ≫ f = inclusion T C i ≫ g) : f = g := by |
| 45 | apply Over.OverMorphism.ext |
| 46 | apply C.hom_ext |
| 47 | intro i |
| 48 | exact congrArg Over.Hom.left (h i) |
| 49 | |
| 50 | theorem existsUnique_glued_morphism {Z : Over S} (f : ∀ i, obj T C i ⟶ Z) |
| 51 | (h : ∀ i j, overlapLeft T C i j ≫ f i = overlapRight T C i j ≫ f j) : |
| 52 | ∃! q : T ⟶ Z, ∀ i, inclusion T C i ≫ q = f i := by |
| 53 | have hm (i j) : pullback.fst (C.f i) (C.f j) ≫ (f i).left = |
| 54 | pullback.snd (C.f i) (C.f j) ≫ (f j).left := congrArg Over.Hom.left (h i j) |
| 55 | let q := C.glueMorphisms (fun i => (f i).left) hm |
| 56 | have hq (i) : C.f i ≫ q = (f i).left := C.ι_glueMorphisms _ hm i |
| 57 | have hbase : q ≫ Z.hom = T.hom := by |
| 58 | apply C.hom_ext |
| 59 | intro i |
| 60 | rw [← Category.assoc, hq i] |
| 61 | exact (f i).w |
| 62 | let a : T ⟶ Z := Over.homMk q hbase |
| 63 | have ha (i) : inclusion T C i ≫ a = f i := Over.OverMorphism.ext (hq i) |
| 64 | exact ⟨a, ha, fun b hb => OverOpenCover.hom_ext T C b a (fun i => (hb i).trans (ha i).symm)⟩ |
| 65 | |
| 66 | end OverOpenCover |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.OverOpenCoverGluing |