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.AbelianScheme.FrobeniusKernel.GeometricIsogeny |
| 2 | import Mathlib.AlgebraicGeometry.ZariskisMainTheorem |
| 3 | |
| 4 | /-! # Finite Geometric Points -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteGeometricPoints |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finiteness detected by geometric points, retaining the scheme structure |
| 11 | when properness turns quasi-finiteness into finiteness. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite _root_.CategoryTheory.Limits |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | namespace Construction |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | def overPointsEquiv {S : Scheme.{u}} (T : Over S) |
| 22 | {k : Type u} [Field k] (s : Spec (.of k) ⟶ S) : |
| 23 | (Over.mk s ⟶ T) ≃ {x : Spec (.of k) ⟶ T.left // x ≫ T.hom = s} where |
| 24 | toFun x := ⟨x.left, x.w⟩ |
| 25 | invFun x := Over.homMk x.val x.property |
| 26 | left_inv x := by apply Over.OverMorphism.ext; rfl |
| 27 | right_inv x := rfl |
| 28 | |
| 29 | theorem finite_overPoints {S : Scheme.{u}} (T : Over S) [IsFinite T.hom] |
| 30 | {k : Type u} [Field k] [IsAlgClosed k] (s : Spec (.of k) ⟶ S) : |
| 31 | Finite (Over.mk s ⟶ T) := by |
| 32 | have := AbelianScheme.FrobeniusKernel.GeometricIsogeny.Construction.finite_geometric_lifts T.hom s |
| 33 | exact Finite.of_equiv _ (overPointsEquiv T s).symm |
| 34 | |
| 35 | theorem finite_scheme_of_finite_closedPoints (X : Scheme.{u}) [JacobsonSpace X] |
| 36 | [Finite (closedPoints X)] : Finite X := by |
| 37 | have hfin : (closedPoints X).Finite := Set.toFinite _ |
| 38 | have : DiscreteTopology X := JacobsonSpace.discreteTopology hfin |
| 39 | apply Set.finite_univ_iff.mp |
| 40 | simpa only [closedPoints_eq_univ] using hfin |
| 41 | |
| 42 | def rationalPointsClosedEquiv {k : Type u} [Field k] [IsAlgClosed k] |
| 43 | (T : Over (Spec (.of k))) [LocallyOfFiniteType T.hom] : |
| 44 | (Over.mk (𝟙 (Spec (.of k))) ⟶ T) ≃ closedPoints T.left := |
| 45 | (overPointsEquiv T (𝟙 _)).trans (pointEquivClosedPoint T.hom) |
| 46 | |
| 47 | theorem finite_scheme_of_finite_rationalPoints {k : Type u} [Field k] [IsAlgClosed k] |
| 48 | (T : Over (Spec (.of k))) [LocallyOfFiniteType T.hom] |
| 49 | [Finite (Over.mk (𝟙 (Spec (.of k))) ⟶ T)] : Finite T.left := by |
| 50 | have : Finite (closedPoints T.left) := Finite.of_equiv _ (rationalPointsClosedEquiv T) |
| 51 | have : JacobsonSpace T.left := LocallyOfFiniteType.jacobsonSpace T.hom |
| 52 | exact finite_scheme_of_finite_closedPoints T.left |
| 53 | |
| 54 | theorem finite_morphism_of_proper_finite_rationalPoints {k : Type u} [Field k] [IsAlgClosed k] |
| 55 | (T : Over (Spec (.of k))) [IsProper T.hom] |
| 56 | [Finite (Over.mk (𝟙 (Spec (.of k))) ⟶ T)] : IsFinite T.hom := by |
| 57 | have : Finite T.left := finite_scheme_of_finite_rationalPoints T |
| 58 | have : LocallyQuasiFinite T.hom := |
| 59 | LocallyQuasiFinite.of_finite_preimage_singleton T.hom (fun _ => Set.toFinite _) |
| 60 | exact (IsFinite.iff_isProper_and_locallyQuasiFinite T.hom).mpr ⟨inferInstance, inferInstance⟩ |
| 61 | |
| 62 | def geometricResiduePoint (Y : Scheme.{u}) (y : Y) : |
| 63 | Spec (.of (AlgebraicClosure (Y.residueField y))) ⟶ Y := |
| 64 | Spec.map (CommRingCat.ofHom (algebraMap (Y.residueField y) (AlgebraicClosure (Y.residueField y)))) ≫ |
| 65 | Y.fromSpecResidueField y |
| 66 | |
| 67 | theorem geometricResiduePoint_range (Y : Scheme.{u}) (y : Y) : |
| 68 | Set.range (geometricResiduePoint Y y) = {y} := by |
| 69 | ext z |
| 70 | constructor |
| 71 | · rintro ⟨x, rfl⟩ |
| 72 | exact Y.fromSpecResidueField_apply y _ |
| 73 | · intro hz |
| 74 | have hz' : z = y := hz |
| 75 | subst z |
| 76 | exact ⟨IsLocalRing.closedPoint _, Y.fromSpecResidueField_apply y _⟩ |
| 77 | |
| 78 | theorem finite_preimage_of_finite_geometric_lifts {X Y : Scheme.{u}} |
| 79 | (f : X ⟶ Y) [LocallyOfFiniteType f] (y : Y) |
| 80 | [Finite {x : Spec (.of (AlgebraicClosure (Y.residueField y))) ⟶ X // |
| 81 | x ≫ f = geometricResiduePoint Y y}] : (f ⁻¹' {y}).Finite := by |
| 82 | let a := geometricResiduePoint Y y |
| 83 | let p := pullback.snd f a |
| 84 | have : LocallyOfFiniteType p := inferInstanceAs (LocallyOfFiniteType (pullback.snd f a)) |
| 85 | have : Finite (closedPoints (pullback f a : Scheme.{u})) := |
| 86 | Finite.of_equiv _ ((AbelianScheme.FrobeniusKernel.GeometricIsogeny.Construction.geometricLiftSectionEquiv f a).trans (pointEquivClosedPoint p)) |
| 87 | have : JacobsonSpace (pullback f a : Scheme.{u}) := LocallyOfFiniteType.jacobsonSpace p |
| 88 | have : Finite (pullback f a : Scheme.{u}) := finite_scheme_of_finite_closedPoints _ |
| 89 | have h := Set.finite_range (pullback.fst f a) |
| 90 | rwa [Scheme.Pullback.range_fst, geometricResiduePoint_range] at h |
| 91 | |
| 92 | end Construction |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.AlgebraicGeometry.Picard.Homomorphisms.FiniteGeometricPoints |