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.ReferenceFamily.IntegerSingularSheafComparison |
| 2 | import OAI.AlgebraicGeometry.DivisorClass.Chern.Abelian.SheafLocalExact |
| 3 | |
| 4 | /-! # Locally Constant Coefficient Exact -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LocallyConstantCoefficientExact |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Short exact coefficient sequences give actual sectionwise exact |
| 11 | sequences of locally constant abelian sheaves. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.DivisorClass.Chern.Abelian.SheafLocalExact |
| 16 | |
| 17 | variable {M N P : ModuleCat.{0} ℤ} (f : M ⟶ N) (g : N ⟶ P) (X : TopCat.{0}) |
| 18 | |
| 19 | def integerLocallyConstantSheafMap : |
| 20 | IntegerSingularSheafComparison.integerLocallyConstantAbelianSheaf M X ⟶ IntegerSingularSheafComparison.integerLocallyConstantAbelianSheaf N X := |
| 21 | (IntegerSingularSheafComparison.integerCoefficientSheafForget X).map (LocallyConstantModuleSheaf.coefficientLocallyConstantSheafMap M X f) |
| 22 | |
| 23 | theorem integerLocallyConstantSheafMap_injective (hf : Function.Injective f) (U : Opens X) : |
| 24 | Function.Injective ((integerLocallyConstantSheafMap f X).hom.app (op U)) := by |
| 25 | intro a b hab |
| 26 | apply LocallyConstant.ext |
| 27 | intro x |
| 28 | apply hf |
| 29 | exact congrArg (fun c : LocallyConstant U N => c x) hab |
| 30 | |
| 31 | theorem integerLocallyConstantSheafMap_surjective (hf : Function.Surjective f) (U : Opens X) : |
| 32 | Function.Surjective ((integerLocallyConstantSheafMap f X).hom.app (op U)) := by |
| 33 | intro b |
| 34 | change LocallyConstant U N at b |
| 35 | let t : N → M := fun y => (hf y).choose |
| 36 | refine ⟨⟨fun x => t (b x), b.isLocallyConstant.comp t⟩, ?_⟩ |
| 37 | apply LocallyConstant.ext |
| 38 | intro x |
| 39 | exact (hf (b x)).choose_spec |
| 40 | |
| 41 | theorem integerLocallyConstantSheafMap_mono (hf : Function.Injective f) : |
| 42 | Mono (integerLocallyConstantSheafMap f X) := by |
| 43 | apply (CategoryTheory.Sheaf.Hom.mono_iff_presheaf_mono _ _ _).mpr |
| 44 | apply (NatTrans.mono_iff_mono_app _).mpr |
| 45 | intro U |
| 46 | exact (AddCommGrpCat.mono_iff_injective _).mpr (integerLocallyConstantSheafMap_injective f X hf U.unop) |
| 47 | |
| 48 | theorem integerLocallyConstantSheafMap_epi (hf : Function.Surjective f) : |
| 49 | Epi (integerLocallyConstantSheafMap f X) := by |
| 50 | have : ∀ U, Epi ((integerLocallyConstantSheafMap f X).hom.app U) := fun U => |
| 51 | (AddCommGrpCat.epi_iff_surjective _).mpr (integerLocallyConstantSheafMap_surjective f X hf U.unop) |
| 52 | have : Epi (integerLocallyConstantSheafMap f X).hom := NatTrans.epi_of_epi_app _ |
| 53 | exact CategoryTheory.Sheaf.Hom.epi_of_presheaf_epi (Opens.grothendieckTopology X) |
| 54 | AddCommGrpCat.{0} (integerLocallyConstantSheafMap f X) |
| 55 | |
| 56 | theorem integerLocallyConstantSheafMap_comp_zero (hz : ∀ a : M, g (f a) = 0) : |
| 57 | integerLocallyConstantSheafMap f X ≫ integerLocallyConstantSheafMap g X = 0 := by |
| 58 | apply Sheaf.hom_ext |
| 59 | apply NatTrans.ext |
| 60 | funext U |
| 61 | apply AddCommGrpCat.hom_ext |
| 62 | apply AddMonoidHom.ext |
| 63 | intro a |
| 64 | change LocallyConstant U.unop M at a |
| 65 | apply LocallyConstant.ext |
| 66 | intro x |
| 67 | exact hz (a x) |
| 68 | |
| 69 | def locallyConstantCoefficientSequence (hz : ∀ a : M, g (f a) = 0) : |
| 70 | ShortComplex (TopCat.Sheaf AddCommGrpCat.{0} X) := |
| 71 | ShortComplex.mk (integerLocallyConstantSheafMap f X) (integerLocallyConstantSheafMap g X) |
| 72 | (integerLocallyConstantSheafMap_comp_zero f g X hz) |
| 73 | |
| 74 | theorem locallyConstantCoefficientSequence_exact (hz : ∀ a : M, g (f a) = 0) |
| 75 | (he : ∀ b : N, g b = 0 → ∃ a : M, f a = b) : |
| 76 | (locallyConstantCoefficientSequence f g X hz).Exact := by |
| 77 | classical |
| 78 | apply DivisorClass.Chern.Abelian.SheafLocalExact.abelianSheaf_exact_of_section_exact X |
| 79 | intro U |
| 80 | apply (ShortComplex.ab_exact_iff _).mpr |
| 81 | intro b hb |
| 82 | change LocallyConstant U N at b |
| 83 | let t : N → M := Function.invFun f |
| 84 | refine ⟨⟨fun x => t (b x), b.isLocallyConstant.comp t⟩, ?_⟩ |
| 85 | apply LocallyConstant.ext |
| 86 | intro x |
| 87 | have hb' : g (b x) = 0 := congrArg (fun c : LocallyConstant U P => c x) hb |
| 88 | obtain ⟨a, ha⟩ := he (b x) hb' |
| 89 | change f (Function.invFun f (b x)) = b x |
| 90 | rw [← ha] |
| 91 | exact Function.apply_invFun_apply |
| 92 | |
| 93 | theorem locallyConstantCoefficientSequence_shortExact (hz : ∀ a : M, g (f a) = 0) |
| 94 | (hf : Function.Injective f) (hg : Function.Surjective g) |
| 95 | (he : ∀ b : N, g b = 0 → ∃ a : M, f a = b) : |
| 96 | (locallyConstantCoefficientSequence f g X hz).ShortExact where |
| 97 | exact := locallyConstantCoefficientSequence_exact f g X hz he |
| 98 | mono_f := integerLocallyConstantSheafMap_mono f X hf |
| 99 | epi_g := integerLocallyConstantSheafMap_epi g X hg |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.LocallyConstantCoefficientExact |