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 | /- |
| 2 | Derived from AINTLIB: |
| 3 | projects/ModularCurves/ModularCurves/ForMathlib/SheafCechGlobalSections.lean |
| 4 | The upstream AINTLIB repository is licensed under Apache 2.0. |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.SheafResolution |
| 8 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Sheaf.DerivedGlobalSections |
| 9 | |
| 10 | /-! # Top Section Coordinates -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.TopSectionCoordinates.IntrinsicCech |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace Opposite |
| 17 | universe u |
| 18 | variable {X : TopCat.{u}} |
| 19 | variable (F : TopCat.Sheaf AddCommGrpCat.{u} X) |
| 20 | variable {ι : Type u} (U : ι → Opens X) |
| 21 | local instance : (HilbertConstruction.Sheaf.DerivedGlobalSections.DerivedSections.additiveSheafGlobalSectionsFunctor X).Additive := |
| 22 | (CategoryTheory.constantSheafΓAdj |
| 23 | (Opens.grothendieckTopology X) AddCommGrpCat.{u}).right_adjoint_additive |
| 24 | |
| 25 | noncomputable def cechTopSectionsAddEquiv (n : ℕ) : |
| 26 | (IntrinsicCech.SheafTerms.cechTerm F U n).obj.obj (op ⊤) ≃+ |
| 27 | ((cechComplexFunctor U).obj F.obj).X n := by |
| 28 | exact (IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U n (⊤ : Opens X)).trans <| |
| 29 | (AddEquiv.piCongrRight fun i => |
| 30 | (F.obj.mapIso (eqToIso (congrArg op |
| 31 | (top_inf_eq (∏ᶜ fun k : Fin (n + 1) => U (i k)))))).addCommGroupIsoToAddEquiv).trans <| |
| 32 | (IntrinsicCech.Cochains.cechCochainAddEquiv F.obj U n).symm |
| 33 | |
| 34 | theorem cechTopSectionsAddEquiv_apply (n : ℕ) |
| 35 | (x : (IntrinsicCech.SheafTerms.cechTerm F U n).obj.obj (op ⊤)) |
| 36 | (i : Fin (n + 1) → ι) : |
| 37 | IntrinsicCech.Cochains.cechCochainAddEquiv F.obj U n (cechTopSectionsAddEquiv F U n x) i = |
| 38 | (F.obj.mapIso (eqToIso (congrArg op |
| 39 | (top_inf_eq (∏ᶜ fun k : Fin (n + 1) => U (i k)))))).hom |
| 40 | (IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U n (⊤ : Opens X) x i) := by |
| 41 | let y := (AddEquiv.piCongrRight fun i => |
| 42 | (F.obj.mapIso (eqToIso (congrArg op |
| 43 | (top_inf_eq (∏ᶜ fun k : Fin (n + 1) => U (i k)))))).addCommGroupIsoToAddEquiv) |
| 44 | (IntrinsicCech.SheafSectionCoordinates.cechTermSectionsAddEquiv F U n (⊤ : Opens X) x) |
| 45 | exact congrFun ((IntrinsicCech.Cochains.cechCochainAddEquiv F.obj U n).apply_symm_apply y) i |
| 46 | |
| 47 | theorem addCommGrp_hom_map_sum {A B : AddCommGrpCat.{u}} {κ : Type*} |
| 48 | [Fintype κ] (f : A ⟶ B) (x : κ → A) : |
| 49 | ConcreteCategory.hom f (∑ k, x k) = |
| 50 | ∑ k, ConcreteCategory.hom f (x k) := |
| 51 | by simp |
| 52 | |
| 53 | theorem cechTopRestriction_apply (n : ℕ) (k : Fin (n + 2)) |
| 54 | (i : Fin (n + 2) → ι) |
| 55 | (x : F.obj.obj (op ((⊤ : Opens X) ⊓ |
| 56 | ∏ᶜ fun a : Fin (n + 1) => |
| 57 | U ((i ∘ (SimplexCategory.δ k).toOrderHom.toFun) a)))) : |
| 58 | F.obj.map (((FormalCoproduct.mk _ U).mapPower |
| 59 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op |
| 60 | ((F.obj.mapIso (eqToIso (congrArg op |
| 61 | (top_inf_eq (∏ᶜ fun a : Fin (n + 1) => |
| 62 | U ((i ∘ (SimplexCategory.δ k).toOrderHom.toFun) a)))))).hom x) = |
| 63 | (F.obj.mapIso (eqToIso (congrArg op |
| 64 | (top_inf_eq (∏ᶜ fun a : Fin (n + 2) => U (i a)))))).hom |
| 65 | (F.obj.map (homOfLE (inf_le_inf_left (⊤ : Opens X) |
| 66 | (leOfHom (((FormalCoproduct.mk _ U).mapPower |
| 67 | (SimplexCategory.δ k).toOrderHom.toFun).φ i)))).op x) := by |
| 68 | have h : |
| 69 | F.obj.map (eqToIso (congrArg op |
| 70 | (top_inf_eq (∏ᶜ fun a : Fin (n + 1) => |
| 71 | U ((i ∘ (SimplexCategory.δ k).toOrderHom.toFun) a))))).hom ≫ |
| 72 | F.obj.map (((FormalCoproduct.mk _ U).mapPower |
| 73 | (SimplexCategory.δ k).toOrderHom.toFun).φ i).op = |
| 74 | F.obj.map (homOfLE (inf_le_inf_left (⊤ : Opens X) |
| 75 | (leOfHom (((FormalCoproduct.mk _ U).mapPower |
| 76 | (SimplexCategory.δ k).toOrderHom.toFun).φ i)))).op ≫ |
| 77 | F.obj.map (eqToIso (congrArg op |
| 78 | (top_inf_eq (∏ᶜ fun a : Fin (n + 2) => U (i a))))).hom := by |
| 79 | exact (F.obj.map_comp _ _).symm.trans |
| 80 | ((congrArg F.obj.map (Subsingleton.elim _ _)).trans |
| 81 | (F.obj.map_comp _ _)) |
| 82 | exact ConcreteCategory.congr_hom h x |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Cech.TopSectionCoordinates.IntrinsicCech |