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 Mathlib.AlgebraicGeometry.Modules.Tilde |
| 2 | import Mathlib.CategoryTheory.ObjectProperty.Kernels |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.AffineH |
| 4 | |
| 5 | /-! # Affine Exact -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.SheafCohomology.AffineExact.Projective |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Exactness of affine quasicoherent global sections |
| 13 | |
| 14 | This file proves one of the algebraic inputs to affine acyclicity for actual |
| 15 | scheme modules. If `M ⟶ N` is an epimorphism of quasicoherent modules on |
| 16 | `Spec R`, then the induced map on global sections is surjective. The proof |
| 17 | uses Mathlib's equivalence between `R`-modules and quasicoherent modules on |
| 18 | `Spec R`: the counit identifies each quasicoherent module with the tilde of |
| 19 | its global sections, and full faithfulness of tilde reflects epimorphisms. |
| 20 | |
| 21 | As a concrete cohomological consumer, the final theorem transports this |
| 22 | surjectivity through the checked `H⁰ ≃ Γ` comparison for Mathlib's genuine |
| 23 | Ext-based sheaf cohomology. |
| 24 | |
| 25 | The same affine tilde equivalence also identifies the cokernel of a morphism |
| 26 | of quasicoherent scheme modules with the tilde of the module cokernel. We |
| 27 | use that identification below to prove quasicoherence of the scheme-module |
| 28 | cokernel and to obtain surjectivity on genuine `H⁰` for its projection. |
| 29 | |
| 30 | The dimension-shifting proof of positive-degree affine acyclicity still |
| 31 | requires local killing of cohomology classes and closure of quasicoherent |
| 32 | modules under the finite cover-sheaf construction. No positive-degree |
| 33 | vanishing statement is asserted here. |
| 34 | |
| 35 | The mathematical role of this lemma in affine-vanishing arguments was |
| 36 | cross-checked against AINTLIB's `ForMathlib/AffineVanishing.lean`. This implementation uses only |
| 37 | the independently checked Mathlib API at this repository's exact pin. |
| 38 | -/ |
| 39 | |
| 40 | universe u |
| 41 | |
| 42 | open _root_.CategoryTheory Opposite _root_.TopologicalSpace |
| 43 | open _root_.CategoryTheory.Limits |
| 44 | open _root_.AlgebraicGeometry |
| 45 | |
| 46 | /-- Global sections on `Spec R` preserve an epimorphism between actual |
| 47 | quasicoherent scheme modules. -/ |
| 48 | theorem moduleSpecGlobalSections_epi_of_epi {R : CommRingCat.{u}} |
| 49 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 50 | [M.IsQuasicoherent] [N.IsQuasicoherent] [Epi f] : |
| 51 | Epi (moduleSpecΓFunctor.map f) := by |
| 52 | have : IsIso M.fromTildeΓ := inferInstance |
| 53 | have : IsIso N.fromTildeΓ := inferInstance |
| 54 | have hnat : |
| 55 | tilde.map (moduleSpecΓFunctor.map f) ≫ N.fromTildeΓ = |
| 56 | M.fromTildeΓ ≫ f := by |
| 57 | exact Scheme.Modules.fromTildeΓNatTrans.naturality f |
| 58 | have hright : Epi (M.fromTildeΓ ≫ f) := |
| 59 | epi_comp' (by infer_instance) (by infer_instance) |
| 60 | have hcomp : Epi (tilde.map (moduleSpecΓFunctor.map f) ≫ N.fromTildeΓ) := |
| 61 | hnat.symm ▸ hright |
| 62 | have hmapped : Epi (tilde.map (moduleSpecΓFunctor.map f)) := |
| 63 | (epi_comp_iff_of_isIso _ N.fromTildeΓ).mp hcomp |
| 64 | exact (tilde.functor R).epi_of_epi_map hmapped |
| 65 | |
| 66 | /-- An epimorphism of quasicoherent modules on an affine spectrum is |
| 67 | surjective on genuine global sections. -/ |
| 68 | theorem moduleSpecGlobalSections_surjective_of_epi {R : CommRingCat.{u}} |
| 69 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 70 | [M.IsQuasicoherent] [N.IsQuasicoherent] [Epi f] : |
| 71 | Function.Surjective (f.app (⊤ : Opens (Spec R))) := |
| 72 | (ModuleCat.epi_iff_surjective (moduleSpecΓFunctor.map f)).mp |
| 73 | (moduleSpecGlobalSections_epi_of_epi f) |
| 74 | |
| 75 | /-- The genuine Ext-based `H⁰` functor sends an epimorphism of |
| 76 | quasicoherent modules on `Spec R` to a surjective group homomorphism. |
| 77 | |
| 78 | This is the checked cohomological consumer of |
| 79 | `moduleSpecGlobalSections_surjective_of_epi`. -/ |
| 80 | theorem moduleSpecHZero_surjective_of_epi {R : CommRingCat.{u}} |
| 81 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 82 | [M.IsQuasicoherent] [N.IsQuasicoherent] [Epi f] : |
| 83 | Function.Surjective ((AffineH.Projective.zariskiFunctor (Spec R) 0).map f) := by |
| 84 | intro y |
| 85 | obtain ⟨x, hx⟩ := moduleSpecGlobalSections_surjective_of_epi f |
| 86 | (AffineH.Projective.hZeroEquivGlobalSections N y) |
| 87 | refine ⟨(AffineH.Projective.hZeroEquivGlobalSections M).symm x, ?_⟩ |
| 88 | apply (AffineH.Projective.hZeroEquivGlobalSections N).injective |
| 89 | rw [← AffineH.Projective.hZeroEquivGlobalSections_naturality] |
| 90 | rw [(AffineH.Projective.hZeroEquivGlobalSections M).apply_symm_apply] |
| 91 | exact hx |
| 92 | |
| 93 | /-- The cokernel of a morphism between quasicoherent modules on an affine |
| 94 | spectrum is quasicoherent. |
| 95 | |
| 96 | The proof transports the module cokernel through the left-adjoint tilde |
| 97 | functor, then compares the mapped cokernel with the scheme-module cokernel by |
| 98 | the counit isomorphisms `fromTildeΓ`. -/ |
| 99 | theorem moduleSpec_isQuasicoherent_cokernel {R : CommRingCat.{u}} |
| 100 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 101 | [M.IsQuasicoherent] [N.IsQuasicoherent] : |
| 102 | (cokernel f).IsQuasicoherent := by |
| 103 | let g := moduleSpecΓFunctor.map f |
| 104 | have : IsIso M.fromTildeΓ := inferInstance |
| 105 | have : IsIso N.fromTildeΓ := inferInstance |
| 106 | let eM := asIso M.fromTildeΓ |
| 107 | let eN := asIso N.fromTildeΓ |
| 108 | have hnat : |
| 109 | tilde.map (moduleSpecΓFunctor.map f) ≫ N.fromTildeΓ = |
| 110 | M.fromTildeΓ ≫ f := by |
| 111 | exact Scheme.Modules.fromTildeΓNatTrans.naturality f |
| 112 | let e₁ : tilde (cokernel g) ≅ cokernel (tilde.map g) := by |
| 113 | exact PreservesCokernel.iso (tilde.functor R) g |
| 114 | let e₂ : cokernel (tilde.map g) ≅ cokernel f := |
| 115 | cokernel.mapIso _ _ eM eN (by |
| 116 | change tilde.map g ≫ N.fromTildeΓ = M.fromTildeΓ ≫ f |
| 117 | simpa [g] using hnat) |
| 118 | have hsource : (tilde (cokernel g)).IsQuasicoherent := inferInstance |
| 119 | exact (SheafOfModules.isQuasicoherent (Spec R).ringCatSheaf).prop_of_iso |
| 120 | (e₁ ≪≫ e₂) hsource |
| 121 | |
| 122 | /-- The Ext-based `H⁰` map induced by a cokernel projection of |
| 123 | quasicoherent modules on an affine spectrum is surjective. |
| 124 | |
| 125 | This is a checked cohomological consumer of |
| 126 | `moduleSpec_isQuasicoherent_cokernel`. -/ |
| 127 | theorem moduleSpecHZero_surjective_cokernel_pi {R : CommRingCat.{u}} |
| 128 | {M N : (Spec R).Modules} (f : M ⟶ N) |
| 129 | [M.IsQuasicoherent] [N.IsQuasicoherent] : |
| 130 | Function.Surjective |
| 131 | ((AffineH.Projective.zariskiFunctor (Spec R) 0).map (cokernel.π f)) := by |
| 132 | let : (cokernel f).IsQuasicoherent := |
| 133 | moduleSpec_isQuasicoherent_cokernel f |
| 134 | exact moduleSpecHZero_surjective_of_epi (cokernel.π f) |
| 135 | |
| 136 | end |
| 137 | |
| 138 | end OAI.AlgebraicGeometry.SheafCohomology.AffineExact.Projective |