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.Affine.RegularBoundary |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.RectangleBoundaryShuffle |
| 3 | |
| 4 | /-! # Rectangle Class Detection -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.RectangleClassDetection |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A zero original H2 class on an affine rectangular cover has |
| 11 | zero mixed tensor projection. The actual product opens and their |
| 12 | acyclicity are constructed from the original affine covers. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | local instance rectangleCohomologyAddGroup {X : TopCat.{0}} |
| 20 | (F : TopCat.Sheaf AddCommGrpCat.{0} X) (n : ℕ) : |
| 21 | AddCommGroup (CategoryTheory.Sheaf.H F n) := |
| 22 | inferInstanceAs (AddCommGroup ((CategoryTheory.Sheaf.functorH |
| 23 | (Opens.grothendieckTopology X) n : _ ⥤ AddCommGrpCat.{0}).obj F)) |
| 24 | |
| 25 | variable {k : Type} [Field k] {X Y : Scheme.{0}} |
| 26 | (f : X ⟶ Spec (.of k)) (g : Y ⟶ Spec (.of k)) |
| 27 | {I J : Type} (U : I → X.Opens) (V : J → Y.Opens) |
| 28 | |
| 29 | theorem rectangleOpenCover_affine (hU : ∀ i, IsAffineOpen (U i)) (hV : ∀ j, IsAffineOpen (V j)) |
| 30 | (p : Σ _ : I, J) : IsAffineOpen (Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech.rectangleOpenCover f g U V p) := by |
| 31 | let : IsAffine (U p.1).toScheme := hU p.1 |
| 32 | let : IsAffine (V p.2).toScheme := hV p.2 |
| 33 | let : IsAffine (⊤ : (Spec (.of k)).Opens).toScheme := isAffineOpen_top _ |
| 34 | exact .of_isIso |
| 35 | (Scheme.Hom.isPullback_resLE (IsPullback.of_hasPullback f g) |
| 36 | (show V p.2 ≤ g ⁻¹ᵁ ⊤ by simp) (show U p.1 ≤ f ⁻¹ᵁ ⊤ by simp) |
| 37 | (rfl : Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech.rectangleOpenCover f g U V p = _)).isoPullback.hom |
| 38 | |
| 39 | theorem rectangleOpenCover_covers (hU : iSup U = ⊤) (hV : iSup V = ⊤) : |
| 40 | iSup (Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech.rectangleOpenCover f g U V) = ⊤ := by |
| 41 | apply top_unique |
| 42 | intro x _ |
| 43 | have hx : (pullback.fst f g) x ∈ iSup U := by rw [hU]; trivial |
| 44 | have hy : (pullback.snd f g) x ∈ iSup V := by rw [hV]; trivial |
| 45 | obtain ⟨i, hi⟩ := Opens.mem_iSup.mp hx |
| 46 | obtain ⟨j, hj⟩ := Opens.mem_iSup.mp hy |
| 47 | exact Opens.mem_iSup.mpr ⟨⟨i, j⟩, hi, hj⟩ |
| 48 | |
| 49 | variable [(pullback f g).IsSeparated] |
| 50 | [Fintype I] [DecidableEq I] [Fintype J] [DecidableEq J] |
| 51 | |
| 52 | theorem rectangleTripleShuffle_zero_of_sheafClass_zero |
| 53 | (hU : ∀ i, IsAffineOpen (U i)) (hV : ∀ j, IsAffineOpen (V j)) |
| 54 | (hUU : ∀ i i', IsAffineOpen (U i ⊓ U i')) (hVV : ∀ j j', IsAffineOpen (V j ⊓ V j')) |
| 55 | (hcU : iSup U = ⊤) (hcV : iSup V = ⊤) |
| 56 | (w : RectangleBoundaryShuffle.rectangleOrdinaryCech2 f g U V) |
| 57 | (hw : DivisorClass.Chern.Abelian.CechCoordinates.abelianCechDelta (Dual.UnitCechClasses.ringAdditiveSheaf (pullback f g).sheaf).obj |
| 58 | (Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech.rectangleOpenCover f g U V) 2 |
| 59 | (Regular.BoundaryShuffle.regularTripleCechCochain (pullback f g) (Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech.rectangleOpenCover f g U V) w) = 0) |
| 60 | (hclass : DivisorClass.Chern.Abelian.CechClasses.abelianCechSheafClass (Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech.rectangleOpenCover f g U V) |
| 61 | (Dual.UnitCechClasses.ringAdditiveSheaf (pullback f g).sheaf) (rectangleOpenCover_covers f g U V hcU hcV) 1 |
| 62 | (Regular.BoundaryShuffle.regularTripleCechCochain (pullback f g) (Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech.rectangleOpenCover f g U V) w) hw = 0) : |
| 63 | RectangleMixedClassProjection.rectangleMixedClassProjection f g U V hUU hVV (RectangleBoundaryShuffle.rectangleTripleShuffle f g U V w) = 0 := by |
| 64 | obtain ⟨v, hv⟩ := Affine.RegularBoundary.regularTriplePrimitive_of_affine_sheafClass_zero (pullback f g) |
| 65 | (Quotients.FiniteDescent.CubeProductCechCocycles.Construction.CubeCech.rectangleOpenCover f g U V) (rectangleOpenCover_covers f g U V hcU hcV) |
| 66 | (rectangleOpenCover_affine f g U V hU hV) w hw hclass |
| 67 | exact RectangleBoundaryShuffle.rectangleTripleShuffle_boundary_class_zero f g U V hU hV hUU hVV v w hv |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.RectangleClassDetection |