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.ArithmeticGeometry.OrdinaryLocus.Openness.AdditiveGlobalExact |
| 2 | import Mathlib.CategoryTheory.Sites.SheafCohomology.Basic |
| 3 | |
| 4 | /-! # Affine Cohomology One -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineCohomologyOne.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Vanishing of ordinary sheaf cohomology in degree one on affine schemes. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 13 | open _root_.CategoryTheory.Abelian |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem projective_uliftInt : Projective (AddCommGrpCat.of (ULift.{u} ℤ)) where |
| 18 | factors q b hb := by |
| 19 | obtain ⟨x, hx⟩ := (AddCommGrpCat.epi_iff_surjective b).mp hb |
| 20 | (q (ULift.up 1)) |
| 21 | refine ⟨AddCommGrpCat.ofHom (uliftZMultiplesHom _ x), ?_⟩ |
| 22 | apply AddCommGrpCat.hom_ext |
| 23 | apply AddMonoidHom.ext |
| 24 | rintro ⟨n⟩ |
| 25 | change b (uliftZMultiplesHom _ x (ULift.up n)) = q (ULift.up n) |
| 26 | rw [uliftZMultiplesHom_apply_apply, map_zsmul, hx] |
| 27 | change n • q.hom (ULift.up 1) = q.hom (ULift.up n) |
| 28 | have hn : n • (ULift.up 1 : ULift.{u} ℤ) = ULift.up n := by |
| 29 | apply ULift.ext |
| 30 | change n • (1 : ℤ) = n |
| 31 | simp |
| 32 | exact (map_zsmul q.hom n (ULift.up 1)).symm.trans (congrArg q.hom hn) |
| 33 | |
| 34 | variable (R : CommRingCat.{u}) |
| 35 | |
| 36 | abbrev affineConstantAbelian : AbelianSheafInjectives.Construction.AbelianSheaves (TopCat.of (PrimeSpectrum R)) := |
| 37 | (constantSheaf (_root_.Opens.grothendieckTopology (PrimeSpectrum R)) |
| 38 | AddCommGrpCat.{u}).obj (AddCommGrpCat.of (ULift.{u} ℤ)) |
| 39 | |
| 40 | def affineConstantAbelianAdjunction : |
| 41 | constantSheaf (_root_.Opens.grothendieckTopology (PrimeSpectrum R)) AddCommGrpCat.{u} ⊣ |
| 42 | AdditiveGlobalExact.Construction.additiveSheafEvaluation R ⊤ := |
| 43 | constantSheafAdj _ _ isTerminalTop |
| 44 | |
| 45 | theorem affineConstantAbelianHom_lift |
| 46 | (S : ShortComplex (AbelianSheafInjectives.Construction.AbelianSheaves (TopCat.of (PrimeSpectrum R)))) |
| 47 | (hS : S.ShortExact) (hF : AdditiveGlobalExact.Construction.HasExactAffineCechOne R S.X₁) |
| 48 | (q : affineConstantAbelian R ⟶ S.X₃) : |
| 49 | ∃ t : affineConstantAbelian R ⟶ S.X₂, t ≫ S.g = q := by |
| 50 | let adj := affineConstantAbelianAdjunction R |
| 51 | have : Projective (AddCommGrpCat.of (ULift.{u} ℤ)) := projective_uliftInt |
| 52 | have : Epi ((AdditiveGlobalExact.Construction.additiveSheafEvaluation R ⊤).map S.g) := |
| 53 | (AddCommGrpCat.epi_iff_surjective _).mpr |
| 54 | (AdditiveGlobalExact.Construction.additive_globalSections_surjective_of_shortExact R S hS hF) |
| 55 | let q' := (adj.homEquiv (AddCommGrpCat.of (ULift.{u} ℤ)) S.X₃) q |
| 56 | let t' := Projective.factorThru q' ((AdditiveGlobalExact.Construction.additiveSheafEvaluation R ⊤).map S.g) |
| 57 | refine ⟨(adj.homEquiv (AddCommGrpCat.of (ULift.{u} ℤ)) S.X₂).symm t', ?_⟩ |
| 58 | apply (adj.homEquiv (AddCommGrpCat.of (ULift.{u} ℤ)) S.X₃).injective |
| 59 | rw [adj.homEquiv_naturality_right, Equiv.apply_symm_apply] |
| 60 | exact Projective.factorThru_comp q' ((AdditiveGlobalExact.Construction.additiveSheafEvaluation R ⊤).map S.g) |
| 61 | |
| 62 | local instance e40AffineAbEnoughInjectives : |
| 63 | EnoughInjectives (AbelianSheafInjectives.Construction.AbelianSheaves (TopCat.of (PrimeSpectrum R))) := |
| 64 | AbelianSheafInjectives.Construction.abelianSheaves_enoughInjectives (TopCat.of (PrimeSpectrum R)) |
| 65 | |
| 66 | local instance e40AffineAbHasExt : HasExt.{u} (AbelianSheafInjectives.Construction.AbelianSheaves (TopCat.of (PrimeSpectrum R))) := |
| 67 | hasExt_of_enoughInjectives _ |
| 68 | |
| 69 | theorem affine_H_one_eq_zero |
| 70 | (F : AbelianSheafInjectives.Construction.AbelianSheaves (TopCat.of (PrimeSpectrum R))) (hF : AdditiveGlobalExact.Construction.HasExactAffineCechOne R F) |
| 71 | (e : CategoryTheory.Sheaf.H F 1) : e = 0 := by |
| 72 | let S := ShortComplex.mk (Injective.ι F) (cokernel.π (Injective.ι F)) |
| 73 | (cokernel.condition (Injective.ι F)) |
| 74 | have hS : S.ShortExact := |
| 75 | { exact := ShortComplex.exact_of_g_is_cokernel _ (cokernelIsCokernel S.f) } |
| 76 | obtain ⟨q, hq⟩ := Ext.covariant_sequence_exact₁ (affineConstantAbelian R) hS e |
| 77 | (Ext.eq_zero_of_injective _) (rfl : 0 + 1 = 1) |
| 78 | obtain ⟨q', rfl⟩ := (Ext.mk₀_bijective _ _).surjective q |
| 79 | obtain ⟨t, ht⟩ := affineConstantAbelianHom_lift R S hS hF q' |
| 80 | rw [← hq, ← ht, ← Ext.mk₀_comp_mk₀_assoc, hS.comp_extClass, Ext.comp_zero] |
| 81 | |
| 82 | theorem quasicoherent_affine_H_one_subsingleton (N : (Spec R).Modules) [N.IsQuasicoherent] : |
| 83 | Subsingleton (CategoryTheory.Sheaf.H |
| 84 | ((QuasicoherentAdditiveCech.Construction.moduleSheafToAbelian R (TopCat.of (PrimeSpectrum R))).obj (modulesSpecToSheaf.obj N)) 1) := by |
| 85 | apply subsingleton_of_forall_eq 0 |
| 86 | apply affine_H_one_eq_zero R |
| 87 | apply AdditiveGlobalExact.Construction.hasExactAffineCechOne_of_localizing R |
| 88 | exact (isIso_fromTildeΓ_iff_isLocalizing N).mp inferInstance |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineCohomologyOne.Construction |