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.CubeSectionsAsAlgebra |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeTensorPushoutCoordinates |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | |
| 5 | /-! # Cube Product Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeProductSections.Construction.CubeCech |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Tensor-product coordinates for regular functions on affine rectangles in a product. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | variable {k : Type u} [Field k] {X Y : Scheme.{u}} |
| 19 | (f : X ⟶ Spec (.of k)) (g : Y ⟶ Spec (.of k)) |
| 20 | |
| 21 | abbrev productRectangle (U : X.Opens) (V : Y.Opens) : (pullback f g).Opens := |
| 22 | (pullback.fst f g) ⁻¹ᵁ U ⊓ (pullback.snd f g) ⁻¹ᵁ V |
| 23 | |
| 24 | abbrev productRectangleLeftMap (U : X.Opens) (V : Y.Opens) : |
| 25 | Γ(X, U) ⟶ Γ(pullback f g, productRectangle f g U V) := |
| 26 | (pullback.fst f g).appLE U _ inf_le_left |
| 27 | |
| 28 | abbrev productRectangleRightMap (U : X.Opens) (V : Y.Opens) : |
| 29 | Γ(Y, V) ⟶ Γ(pullback f g, productRectangle f g U V) := |
| 30 | (pullback.snd f g).appLE V _ inf_le_right |
| 31 | |
| 32 | theorem productRectangleSections_isPushout (U : X.Opens) (V : Y.Opens) |
| 33 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) : |
| 34 | IsPushout (CommRingCat.ofHom (algebraMap k (CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra f U))) |
| 35 | (CommRingCat.ofHom (algebraMap k (CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra g V))) |
| 36 | (productRectangleLeftMap f g U V) (productRectangleRightMap f g U V) := by |
| 37 | let H := IsPullback.of_hasPullback f g |
| 38 | have hp := (isIso_pushoutSection_iff H (show V ≤ g ⁻¹ᵁ ⊤ by simp) |
| 39 | (show U ≤ f ⁻¹ᵁ ⊤ by simp) (rfl : productRectangle f g U V = _)).mp |
| 40 | (isIso_pushoutSection_of_isAffineOpen H (show V ≤ g ⁻¹ᵁ ⊤ by simp) |
| 41 | (show U ≤ f ⁻¹ᵁ ⊤ by simp) rfl |
| 42 | (isAffineOpen_top (Spec (.of k))) hV hU) |
| 43 | refine hp.of_iso (Scheme.ΓSpecIso (.of k)) (Iso.refl _) (Iso.refl _) (Iso.refl _) |
| 44 | ?_ ?_ (by exact (Category.comp_id _).trans (Category.id_comp _).symm) |
| 45 | (by exact (Category.comp_id _).trans (Category.id_comp _).symm) |
| 46 | · change f.appLE ⊤ U _ ≫ 𝟙 _ = (Scheme.ΓSpecIso (.of k)).hom ≫ |
| 47 | CommRingCat.ofHom (CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants f U) |
| 48 | rw [CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants_eq_appLE] |
| 49 | simp |
| 50 | · change g.appLE ⊤ V _ ≫ 𝟙 _ = (Scheme.ΓSpecIso (.of k)).hom ≫ |
| 51 | CommRingCat.ofHom (CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants g V) |
| 52 | rw [CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants_eq_appLE] |
| 53 | simp |
| 54 | |
| 55 | def productRectangleSectionsEquiv (U : X.Opens) (V : Y.Opens) |
| 56 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) : |
| 57 | CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra f U ⊗[k] CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra g V ≃+* |
| 58 | Γ(pullback f g, productRectangle f g U V) := |
| 59 | CubeTensorPushoutCoordinates.Construction.CubeCech.tensorPushoutRingEquiv _ _ _ _ _ (productRectangleSections_isPushout f g U V hU hV) |
| 60 | |
| 61 | theorem productRectangleSectionsEquiv_tmul (U : X.Opens) (V : Y.Opens) |
| 62 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) |
| 63 | (x : CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra f U) (y : CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra g V) : |
| 64 | productRectangleSectionsEquiv f g U V hU hV (x ⊗ₜ[k] y) = |
| 65 | productRectangleLeftMap f g U V x * productRectangleRightMap f g U V y := |
| 66 | CubeTensorPushoutCoordinates.Construction.CubeCech.tensorPushoutRingEquiv_tmul _ _ _ _ _ _ x y |
| 67 | |
| 68 | def productRectangleSectionsAlgEquiv (U : X.Opens) (V : Y.Opens) |
| 69 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) : |
| 70 | CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra f U ⊗[k] CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra g V ≃ₐ[k] |
| 71 | CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra (pullback.fst f g ≫ f) (productRectangle f g U V) where |
| 72 | __ := productRectangleSectionsEquiv f g U V hU hV |
| 73 | commutes' r := by |
| 74 | change productRectangleSectionsEquiv f g U V hU hV |
| 75 | (algebraMap k (CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra f U ⊗[k] CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseAlgebra g V) r) = |
| 76 | CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants (pullback.fst f g ≫ f) (productRectangle f g U V) r |
| 77 | rw [Algebra.TensorProduct.algebraMap_apply, productRectangleSectionsEquiv_tmul] |
| 78 | change productRectangleLeftMap f g U V (CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants f U r) * |
| 79 | productRectangleRightMap f g U V 1 = CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants (pullback.fst f g ≫ f) _ r |
| 80 | rw [map_one, mul_one] |
| 81 | exact RingHom.congr_fun (CubeSectionsAsAlgebra.Construction.CubeCech.sectionConstants_pullback f (pullback.fst f g) U |
| 82 | (productRectangle f g U V) inf_le_left) r |
| 83 | |
| 84 | def productRectangleModuleSectionsEquiv (U : X.Opens) (V : Y.Opens) |
| 85 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) : |
| 86 | (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf f).obj.obj (op U) ⊗[k] |
| 87 | (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf g).obj.obj (op V) ≃ₗ[k] |
| 88 | (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf (pullback.fst f g ≫ f)).obj.obj |
| 89 | (op (productRectangle f g U V)) := |
| 90 | (TensorProduct.congr (CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseModuleIso f U).toLinearEquiv |
| 91 | (CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseModuleIso g V).toLinearEquiv).symm.trans |
| 92 | ((productRectangleSectionsAlgEquiv f g U V hU hV).toLinearEquiv.trans |
| 93 | (CubeSectionsAsAlgebra.Construction.CubeCech.sectionsAsBaseModuleIso (pullback.fst f g ≫ f) (productRectangle f g U V)).toLinearEquiv) |
| 94 | |
| 95 | theorem productRectangleModuleSectionsEquiv_tmul (U : X.Opens) (V : Y.Opens) |
| 96 | (hU : IsAffineOpen U) (hV : IsAffineOpen V) |
| 97 | (x : (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf f).obj.obj (op U)) |
| 98 | (y : (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf g).obj.obj (op V)) : |
| 99 | productRectangleModuleSectionsEquiv f g U V hU hV (x ⊗ₜ[k] y) = |
| 100 | productRectangleLeftMap f g U V x * productRectangleRightMap f g U V y := by |
| 101 | change productRectangleSectionsEquiv f g U V hU hV (x ⊗ₜ[k] y) = _ |
| 102 | exact productRectangleSectionsEquiv_tmul f g U V hU hV x y |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeProductSections.Construction.CubeCech |