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.PeriodInvariants.PeriodRing |
| 2 | |
| 3 | /-! # Complex Residue P -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.ComplexResidueP |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # The residue map from O_Cp/p has nil kernel |
| 11 | |
| 12 | Every element of the maximal ideal of O_Cp has norm below one, so some power |
| 13 | is divisible by p. Thus the kernel of O_Cp/p to the residue field consists of |
| 14 | nilpotent elements. This is the input for canonical finite-field lifting. |
| 15 | -/ |
| 16 | |
| 17 | open OAI.NumberTheory.PadicHodge.PeriodInvariants.PeriodRing |
| 18 | |
| 19 | variable (p : ℕ) [Fact p.Prime] |
| 20 | |
| 21 | abbrev ComplexResidue := IsLocalRing.ResidueField 𝓞_ℂ_[p] |
| 22 | |
| 23 | instance integerEquiv_local (e : 𝓞_ℂ_[p] ≃+* 𝓞_ℂ_[p]) : IsLocalHom e.toRingHom := |
| 24 | isLocalHom_of_leftInverse e.symm.toRingHom e.symm_apply_apply |
| 25 | |
| 26 | theorem p_mem_maximalIdeal : (p : 𝓞_ℂ_[p]) ∈ IsLocalRing.maximalIdeal 𝓞_ℂ_[p] := by |
| 27 | apply (Valuation.mem_maximalIdeal_iff ℂ_[p] (PadicComplex.valued p).v).mpr |
| 28 | change Valued.v (p : ℂ_[p]) < 1 |
| 29 | rw [PadicComplex.valuation_p, one_div] |
| 30 | exact inv_lt_one_of_one_lt₀ (show (1 : NNReal) < (p : NNReal) by |
| 31 | exact_mod_cast (Fact.out : p.Prime).one_lt) |
| 32 | |
| 33 | instance complexResidue_charP : CharP (ComplexResidue p) p := by |
| 34 | apply (CharP.charP_iff_prime_eq_zero (Fact.out : p.Prime)).mpr |
| 35 | rw [← map_natCast (IsLocalRing.residue 𝓞_ℂ_[p])] |
| 36 | exact (IsLocalRing.residue_eq_zero_iff _).mpr (p_mem_maximalIdeal p) |
| 37 | |
| 38 | def modPResidue : ModP 𝓞_ℂ_[p] p →+* ComplexResidue p := |
| 39 | Ideal.Quotient.lift (Ideal.span {(p : 𝓞_ℂ_[p])}) (IsLocalRing.residue 𝓞_ℂ_[p]) (by |
| 40 | change Ideal.span {(p : 𝓞_ℂ_[p])} ≤ RingHom.ker (IsLocalRing.residue 𝓞_ℂ_[p]) |
| 41 | apply Ideal.span_le.mpr |
| 42 | intro x hx |
| 43 | obtain rfl := Set.mem_singleton_iff.mp hx |
| 44 | exact (IsLocalRing.residue_eq_zero_iff _).mpr (p_mem_maximalIdeal p)) |
| 45 | |
| 46 | theorem modPResidue_mk (x : 𝓞_ℂ_[p]) : |
| 47 | modPResidue p (Ideal.Quotient.mk _ x) = IsLocalRing.residue 𝓞_ℂ_[p] x := rfl |
| 48 | |
| 49 | theorem modPResidue_surjective : Function.Surjective (modPResidue p) := by |
| 50 | intro x |
| 51 | obtain ⟨a, ha⟩ := IsLocalRing.residue_surjective x |
| 52 | exact ⟨Ideal.Quotient.mk _ a, ha⟩ |
| 53 | |
| 54 | theorem modPResidue_nil_kernel (x : ModP 𝓞_ℂ_[p] p) (hx : modPResidue p x = 0) : IsNilpotent x := by |
| 55 | obtain ⟨a, rfl⟩ := Ideal.Quotient.mk_surjective x |
| 56 | have ha : a ∈ IsLocalRing.maximalIdeal 𝓞_ℂ_[p] := (IsLocalRing.residue_eq_zero_iff _).mp hx |
| 57 | have hn : ‖a‖ < 1 := by |
| 58 | have hv := (Valuation.mem_maximalIdeal_iff ℂ_[p] (PadicComplex.valued p).v).mp ha |
| 59 | rw [← NNReal.coe_lt_coe, PeriodRing.complex_valuation_norm] at hv |
| 60 | exact hv |
| 61 | obtain ⟨n, hn⟩ := exists_pow_lt_of_lt_one (PeriodRing.complexInt_norm_p_pos p) hn |
| 62 | have hp : a ^ n ∈ (Ideal.span {(p : 𝓞_ℂ_[p])}) := by |
| 63 | rw [← SetLike.mem_coe, PeriodRing.complexInt_span_closedBall, Metric.mem_closedBall, dist_zero_right, norm_pow] |
| 64 | exact hn.le |
| 65 | refine ⟨n, ?_⟩ |
| 66 | rw [← map_pow] |
| 67 | exact Ideal.Quotient.eq_zero_iff_mem.mpr hp |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.ComplexResidueP |