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.WittUnramified |
| 2 | import OAI.NumberTheory.PadicHodge.WeakAdmissibility.DeRhamField |
| 3 | |
| 4 | /-! # Finite Field Residue -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.FiniteFieldResidue |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual valuation ring and finite residue field of a finite p-adic subextension. -/ |
| 11 | |
| 12 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.Logarithm.PeriodRings OAI.NumberTheory.PadicHodge.WeakAdmissibility.PrimitiveElements OAI.NumberTheory.PadicHodge.WeakAdmissibility.DeRhamField.Scalars |
| 13 | variable (p : ℕ) [Fact p.Prime] |
| 14 | variable (K : IntermediateField ℚ_[p] (PadicAlgCl p)) |
| 15 | |
| 16 | instance fieldValued : Valued K NNReal := NormedField.toValued |
| 17 | |
| 18 | abbrev FieldIntegers := Valued.integer K |
| 19 | abbrev FieldResidue := IsLocalRing.ResidueField (FieldIntegers p K) |
| 20 | |
| 21 | instance fieldRankOne : Valuation.RankOne (Valued.v : Valuation K NNReal) := |
| 22 | inferInstanceAs (Valuation.RankOne (NormedField.valuation (K := K))) |
| 23 | |
| 24 | def integerToCp : FieldIntegers p K →+* 𝓞_ℂ_[p] where |
| 25 | toFun a := ⟨algebraMap (PadicAlgCl p) ℂ_[p] (a.val : PadicAlgCl p), by |
| 26 | change Valued.v (algebraMap (PadicAlgCl p) ℂ_[p] (a.val : PadicAlgCl p)) ≤ 1 |
| 27 | rw [Logarithm.PeriodRings.valuation_eq_nnnorm] |
| 28 | have h := a.property |
| 29 | change ‖(a.val : K)‖₊ ≤ 1 at h |
| 30 | exact (PadicComplex.nnnorm_extends p (a.val : PadicAlgCl p)).le.trans h⟩ |
| 31 | map_zero' := Subtype.ext (by simp) |
| 32 | map_one' := Subtype.ext (by simp) |
| 33 | map_add' a b := Subtype.ext (by simp) |
| 34 | map_mul' a b := Subtype.ext (by simp) |
| 35 | |
| 36 | theorem integerToCp_norm (a : FieldIntegers p K) : |
| 37 | ‖(integerToCp p K a : ℂ_[p])‖ = ‖(a : K)‖ := |
| 38 | PadicComplex.norm_extends p (a.val : PadicAlgCl p) |
| 39 | |
| 40 | instance integerToCp_local : IsLocalHom (integerToCp p K) := by |
| 41 | apply ((IsLocalRing.local_hom_TFAE (integerToCp p K)).out 4 1 rfl rfl).mp |
| 42 | intro a ha |
| 43 | change integerToCp p K a ∈ IsLocalRing.maximalIdeal 𝓞_ℂ_[p] |
| 44 | erw [Valuation.mem_maximalIdeal_iff] at ha ⊢ |
| 45 | change ‖(a : K)‖₊ < 1 at ha |
| 46 | rw [Logarithm.PeriodRings.valuation_eq_nnnorm] |
| 47 | exact_mod_cast (integerToCp_norm p K a).trans_lt (show ‖(a : K)‖ < 1 from ha) |
| 48 | |
| 49 | def residueEmbedding : FieldResidue p K →+* PrimitiveElements.ResidueCp p := |
| 50 | IsLocalRing.ResidueField.map (integerToCp p K) |
| 51 | |
| 52 | theorem residueEmbedding_residue (a : FieldIntegers p K) : |
| 53 | residueEmbedding p K (IsLocalRing.residue (FieldIntegers p K) a) = |
| 54 | IsLocalRing.residue 𝓞_ℂ_[p] (integerToCp p K a) := |
| 55 | IsLocalRing.ResidueField.map_residue _ a |
| 56 | |
| 57 | instance fieldResidue_charP : CharP (FieldResidue p K) p := |
| 58 | (CharP.charP_iff_prime_eq_zero (R := FieldResidue p K) (Fact.out : p.Prime)).mpr (by |
| 59 | apply (residueEmbedding p K).injective |
| 60 | rw [map_natCast, map_zero, CharP.cast_eq_zero]) |
| 61 | |
| 62 | variable [Module.Finite ℚ_[p] K] |
| 63 | |
| 64 | instance fieldIntegersCompact : CompactSpace (FieldIntegers p K) := by |
| 65 | let : ProperSpace K := FiniteDimensional.proper ℚ_[p] K |
| 66 | apply isCompact_iff_compactSpace.mp |
| 67 | change IsCompact {x : K | ‖x‖ ≤ 1} |
| 68 | simpa only [Metric.closedBall, dist_zero_right] using (isCompact_closedBall (0 : K) 1) |
| 69 | |
| 70 | instance fieldIntegersDVR : IsDiscreteValuationRing (FieldIntegers p K) := |
| 71 | Valued.integer.isDiscreteValuationRing_of_compactSpace |
| 72 | |
| 73 | instance fieldResidueFinite : Finite (FieldResidue p K) := |
| 74 | (Valued.integer.compactSpace_iff_completeSpace_and_isDiscreteValuationRing_and_finite_residueField.mp |
| 75 | (show CompactSpace (FieldIntegers p K) from inferInstance)).2.2 |
| 76 | |
| 77 | instance fieldResidueFintype : Fintype (FieldResidue p K) := Fintype.ofFinite _ |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.FiniteFieldResidue |