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.AffineLocalCohomology |
| 2 | import Mathlib.Topology.Sheaves.Over |
| 3 | import Mathlib.CategoryTheory.Sites.Pullback |
| 4 | |
| 5 | /-! # Skyscraper Restriction -/ |
| 6 | |
| 7 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SkyscraperRestriction.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Restricting skyscraper sheaves to an open subspace. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {X : TopCat.{u}} (U : Opens X) (x : X) (I : AddCommGrpCat.{u}) |
| 18 | |
| 19 | theorem openRestrictSkyscraper_obj (hx : x ∈ U) (V : Opens U) : |
| 20 | (U.sheafRestrict.obj ((AbelianSheafInjectives.Construction.abelianSheafSkyscraper X x).obj I)).obj.obj (op V) = |
| 21 | ((AbelianSheafInjectives.Construction.abelianSheafSkyscraper (TopCat.of U) ⟨x, hx⟩).obj I).obj.obj (op V) := by |
| 22 | classical |
| 23 | simp only [Opens.sheafRestrict_obj_obj_obj, AbelianSheafInjectives.Construction.abelianSheafSkyscraper, |
| 24 | skyscraperSheafFunctor, skyscraperSheaf, skyscraperPresheaf_obj] |
| 25 | congr 1 |
| 26 | change (x ∈ Subtype.val '' (V : Set U)) = ((⟨x, hx⟩ : U) ∈ V) |
| 27 | apply propext |
| 28 | constructor |
| 29 | · rintro ⟨y, hy, heq⟩ |
| 30 | have : y = (⟨x, hx⟩ : U) := Subtype.ext heq |
| 31 | exact this ▸ hy |
| 32 | · intro h |
| 33 | exact ⟨⟨x, hx⟩, h, rfl⟩ |
| 34 | |
| 35 | def openRestrictSkyscraperIso (hx : x ∈ U) : |
| 36 | U.sheafRestrict.obj ((AbelianSheafInjectives.Construction.abelianSheafSkyscraper X x).obj I) ≅ |
| 37 | (AbelianSheafInjectives.Construction.abelianSheafSkyscraper (TopCat.of U) ⟨x, hx⟩).obj I := by |
| 38 | classical |
| 39 | refine ObjectProperty.isoMk _ ?_ |
| 40 | refine NatIso.ofComponents (fun V ↦ eqToIso (openRestrictSkyscraper_obj U x I hx V.unop)) ?_ |
| 41 | intro V W f |
| 42 | by_cases hW : (⟨x, hx⟩ : U) ∈ W.unop |
| 43 | · have hV : (⟨x, hx⟩ : U) ∈ V.unop := f.unop.le hW |
| 44 | have hW' : x ∈ Subtype.val '' (W.unop : Set U) := ⟨⟨x, hx⟩, hW, rfl⟩ |
| 45 | have hV' : x ∈ Subtype.val '' (V.unop : Set U) := ⟨⟨x, hx⟩, hV, rfl⟩ |
| 46 | simp [Opens.sheafRestrict_obj_obj_map, AbelianSheafInjectives.Construction.abelianSheafSkyscraper, |
| 47 | skyscraperSheafFunctor, skyscraperSheaf, skyscraperPresheaf_map, |
| 48 | IsOpenMap.functor, hW, hV, hW', hV', eqToIso] |
| 49 | exact (eqToHom_trans _ _).trans (eqToHom_trans _ _).symm |
| 50 | · exact (isTerminalSkyscraperSheafObjObjOfNotMem |
| 51 | (X := TopCat.of U) (A := I) (p₀ := (⟨x, hx⟩ : U)) (U := W) hW).hom_ext _ _ |
| 52 | |
| 53 | theorem openRestrictSkyscraper_isZero (hx : x ∉ U) : |
| 54 | IsZero (U.sheafRestrict.obj ((AbelianSheafInjectives.Construction.abelianSheafSkyscraper X x).obj I)) := by |
| 55 | classical |
| 56 | apply IsZero.of_full_of_faithful_of_isZero |
| 57 | (sheafToPresheaf (_root_.Opens.grothendieckTopology U) AddCommGrpCat.{u}) |
| 58 | apply Functor.isZero |
| 59 | intro V |
| 60 | have hV : x ∉ Subtype.val '' (V.unop : Set U) := by |
| 61 | rintro ⟨y, _, heq⟩ |
| 62 | exact hx (heq ▸ y.property) |
| 63 | change IsZero (if x ∈ Subtype.val '' (V.unop : Set U) then I else ⊤_ AddCommGrpCat.{u}) |
| 64 | rw [ite_eq_right hV] |
| 65 | exact (isZero_zero AddCommGrpCat.{u}).of_iso (HasZeroObject.zeroIsoTerminal).symm |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SkyscraperRestriction.Construction |