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.NumberTheory.PadicHodge.IntegralComparison.Geometric.DegreeResultant |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Polynomial.FrobeniusEtale |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.TateRank |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.TatePolynomialDeterminant |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TateDegreeResultantNorm |
| 6 | import OAI.NumberTheory.PadicHodge.IntegralComparison.NaturalResultantRigidity |
| 7 | |
| 8 | /-! # Frobenius Characteristic Polynomial -/ |
| 9 | |
| 10 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.FrobeniusCharacteristicPolynomial |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! The actual Tate Frobenius characteristic polynomial is the monic |
| 15 | integer geometric degree polynomial. Finite étale polynomial tests give |
| 16 | all resultant norms, which determine every root multiplicity. -/ |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry MonoidalCategory |
| 19 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj TensorProduct |
| 20 | |
| 21 | set_option backward.defeqAttrib.useBackward true |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.TateModule OAI.NumberTheory.PadicHodge.IntegralComparison.AlgebraicTatePolynomialAction |
| 25 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.DegreeResultant |
| 26 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Integral.TateNaturality OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.TatePolynomialDeterminant |
| 27 | |
| 28 | variable (p : ℕ) [Fact p.Prime] |
| 29 | (A : Over (Spec (.of (ZMod p)))) [GrpObj A] [IsCommMonObj A] |
| 30 | [IsProper A.hom] [Smooth A.hom] [GeometricallyIntegral A.hom] |
| 31 | |
| 32 | abbrev geometricScheme := AlgebraicGeometry.FormalGeometry.Completion.Geometric.Frobenius.Construction.geometricFiberOver (ZMod p) A |
| 33 | |
| 34 | local instance geometricGroup : GrpObj (geometricScheme p A) := |
| 35 | inferInstanceAs (GrpObj (AlgebraicGeometry.FormalGeometry.Completion.Geometric.Frobenius.Construction.geometricFiberOver (ZMod p) A)) |
| 36 | |
| 37 | local instance geometricCommutative : IsCommMonObj (geometricScheme p A) := |
| 38 | inferInstanceAs (IsCommMonObj (AlgebraicGeometry.FormalGeometry.Completion.Geometric.Frobenius.Construction.geometricFiberOver (ZMod p) A)) |
| 39 | |
| 40 | local instance : IsProper (geometricScheme p A).hom := |
| 41 | inferInstanceAs (IsProper (Limits.pullback.snd A.hom (AlgebraicGeometry.FormalGeometry.Completion.Geometric.Frobenius.Construction.algebraicClosureBase (ZMod p)))) |
| 42 | |
| 43 | local instance : Smooth (geometricScheme p A).hom := |
| 44 | inferInstanceAs (Smooth (Limits.pullback.snd A.hom (AlgebraicGeometry.FormalGeometry.Completion.Geometric.Frobenius.Construction.algebraicClosureBase (ZMod p)))) |
| 45 | |
| 46 | local instance : GeometricallyIntegral (geometricScheme p A).hom := |
| 47 | inferInstanceAs (GeometricallyIntegral |
| 48 | (Limits.pullback.snd A.hom (AlgebraicGeometry.FormalGeometry.Completion.Geometric.Frobenius.Construction.algebraicClosureBase (ZMod p)))) |
| 49 | |
| 50 | local instance : IsIntegral (geometricScheme p A).left := |
| 51 | GeometricallyIntegral.isIntegral_of_subsingleton (geometricScheme p A).hom |
| 52 | |
| 53 | abbrev geometricFrobenius : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd (geometricScheme p A) := |
| 54 | AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.GeometricEmbedding.Construction.algebraicEndGeometricBaseChange (ZMod p) A (AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.algebraicFrobenius (ZMod p) A) |
| 55 | |
| 56 | def integerFrobeniusPolynomial : Polynomial ℤ := |
| 57 | DegreeResultant.integerPolynomial (geometricScheme p A) (geometricFrobenius p A) |
| 58 | |
| 59 | theorem integerFrobeniusPolynomial_monic : (integerFrobeniusPolynomial p A).Monic := |
| 60 | DegreeResultant.integerPolynomial_monic _ _ |
| 61 | |
| 62 | theorem integerFrobeniusPolynomial_natDegree : |
| 63 | (integerFrobeniusPolynomial p A).natDegree = |
| 64 | 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (geometricScheme p A).hom := |
| 65 | DegreeResultant.integerPolynomial_natDegree _ _ |
| 66 | |
| 67 | theorem ell_ne_zero (ℓ : ℕ) [Fact ℓ.Prime] (hℓp : ℓ ≠ p) : |
| 68 | (ℓ : AlgebraicClosure (ZMod p)) ≠ 0 := by |
| 69 | have hℓ : (ℓ : ZMod p) ≠ 0 := by |
| 70 | intro hz |
| 71 | exact hℓp ((Nat.prime_dvd_prime_iff_eq (Fact.out : p.Prime) (Fact.out : ℓ.Prime)).mp |
| 72 | ((ZMod.natCast_eq_zero_iff ℓ p).mp hz)).symm |
| 73 | intro hz |
| 74 | apply hℓ |
| 75 | apply (algebraMap (ZMod p) (AlgebraicClosure (ZMod p))).injective |
| 76 | simpa only [map_natCast, map_zero] using hz |
| 77 | |
| 78 | variable (ℓ : ℕ) [Fact ℓ.Prime] (hℓp : ℓ ≠ p) |
| 79 | |
| 80 | def tateFrobenius : Module.End ℤ_[ℓ] (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := TateModule.Points (geometricScheme p A)) ℓ) := |
| 81 | Integral.TateNaturality.tateAction ℓ (geometricScheme p A) (geometricFrobenius p A) |
| 82 | |
| 83 | include hℓp |
| 84 | |
| 85 | theorem native_finite : Module.Finite ℤ_[ℓ] |
| 86 | (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := TateModule.Points (geometricScheme p A)) ℓ) := |
| 87 | TateModule.finite (geometricScheme p A) ℓ (ell_ne_zero p ℓ hℓp) |
| 88 | |
| 89 | theorem native_free : Module.Free ℤ_[ℓ] |
| 90 | (AlgebraicGeometry.AbelianScheme.TateComparison.Add.Tate.Module (H := TateModule.Points (geometricScheme p A)) ℓ) := |
| 91 | TateModule.free (geometricScheme p A) ℓ (ell_ne_zero p ℓ hℓp) |
| 92 | |
| 93 | theorem rational_charpoly_natDegree : |
| 94 | letI := native_finite p A ℓ hℓp |
| 95 | letI := native_free p A ℓ hℓp |
| 96 | ((Integral.TateNaturality.tateAction ℓ (geometricScheme p A) (geometricFrobenius p A)).baseChange ℚ_[ℓ]).charpoly.natDegree = |
| 97 | 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension (geometricScheme p A).hom := by |
| 98 | let := native_finite p A ℓ hℓp |
| 99 | let := native_free p A ℓ hℓp |
| 100 | rw [LinearMap.charpoly_baseChange, (LinearMap.charpoly_monic _).natDegree_map, |
| 101 | LinearMap.charpoly_natDegree] |
| 102 | exact TateRank.finrank (geometricScheme p A) ℓ (ell_ne_zero p ℓ hℓp) |
| 103 | |
| 104 | theorem resultant_norm (R : Polynomial ℕ) (hR : ¬ p ∣ R.coeff 0) : |
| 105 | letI := native_finite p A ℓ hℓp |
| 106 | letI := native_free p A ℓ hℓp |
| 107 | ‖((Integral.TateNaturality.tateAction ℓ (geometricScheme p A) (geometricFrobenius p A)).baseChange ℚ_[ℓ]).charpoly.resultant |
| 108 | (R.map (Nat.castRingHom ℚ_[ℓ]))‖ = |
| 109 | ‖((integerFrobeniusPolynomial p A).map (Int.castRingHom ℚ_[ℓ])).resultant |
| 110 | (R.map (Nat.castRingHom ℚ_[ℓ]))‖ := by |
| 111 | let := native_finite p A ℓ hℓp |
| 112 | let := native_free p A ℓ hℓp |
| 113 | have hRk : (R.coeff 0 : ZMod p) ≠ 0 := by |
| 114 | intro hz |
| 115 | exact hR ((ZMod.natCast_eq_zero_iff _ _).mp hz) |
| 116 | obtain ⟨hfin, hsurj, het⟩ := IntegralComparison.Polynomial.FrobeniusEtale.finite_etale (ZMod p) A R hRk |
| 117 | let : IsFinite (IntegralComparison.Polynomial.DegreeGeometry.Law.naturalEnd (geometricScheme p A) (geometricFrobenius p A) R).toMul.hom.hom.left := hfin |
| 118 | let : Surjective (IntegralComparison.Polynomial.DegreeGeometry.Law.naturalEnd (geometricScheme p A) (geometricFrobenius p A) R).toMul.hom.hom.left := hsurj |
| 119 | let : Etale (IntegralComparison.Polynomial.DegreeGeometry.Law.naturalEnd (geometricScheme p A) (geometricFrobenius p A) R).toMul.hom.hom.left := het |
| 120 | exact TateDegreeResultantNorm.resultant_norm (geometricScheme p A) ℓ (ell_ne_zero p ℓ hℓp) |
| 121 | (geometricFrobenius p A) R |
| 122 | |
| 123 | theorem rational_charpoly : |
| 124 | letI := native_finite p A ℓ hℓp |
| 125 | letI := native_free p A ℓ hℓp |
| 126 | ((Integral.TateNaturality.tateAction ℓ (geometricScheme p A) (geometricFrobenius p A)).baseChange ℚ_[ℓ]).charpoly = |
| 127 | (integerFrobeniusPolynomial p A).map (Int.castRingHom ℚ_[ℓ]) := by |
| 128 | let := native_finite p A ℓ hℓp |
| 129 | let := native_free p A ℓ hℓp |
| 130 | apply NaturalResultantRigidity.monic_eq_of_natural_resultant_norm ℓ p hℓp |
| 131 | _ _ (LinearMap.charpoly_monic _) ((integerFrobeniusPolynomial_monic p A).map _) |
| 132 | · rw [(integerFrobeniusPolynomial_monic p A).natDegree_map, |
| 133 | integerFrobeniusPolynomial_natDegree] |
| 134 | exact rational_charpoly_natDegree p A ℓ hℓp |
| 135 | · exact resultant_norm p A ℓ hℓp |
| 136 | |
| 137 | theorem integral_charpoly_map : |
| 138 | letI := native_finite p A ℓ hℓp |
| 139 | letI := native_free p A ℓ hℓp |
| 140 | (Integral.TateNaturality.tateAction ℓ (geometricScheme p A) |
| 141 | (geometricFrobenius p A)).charpoly.map (algebraMap ℤ_[ℓ] ℚ_[ℓ]) = |
| 142 | (integerFrobeniusPolynomial p A).map (Int.castRingHom ℚ_[ℓ]) := by |
| 143 | let := native_finite p A ℓ hℓp |
| 144 | let := native_free p A ℓ hℓp |
| 145 | rw [← LinearMap.charpoly_baseChange] |
| 146 | exact rational_charpoly p A ℓ hℓp |
| 147 | |
| 148 | theorem tateFrobenius_charpoly_map : |
| 149 | letI := native_finite p A ℓ hℓp |
| 150 | letI := native_free p A ℓ hℓp |
| 151 | (tateFrobenius p A ℓ).charpoly.map (algebraMap ℤ_[ℓ] ℚ_[ℓ]) = |
| 152 | (integerFrobeniusPolynomial p A).map (Int.castRingHom ℚ_[ℓ]) := |
| 153 | integral_charpoly_map p A ℓ hℓp |
| 154 | |
| 155 | end |
| 156 | |
| 157 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Geometric.FrobeniusCharacteristicPolynomial |