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.CoefficientFiniteness |
| 2 | import OAI.NumberTheory.PadicHodge.WeakAdmissibility.DeRhamField |
| 3 | |
| 4 | /-! # Coefficient Comparison -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientComparison |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Compatibility of finite Witt coefficient fields with the actual period comparison. -/ |
| 11 | |
| 12 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.Logarithm.PeriodRings OAI.NumberTheory.PadicHodge.WeakAdmissibility.WittFinite OAI.NumberTheory.PadicHodge.WeakAdmissibility.UnramifiedCoefficients OAI.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientFiniteness |
| 13 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.PrimitiveElements OAI.NumberTheory.PadicHodge.WeakAdmissibility.DeRhamField.Constants OAI.NumberTheory.PadicHodge.WeakAdmissibility.DeRhamDVR OAI.NumberTheory.PadicHodge.WeakAdmissibility.DeRhamEmbedding |
| 14 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.ComparisonScalars OAI.NumberTheory.PadicHodge.WeakAdmissibility.Galois.PeriodStructure OAI.NumberTheory.PadicHodge.WeakAdmissibility.DeRham OAI.NumberTheory.PadicHodge.WeakAdmissibility.ComparisonBd |
| 15 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.Cyclotomic OAI.NumberTheory.PadicHodge.WeakAdmissibility.Comparison OAI.NumberTheory.PadicHodge.WeakAdmissibility.DeRhamEnvelope |
| 16 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.Logarithm |
| 17 | variable (p : ℕ) [Fact p.Prime] |
| 18 | variable {k : Type*} [Field k] [Fintype k] [CharP k p] (j : k →+* PrimitiveElements.ResidueCp p) |
| 19 | |
| 20 | theorem coefficientToAInf_padicInteger (a : ℤ_[p]) : |
| 21 | UnramifiedCoefficients.coefficientToAInf p j (WittFinite.padicToWitt p k a) = Logarithm.PeriodRings.padicIntToAInf p a := |
| 22 | DFunLike.congr_fun (DeRhamField.Constants.padicInt_ringHom_unique p |
| 23 | ((UnramifiedCoefficients.coefficientToAInf p j).comp (WittFinite.padicToWitt p k)) (Logarithm.PeriodRings.padicIntToAInf p)) a |
| 24 | |
| 25 | theorem coefficientToBCris_padicInteger (a : ℤ_[p]) : |
| 26 | UnramifiedCoefficients.coefficientToBCris p j (WittFinite.padicToWitt p k a) = |
| 27 | Galois.PeriodStructure.padicToBCris p (algebraMap ℤ_[p] ℚ_[p] a) := by |
| 28 | rw [Galois.PeriodStructure.padicToBCris, RingHom.comp_apply, Galois.PeriodStructure.padicToPositive_int] |
| 29 | change algebraMap (Logarithm.PeriodRings.BCrisPlus p) (Logarithm.PeriodRings.BCris p) |
| 30 | (algebraMap (Logarithm.PeriodRings.ACris p) (Logarithm.PeriodRings.BCrisPlus p) |
| 31 | (algebraMap (Logarithm.PeriodRings.ACrisUncompleted p) (Logarithm.PeriodRings.ACris p) |
| 32 | (algebraMap (Logarithm.PeriodRings.AInf p) (Logarithm.PeriodRings.ACrisUncompleted p) (UnramifiedCoefficients.coefficientToAInf p j (WittFinite.padicToWitt p k a))))) = _ |
| 33 | rw [coefficientToAInf_padicInteger] |
| 34 | rfl |
| 35 | |
| 36 | theorem coefficientFieldToBCris_padic (a : ℚ_[p]) : |
| 37 | UnramifiedCoefficients.coefficientFieldToBCris p j (CoefficientFiniteness.padicToCoefficient p k a) = Galois.PeriodStructure.padicToBCris p a := by |
| 38 | have he : (UnramifiedCoefficients.coefficientFieldToBCris p j).comp (CoefficientFiniteness.padicToCoefficient p k) = Galois.PeriodStructure.padicToBCris p := by |
| 39 | apply IsLocalization.ringHom_ext (nonZeroDivisors ℤ_[p]) |
| 40 | apply RingHom.ext |
| 41 | intro b |
| 42 | simp only [RingHom.comp_apply, CoefficientFiniteness.padicToCoefficient_integer] |
| 43 | change UnramifiedCoefficients.coefficientFieldToBCris p j |
| 44 | (algebraMap (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) (WittFinite.padicToWitt p k b)) = _ |
| 45 | rw [UnramifiedCoefficients.coefficientFieldToBCris_integer, coefficientToBCris_padicInteger] |
| 46 | exact DFunLike.congr_fun he a |
| 47 | |
| 48 | def coefficientFieldToBCrisAlg : UnramifiedCoefficients.CoefficientField (p := p) (k := k) →ₐ[ℚ_[p]] Logarithm.PeriodRings.BCris p := |
| 49 | { UnramifiedCoefficients.coefficientFieldToBCris p j with commutes' := coefficientFieldToBCris_padic p j } |
| 50 | |
| 51 | def coefficientToCompletion : WittVector p k →+* DeRhamDVR.DeRhamCompletion p := |
| 52 | (DeRhamEmbedding.aInfToBdRPlus p).comp (UnramifiedCoefficients.coefficientToAInf p j) |
| 53 | |
| 54 | theorem coefficientToCompletion_padicInteger (a : ℤ_[p]) : |
| 55 | coefficientToCompletion p j (WittFinite.padicToWitt p k a) = |
| 56 | algebraMap ℚ_[p] (DeRhamDVR.DeRhamCompletion p) (algebraMap ℤ_[p] ℚ_[p] a) := by |
| 57 | change DeRhamEmbedding.aInfToBdRPlus p (UnramifiedCoefficients.coefficientToAInf p j (WittFinite.padicToWitt p k a)) = |
| 58 | ComparisonScalars.padicToBdRPlus p (algebraMap ℤ_[p] ℚ_[p] a) |
| 59 | rw [coefficientToAInf_padicInteger, ComparisonScalars.padicToBdRPlus_integer] |
| 60 | rfl |
| 61 | |
| 62 | theorem coefficientToCompletion_nonzero_isUnit (x : WittVector p k) (hx : x ≠ 0) : |
| 63 | IsUnit (coefficientToCompletion p j x) := by |
| 64 | obtain ⟨n, u, hu⟩ := WittVector.exists_eq_pow_p_mul' x hx |
| 65 | rw [hu, map_mul, map_pow, map_natCast] |
| 66 | apply IsUnit.mul |
| 67 | · apply IsUnit.pow |
| 68 | exact (map_natCast (algebraMap ℚ_[p] (DeRhamDVR.DeRhamCompletion p)) p) ▸ |
| 69 | ((isUnit_iff_ne_zero.mpr (NeZero.ne (p : ℚ_[p]))).map (algebraMap ℚ_[p] (DeRhamDVR.DeRhamCompletion p))) |
| 70 | · exact u.isUnit.map _ |
| 71 | |
| 72 | def coefficientFieldToCompletion : UnramifiedCoefficients.CoefficientField (p := p) (k := k) →+* DeRhamDVR.DeRhamCompletion p := |
| 73 | IsLocalization.lift (g := coefficientToCompletion p j) |
| 74 | (fun x : nonZeroDivisors (WittVector p k) => coefficientToCompletion_nonzero_isUnit p j x |
| 75 | (mem_nonZeroDivisors_iff_ne_zero.mp x.property)) |
| 76 | |
| 77 | theorem coefficientFieldToCompletion_integer (x : WittVector p k) : |
| 78 | coefficientFieldToCompletion p j |
| 79 | (algebraMap (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) x) = |
| 80 | coefficientToCompletion p j x := by |
| 81 | unfold coefficientFieldToCompletion |
| 82 | rw [IsLocalization.lift_eq] |
| 83 | |
| 84 | theorem coefficientFieldToCompletion_padic (a : ℚ_[p]) : |
| 85 | coefficientFieldToCompletion p j (CoefficientFiniteness.padicToCoefficient p k a) = |
| 86 | algebraMap ℚ_[p] (DeRhamDVR.DeRhamCompletion p) a := by |
| 87 | have he : (coefficientFieldToCompletion p j).comp (CoefficientFiniteness.padicToCoefficient p k) = |
| 88 | algebraMap ℚ_[p] (DeRhamDVR.DeRhamCompletion p) := by |
| 89 | apply IsLocalization.ringHom_ext (nonZeroDivisors ℤ_[p]) |
| 90 | apply RingHom.ext |
| 91 | intro b |
| 92 | simp only [RingHom.comp_apply, CoefficientFiniteness.padicToCoefficient_integer] |
| 93 | change coefficientFieldToCompletion p j |
| 94 | (algebraMap (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) (WittFinite.padicToWitt p k b)) = _ |
| 95 | rw [coefficientFieldToCompletion_integer, coefficientToCompletion_padicInteger] |
| 96 | exact DFunLike.congr_fun he a |
| 97 | |
| 98 | def coefficientFieldToCompletionAlg : |
| 99 | UnramifiedCoefficients.CoefficientField (p := p) (k := k) →ₐ[ℚ_[p]] DeRhamDVR.DeRhamCompletion p := |
| 100 | { coefficientFieldToCompletion p j with commutes' := coefficientFieldToCompletion_padic p j } |
| 101 | |
| 102 | theorem coefficientFieldToCompletion_integral (x : UnramifiedCoefficients.CoefficientField (p := p) (k := k)) : |
| 103 | IsIntegral ℚ_[p] (coefficientFieldToCompletion p j x) := |
| 104 | (Algebra.IsIntegral.isIntegral x).map (coefficientFieldToCompletionAlg p j) |
| 105 | |
| 106 | theorem coefficientToBCris_comparison (x : WittVector p k) : |
| 107 | ComparisonBd.bCrisToBdR p (UnramifiedCoefficients.coefficientToBCris p j x) = ComparisonBd.bdRPlusToBdR p (coefficientToCompletion p j x) := by |
| 108 | change ComparisonBd.bCrisToBdR p (algebraMap (Logarithm.PeriodRings.BCrisPlus p) (Logarithm.PeriodRings.BCris p) (UnramifiedCoefficients.coefficientToPositive p j x)) = _ |
| 109 | rw [ComparisonBd.bCrisToBdR_algebraMap] |
| 110 | change ComparisonBd.bdRPlusToBdR p (Comparison.bCrisPlusToBdRPlus p |
| 111 | (algebraMap (Logarithm.PeriodRings.ACris p) (Logarithm.PeriodRings.BCrisPlus p) (UnramifiedCoefficients.coefficientToACris p j x))) = _ |
| 112 | rw [Comparison.bCrisPlusToBdRPlus_algebraMap] |
| 113 | change ComparisonBd.bdRPlusToBdR p (Comparison.aCrisToBdRPlus p |
| 114 | (algebraMap (Logarithm.PeriodRings.ACrisUncompleted p) (Logarithm.PeriodRings.ACris p) (UnramifiedCoefficients.coefficientToUncompleted p j x))) = _ |
| 115 | rw [Comparison.aCrisToBdRPlus_of] |
| 116 | change ComparisonBd.bdRPlusToBdR p (DeRhamEnvelope.uncompletedToBdRPlus p |
| 117 | (algebraMap (Logarithm.PeriodRings.AInf p) (Logarithm.PeriodRings.ACrisUncompleted p) (UnramifiedCoefficients.coefficientToAInf p j x))) = _ |
| 118 | rw [DeRhamEnvelope.uncompletedToBdRPlus_algebraMap] |
| 119 | rfl |
| 120 | |
| 121 | theorem coefficientFieldToBCris_comparison (x : UnramifiedCoefficients.CoefficientField (p := p) (k := k)) : |
| 122 | ComparisonBd.bCrisToBdR p (UnramifiedCoefficients.coefficientFieldToBCris p j x) = |
| 123 | ComparisonBd.bdRPlusToBdR p (coefficientFieldToCompletion p j x) := by |
| 124 | have he : (ComparisonBd.bCrisToBdR p).comp (UnramifiedCoefficients.coefficientFieldToBCris p j) = |
| 125 | (ComparisonBd.bdRPlusToBdR p).comp (coefficientFieldToCompletion p j) := by |
| 126 | apply IsLocalization.ringHom_ext (nonZeroDivisors (WittVector p k)) |
| 127 | apply RingHom.ext |
| 128 | intro a |
| 129 | change ComparisonBd.bCrisToBdR p (UnramifiedCoefficients.coefficientFieldToBCris p j |
| 130 | (algebraMap (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) a)) = |
| 131 | ComparisonBd.bdRPlusToBdR p (coefficientFieldToCompletion p j |
| 132 | (algebraMap (WittVector p k) (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) a)) |
| 133 | rw [UnramifiedCoefficients.coefficientFieldToBCris_integer, coefficientFieldToCompletion_integer] |
| 134 | exact coefficientToBCris_comparison p j a |
| 135 | exact DFunLike.congr_fun he x |
| 136 | |
| 137 | include j in |
| 138 | theorem coefficientFrobenius_padic (a : ℚ_[p]) : |
| 139 | UnramifiedCoefficients.coefficientFrobenius (p := p) (k := k) (algebraMap ℚ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) a) = |
| 140 | algebraMap ℚ_[p] (UnramifiedCoefficients.CoefficientField (p := p) (k := k)) a := by |
| 141 | apply UnramifiedCoefficients.coefficientFieldToBCris_injective p j |
| 142 | rw [← UnramifiedCoefficients.coefficientFieldToBCris_frobenius] |
| 143 | change Logarithm.bCrisFrobenius p (UnramifiedCoefficients.coefficientFieldToBCris p j (CoefficientFiniteness.padicToCoefficient p k a)) = |
| 144 | UnramifiedCoefficients.coefficientFieldToBCris p j (CoefficientFiniteness.padicToCoefficient p k a) |
| 145 | rw [coefficientFieldToBCris_padic, Galois.PeriodStructure.bCrisFrobenius_padic] |
| 146 | |
| 147 | def coefficientFrobeniusAlg : |
| 148 | UnramifiedCoefficients.CoefficientField (p := p) (k := k) ≃ₐ[ℚ_[p]] UnramifiedCoefficients.CoefficientField (p := p) (k := k) := |
| 149 | { UnramifiedCoefficients.coefficientFrobenius (p := p) (k := k) with commutes' := coefficientFrobenius_padic p j } |
| 150 | |
| 151 | end |
| 152 | |
| 153 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientComparison |