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.Isogenies.NeighborCounting.SplitPointSurjectivity |
| 2 | import OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Evaluated.Sections |
| 3 | import OAI.RepresentationTheory.Theta.Geometric.ConstantSchemeDegree |
| 4 | |
| 5 | /-! # Point Rank -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Evaluated.PointRank.Lifts |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The cardinality of evaluated generic points is the rank of the |
| 12 | actual finite flat source. This connects native block rank to the linear |
| 13 | dimension used in the exhaustive kernel enumeration. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open _root_.CategoryTheory.MonoidalCategory |
| 17 | |
| 18 | variable (R L : Type) [CommRing R] [Field L] [Algebra R L] |
| 19 | variable (A : Over (Spec (.of R))) |
| 20 | |
| 21 | local instance unit_preconnected : PreconnectedSpace (𝟙_ (Over (Spec (.of L)))).left := |
| 22 | inferInstanceAs (PreconnectedSpace (Spec (.of L))) |
| 23 | |
| 24 | def genericPointPullbackEquiv : |
| 25 | (Sections.Lifts.genericTest R L ⟶ A) ≃ ((𝟙_ (Over (Spec (.of L)))) ⟶ |
| 26 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R L)))).obj A) := by |
| 27 | let s := Spec.map (CommRingCat.ofHom (algebraMap R L)) |
| 28 | let e : (Over.map s).obj (𝟙_ (Over (Spec (.of L)))) ≅ Sections.Lifts.genericTest R L := |
| 29 | Over.isoMk (Iso.refl _) (by simp [Sections.Lifts.genericTest, s]) |
| 30 | exact e.homFromEquiv.symm.trans ((Over.mapPullbackAdj s).homEquiv _ A) |
| 31 | |
| 32 | variable {I : Type} |
| 33 | variable (eA : AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme (Spec (.of L)) I ≅ |
| 34 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R L)))).obj A) |
| 35 | |
| 36 | def evaluatedPointLabels : (Sections.Lifts.genericTest R L ⟶ A) ≃ I := |
| 37 | (genericPointPullbackEquiv R L A).trans (eA.symm.homToEquiv.trans |
| 38 | ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv (Spec (.of L)) I (𝟙_ (Over (Spec (.of L))))).trans { |
| 39 | toFun c := c (IsLocalRing.closedPoint L) |
| 40 | invFun i := LocallyConstant.const _ i |
| 41 | left_inv c := (c.eq_const (IsLocalRing.closedPoint L)).symm |
| 42 | right_inv _ := rfl })) |
| 43 | |
| 44 | include eA in |
| 45 | theorem evaluatedPoint_card : Nat.card (Sections.Lifts.genericTest R L ⟶ A) = Nat.card I := |
| 46 | Nat.card_congr (evaluatedPointLabels R L A eA) |
| 47 | |
| 48 | variable [Finite I] [IsFinite A.hom] [Flat A.hom] |
| 49 | |
| 50 | include eA in |
| 51 | theorem evaluatedPoint_card_eq_rank : |
| 52 | Nat.card (Sections.Lifts.genericTest R L ⟶ A) = A.hom.finrank |
| 53 | (Spec.map (CommRingCat.ofHom (algebraMap R L)) (IsLocalRing.closedPoint L)) := by |
| 54 | let s := Spec.map (CommRingCat.ofHom (algebraMap R L)) |
| 55 | have : IsIso eA.hom.left := (Over.forget _).map_isIso eA.hom |
| 56 | have : Flat ((Over.pullback s).obj A).hom := |
| 57 | inferInstanceAs (Flat (Limits.pullback.snd A.hom s)) |
| 58 | have : IsFinite ((Over.pullback s).obj A).hom := |
| 59 | inferInstanceAs (IsFinite (Limits.pullback.snd A.hom s)) |
| 60 | have hc : (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantScheme (Spec (.of L)) I).hom.finrank = |
| 61 | ((Over.pullback s).obj A).hom.finrank := by |
| 62 | rw [← eA.hom.w] |
| 63 | exact Scheme.Hom.finrank_comp_left_of_isIso eA.hom.left ((Over.pullback s).obj A).hom |
| 64 | exact (evaluatedPoint_card R L A eA).trans |
| 65 | ((RepresentationTheory.Theta.Geometric.ConstantSchemeDegree.constantScheme_finrank L I (IsLocalRing.closedPoint L)).symm.trans |
| 66 | ((congrFun hc (IsLocalRing.closedPoint L)).trans |
| 67 | (Scheme.Hom.finrank_pullback_snd A.hom s (IsLocalRing.closedPoint L)))) |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.Evaluated.PointRank.Lifts |