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.ArithmeticGeometry.OrdinaryLocus.Openness.OrdinaryRestriction |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteFlatNeighborhood |
| 3 | |
| 4 | /-! # Reduction -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.Reduction.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The topological and relative-geometric reduction of Openness to the p-torsion |
| 11 | bound. This file proves the reduction; the bound remains a separate obligation. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 15 | |
| 16 | variable {S : Scheme} (A : Over S) [GrpObj A] [IsCommMonObj A] |
| 17 | [Smooth A.hom] [IsProper A.hom] [GeometricallyConnected A.hom] |
| 18 | |
| 19 | /-- Eliminate the dimension witness in the exact ordinary predicate. -/ |
| 20 | theorem isOrdinaryAt_iff_torsionPointCard_eq (p : ℕ) (s : S) : |
| 21 | DefinitionsTorsion.IsOrdinaryAt p A s ↔ |
| 22 | Nat.card {x : DefinitionsTorsion.geometricPoint S s ⟶ A // x ^ p = 1} = p ^ FiberDimension.Construction.fiberDimension A s := by |
| 23 | constructor |
| 24 | · rintro ⟨g, hg, hcard⟩ |
| 25 | have hdim : g = FiberDimension.Construction.fiberDimension A s := by |
| 26 | have h := hg.symm.trans (FiberDimension.Construction.fiberDimension_spec A s) |
| 27 | exact_mod_cast h |
| 28 | exact hdim ▸ hcard |
| 29 | · intro hcard |
| 30 | exact ⟨FiberDimension.Construction.fiberDimension A s, FiberDimension.Construction.fiberDimension_spec A s, hcard⟩ |
| 31 | |
| 32 | /-- For a finite torsion kernel, semicontinuity and the p-rank upper bound |
| 33 | give openness of the ordinary locus. -/ |
| 34 | theorem isOpen_ordinaryLocus_of_finite_torsion_of_bound |
| 35 | (p : ℕ) [IsFinite (DefinitionsTorsion.Construction.torsionScheme A p).hom] |
| 36 | (hbound : ∀ s : S, Nat.card {x : DefinitionsTorsion.geometricPoint S s ⟶ A // x ^ p = 1} ≤ |
| 37 | p ^ FiberDimension.Construction.fiberDimension A s) : |
| 38 | IsOpen {s : S | DefinitionsTorsion.IsOrdinaryAt p A s} := by |
| 39 | simp only [isOrdinaryAt_iff_torsionPointCard_eq] |
| 40 | exact CountTopology.Construction.isOpen_maximalCount_of_lowerSemicontinuous _ _ |
| 41 | (FiniteFlatNeighborhood.Construction.lowerSemicontinuous_torsionPointCard_of_isFinite A p) |
| 42 | ((FiberDimension.Construction.isLocallyConstant_fiberDimension A).comp (fun n : ℕ => p ^ n)) hbound |
| 43 | |
| 44 | /-- Local finiteness near ordinary points suffices for the same reduction. |
| 45 | No global finiteness of the torsion kernel is assumed here. -/ |
| 46 | theorem isOpen_ordinaryLocus_of_torsionPointCard_bound |
| 47 | (p : ℕ) [Fact p.Prime] |
| 48 | (hbound : ∀ s : S, Nat.card {x : DefinitionsTorsion.geometricPoint S s ⟶ A // x ^ p = 1} ≤ |
| 49 | p ^ FiberDimension.Construction.fiberDimension A s) : |
| 50 | IsOpen {s : S | DefinitionsTorsion.IsOrdinaryAt p A s} := by |
| 51 | apply isOpen_iff_forall_mem_open.mpr |
| 52 | intro s hs |
| 53 | obtain ⟨U, hsU, hfin⟩ := DefinitionsTorsion.Construction.exists_finite_torsion_neighborhood s A p hs |
| 54 | have : IsFinite ((DefinitionsTorsion.Construction.torsionScheme A p).hom ∣_ U) := hfin |
| 55 | let B := (Over.pullback U.ι).obj A |
| 56 | have : Smooth B.hom := by change Smooth (CategoryTheory.Limits.pullback.snd A.hom U.ι); infer_instance |
| 57 | have : IsProper B.hom := by change IsProper (CategoryTheory.Limits.pullback.snd A.hom U.ι); infer_instance |
| 58 | have : GeometricallyConnected B.hom := by |
| 59 | change GeometricallyConnected (CategoryTheory.Limits.pullback.snd A.hom U.ι) |
| 60 | infer_instance |
| 61 | have : IsFinite (DefinitionsTorsion.Construction.torsionScheme B p).hom := BaseChange.Construction.isFinite_torsion_openRestriction A p U |
| 62 | have hboundB (t : U) : Nat.card {x : DefinitionsTorsion.geometricPoint U t ⟶ B // x ^ p = 1} ≤ |
| 63 | p ^ FiberDimension.Construction.fiberDimension B t := by |
| 64 | have hdim : FiberDimension.Construction.fiberDimension B t = FiberDimension.Construction.fiberDimension A (U.ι t) := by |
| 65 | have h := OrdinaryRestriction.Construction.topologicalKrullDim_fiber_openBaseChange U.ι A t |
| 66 | change topologicalKrullDim (B.hom.fiber t) = _ at h |
| 67 | have heq := (FiberDimension.Construction.fiberDimension_spec B t).symm.trans |
| 68 | (h.trans (FiberDimension.Construction.fiberDimension_spec A (U.ι t))) |
| 69 | exact_mod_cast heq |
| 70 | exact (OpenBaseChange.Construction.torsionPointCard_openBaseChange U.ι A p t).trans_le |
| 71 | ((hbound (U.ι t)).trans_eq (congrArg (fun d : ℕ => p ^ d) hdim.symm)) |
| 72 | have hopen := isOpen_ordinaryLocus_of_finite_torsion_of_bound B p hboundB |
| 73 | refine ⟨U.ι '' {t : U | DefinitionsTorsion.IsOrdinaryAt p B t}, ?_, U.ι.isOpenEmbedding.isOpenMap _ hopen, ?_⟩ |
| 74 | · rintro _ ⟨t, ht, rfl⟩ |
| 75 | exact (OrdinaryRestriction.Construction.isOrdinaryAt_openBaseChange_iff U.ι A p t).mp ht |
| 76 | · exact ⟨⟨s, hsU⟩, (OrdinaryRestriction.Construction.isOrdinaryAt_openBaseChange_iff U.ι A p ⟨s, hsU⟩).mpr hs, rfl⟩ |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.Reduction.Construction |