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.Comparison.Betti.Godement.Functor |
| 2 | import OAI.AlgebraicGeometry.Comparison.Betti.FunctorialCokernel |
| 3 | |
| 4 | /-! # Locality -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Godement.Locality |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual Godement functor and its cokernel preserve vanishing on |
| 11 | an open set. The assertions concern whole neighborhoods, not single stalks. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite _root_.TopCat.Presheaf |
| 14 | |
| 15 | open OAI.AlgebraicGeometry.Comparison.Betti.FunctorialCokernel.Resolution |
| 16 | |
| 17 | variable {X : TopCat.{0}} {F G : TopCat.Sheaf (ModuleCat.{0} ℂ) X} |
| 18 | |
| 19 | def VanishesOn (f : F ⟶ G) (U : Opens X) : Prop := |
| 20 | ∀ (V : Opens X), V ≤ U → f.hom.app (op V) = 0 |
| 21 | |
| 22 | theorem stalkMap_zero_of_vanishesOn (f : F ⟶ G) (U : Opens X) |
| 23 | (hf : VanishesOn f U) (x : X) (hx : x ∈ U) : |
| 24 | (stalkFunctor (ModuleCat.{0} ℂ) x).map f.hom = 0 := by |
| 25 | apply ModuleCat.hom_ext |
| 26 | apply LinearMap.ext |
| 27 | intro t |
| 28 | obtain ⟨V, hVU, hxV, s, rfl⟩ := exists_le_germ_eq F.obj t hx |
| 29 | rw [stalkFunctor_map_germ_apply, hf V hVU] |
| 30 | exact map_zero _ |
| 31 | |
| 32 | theorem vanishesOn_of_stalkMap_zero (f : F ⟶ G) (U : Opens X) |
| 33 | (hf : ∀ x ∈ U, (stalkFunctor (ModuleCat.{0} ℂ) x).map f.hom = 0) : VanishesOn f U := by |
| 34 | intro V hVU |
| 35 | apply ModuleCat.hom_ext |
| 36 | apply LinearMap.ext |
| 37 | intro s |
| 38 | apply section_ext G V |
| 39 | intro x hx |
| 40 | rw [← stalkFunctor_map_germ_apply, hf x (hVU hx)] |
| 41 | change 0 = germ G.obj V x hx 0 |
| 42 | exact (map_zero _).symm |
| 43 | |
| 44 | theorem stalkFamilyMap_vanishesOn (f : F ⟶ G) (U : Opens X) (hf : VanishesOn f U) : |
| 45 | VanishesOn ((Functor.stalkFamilyFunctor X).map f) U := by |
| 46 | intro V hVU |
| 47 | apply ModuleCat.hom_ext |
| 48 | apply LinearMap.ext |
| 49 | intro s |
| 50 | funext x |
| 51 | change (stalkFunctor (ModuleCat.{0} ℂ) x.val).map f.hom (s x) = 0 |
| 52 | rw [stalkMap_zero_of_vanishesOn f U hf x.val (hVU x.property)] |
| 53 | rfl |
| 54 | |
| 55 | theorem quotientMap_vanishesOn (f : F ⟶ G) (U : Opens X) (hf : VanishesOn f U) : |
| 56 | VanishesOn ((FunctorialCokernel.Resolution.quotientFunctor (Functor.stalkFamilyFunctor X) (Functor.stalkFamilyUnit X)).map f) U := by |
| 57 | apply vanishesOn_of_stalkMap_zero |
| 58 | intro x hx |
| 59 | let S := TopCat.Sheaf.forget (ModuleCat.{0} ℂ) X ⋙ stalkFunctor (ModuleCat.{0} ℂ) x |
| 60 | let T := Functor.stalkFamilyFunctor X |
| 61 | let η := Functor.stalkFamilyUnit X |
| 62 | let p := FunctorialCokernel.Resolution.quotientProjection T η |
| 63 | have hp : Epi (S.map (p.app F)) := by |
| 64 | change Epi (S.map (cokernel.π (η.app F))) |
| 65 | infer_instance |
| 66 | have hzero : S.map (T.map f) = 0 := |
| 67 | stalkMap_zero_of_vanishesOn (T.map f) U (stalkFamilyMap_vanishesOn f U hf) x hx |
| 68 | change S.map ((FunctorialCokernel.Resolution.quotientFunctor T η).map f) = 0 |
| 69 | apply (cancel_epi (S.map (p.app F))).mp |
| 70 | rw [← S.map_comp, ← p.naturality f, S.map_comp, hzero, zero_comp, comp_zero] |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.Comparison.Betti.Godement.Locality |