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.Topology.Sheaves.SheafCondition.UniqueGluing |
| 2 | import Mathlib.Algebra.Category.Grp.Limits |
| 3 | import Mathlib.Topology.Sheaves.Stalks |
| 4 | |
| 5 | /-! # Sheaf Local Bijectivity -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.SheafLocalBijectivity.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # LineBundleCycles: invertibility of actual sheaf maps can be checked on open neighborhoods -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.TopologicalSpace Opposite |
| 14 | |
| 15 | variable {X : TopCat.{0}} {F G : TopCat.Sheaf Ab.{0} X} (φ : F ⟶ G) |
| 16 | |
| 17 | theorem sheafMap_injective_of_local (U : Opens X) |
| 18 | (h : ∀ x ∈ U, ∃ V : Opens X, V ≤ U ∧ x ∈ V ∧ Function.Injective (φ.hom.app (op V))) : |
| 19 | Function.Injective (φ.hom.app (op U)) := by |
| 20 | intro s t heq |
| 21 | apply TopCat.Presheaf.IsSheaf.section_ext (F := F.presheaf) F.property |
| 22 | intro x hx |
| 23 | obtain ⟨V, hVU, hxV, hinj⟩ := h x hx |
| 24 | refine ⟨V, hVU, hxV, hinj ?_⟩ |
| 25 | have he := congrArg (G.presheaf.map (homOfLE hVU).op) heq |
| 26 | exact (ConcreteCategory.congr_hom (φ.hom.naturality (homOfLE hVU).op) s).trans |
| 27 | (he.trans (ConcreteCategory.congr_hom (φ.hom.naturality (homOfLE hVU).op) t).symm) |
| 28 | |
| 29 | theorem sheafMap_surjective_of_local (U : Opens X) |
| 30 | (hinj : ∀ V ≤ U, Function.Injective (φ.hom.app (op V))) |
| 31 | (hsurj : ∀ (t : G.presheaf.obj (op U)) x, x ∈ U → |
| 32 | ∃ (V : Opens X) (hVU : V ≤ U), x ∈ V ∧ |
| 33 | ∃ s : F.presheaf.obj (op V), φ.hom.app (op V) s = G.presheaf.map (homOfLE hVU).op t) : |
| 34 | Function.Surjective (φ.hom.app (op U)) := by |
| 35 | intro t |
| 36 | choose V hVU hxV s hs using (fun x : U => hsurj t x.val x.property) |
| 37 | have hcover : U ≤ iSup V := by |
| 38 | intro x hx |
| 39 | exact Opens.mem_iSup.mpr ⟨⟨x, hx⟩, hxV ⟨x, hx⟩⟩ |
| 40 | have hcompat : TopCat.Presheaf.IsCompatible F.presheaf V s := by |
| 41 | intro x y |
| 42 | apply hinj (V x ⊓ V y) (inf_le_left.trans (hVU x)) |
| 43 | have hx := ConcreteCategory.congr_hom (φ.hom.naturality ((V x).infLELeft (V y)).op) (s x) |
| 44 | have hy := ConcreteCategory.congr_hom (φ.hom.naturality ((V x).infLERight (V y)).op) (s y) |
| 45 | refine hx.trans ((congrArg (G.presheaf.map ((V x).infLELeft (V y)).op) (hs x)).trans ?_) |
| 46 | refine Eq.trans ?_ ((congrArg (G.presheaf.map ((V x).infLERight (V y)).op) (hs y)).symm.trans hy.symm) |
| 47 | rw [← ConcreteCategory.comp_apply, ← G.presheaf.map_comp, |
| 48 | ← ConcreteCategory.comp_apply, ← G.presheaf.map_comp] |
| 49 | rfl |
| 50 | obtain ⟨a, ha, _⟩ := F.existsUnique_gluing' V U (fun x => homOfLE (hVU x)) hcover s hcompat |
| 51 | refine ⟨a, ?_⟩ |
| 52 | apply G.eq_of_locally_eq' V U (fun x => homOfLE (hVU x)) hcover |
| 53 | intro x |
| 54 | exact (ConcreteCategory.congr_hom (φ.hom.naturality (homOfLE (hVU x)).op) a).symm.trans |
| 55 | ((congrArg (φ.hom.app (op (V x))) (ha x)).trans (hs x)) |
| 56 | |
| 57 | theorem sheafMap_bijective_of_local (U : Opens X) |
| 58 | (h : ∀ x ∈ U, ∃ V : Opens X, V ≤ U ∧ x ∈ V ∧ |
| 59 | ∀ W ≤ V, Function.Bijective (φ.hom.app (op W))) : |
| 60 | Function.Bijective (φ.hom.app (op U)) := by |
| 61 | have hinj : ∀ W ≤ U, Function.Injective (φ.hom.app (op W)) := by |
| 62 | intro W hWU |
| 63 | apply sheafMap_injective_of_local φ W |
| 64 | intro x hx |
| 65 | obtain ⟨V, _, hxV, hV⟩ := h x (hWU hx) |
| 66 | exact ⟨W ⊓ V, inf_le_left, ⟨hx, hxV⟩, (hV (W ⊓ V) inf_le_right).1⟩ |
| 67 | refine ⟨hinj U le_rfl, sheafMap_surjective_of_local φ U hinj ?_⟩ |
| 68 | intro t x hx |
| 69 | obtain ⟨V, hVU, hxV, hV⟩ := h x hx |
| 70 | exact ⟨V, hVU, hxV, (hV V le_rfl).2 (G.presheaf.map (homOfLE hVU).op t)⟩ |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.AlgebraicGeometry.Divisors.LineBundles.SheafLocalBijectivity.BundleCycles |