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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafCechCochains.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import Mathlib.Algebra.Category.Grp.Abelian |
| 8 | import Mathlib.Algebra.Category.Grp.Biproducts |
| 9 | import Mathlib.Algebra.Category.Grp.Limits |
| 10 | import Mathlib.CategoryTheory.Sites.SheafCohomology.Cech |
| 11 | import Mathlib.AlgebraicGeometry.Morphisms.Separated |
| 12 | import OAI.AlgebraicGeometry.SheafCohomology.Cech.SchemeModuleBaseBasic |
| 13 | |
| 14 | /-! # Cochains -/ |
| 15 | |
| 16 | namespace OAI.AlgebraicGeometry.SheafCohomology.Cech.Cochains |
| 17 | |
| 18 | open _root_.AddCommGrpCat |
| 19 | open _root_.AlgebraicGeometry |
| 20 | open _root_.TopologicalSpace |
| 21 | |
| 22 | /-! |
| 23 | # Concrete Cech cochains on topological spaces |
| 24 | |
| 25 | This file gives an elementwise description of mathlib's Cech complex for presheaves of |
| 26 | abelian groups and connects its intersection opens to affine quasicoherent vanishing. |
| 27 | The construction follows mathlib PR #35073, specialized to the API needed here. |
| 28 | -/ |
| 29 | |
| 30 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 31 | |
| 32 | universe v u |
| 33 | |
| 34 | namespace AddCommGrpCat |
| 35 | |
| 36 | /-- The categorical product of additive commutative groups is isomorphic to the |
| 37 | corresponding dependent function group. -/ |
| 38 | noncomputable def productIsoPi {ι : Type u} (X : ι → AddCommGrpCat.{u}) : |
| 39 | ∏ᶜ X ≅ .of (∀ i, X i) := |
| 40 | IsLimit.conePointUniqueUpToIso (limit.isLimit _) (HasLimit.productLimitCone X).isLimit |
| 41 | |
| 42 | /-- The forward product isomorphism is componentwise projection. -/ |
| 43 | @[simp] |
| 44 | theorem productIsoPi_hom_apply {ι : Type u} (X : ι → AddCommGrpCat.{u}) |
| 45 | (x : (∏ᶜ X :)) (i : ι) : (productIsoPi X).hom x i = Pi.π X i x := |
| 46 | ConcreteCategory.congr_hom |
| 47 | (IsLimit.conePointUniqueUpToIso_hom_comp (limit.isLimit _) |
| 48 | (HasLimit.productLimitCone X).isLimit ⟨i⟩) x |
| 49 | |
| 50 | /-- Every component of the inverse product isomorphism is evaluation. -/ |
| 51 | @[simp] |
| 52 | theorem productIsoPi_inv_apply {ι : Type u} (X : ι → AddCommGrpCat.{u}) |
| 53 | (x : ∀ i, X i) (i : ι) : Pi.π X i ((productIsoPi X).inv x) = x i := |
| 54 | ConcreteCategory.congr_hom |
| 55 | (IsLimit.conePointUniqueUpToIso_inv_comp (limit.isLimit _) |
| 56 | (HasLimit.productLimitCone X).isLimit ⟨i⟩) x |
| 57 | |
| 58 | end AddCommGrpCat |
| 59 | |
| 60 | namespace TopologicalSpace |
| 61 | |
| 62 | variable {T : Type u} [TopologicalSpace T] |
| 63 | variable (F : (Opens T)ᵒᵖ ⥤ AddCommGrpCat.{u}) {ι : Type u} |
| 64 | variable (U : ι → Opens T) (n : ℕ) |
| 65 | |
| 66 | /-- Degree `n` of the Cech complex consists of families of sections indexed by |
| 67 | `(n + 1)`-tuples of cover indices. -/ |
| 68 | noncomputable def cechCochainAddEquiv : |
| 69 | ((cechComplexFunctor U).obj F).X n ≃+ |
| 70 | ∀ i : Fin (n + 1) → ι, |
| 71 | F.obj (op (∏ᶜ fun k : Fin (n + 1) => U (i k))) := |
| 72 | (Cochains.AddCommGrpCat.productIsoPi fun i : Fin (n + 1) → ι => |
| 73 | F.obj (op (∏ᶜ fun k : Fin (n + 1) => U (i k)))).addCommGroupIsoToAddEquiv |
| 74 | |
| 75 | @[simp] |
| 76 | theorem cechCochainAddEquiv_apply |
| 77 | (x : ((cechComplexFunctor U).obj F).X n) (i : Fin (n + 1) → ι) : |
| 78 | cechCochainAddEquiv F U n x i = |
| 79 | Pi.π (fun i : Fin (n + 1) → ι => |
| 80 | F.obj (op (∏ᶜ fun k : Fin (n + 1) => U (i k)))) i x := |
| 81 | Cochains.AddCommGrpCat.productIsoPi_hom_apply _ _ _ |
| 82 | |
| 83 | @[simp] |
| 84 | theorem cechCochainAddEquiv_symm_apply_component |
| 85 | (x : ∀ i : Fin (n + 1) → ι, |
| 86 | F.obj (op (∏ᶜ fun k : Fin (n + 1) => U (i k)))) |
| 87 | (i : Fin (n + 1) → ι) : |
| 88 | Pi.π (fun i : Fin (n + 1) → ι => |
| 89 | F.obj (op (∏ᶜ fun k : Fin (n + 1) => U (i k)))) i |
| 90 | ((cechCochainAddEquiv F U n).symm x) = x i := |
| 91 | Cochains.AddCommGrpCat.productIsoPi_inv_apply _ _ _ |
| 92 | |
| 93 | private noncomputable def Opens.piObjIsoIInf |
| 94 | {κ : Type v} (V : κ → Opens T) : |
| 95 | ∏ᶜ V ≅ ⨅ k, V k := |
| 96 | IsLimit.conePointUniqueUpToIso |
| 97 | (limit.isLimit _) (Preorder.isLimitIInf V) |
| 98 | |
| 99 | theorem Opens.piObj_eq_iInf {κ : Type v} (V : κ → Opens T) : |
| 100 | (∏ᶜ V) = ⨅ k, V k := |
| 101 | (Cochains.TopologicalSpace.Opens.piObjIsoIInf V).to_eq |
| 102 | |
| 103 | end TopologicalSpace |
| 104 | |
| 105 | /-- In a separated scheme, the product open attached to a Cech tuple of |
| 106 | affine opens is affine. -/ |
| 107 | theorem IsAffineOpen.cechIntersection |
| 108 | {X : Scheme.{u}} [X.IsSeparated] {ι : Type u} |
| 109 | (U : ι → X.Opens) (hU : ∀ i, IsAffineOpen (U i)) (n : ℕ) |
| 110 | (i : Fin (n + 1) → ι) : |
| 111 | IsAffineOpen (∏ᶜ fun k : Fin (n + 1) ↦ U (i k)) := by |
| 112 | rw [show (∏ᶜ fun k : Fin (n + 1) ↦ U (i k)) = |
| 113 | ⨅ k : Fin (n + 1), U (i k) from |
| 114 | Cochains.TopologicalSpace.Opens.piObj_eq_iInf _] |
| 115 | exact IsAffineOpen.iInf (fun k ↦ hU (i k)) |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.SheafCohomology.Cech.Cochains |