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.WeakAdmissibility.WittFinite |
| 2 | import OAI.NumberTheory.PadicHodge.WeakAdmissibility.UnramifiedCoefficients |
| 3 | |
| 4 | /-! # Coefficient Finiteness -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientFiniteness |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Finite-dimensional p-adic structures on the constructed Witt coefficient fields. -/ |
| 11 | |
| 12 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.WittFinite OAI.NumberTheory.PadicHodge.WeakAdmissibility.UnramifiedCoefficients |
| 13 | variable (p : ℕ) [Fact p.Prime] |
| 14 | variable (k : Type*) [Field k] [Fintype k] [CharP k p] |
| 15 | |
| 16 | omit [Fintype k] in |
| 17 | theorem padicToWitt_injective : Function.Injective (WittFinite.padicToWitt p k) := |
| 18 | (WittVector.map_injective _ (ZMod.castHom (dvd_refl p) k).injective).comp |
| 19 | (WittVector.equiv p).symm.injective |
| 20 | |
| 21 | def padicIntegerToCoefficient : ℤ_[p] →+* UnramifiedCoefficients.CoefficientField (p := p) (k := k) := |
| 22 | (algebraMap (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k))).comp (WittFinite.padicToWitt p k) |
| 23 | |
| 24 | instance integerAlgebra : Algebra ℤ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := |
| 25 | (padicIntegerToCoefficient p k).toAlgebra |
| 26 | |
| 27 | instance integerSMul : SMul ℤ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := |
| 28 | ⟨fun a x => padicIntegerToCoefficient p k a * x⟩ |
| 29 | |
| 30 | instance integerModule : Module ℤ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := Algebra.toModule |
| 31 | |
| 32 | instance wittSMul : SMul (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := |
| 33 | (inferInstance : Algebra (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k))).toSMul |
| 34 | |
| 35 | instance wittModule : Module (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := Algebra.toModule |
| 36 | |
| 37 | instance integerWittTower : IsScalarTower ℤ_[p] (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := |
| 38 | IsScalarTower.of_algebraMap_eq (R := ℤ_[p]) (S := WittVector p k) |
| 39 | (A := UnramifiedCoefficients.CoefficientField (p := p) (k := k)) fun _ => rfl |
| 40 | |
| 41 | omit [Fintype k] in |
| 42 | theorem padicIntegerToCoefficient_injective : Function.Injective (padicIntegerToCoefficient p k) := |
| 43 | (IsFractionRing.injective (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k))).comp |
| 44 | (padicToWitt_injective p k) |
| 45 | |
| 46 | def padicToCoefficient : ℚ_[p] →+* UnramifiedCoefficients.CoefficientField (p := p) (k := k) := |
| 47 | IsFractionRing.lift (padicIntegerToCoefficient_injective p k) |
| 48 | |
| 49 | instance padicAlgebra : Algebra ℚ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := |
| 50 | (padicToCoefficient p k).toAlgebra |
| 51 | |
| 52 | instance padicModule : Module ℚ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := Algebra.toModule |
| 53 | |
| 54 | omit [Fintype k] in |
| 55 | theorem padicToCoefficient_integer (a : ℤ_[p]) : |
| 56 | padicToCoefficient p k (algebraMap ℤ_[p] ℚ_[p] a) = padicIntegerToCoefficient p k a := |
| 57 | IsFractionRing.lift_algebraMap (padicIntegerToCoefficient_injective p k) a |
| 58 | |
| 59 | instance integerPadicTower : IsScalarTower ℤ_[p] ℚ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := |
| 60 | IsScalarTower.of_algebraMap_eq fun a => (padicToCoefficient_integer p k a).symm |
| 61 | |
| 62 | omit [Fintype k] in |
| 63 | theorem coefficientDenominators_le : |
| 64 | Algebra.algebraMapSubmonoid (WittVector p k) (nonZeroDivisors ℤ_[p]) ≤ |
| 65 | nonZeroDivisors (WittVector p k) := by |
| 66 | rintro x ⟨a, ha, rfl⟩ |
| 67 | apply mem_nonZeroDivisors_iff_ne_zero.mpr |
| 68 | exact fun h => (mem_nonZeroDivisors_iff_ne_zero.mp ha) |
| 69 | ((padicToWitt_injective p k) (h.trans (map_zero _).symm)) |
| 70 | |
| 71 | theorem coefficientDenominators_cofinal (x : WittVector p k) |
| 72 | (hx : x ∈ nonZeroDivisors (WittVector p k)) : |
| 73 | ∃ y ∈ Algebra.algebraMapSubmonoid (WittVector p k) (nonZeroDivisors ℤ_[p]), x ∣ y := by |
| 74 | obtain ⟨n, u, hu⟩ := WittVector.exists_eq_pow_p_mul' x (mem_nonZeroDivisors_iff_ne_zero.mp hx) |
| 75 | refine ⟨(p : WittVector p k) ^ n, ?_, ?_⟩ |
| 76 | · refine ⟨(p : ℤ_[p]) ^ n, mem_nonZeroDivisors_iff_ne_zero.mpr (pow_ne_zero _ (NeZero.ne _)), ?_⟩ |
| 77 | simp only [map_pow, map_natCast] |
| 78 | · rw [hu] |
| 79 | exact ⟨↑u⁻¹, by simp only [mul_assoc, Units.mul_inv, mul_one]⟩ |
| 80 | |
| 81 | instance coefficientLocalization : |
| 82 | IsLocalization (Algebra.algebraMapSubmonoid (WittVector p k) (nonZeroDivisors ℤ_[p])) |
| 83 | (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := |
| 84 | (IsLocalization.iff_of_le_of_exists_dvd _ (nonZeroDivisors (WittVector p k)) |
| 85 | (coefficientDenominators_le p k) (coefficientDenominators_cofinal p k)).mpr inferInstance |
| 86 | |
| 87 | instance coefficientFinite : Module.Finite ℚ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) := |
| 88 | Module.Finite.of_isLocalization ℤ_[p] (WittVector p k) (nonZeroDivisors ℤ_[p]) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientFiniteness |