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.CubeRelativeModuleSheaf |
| 2 | import Mathlib.Algebra.Category.CommAlgCat.Basic |
| 3 | |
| 4 | /-! # Cube Sections As Algebra -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeSectionsAsAlgebra.Construction.CubeCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Regular functions on opens as algebras over the base field. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {k : Type u} [Field k] {X : Scheme.{u}} (f : X ⟶ Spec (.of k)) |
| 17 | |
| 18 | def sectionConstants (U : X.Opens) : k →+* Γ(X, U) := |
| 19 | (X.presheaf.map (homOfLE le_top : U ⟶ ⊤).op).hom.comp (CubeProperGlobalSections.Construction.CubeCech.globalConstants f) |
| 20 | |
| 21 | def sectionsAsBaseAlgebra (U : X.Opens) : CommAlgCat k := |
| 22 | letI := (sectionConstants f U).toAlgebra |
| 23 | CommAlgCat.of k Γ(X, U) |
| 24 | |
| 25 | def sectionsRestrictionAlgHom {U V : X.Opens} (i : V ⟶ U) : |
| 26 | sectionsAsBaseAlgebra f U →ₐ[k] sectionsAsBaseAlgebra f V where |
| 27 | __ := (X.presheaf.map i.op).hom |
| 28 | commutes' r := by |
| 29 | change X.presheaf.map i.op |
| 30 | (X.presheaf.map (homOfLE le_top : U ⟶ ⊤).op (CubeProperGlobalSections.Construction.CubeCech.globalConstants f r)) = |
| 31 | X.presheaf.map (homOfLE le_top : V ⟶ ⊤).op (CubeProperGlobalSections.Construction.CubeCech.globalConstants f r) |
| 32 | rw [← ConcreteCategory.comp_apply, ← X.presheaf.map_comp] |
| 33 | rfl |
| 34 | |
| 35 | def sectionsAsBaseModuleIso (U : X.Opens) : |
| 36 | ModuleCat.of k (sectionsAsBaseAlgebra f U) ≅ |
| 37 | (CubeRelativeModuleSheaf.Construction.CubeCech.structureSheafAsBaseFieldSheaf f).obj.obj (op U) := |
| 38 | (LinearEquiv.ofLinearMap |
| 39 | { toFun := fun x ↦ x, map_add' := fun _ _ ↦ rfl, map_smul' := fun _ _ ↦ rfl } |
| 40 | { toFun := fun x ↦ x, map_add' := fun _ _ ↦ rfl, map_smul' := fun _ _ ↦ rfl } |
| 41 | (by ext; rfl) (by ext; rfl)).toModuleIso |
| 42 | |
| 43 | theorem sectionConstants_eq_appLE (U : X.Opens) : |
| 44 | sectionConstants f U = ((Scheme.ΓSpecIso (.of k)).inv ≫ f.appLE ⊤ U (by simp)).hom := by |
| 45 | rfl |
| 46 | |
| 47 | theorem sectionConstants_pullback {Y : Scheme.{u}} (h : Y ⟶ X) |
| 48 | (U : X.Opens) (V : Y.Opens) (hVU : V ≤ h ⁻¹ᵁ U) : |
| 49 | (h.appLE U V hVU).hom.comp (sectionConstants f U) = sectionConstants (h ≫ f) V := by |
| 50 | rw [sectionConstants_eq_appLE, sectionConstants_eq_appLE, ← CommRingCat.hom_comp, |
| 51 | Category.assoc] |
| 52 | exact congrArg (fun q : Γ(Spec (.of k), ⊤) ⟶ Γ(Y, V) ↦ |
| 53 | ((Scheme.ΓSpecIso (.of k)).inv ≫ q).hom) |
| 54 | (Scheme.Hom.appLE_comp_appLE h f ⊤ U V (by simp) hVU) |
| 55 | |
| 56 | def sectionsPullbackAlgHom {Y : Scheme.{u}} (h : Y ⟶ X) |
| 57 | (U : X.Opens) (V : Y.Opens) (hVU : V ≤ h ⁻¹ᵁ U) : |
| 58 | sectionsAsBaseAlgebra f U →ₐ[k] sectionsAsBaseAlgebra (h ≫ f) V where |
| 59 | __ := (h.appLE U V hVU).hom |
| 60 | commutes' r := RingHom.congr_fun (sectionConstants_pullback f h U V hVU) r |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeSectionsAsAlgebra.Construction.CubeCech |