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.HilbertConstruction.Framed.MixedKoszulCokernelStalk |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.LineBundleCommonFrames |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.StalkSupportTransport |
| 4 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.MixedKoszulCokernelSupport |
| 5 | |
| 6 | /-! # Koszul Cokernel Nonzero Stalks -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KoszulCokernelNonzeroStalks |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Every common zero has a nonzero stalk in the actual mixed Koszul |
| 13 | cokernel. Consequently its coherent support is exactly the common zero |
| 14 | set. This uses local frames and canonical pullback comparisons. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | universe u |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | local instance cokernelLineBundle_quasicoherent {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) : |
| 21 | L.sheaf.IsQuasicoherent := L.isQuasicoherent |
| 22 | local instance cokernelLineBundle_finiteType {X : Scheme.{u}} (L : Line.Bundles.LineBundle X) : |
| 23 | L.sheaf.IsFiniteType := L.isFiniteType |
| 24 | |
| 25 | theorem modulePullback_open_stalk_isZero_iff {X Y : Scheme.{u}} |
| 26 | (f : Y ⟶ X) [IsOpenImmersion f] (M : X.Modules) (y : Y) : |
| 27 | IsZero ((Module.StalkExactness.moduleStalkFunctor y).obj ((Scheme.Modules.pullback f).obj M)) ↔ |
| 28 | IsZero ((Module.StalkExactness.moduleStalkFunctor (f y)).obj M) := by |
| 29 | rw [Module.StalkSupportTransport.moduleStalk_isZero_iff_additive, Module.StalkSupportTransport.moduleStalk_isZero_iff_additive] |
| 30 | let G := Scheme.Modules.toPresheaf Y ⋙ TopCat.Presheaf.stalkFunctor AddCommGrpCat.{u} y |
| 31 | let e := G.mapIso ((Scheme.Modules.restrictFunctorIsoPullback f).app M).symm ≪≫ |
| 32 | (Scheme.Modules.restrictStalkNatIso f y).app M |
| 33 | exact e.isZero_iff |
| 34 | |
| 35 | def mixedKoszulCokernelPullbackIso {X Y : Scheme.{u}} |
| 36 | (f : Y ⟶ X) (M : X.Modules) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) : |
| 37 | (Scheme.Modules.pullback f).obj (MixedKoszulCokernelEuler.mixedKoszulCokernel M bs) ≅ |
| 38 | MixedKoszulCokernelEuler.mixedKoszulCokernel ((Scheme.Modules.pullback f).obj M) (bs.map (MixedKoszulPullbackComplex.pullbackLineBundleSection f)) := |
| 39 | PreservesCokernel.iso (Scheme.Modules.pullback f) ((LineBundleKoszulComplex.mixedLineBundleKoszulComplex M bs).d (-1) 0) ≪≫ |
| 40 | ScalarKoszul.CoefficientCokernel.cochainFinalCokernelIso (MixedKoszulPullbackComplex.mixedKoszulPullbackIso f M bs) |
| 41 | |
| 42 | theorem mixedKoszulCokernel_stalk_nonzero {X : Scheme.{u}} |
| 43 | (M : Line.Bundles.LineBundle X) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) (x : X) (hx : x ∈ MixedKoszulGeometricSupport.mixedSectionZeroSet bs) : |
| 44 | ¬ IsZero ((Module.StalkExactness.moduleStalkFunctor x).obj (MixedKoszulCokernelEuler.mixedKoszulCokernel M.sheaf bs)) := by |
| 45 | obtain ⟨U, hxU, _, ⟨eM⟩, frames⟩ := Finite.LineBundleCommonFrames.mixedKoszul_common_affine_frame M bs x |
| 46 | let y : U.toScheme := ⟨x, hxU⟩ |
| 47 | let cs := bs.map (MixedKoszulPullbackComplex.pullbackLineBundleSection U.ι) |
| 48 | have hy : y ∈ MixedKoszulGeometricSupport.mixedSectionZeroSet cs := by rw [MixedKoszulPullbackComplex.mixedSectionZeroSet_pullback]; exact hx |
| 49 | have hn := Framed.MixedKoszulCokernelStalk.framedMixedKoszulCokernel_stalk_nonzero y (M.pullback U.ι).sheaf eM cs frames hy |
| 50 | intro hz |
| 51 | have hp : IsZero ((Module.StalkExactness.moduleStalkFunctor y).obj |
| 52 | ((Scheme.Modules.pullback U.ι).obj (MixedKoszulCokernelEuler.mixedKoszulCokernel M.sheaf bs))) := |
| 53 | (modulePullback_open_stalk_isZero_iff U.ι (MixedKoszulCokernelEuler.mixedKoszulCokernel M.sheaf bs) y).mpr hz |
| 54 | exact hn (((Module.StalkExactness.moduleStalkFunctor y).mapIso (mixedKoszulCokernelPullbackIso U.ι M.sheaf bs)).isZero_iff.mp hp) |
| 55 | |
| 56 | theorem mixedKoszulCokernel_support_eq {X : Scheme.{u}} |
| 57 | (M : Line.Bundles.LineBundle X) (bs : List (LineBundleKoszulComplex.LineBundleSection X)) : |
| 58 | letI := (MixedKoszulCokernelEuler.mixedKoszulCokernel_coherent M.sheaf bs).1 |
| 59 | letI := (MixedKoszulCokernelEuler.mixedKoszulCokernel_coherent M.sheaf bs).2 |
| 60 | ((Coherent.Annihilator.coherentAnnihilator (MixedKoszulCokernelEuler.mixedKoszulCokernel M.sheaf bs)).support : Set X) = MixedKoszulGeometricSupport.mixedSectionZeroSet bs := by |
| 61 | have := (MixedKoszulCokernelEuler.mixedKoszulCokernel_coherent M.sheaf bs).1 |
| 62 | have := (MixedKoszulCokernelEuler.mixedKoszulCokernel_coherent M.sheaf bs).2 |
| 63 | apply Set.Subset.antisymm (MixedKoszulCokernelSupport.mixedKoszulCokernel_support_le M.sheaf bs) |
| 64 | intro x hx |
| 65 | exact Module.StalkSupportTransport.nonzero_moduleStalk_mem_coherent_support _ x (mixedKoszulCokernel_stalk_nonzero M bs x hx) |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.KoszulCokernelNonzeroStalks |