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.AffineMultiplicationBound |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AffineChartPullback |
| 3 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ChartAlgebras |
| 4 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.TorsionGenericCount |
| 5 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FieldReduction |
| 6 | import Mathlib.AlgebraicGeometry.Morphisms.SchemeTheoreticallyDominant |
| 7 | |
| 8 | /-! # Degree Reduction -/ |
| 9 | |
| 10 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.DegreeReduction.Construction |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Reducing the remaining Openness torsion bound to the total degree of multiplication. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 17 | open scoped _root_.CategoryTheory.MonObj |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem torsionPointCard_le_of_multiplication_degree |
| 22 | {k : Type u} [Field k] [IsAlgClosed k] |
| 23 | (p : ℕ) [Fact p.Prime] [CharP k p] |
| 24 | (A : Over (Spec (.of k))) [GrpObj A] [IsCommMonObj A] |
| 25 | [Smooth A.hom] [IsProper A.hom] [GeometricallyConnected A.hom] |
| 26 | [IsFinite (DefinitionsTorsion.Construction.torsionScheme A p).hom] |
| 27 | (g : ℕ) (hdim : topologicalKrullDim A.left = (g : WithBot ℕ∞)) |
| 28 | (hdegree : ∀ a : A.left, (Multiplication.Construction.multiplicationMap A p).left.finrank a = p ^ (2 * g)) : |
| 29 | Nat.card {x : Over.mk (𝟙 (Spec (.of k))) ⟶ A // x ^ p = 1} ≤ p ^ g := by |
| 30 | have : IsIntegral A.left := ConnectedGroupIntegral.Construction.isIntegral_connected_smooth_proper_group A |
| 31 | let f := (Multiplication.Construction.multiplicationMap A p).left |
| 32 | have : IsFinite f := Multiplication.Construction.isFinite_multiplication_of_isFinite_torsion A p |
| 33 | obtain ⟨hs, hf⟩ := FieldMultiplicationFlat.Construction.surjective_flat_multiplication_of_isFinite A p |
| 34 | have : Surjective f := hs |
| 35 | have : Flat f := hf |
| 36 | have : LocallyOfFinitePresentation f := Openness.FinitePresentation.Construction.locallyOfFinitePresentation_multiplication A p |
| 37 | have : IsSchemeTheoreticallyDominant f := .of_isDominant f |
| 38 | obtain ⟨_, ⟨U, hU, rfl⟩, hgen, _⟩ := |
| 39 | A.left.isBasis_affineOpens.exists_subset_of_mem_open |
| 40 | (Set.mem_univ (genericPoint A.left)) isOpen_univ |
| 41 | change IsAffineOpen U at hU |
| 42 | have : Nonempty U := ⟨⟨genericPoint A.left, hgen⟩⟩ |
| 43 | let V := f ⁻¹ᵁ U |
| 44 | have hV : IsAffineOpen V := hU.preimage f |
| 45 | obtain ⟨x, hx⟩ := f.surjective (genericPoint A.left) |
| 46 | have : Nonempty V := ⟨⟨x, by change f x ∈ U; rwa [hx]⟩⟩ |
| 47 | let R := Γ(A.left, U) |
| 48 | let B := Γ(A.left, V) |
| 49 | let : Algebra k R := GroupFunctionField.Construction.chartAlgebra A.hom U hU |
| 50 | let : Algebra k B := GroupFunctionField.Construction.chartAlgebra A.hom V hV |
| 51 | let : Algebra R B := (f.app U).hom.toAlgebra |
| 52 | have : IsScalarTower k R B := by |
| 53 | apply IsScalarTower.of_algebraMap_eq' |
| 54 | have hc : Spec.map (f.app U) ≫ hU.fromSpec = hV.fromSpec ≫ f := by |
| 55 | simpa only [V, Scheme.Hom.appLE_eq_app] using |
| 56 | IsAffineOpen.SpecMap_appLE_fromSpec f hU hV le_rfl |
| 57 | have he : Spec.preimage (hU.fromSpec ≫ A.hom) ≫ f.app U = |
| 58 | Spec.preimage (hV.fromSpec ≫ A.hom) := by |
| 59 | apply Spec.map_injective |
| 60 | rw [Spec.map_comp, Spec.map_preimage, Spec.map_preimage, |
| 61 | ← Category.assoc, hc, Category.assoc, (Multiplication.Construction.multiplicationMap A p).w] |
| 62 | exact (congrArg CommRingCat.Hom.hom he).symm |
| 63 | have : Module.Finite R B := (RingHom.finite_algebraMap).mp (f.finite_app U hU) |
| 64 | have : Module.Flat R B := (RingHom.flat_algebraMap_iff).mp (by |
| 65 | change (f.app U).hom.Flat |
| 66 | simpa only [V, Scheme.Hom.appLE_eq_app] using f.flat_appLE hU hV le_rfl) |
| 67 | have : Algebra.FinitePresentation R B := (RingHom.finitePresentation_algebraMap).mp (by |
| 68 | change (f.app U).hom.FinitePresentation |
| 69 | simpa only [V, Scheme.Hom.appLE_eq_app] using f.finitePresentation_appLE hU hV le_rfl) |
| 70 | have : FaithfulSMul R B := (faithfulSMul_iff_algebraMap_injective R B).mpr |
| 71 | (f.app_injective U) |
| 72 | let t : Spec Γ(A.left, U) := (⊥ : PrimeSpectrum R) |
| 73 | have ht : hU.fromSpec t = genericPoint A.left := by |
| 74 | change hU.fromSpec (⊥ : PrimeSpectrum R) = _ |
| 75 | rw [← genericPoint_eq_bot_of_affine] |
| 76 | exact genericPoint_eq_of_isOpenImmersion hU.fromSpec |
| 77 | have hj : hV.fromSpec ≫ A.hom = Spec.map (CommRingCat.ofHom (algebraMap k B)) := |
| 78 | (Spec.map_preimage (hV.fromSpec ≫ A.hom)).symm |
| 79 | have hφ : Spec.map (CommRingCat.ofHom (algebraMap R B)) ≫ hU.fromSpec = |
| 80 | hV.fromSpec ≫ (Multiplication.Construction.multiplicationMap A p).left := by |
| 81 | change Spec.map (f.app U) ≫ hU.fromSpec = hV.fromSpec ≫ f |
| 82 | simpa only [V, Scheme.Hom.appLE_eq_app] using |
| 83 | IsAffineOpen.SpecMap_appLE_fromSpec f hU hV le_rfl |
| 84 | have hdeg : Module.rankAtStalk (R := R) B (⊥ : PrimeSpectrum R) = p ^ (2 * g) := by |
| 85 | have he := (Scheme.Hom.finrank_SpecMap_algebraMap R B (⊥ : PrimeSpectrum R)).symm |
| 86 | exact (he.trans (AffineChartPullback.Construction.finrank_affine_preimage f U hU t)).trans (hdegree _) |
| 87 | have hb := AffineMultiplicationBound.Construction.geometricPointCard_multiplication_chart_le_of_degree |
| 88 | p A R B hU.fromSpec hV.fromSpec hj hφ g hdim hdeg t |
| 89 | have hc := AffineChartPullback.Construction.geometricPointCard_affine_preimage f U hU t |
| 90 | rw [ht] at hc |
| 91 | have hb' : Nat.card (DefinitionsTorsion.geometricPoint A.left (genericPoint A.left) ⟶ |
| 92 | Over.mk (Multiplication.Construction.multiplicationMap A p).left) ≤ p ^ g := hc.symm.trans_le hb |
| 93 | exact (TorsionGenericCount.Construction.torsionPointCard_le_generic_multiplication A p).trans hb' |
| 94 | |
| 95 | /-- All geometric and infinitesimal steps in Openness follow from the classical |
| 96 | total-degree formula for multiplication on its algebraically closed fibers. -/ |
| 97 | theorem isOpen_ordinaryLocus_of_multiplication_degree |
| 98 | (p : ℕ) [Fact p.Prime] |
| 99 | (hdegree : ∀ (k : Type) [Field k] [IsAlgClosed k] [CharP k p] |
| 100 | (B : Over (Spec (.of k))) [GrpObj B] [IsCommMonObj B] |
| 101 | [Smooth B.hom] [IsProper B.hom] [GeometricallyConnected B.hom] |
| 102 | [IsFinite (DefinitionsTorsion.Construction.torsionScheme B p).hom] (g : ℕ), |
| 103 | topologicalKrullDim B.left = (g : WithBot ℕ∞) → |
| 104 | ∀ b : B.left, (Multiplication.Construction.multiplicationMap B p).left.finrank b = p ^ (2 * g)) |
| 105 | (S : Over (Spec (.of (ZMod p)))) |
| 106 | (A : Over S.left) [GrpObj A] [IsCommMonObj A] |
| 107 | [Smooth A.hom] [IsProper A.hom] [GeometricallyConnected A.hom] : |
| 108 | IsOpen {s : S.left | DefinitionsTorsion.IsOrdinaryAt p A s} := by |
| 109 | apply FieldReduction.Construction.isOpen_ordinaryLocus_of_finite_field_bound p _ S A |
| 110 | intro k _ _ _ B _ _ _ _ _ _ g hg |
| 111 | exact torsionPointCard_le_of_multiplication_degree p B g hg (hdegree k B g hg) |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.DegreeReduction.Construction |