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.HilbertConstruction.Relative.SchemeGluing |
| 2 | import Mathlib.AlgebraicGeometry.Sites.BigZariski |
| 3 | import Mathlib.CategoryTheory.Sites.Over |
| 4 | |
| 5 | /-! # Glued Sheaf Sections -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Relative.GluedSheafSections |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Compatible sections of a relative Zariski sheaf glue over an actual relative scheme gluing. The original overlap schemes are proved to be the intersections of its charts. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | universe u |
| 14 | |
| 15 | variable {S : Scheme.{u}} (D : CategoryTheory.GlueData.{u} (Over S)) |
| 16 | variable (hD : ∀ i j, IsOpenImmersion (D.f i j).left) |
| 17 | |
| 18 | theorem relativeGlueInclusion_isPullback (i j : D.J) : |
| 19 | IsPullback (D.f i j) (D.t i j ≫ D.f j i) |
| 20 | (SchemeGluing.relativeGlueInclusion D hD i) (SchemeGluing.relativeGlueInclusion D hD j) := by |
| 21 | have : HasMulticoequalizer D.diagram := SchemeGluing.relativeGlueData_hasColimit D hD |
| 22 | have : HasColimit (D.diagram.multispan ⋙ Over.forget S) := SchemeGluing.relativeGlueData_forget_hasColimit D hD |
| 23 | exact IsPullback.of_isLimit (D.vPullbackConeIsLimitOfMap (Over.forget S) i j |
| 24 | ((SchemeGluing.relativeSchemeGlueData D hD).vPullbackConeIsLimit i j)) |
| 25 | |
| 26 | theorem relativeGlueInclusion_sieve_mem : |
| 27 | Sieve.ofArrows D.U (SchemeGluing.relativeGlueInclusion D hD) ∈ |
| 28 | (Scheme.zariskiTopology.over S) (SchemeGluing.relativeGlued D hD) := by |
| 29 | rw [GrothendieckTopology.mem_over_iff, Sieve.overEquiv_ofArrows] |
| 30 | exact (SchemeGluing.relativeGlueOpenCover D hD).mem_grothendieckTopology |
| 31 | |
| 32 | theorem relativeGlued_existsUnique_sheafSection |
| 33 | (F : (Over S)ᵒᵖ ⥤ Type u) (hF : Presheaf.IsSheaf (Scheme.zariskiTopology.over S) F) |
| 34 | (s : ∀ i, F.obj (.op (D.U i))) |
| 35 | (hs : ∀ i j, F.map (D.f i j).op (s i) = F.map (D.t i j ≫ D.f j i).op (s j)) : |
| 36 | ∃! a : F.obj (.op (SchemeGluing.relativeGlued D hD)), |
| 37 | ∀ i, F.map (SchemeGluing.relativeGlueInclusion D hD i).op a = s i := by |
| 38 | have hf := (isSheaf_iff_isSheaf_of_type _ _).mp hF _ (relativeGlueInclusion_sieve_mem D hD) |
| 39 | apply (Presieve.isSheafFor_arrows_iff _ _).mp ((Presieve.isSheafFor_iff_generate _).mpr hf) s |
| 40 | intro i j T a b hab |
| 41 | let p := relativeGlueInclusion_isPullback D hD i j |
| 42 | let c := p.lift a b hab |
| 43 | have ha : c ≫ D.f i j = a := p.lift_fst a b hab |
| 44 | have hb : c ≫ (D.t i j ≫ D.f j i) = b := p.lift_snd a b hab |
| 45 | calc |
| 46 | F.map a.op (s i) = F.map c.op (F.map (D.f i j).op (s i)) := |
| 47 | (congrArg (fun k => F.map k.op (s i)) ha.symm).trans |
| 48 | (F.map_comp_apply (D.f i j).op c.op (s i)) |
| 49 | _ = F.map c.op (F.map (D.t i j ≫ D.f j i).op (s j)) := congrArg (F.map c.op) (hs i j) |
| 50 | _ = F.map b.op (s j) := |
| 51 | (F.map_comp_apply (D.t i j ≫ D.f j i).op c.op (s j)).symm.trans |
| 52 | (congrArg (fun k => F.map k.op (s j)) hb) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Relative.GluedSheafSections |