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.HodgeConjecture.HeckeCycles.ConstantPointMap |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ConstantScheme |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 4 | |
| 5 | /-! # Constant Point Embedding -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ConstantPointEmbedding.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Distinct field-valued points give a monomorphism from their constant |
| 12 | scheme. For finitely many points in a separated target, it is a closed |
| 13 | immersion. Nonempty test pieces map faithfully flatly to the base field. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Finite.ConstantScheme |
| 17 | |
| 18 | open OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ConstantPointMap.CM |
| 19 | |
| 20 | universe u |
| 21 | variable (k : Type u) [Field k] (I : Type u) (A : Over (Spec (.of k))) |
| 22 | (p : I → (Over.mk (𝟙 (Spec (.of k))) ⟶ A)) (hp : Function.Injective p) |
| 23 | |
| 24 | include hp in |
| 25 | theorem map_mono : Mono (ConstantPointMap.CM.ofPoints (Spec (.of k)) I A p) where |
| 26 | right_cancellation {T} x y h := by |
| 27 | apply (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePointsEquiv (Spec (.of k)) I T).injective |
| 28 | apply LocallyConstant.ext |
| 29 | intro t |
| 30 | let c : LocallyConstant T.left (I × I) := { |
| 31 | toFun z := (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T x z, AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T y z) |
| 32 | isLocallyConstant := (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T x).isLocallyConstant.prodMk |
| 33 | (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint T y).isLocallyConstant } |
| 34 | let U : Over (Spec (.of k)) := Over.mk ((AbelianModuli.HilbertConstruction.ConstantScheme.Iff.locallyConstantFiber c (c t)).ι ≫ T.hom) |
| 35 | let d : U ⟶ T := Over.homMk (AbelianModuli.HilbertConstruction.ConstantScheme.Iff.locallyConstantFiber c (c t)).ι rfl |
| 36 | let b : U ⟶ Over.mk (𝟙 (Spec (.of k))) := Over.homMk U.hom (Category.comp_id U.hom) |
| 37 | have hx (z : U.left) : AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint U (d ≫ x) z = (c t).1 := |
| 38 | congrArg Prod.fst z.property |
| 39 | have hy (z : U.left) : AbelianModuli.HilbertConstruction.ConstantScheme.Iff.constantSchemePoint U (d ≫ y) z = (c t).2 := |
| 40 | congrArg Prod.snd z.property |
| 41 | have hxp := ConstantPointMap.CM.ofPoints_on_constant (Spec (.of k)) I A p U (d ≫ x) (c t).1 hx |
| 42 | have hyp := ConstantPointMap.CM.ofPoints_on_constant (Spec (.of k)) I A p U (d ≫ y) (c t).2 hy |
| 43 | have hpoint : b ≫ p (c t).1 = b ≫ p (c t).2 := |
| 44 | hxp.symm.trans ((Category.assoc _ _ _).trans |
| 45 | ((congrArg (d ≫ ·) h).trans ((Category.assoc _ _ _).symm.trans hyp))) |
| 46 | have : Surjective U.hom := ⟨fun z => ⟨⟨t, rfl⟩, Subsingleton.elim _ z⟩⟩ |
| 47 | have : Epi U.hom := Flat.epi_of_flat_of_surjective U.hom |
| 48 | apply hp |
| 49 | apply Over.OverMorphism.ext |
| 50 | exact (cancel_epi U.hom).mp (congrArg (fun f : U ⟶ A => f.left) hpoint) |
| 51 | |
| 52 | include hp in |
| 53 | theorem map_closed [Finite I] [IsSeparated A.hom] : |
| 54 | IsClosedImmersion (ConstantPointMap.CM.ofPoints (Spec (.of k)) I A p).left := by |
| 55 | let f := ConstantPointMap.CM.ofPoints (Spec (.of k)) I A p |
| 56 | have : Mono f := map_mono k I A p hp |
| 57 | have : IsFinite (f.left ≫ A.hom) := |
| 58 | (congrArg IsFinite f.w).mpr (AbelianModuli.HilbertConstruction.Finite.ConstantScheme.constantScheme_finite (S := Spec (.of k)) (I := I)) |
| 59 | have : IsFinite f.left := IsFinite.of_comp f.left A.hom |
| 60 | exact (IsClosedImmersion.iff_isFinite_and_mono f.left).mpr ⟨inferInstance, inferInstance⟩ |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.ConstantPointEmbedding.CM |