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.Crystalline.Cohomology.FlatBase.OrdinaryAffineVanishing |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.RestrictedCoefficient |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.OpenSheaf |
| 4 | |
| 5 | /-! # Affine Open Resolution -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.FlatBase.AffineOpenResolution.FlatBaseAffineOpenResolution |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # Actual injective-resolution sections of ordinary forms are exact on affine opens -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Abelian Limits _root_.AlgebraicGeometry Opposite |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable (R : Type u) [CommRing R] |
| 18 | |
| 19 | def openModel (Y : Over (Spec (CommRingCat.of R))) (W : Y.left.Opens) : |
| 20 | Over (Spec (CommRingCat.of R)) := Over.mk (W.ι ≫ Y.hom) |
| 21 | |
| 22 | def inclusion (Y : Over (Spec (CommRingCat.of R))) (W : Y.left.Opens) : |
| 23 | openModel R Y W ⟶ Y := Over.homMk W.ι |
| 24 | |
| 25 | variable [Module.Flat ℤ R] |
| 26 | (X : Over (Spec (CommRingCat.of R))) [IsProper X.hom] [Smooth X.hom] |
| 27 | (Y : Over (Spec (CommRingCat.of R))) (g : Y ⟶ X) [IsOpenImmersion g.left] |
| 28 | |
| 29 | local instance coefficientExt (Z : Over (Spec (CommRingCat.of R))) : |
| 30 | HasExt.{u + 1} (DeRhamGlobalId.DeRhamGlobal.Sheaves R Z) := HasExt.standard _ |
| 31 | |
| 32 | include g in |
| 33 | theorem forms_exactAt (j : ℕ) (I : InjectiveResolution ((DeRhamGlobalId.DeRhamGlobal.sheafComplex R Y).X j)) |
| 34 | (W : Y.left.Opens) (hW : IsAffineOpen W) (n : ℕ) : |
| 35 | (((OpenSheaf.OpenSheafSectionComplex.sections R Y.left W).mapHomologicalComplex (.up ℕ)).obj |
| 36 | I.cocomplex).ExactAt (n + 1) := by |
| 37 | let Z := openModel R Y W |
| 38 | let h : Z ⟶ Y := inclusion R Y W |
| 39 | let : IsAffine Z.left := hW |
| 40 | let : IsOpenImmersion h.left := inferInstanceAs (IsOpenImmersion W.ι) |
| 41 | let : IsOpenImmersion (h ≫ g).left := inferInstanceAs (IsOpenImmersion (W.ι ≫ g.left)) |
| 42 | let : Subsingleton (Ext.{u + 1} (DeRhamGlobalId.DeRhamGlobal.coefficientSheaf R Z) |
| 43 | ((DeRhamGlobalId.DeRhamGlobal.sheafComplex R Z).X j) (n + 1)) := |
| 44 | OrdinaryAffineVanishing.FlatBaseOrdinaryAffineVanishing.forms R X Z (h ≫ g) j n |
| 45 | let e : Ext.{u + 1} (DeRhamGlobalId.DeRhamGlobal.coefficientSheaf R Z) |
| 46 | ((Cech.Cover.CechRestriction.sheafRestrictionFunctor R h.left).obj ((DeRhamGlobalId.DeRhamGlobal.sheafComplex R Y).X j)) |
| 47 | (n + 1) ≃ₗ[R] |
| 48 | Ext.{u + 1} (DeRhamGlobalId.DeRhamGlobal.coefficientSheaf R Z) ((DeRhamGlobalId.DeRhamGlobal.sheafComplex R Z).X j) (n + 1) := |
| 49 | SheafCohomology.Ext.Projective.extRightIso R (DeRhamGlobalId.DeRhamGlobal.coefficientSheaf R Z) |
| 50 | (NumberTheory.PadicHodge.GeometricComparison.OpenForms.OpenFormsSheaves.sheafIso h j) (n + 1) |
| 51 | let : Subsingleton (Ext.{u + 1} (ConstantSheaf.ConstantSheafSections.coefficient R (TopCat.of Z.left)) |
| 52 | ((Cech.Cover.CechRestriction.sheafRestrictionFunctor R h.left).obj ((DeRhamGlobalId.DeRhamGlobal.sheafComplex R Y).X j)) |
| 53 | (n + 1)) := e.injective.subsingleton |
| 54 | have he : W.ι ''ᵁ ⊤ = W := by |
| 55 | rw [Scheme.Hom.image_top_eq_opensRange, Scheme.Opens.opensRange_ι] |
| 56 | exact (RestrictedCoefficient.RestrictedCoefficientResolution.exactAt R h.left I n).of_iso |
| 57 | (OpenSheaf.OpenSheafSectionComplex.complexIso R W.ι W he I.cocomplex) |
| 58 | |
| 59 | include g in |
| 60 | theorem forms_sections_exact (j : ℕ) |
| 61 | (I : InjectiveResolution ((DeRhamGlobalId.DeRhamGlobal.sheafComplex R Y).X j)) |
| 62 | (W : Y.left.Opens) (hW : IsAffineOpen W) (n : ℕ) |
| 63 | (x : (I.cocomplex.X (n + 1)).obj.obj (op W)) |
| 64 | (hx : (I.cocomplex.d (n + 1) (n + 2)).hom.app (op W) x = 0) : |
| 65 | ∃ y : (I.cocomplex.X n).obj.obj (op W), |
| 66 | (I.cocomplex.d n (n + 1)).hom.app (op W) y = x := by |
| 67 | have h := forms_exactAt R X Y g j I W hW n |
| 68 | rw [HomologicalComplex.exactAt_iff' _ n (n + 1) (n + 2) (by simp) (by simp)] at h |
| 69 | exact (ShortComplex.moduleCat_exact_iff _).mp h x hx |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.FlatBase.AffineOpenResolution.FlatBaseAffineOpenResolution |