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.Quotients.FiniteDescent.CubeRectangleCech |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeOpenCechCocycles |
| 3 | |
| 4 | /-! # Cube Product Cech Cocycles -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Horizontal and vertical components determine a Cech cocycle on a product cover. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable {k : Type u} [Field k] {X Y : Scheme.{u}} |
| 17 | (f : X ⟶ Spec (.of k)) (g : Y ⟶ Spec (.of k)) |
| 18 | {ι : Type v} {κ : Type w} (U : ι → X.Opens) (V : κ → Y.Opens) |
| 19 | |
| 20 | abbrev rectangleOpenCover (p : Σ _ : ι, κ) := CubeProductSections.Construction.CubeCech.productRectangle f g (U p.1) (V p.2) |
| 21 | |
| 22 | abbrev rectangleOrdinaryCech1 := OpenCechDegreeZero.Construction.CubeCech.openModuleCechC1 |
| 23 | (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)) (rectangleOpenCover f g U V) |
| 24 | |
| 25 | def rectangleHorizontalComponent (z : rectangleOrdinaryCech1 f g U V) : CubeRectangleCech.Construction.CubeCech.rectangleCech10 f g U V := |
| 26 | fun i i' j ↦ CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1 _ (rectangleOpenCover f g U V) z ⟨i, j⟩ ⟨i', j⟩ |
| 27 | (CubeProductSections.Construction.CubeCech.productRectangle f g (U i ⊓ U i') (V j)) |
| 28 | (CubeProductSectionsNaturality.Construction.CubeCech.productRectangle_mono f g (homOfLE inf_le_left) (𝟙 (V j))) |
| 29 | (CubeProductSectionsNaturality.Construction.CubeCech.productRectangle_mono f g (homOfLE inf_le_right) (𝟙 (V j))) |
| 30 | |
| 31 | def rectangleVerticalComponent (z : rectangleOrdinaryCech1 f g U V) : CubeRectangleCech.Construction.CubeCech.rectangleCech01 f g U V := |
| 32 | fun i j j' ↦ CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1 _ (rectangleOpenCover f g U V) z ⟨i, j⟩ ⟨i, j'⟩ |
| 33 | (CubeProductSections.Construction.CubeCech.productRectangle f g (U i) (V j ⊓ V j')) |
| 34 | (CubeProductSectionsNaturality.Construction.CubeCech.productRectangle_mono f g (𝟙 (U i)) (homOfLE inf_le_left)) |
| 35 | (CubeProductSectionsNaturality.Construction.CubeCech.productRectangle_mono f g (𝟙 (U i)) (homOfLE inf_le_right)) |
| 36 | |
| 37 | theorem rectangleHorizontalComponent_sub (z w : rectangleOrdinaryCech1 f g U V) : |
| 38 | rectangleHorizontalComponent f g U V (z - w) = |
| 39 | rectangleHorizontalComponent f g U V z - rectangleHorizontalComponent f g U V w := by |
| 40 | funext i i' j |
| 41 | exact CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1_sub _ _ z w _ _ _ _ _ |
| 42 | |
| 43 | theorem rectangleVerticalComponent_sub (z w : rectangleOrdinaryCech1 f g U V) : |
| 44 | rectangleVerticalComponent f g U V (z - w) = |
| 45 | rectangleVerticalComponent f g U V z - rectangleVerticalComponent f g U V w := by |
| 46 | funext i j j' |
| 47 | exact CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1_sub _ _ z w _ _ _ _ _ |
| 48 | |
| 49 | theorem rectangleHorizontalComponent_d0 (t : CubeRectangleCech.Construction.CubeCech.rectangleCech00 f g U V) : |
| 50 | rectangleHorizontalComponent f g U V |
| 51 | (OpenCechDegreeZero.Construction.CubeCech.openModuleCechD0 (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)) |
| 52 | (rectangleOpenCover f g U V) (fun p ↦ t p.1 p.2)) = CubeRectangleCech.Construction.CubeCech.rectangleCechD00h f g U V t := by |
| 53 | funext i i' j |
| 54 | exact CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1_d0 _ _ _ _ _ _ _ _ |
| 55 | |
| 56 | theorem rectangleVerticalComponent_d0 (t : CubeRectangleCech.Construction.CubeCech.rectangleCech00 f g U V) : |
| 57 | rectangleVerticalComponent f g U V |
| 58 | (OpenCechDegreeZero.Construction.CubeCech.openModuleCechD0 (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)) |
| 59 | (rectangleOpenCover f g U V) (fun p ↦ t p.1 p.2)) = CubeRectangleCech.Construction.CubeCech.rectangleCechD00v f g U V t := by |
| 60 | funext i j j' |
| 61 | exact CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1_d0 _ _ _ _ _ _ _ _ |
| 62 | |
| 63 | theorem rectangleCocycle_zero_of_components (z : rectangleOrdinaryCech1 f g U V) |
| 64 | (hz : CubeOpenCechCocycles.Construction.CubeCech.IsOpenCechCocycle (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)) |
| 65 | (rectangleOpenCover f g U V) z) |
| 66 | (ha : rectangleHorizontalComponent f g U V z = 0) |
| 67 | (hb : rectangleVerticalComponent f g U V z = 0) : z = 0 := by |
| 68 | funext p q |
| 69 | rcases p with ⟨i, j⟩ |
| 70 | rcases q with ⟨i', j'⟩ |
| 71 | let F := CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f) |
| 72 | let W := rectangleOpenCover f g U V ⟨i, j⟩ ⊓ rectangleOpenCover f g U V ⟨i', j'⟩ |
| 73 | have hW₁ : W ≤ CubeProductSections.Construction.CubeCech.productRectangle f g (U i ⊓ U i') (V j) := by |
| 74 | intro x hx |
| 75 | exact ⟨⟨hx.1.1, hx.2.1⟩, hx.1.2⟩ |
| 76 | have hW₂ : W ≤ CubeProductSections.Construction.CubeCech.productRectangle f g (U i') (V j ⊓ V j') := by |
| 77 | intro x hx |
| 78 | exact ⟨hx.2.1, hx.1.2, hx.2.2⟩ |
| 79 | have hW₃ : W ≤ rectangleOpenCover f g U V ⟨i', j⟩ := by |
| 80 | intro x hx |
| 81 | exact ⟨hx.2.1, hx.1.2⟩ |
| 82 | have h₁ := CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1_comp F (rectangleOpenCover f g U V) z ⟨i, j⟩ ⟨i', j⟩ |
| 83 | (CubeProductSections.Construction.CubeCech.productRectangle f g (U i ⊓ U i') (V j)) W |
| 84 | (CubeProductSectionsNaturality.Construction.CubeCech.productRectangle_mono f g (homOfLE inf_le_left) (𝟙 (V j))) |
| 85 | (CubeProductSectionsNaturality.Construction.CubeCech.productRectangle_mono f g (homOfLE inf_le_right) (𝟙 (V j))) hW₁ |
| 86 | have ha' := congrFun (congrFun (congrFun ha i) i') j |
| 87 | have hz₁ : CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1 F (rectangleOpenCover f g U V) z ⟨i, j⟩ ⟨i', j⟩ W |
| 88 | inf_le_left hW₃ = 0 := |
| 89 | h₁.symm.trans ((congrArg (F.obj.map (homOfLE hW₁).op) ha').trans (map_zero _)) |
| 90 | have h₂ := CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1_comp F (rectangleOpenCover f g U V) z ⟨i', j⟩ ⟨i', j'⟩ |
| 91 | (CubeProductSections.Construction.CubeCech.productRectangle f g (U i') (V j ⊓ V j')) W |
| 92 | (CubeProductSectionsNaturality.Construction.CubeCech.productRectangle_mono f g (𝟙 (U i')) (homOfLE inf_le_left)) |
| 93 | (CubeProductSectionsNaturality.Construction.CubeCech.productRectangle_mono f g (𝟙 (U i')) (homOfLE inf_le_right)) hW₂ |
| 94 | have hb' := congrFun (congrFun (congrFun hb i') j) j' |
| 95 | have hz₂ : CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1 F (rectangleOpenCover f g U V) z ⟨i', j⟩ ⟨i', j'⟩ W |
| 96 | hW₃ inf_le_right = 0 := |
| 97 | h₂.symm.trans ((congrArg (F.obj.map (homOfLE hW₂).op) hb').trans (map_zero _)) |
| 98 | have h := hz ⟨i, j⟩ ⟨i', j⟩ ⟨i', j'⟩ W inf_le_left hW₃ inf_le_right |
| 99 | rw [hz₁, hz₂, zero_add] at h |
| 100 | exact (CubeOpenCechCocycles.Construction.CubeCech.openCechRestrict1_self F (rectangleOpenCover f g U V) z ⟨i, j⟩ ⟨i', j'⟩).symm.trans h.symm |
| 101 | |
| 102 | theorem rectangleCocycle_isBoundary_of_components (z : rectangleOrdinaryCech1 f g U V) |
| 103 | (hz : CubeOpenCechCocycles.Construction.CubeCech.IsOpenCechCocycle (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)) |
| 104 | (rectangleOpenCover f g U V) z) (t : CubeRectangleCech.Construction.CubeCech.rectangleCech00 f g U V) |
| 105 | (ha : CubeRectangleCech.Construction.CubeCech.rectangleCechD00h f g U V t = rectangleHorizontalComponent f g U V z) |
| 106 | (hb : CubeRectangleCech.Construction.CubeCech.rectangleCechD00v f g U V t = rectangleVerticalComponent f g U V z) : |
| 107 | OpenCechDegreeZero.Construction.CubeCech.openModuleCechD0 (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)) |
| 108 | (rectangleOpenCover f g U V) (fun p ↦ t p.1 p.2) = z := by |
| 109 | let F := CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f) |
| 110 | let d := OpenCechDegreeZero.Construction.CubeCech.openModuleCechD0 F (rectangleOpenCover f g U V) (fun p ↦ t p.1 p.2) |
| 111 | have hzero : z - d = 0 := by |
| 112 | apply rectangleCocycle_zero_of_components f g U V (z - d) |
| 113 | (CubeOpenCechCocycles.Construction.CubeCech.openCechCocycle_sub F _ z d hz (CubeOpenCechCocycles.Construction.CubeCech.openCechD0_isCocycle F _ _)) |
| 114 | · rw [rectangleHorizontalComponent_sub] |
| 115 | change rectangleHorizontalComponent f g U V z - rectangleHorizontalComponent f g U V |
| 116 | (OpenCechDegreeZero.Construction.CubeCech.openModuleCechD0 F (rectangleOpenCover f g U V) (fun p ↦ t p.1 p.2)) = 0 |
| 117 | rw [rectangleHorizontalComponent_d0, ha, sub_self] |
| 118 | · rw [rectangleVerticalComponent_sub] |
| 119 | change rectangleVerticalComponent f g U V z - rectangleVerticalComponent f g U V |
| 120 | (OpenCechDegreeZero.Construction.CubeCech.openModuleCechD0 F (rectangleOpenCover f g U V) (fun p ↦ t p.1 p.2)) = 0 |
| 121 | rw [rectangleVerticalComponent_d0, hb, sub_self] |
| 122 | exact (sub_eq_zero.mp hzero).symm |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech |