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.CategoryTheory.Sites.EpiMono |
| 2 | import Mathlib.CategoryTheory.Sites.SheafCohomology.Basic |
| 3 | import Mathlib.Algebra.Homology.DerivedCategory.Ext.EnoughProjectives |
| 4 | |
| 5 | /-! # Sheaf Acyclicity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SheafAcyclicity.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: cohomology at a terminal object with trivial covering sieves |
| 13 | |
| 14 | If every covering sieve at a terminal object is maximal, evaluation there |
| 15 | preserves epimorphisms. The constant integer sheaf is then projective, and |
| 16 | all positive-degree cohomology vanishes. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits Opposite |
| 20 | |
| 21 | universe u v w w' |
| 22 | |
| 23 | variable {C : Type u} [Category.{v} C] {J : GrothendieckTopology C} |
| 24 | [HasSheafify J AddCommGrpCat.{w}] [J.HasSheafCompose (forget AddCommGrpCat.{w})] |
| 25 | [J.WEqualsLocallyBijective AddCommGrpCat.{w}] |
| 26 | {T : C} |
| 27 | |
| 28 | /-- With no proper covering sieve at `T`, epimorphisms of abelian sheaves |
| 29 | are surjective on sections at `T`. -/ |
| 30 | theorem sheaf_epi_app_surjective_of_coveringSieve_eq_top |
| 31 | (hT : ∀ S : Sieve T, S ∈ J T → S = ⊤) |
| 32 | {F G : Sheaf J AddCommGrpCat.{w}} (f : F ⟶ G) [Epi f] : |
| 33 | Function.Surjective (f.hom.app (op T)) := by |
| 34 | have : Sheaf.IsLocallySurjective f := |
| 35 | (Sheaf.isLocallySurjective_iff_epi' AddCommGrpCat f).mpr inferInstance |
| 36 | intro x |
| 37 | have h := hT _ (Presheaf.imageSieve_mem J f.hom x) |
| 38 | have hx := (Sieve.id_mem_iff_eq_top).mpr h |
| 39 | simpa [Presheaf.imageSieve] using hx |
| 40 | |
| 41 | /-- The integer group with the same universe as the sheaf values is projective. -/ |
| 42 | theorem projective_ulift_int : Projective (AddCommGrpCat.of (ULift.{w} ℤ)) where |
| 43 | factors {E X} f e _ := by |
| 44 | obtain ⟨v, hv⟩ := (AddCommGrpCat.epi_iff_surjective e).mp inferInstance (f (ULift.up 1)) |
| 45 | refine ⟨AddCommGrpCat.ofHom (uliftZMultiplesHom E v), ?_⟩ |
| 46 | apply (AddCommGrpCat.uliftZMultiplesAddEquiv X).injective |
| 47 | change e ((1 : ℤ) • v) = f (ULift.up 1) |
| 48 | simpa only [one_zsmul] using hv |
| 49 | |
| 50 | /-- The constant integer sheaf is projective when terminal covering sieves |
| 51 | are trivial. -/ |
| 52 | theorem projective_constant_int_of_coveringSieve_eq_top (hterminal : IsTerminal T) |
| 53 | (hT : ∀ S : Sieve T, S ∈ J T → S = ⊤) : |
| 54 | Projective ((constantSheaf J AddCommGrpCat.{w}).obj (AddCommGrpCat.of (ULift ℤ))) := by |
| 55 | have : ((sheafSections J AddCommGrpCat.{w}).obj (op T)).PreservesEpimorphisms := |
| 56 | ⟨fun f _ ↦ ConcreteCategory.epi_of_surjective _ |
| 57 | (sheaf_epi_app_surjective_of_coveringSieve_eq_top hT f)⟩ |
| 58 | exact (constantSheafAdj J AddCommGrpCat.{w} hterminal).map_projective _ projective_ulift_int |
| 59 | |
| 60 | /-- Every abelian sheaf has zero positive-degree cohomology when terminal |
| 61 | covering sieves are trivial. -/ |
| 62 | theorem sheaf_cohomology_eq_zero_of_coveringSieve_eq_top (hterminal : IsTerminal T) |
| 63 | (hT : ∀ S : Sieve T, S ∈ J T → S = ⊤) |
| 64 | [HasExt.{w'} (Sheaf J AddCommGrpCat.{w})] |
| 65 | (F : Sheaf J AddCommGrpCat.{w}) (n : ℕ) (x : F.H (n + 1)) : x = 0 := by |
| 66 | have := projective_constant_int_of_coveringSieve_eq_top hterminal hT |
| 67 | exact Abelian.Ext.eq_zero_of_projective x |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SheafAcyclicity.Construction |