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.NumberTheory.PadicHodge.IntegralComparison.Principal.Topology |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Lifted.AffineAcyclicity |
| 3 | |
| 4 | /-! # Basis Cohomology -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.BasisCohomology |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! # IntegralComparison: actual abelian cohomology on the affine principal-open basis -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.TopologicalSpace |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (R : Type u) [CommRing R] |
| 17 | |
| 18 | abbrev PrincipalSheaf := Sheaf (Topology.topology R) AddCommGrpCat.{u + 1} |
| 19 | abbrev AmbientSheaf := Lifted.AffineAcyclicity.AmbientSheaf R |
| 20 | |
| 21 | instance principalHasSheafify : HasSheafify (Topology.topology R) AddCommGrpCat.{u + 1} := |
| 22 | AbelianSheafUniverses.hasSheafify.{u + 1, u, u} _ |
| 23 | |
| 24 | instance principalEnoughInjectives : EnoughInjectives (PrincipalSheaf R) := |
| 25 | AbelianSheafUniverses.enoughInjectives.{u + 1, u, u} _ |
| 26 | |
| 27 | instance principalHasExt : HasExt.{u + 2} (PrincipalSheaf R) := HasExt.standard _ |
| 28 | |
| 29 | instance structuredLimits (V : (Opens (PrimeSpectrum R))ᵒᵖ) : |
| 30 | HasLimitsOfShape (StructuredArrow V (PrincipalOpens.Category.toOpens R).op) AddCommGrpCat.{u + 1} := |
| 31 | HasLimitsOfShape.of_small.{u + 1, u + 1} _ _ |
| 32 | |
| 33 | instance basisDense : (PrincipalOpens.Category.toOpens R).IsDenseSubsite |
| 34 | (Topology.topology R) (Opens.grothendieckTopology (PrimeSpectrum R)) := by |
| 35 | unfold Topology.topology |
| 36 | infer_instance |
| 37 | |
| 38 | abbrev restriction : AmbientSheaf R ⥤ PrincipalSheaf R := |
| 39 | (Topology.sheafEquiv R AddCommGrpCat.{u + 1}).inverse |
| 40 | |
| 41 | instance restriction_additive : (restriction R).Additive where |
| 42 | map_add := by |
| 43 | intro M N f g |
| 44 | apply Sheaf.hom_ext |
| 45 | ext U x |
| 46 | rfl |
| 47 | |
| 48 | abbrev constantUnit : PrincipalSheaf R := |
| 49 | (constantSheaf (Topology.topology R) AddCommGrpCat.{u + 1}).obj |
| 50 | (AddCommGrpCat.of (ULift.{u + 1} ℤ)) |
| 51 | |
| 52 | def constantTransport : |
| 53 | (restriction R).obj (Lifted.AffineAcyclicity.constantUnit R) ≅ constantUnit R := |
| 54 | (Functor.IsDenseSubsite.sheafEquivSheafificationCompatibility |
| 55 | (Topology.topology R) (Opens.grothendieckTopology (PrimeSpectrum R)) |
| 56 | (PrincipalOpens.Category.toOpens R) AddCommGrpCat.{u + 1}).symm.app |
| 57 | ((Functor.const _).obj (AddCommGrpCat.of (ULift.{u + 1} ℤ))) |
| 58 | |
| 59 | def cohomologyEquiv (N : AmbientSheaf R) (n : ℕ) : |
| 60 | Abelian.Ext.{u + 2} (Lifted.AffineAcyclicity.constantUnit R) N n ≃+ |
| 61 | Abelian.Ext.{u + 2} (constantUnit R) ((restriction R).obj N) n := |
| 62 | (AddEquiv.ofBijective ((restriction R).mapExtAddHom (Lifted.AffineAcyclicity.constantUnit R) N n) |
| 63 | ((restriction R).mapExt_bijective_of_preservesInjectiveObjects _ _ n)).trans |
| 64 | (AlgebraicGeometry.SheafCohomology.ExtLeft.Projective.extLeftIso (constantTransport R) ((restriction R).obj N) n) |
| 65 | |
| 66 | def unitSheaf : PrincipalSheaf R := |
| 67 | (restriction R).obj (Lifted.AffineAcyclicity.unitSheaf R) |
| 68 | |
| 69 | theorem positive_cohomology_zero (q : ℕ) : |
| 70 | Subsingleton (Abelian.Ext.{u + 2} (constantUnit R) (unitSheaf R) (q + 1)) := by |
| 71 | let := Lifted.AffineAcyclicity.positive_cohomology_zero R q |
| 72 | exact (cohomologyEquiv R (Lifted.AffineAcyclicity.unitSheaf R) (q + 1)).symm.toEquiv.subsingleton |
| 73 | |
| 74 | end |
| 75 | |
| 76 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.BasisCohomology |