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.CubeProductSliceLinear |
| 2 | |
| 3 | /-! # Cube Product Right Slice -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeProductRightSlice.Construction.CubeCech |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Evaluation on a rational-point slice in the first factor of a product. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {k : Type u} [Field k] {X Y : Scheme.{u}} |
| 17 | (f : X ⟶ Spec (.of k)) (g : Y ⟶ Spec (.of k)) |
| 18 | (s : Spec (.of k) ⟶ X) (hs : s ≫ f = 𝟙 _) |
| 19 | |
| 20 | def productSliceRight : Y ⟶ pullback f g := |
| 21 | pullback.lift (g ≫ s) (𝟙 Y) (by rw [Category.assoc, hs, Category.comp_id, Category.id_comp]) |
| 22 | |
| 23 | theorem productSliceRight_fst : productSliceRight f g s hs ≫ pullback.fst f g = g ≫ s := |
| 24 | pullback.lift_fst _ _ _ |
| 25 | |
| 26 | theorem productSliceRight_snd : productSliceRight f g s hs ≫ pullback.snd f g = 𝟙 Y := |
| 27 | pullback.lift_snd _ _ _ |
| 28 | |
| 29 | theorem productSliceRight_rectangle_preimage (U : X.Opens) (V : Y.Opens) |
| 30 | (hU : ⊤ ≤ s ⁻¹ᵁ U) : |
| 31 | V ≤ productSliceRight f g s hs ⁻¹ᵁ CubeProductSections.Construction.CubeCech.productRectangle f g U V := by |
| 32 | intro y hy |
| 33 | have hfst := congrArg (fun h : Y ⟶ X ↦ h y) (productSliceRight_fst f g s hs) |
| 34 | have hsnd := congrArg (fun h : Y ⟶ Y ↦ h y) (productSliceRight_snd f g s hs) |
| 35 | change (pullback.fst f g) (productSliceRight f g s hs y) = s (g y) at hfst |
| 36 | change (pullback.snd f g) (productSliceRight f g s hs y) = y at hsnd |
| 37 | change (pullback.fst f g) (productSliceRight f g s hs y) ∈ U ∧ |
| 38 | (pullback.snd f g) (productSliceRight f g s hs y) ∈ V |
| 39 | rw [hfst, hsnd] |
| 40 | exact ⟨hU (by trivial), hy⟩ |
| 41 | |
| 42 | abbrev productSliceRightSectionMap (U : X.Opens) (V : Y.Opens) (hU : ⊤ ≤ s ⁻¹ᵁ U) : |
| 43 | Γ(pullback f g, CubeProductSections.Construction.CubeCech.productRectangle f g U V) ⟶ Γ(Y, V) := |
| 44 | (productSliceRight f g s hs).appLE _ V (productSliceRight_rectangle_preimage f g s hs U V hU) |
| 45 | |
| 46 | theorem productSliceRightSectionMap_right (U : X.Opens) (V : Y.Opens) (hU : ⊤ ≤ s ⁻¹ᵁ U) : |
| 47 | CubeProductSections.Construction.CubeCech.productRectangleRightMap f g U V ≫ productSliceRightSectionMap f g s hs U V hU = 𝟙 _ := by |
| 48 | change (pullback.snd f g).appLE V _ inf_le_right ≫ |
| 49 | (productSliceRight f g s hs).appLE _ V _ = _ |
| 50 | rw [Scheme.Hom.appLE_comp_appLE] |
| 51 | refine (CubeProductSlices.Construction.CubeCech.scheme_appLE_congr_morphism (productSliceRight_snd f g s hs) V V _ le_rfl).trans ?_ |
| 52 | change (𝟙 Γ(Y, V)) ≫ Y.presheaf.map (𝟙 (op V)) = 𝟙 _ |
| 53 | rw [Y.presheaf.map_id, Category.id_comp] |
| 54 | |
| 55 | theorem productSliceRightSectionMap_left (U : X.Opens) (V : Y.Opens) (hU : ⊤ ≤ s ⁻¹ᵁ U) : |
| 56 | CubeProductSections.Construction.CubeCech.productRectangleLeftMap f g U V ≫ productSliceRightSectionMap f g s hs U V hU = |
| 57 | CommRingCat.ofHom (CubePointEvaluation.Construction.CubeCech.pointEvaluationRingHom s U hU) ≫ CommRingCat.ofHom (CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants g V) := by |
| 58 | change (pullback.fst f g).appLE U _ inf_le_left ≫ |
| 59 | (productSliceRight f g s hs).appLE _ V _ = _ |
| 60 | rw [Scheme.Hom.appLE_comp_appLE] |
| 61 | have hVU : V ≤ (g ≫ s) ⁻¹ᵁ U := by intro y _; exact hU (by trivial) |
| 62 | refine (CubeProductSlices.Construction.CubeCech.scheme_appLE_congr_morphism (productSliceRight_fst f g s hs) U V _ hVU).trans ?_ |
| 63 | rw [CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants_eq_appLE] |
| 64 | change (g ≫ s).appLE U V _ = |
| 65 | (s.appLE U ⊤ hU ≫ (Scheme.ΓSpecIso (.of k)).hom) ≫ |
| 66 | (Scheme.ΓSpecIso (.of k)).inv ≫ g.appLE ⊤ V _ |
| 67 | simp only [Category.assoc, Iso.hom_inv_id_assoc] |
| 68 | exact (Scheme.Hom.appLE_comp_appLE g s U ⊤ V hU (by simp)).symm |
| 69 | |
| 70 | theorem productSliceRightSectionMap_tmul (U : X.Opens) (V : Y.Opens) |
| 71 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) (hsU : ⊤ ≤ s ⁻¹ᵁ U) |
| 72 | (x : (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf f).obj.obj (op U)) |
| 73 | (y : (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf g).obj.obj (op V)) : |
| 74 | productSliceRightSectionMap f g s hs U V hsU |
| 75 | (CubeProductSections.Construction.CubeCech.productRectangleModuleSectionsEquiv f g U V hU hV (x ⊗ₜ[k] y)) = |
| 76 | CubePointEvaluation.Construction.CubeCech.pointEvaluationLinearMap f s hs U hsU x • y := by |
| 77 | let x' : Γ(X, U) := x |
| 78 | let y' : Γ(Y, V) := y |
| 79 | change productSliceRightSectionMap f g s hs U V hsU |
| 80 | (CubeProductSections.Construction.CubeCech.productRectangleSectionsEquiv f g U V hU hV (x' ⊗ₜ[k] y')) = |
| 81 | CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants g V (CubePointEvaluation.Construction.CubeCech.pointEvaluationRingHom s U hsU x') * y' |
| 82 | refine (congrArg (productSliceRightSectionMap f g s hs U V hsU) |
| 83 | (CubeProductSections.Construction.CubeCech.productRectangleSectionsEquiv_tmul f g U V hU hV x' y')).trans ?_ |
| 84 | rw [map_mul] |
| 85 | have hleft := congrArg (fun q : Γ(X, U) ⟶ Γ(Y, V) ↦ q x') |
| 86 | (productSliceRightSectionMap_left f g s hs U V hsU) |
| 87 | have hright := congrArg (fun q : Γ(Y, V) ⟶ Γ(Y, V) ↦ q y') |
| 88 | (productSliceRightSectionMap_right f g s hs U V hsU) |
| 89 | exact congrArg₂ (fun a b ↦ a * b) hleft hright |
| 90 | |
| 91 | theorem productSliceRight_over : productSliceRight f g s hs ≫ (pullback.fst f g ≫ f) = g := by |
| 92 | rw [← Category.assoc, productSliceRight_fst, Category.assoc, hs, Category.comp_id] |
| 93 | |
| 94 | def productSliceRightLinearMap (U : X.Opens) (V : Y.Opens) (hU : ⊤ ≤ s ⁻¹ᵁ U) : |
| 95 | (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)).obj.obj |
| 96 | (op (CubeProductSections.Construction.CubeCech.productRectangle f g U V)) →ₗ[k] |
| 97 | (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf g).obj.obj (op V) := |
| 98 | (CubeRelativeSectionsPullback.Construction.CubeCech.relativeSectionsCongr (productSliceRight_over f g s hs) V).toLinearMap.comp |
| 99 | (CubeRelativeSectionsPullback.Construction.CubeCech.relativeSectionsPullback (pullback.fst f g ≫ f) (productSliceRight f g s hs) |
| 100 | (CubeProductSections.Construction.CubeCech.productRectangle f g U V) V (productSliceRight_rectangle_preimage f g s hs U V hU)) |
| 101 | |
| 102 | theorem productSliceRightLinearMap_apply (U : X.Opens) (V : Y.Opens) (hU : ⊤ ≤ s ⁻¹ᵁ U) |
| 103 | (x : (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)).obj.obj |
| 104 | (op (CubeProductSections.Construction.CubeCech.productRectangle f g U V))) : |
| 105 | (productSliceRightLinearMap f g s hs U V hU x : Γ(Y, V)) = |
| 106 | productSliceRightSectionMap f g s hs U V hU x := by |
| 107 | exact (CubeRelativeSectionsPullback.Construction.CubeCech.relativeSectionsCongr_apply (productSliceRight_over f g s hs) V _).trans |
| 108 | (CubeRelativeSectionsPullback.Construction.CubeCech.relativeSectionsPullback_apply _ _ _ _ _ x) |
| 109 | |
| 110 | theorem productSliceRightLinearMap_tensor (U : X.Opens) (V : Y.Opens) |
| 111 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) (hsU : ⊤ ≤ s ⁻¹ᵁ U) |
| 112 | (z : (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf f).obj.obj (op U) ⊗[k] |
| 113 | (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf g).obj.obj (op V)) : |
| 114 | productSliceRightLinearMap f g s hs U V hsU |
| 115 | (CubeProductSections.Construction.CubeCech.productRectangleModuleSectionsEquiv f g U V hU hV z) = |
| 116 | TensorProduct.lid k _ (TensorProduct.map (CubePointEvaluation.Construction.CubeCech.pointEvaluationLinearMap f s hs U hsU) LinearMap.id z) := by |
| 117 | induction z using TensorProduct.inductionOn with |
| 118 | | add z w hz hw => simp only [map_add, hz, hw] |
| 119 | | tmul x y => |
| 120 | exact (productSliceRightLinearMap_apply f g s hs U V hsU _).trans |
| 121 | (productSliceRightSectionMap_tmul f g s hs U V hU hV hsU x y) |
| 122 | |
| 123 | end |
| 124 | |
| 125 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeProductRightSlice.Construction.CubeCech |