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.AbelianModuli.ReferenceFamily.OverOpenCoverGluing |
| 2 | |
| 3 | /-! # Indexed Over Iso Gluing -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.IndexedOverIsoGluing |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Compatible maps on an indexed family of actual open immersions |
| 12 | glue over the base, retaining their exact restrictions. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | variable {S : Scheme} {I : Type} (X : Over S) (A : I → Over S) |
| 17 | (i : ∀ j, A j ⟶ X) [∀ j, IsOpenImmersion (i j).left] |
| 18 | (hc : ∀ x : X.left, ∃ j, x ∈ (i j).left.opensRange) |
| 19 | |
| 20 | def indexedOverOpenCover : X.left.OpenCover where |
| 21 | I₀ := I |
| 22 | X j := (A j).left |
| 23 | f j := (i j).left |
| 24 | mem₀ := by |
| 25 | rw [Scheme.presieve₀_mem_precoverage_iff] |
| 26 | exact ⟨hc, fun j => inferInstance⟩ |
| 27 | |
| 28 | variable (Y : Over S) (f : ∀ j, A j ⟶ Y) |
| 29 | (hf : ∀ j l, pullback.fst (i j).left (i l).left ≫ (f j).left = |
| 30 | pullback.snd _ _ ≫ (f l).left) |
| 31 | |
| 32 | def glueIndexedOverMap : X ⟶ Y := |
| 33 | OverOpenCoverGluing.glueOverOpenCover X Y (indexedOverOpenCover X A i hc) (fun j => (f j).left) |
| 34 | (fun j => (f j).w.trans (i j).w.symm) hf |
| 35 | |
| 36 | theorem glueIndexedOverMap_fac (j : I) : i j ≫ glueIndexedOverMap X A i hc Y f hf = f j := by |
| 37 | apply Over.OverMorphism.ext |
| 38 | exact OverOpenCoverGluing.glueOverOpenCover_fac X Y (indexedOverOpenCover X A i hc) (fun j => (f j).left) |
| 39 | (fun j => (f j).w.trans (i j).w.symm) hf j |
| 40 | |
| 41 | end |
| 42 | |
| 43 | /-! Compatible local isomorphisms on actual source and target open |
| 44 | covers glue to a global isomorphism. Both composites are checked on the |
| 45 | original covers. -/ |
| 46 | |
| 47 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 48 | |
| 49 | attribute [local implicit_reducible] indexedOverOpenCover |
| 50 | |
| 51 | variable {S : Scheme} {I : Type} (X Y : Over S) (A B : I → Over S) |
| 52 | (i : ∀ j, A j ⟶ X) (j : ∀ l, B l ⟶ Y) |
| 53 | [∀ l, IsOpenImmersion (i l).left] [∀ l, IsOpenImmersion (j l).left] |
| 54 | (hX : ∀ x : X.left, ∃ l, x ∈ (i l).left.opensRange) |
| 55 | (hY : ∀ y : Y.left, ∃ l, y ∈ (j l).left.opensRange) |
| 56 | (e : ∀ l, A l ≅ B l) |
| 57 | (hf : ∀ l m, pullback.fst (i l).left (i m).left ≫ ((e l).hom ≫ j l).left = |
| 58 | pullback.snd _ _ ≫ ((e m).hom ≫ j m).left) |
| 59 | (hg : ∀ l m, pullback.fst (j l).left (j m).left ≫ ((e l).inv ≫ i l).left = |
| 60 | pullback.snd _ _ ≫ ((e m).inv ≫ i m).left) |
| 61 | |
| 62 | def glueIndexedOverIso : X ≅ Y where |
| 63 | hom := glueIndexedOverMap X A i hX Y (fun l => (e l).hom ≫ j l) hf |
| 64 | inv := glueIndexedOverMap Y B j hY X (fun l => (e l).inv ≫ i l) hg |
| 65 | hom_inv_id := by |
| 66 | apply Over.OverMorphism.ext |
| 67 | apply (indexedOverOpenCover X A i hX).hom_ext |
| 68 | intro l |
| 69 | have he : i l ≫ |
| 70 | (glueIndexedOverMap X A i hX Y (fun l => (e l).hom ≫ j l) hf ≫ |
| 71 | glueIndexedOverMap Y B j hY X (fun l => (e l).inv ≫ i l) hg) = i l ≫ 𝟙 X := by |
| 72 | rw [← Category.assoc, glueIndexedOverMap_fac, Category.assoc, glueIndexedOverMap_fac, |
| 73 | ← Category.assoc, (e l).hom_inv_id, Category.id_comp, Category.comp_id] |
| 74 | exact congrArg Over.Hom.left he |
| 75 | inv_hom_id := by |
| 76 | apply Over.OverMorphism.ext |
| 77 | apply (indexedOverOpenCover Y B j hY).hom_ext |
| 78 | intro l |
| 79 | have he : j l ≫ |
| 80 | (glueIndexedOverMap Y B j hY X (fun l => (e l).inv ≫ i l) hg ≫ |
| 81 | glueIndexedOverMap X A i hX Y (fun l => (e l).hom ≫ j l) hf) = j l ≫ 𝟙 Y := by |
| 82 | rw [← Category.assoc, glueIndexedOverMap_fac, Category.assoc, glueIndexedOverMap_fac, |
| 83 | ← Category.assoc, (e l).inv_hom_id, Category.id_comp, Category.comp_id] |
| 84 | exact congrArg Over.Hom.left he |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.IndexedOverIsoGluing |