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.AlgebraicGeometry.PELModuli.CMPoints.Arithmetic |
| 2 | |
| 3 | /-! # Completion -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Completion.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The integral local decomposition is derived from CMPoints's actual |
| 10 | split residue coordinates. Nakayama lifts surjectivity modulo q to the |
| 11 | completion, and the equality of integral ranks gives injectivity. -/ |
| 12 | |
| 13 | open scoped Classical TensorProduct |
| 14 | open TensorProduct _root_.NumberField |
| 15 | |
| 16 | variable {q : ℕ} [Fact q.Prime] |
| 17 | |
| 18 | /-- A map to a finite free q-adic module is surjective if its reduction |
| 19 | modulo q is surjective. -/ |
| 20 | theorem surjective_of_residue_coordinates |
| 21 | {M I : Type*} [AddCommGroup M] [Module ℤ_[q] M] [Fintype I] |
| 22 | (f : M →ₗ[ℤ_[q]] (I → ℤ_[q])) |
| 23 | (hres : ∀ y : I → ZMod (q ^ 1), |
| 24 | ∃ x : M, ∀ i, PadicInt.toZModPow 1 (f x i) = y i) : |
| 25 | Function.Surjective f := by |
| 26 | let J : Ideal ℤ_[q] := IsLocalRing.maximalIdeal ℤ_[q] |
| 27 | have hJ : J ≤ (⊥ : Ideal ℤ_[q]).jacobson := |
| 28 | (IsLocalRing.jacobson_eq_maximalIdeal _ bot_ne_top).ge |
| 29 | apply LinearMap.range_eq_top.mp |
| 30 | apply top_le_iff.mp |
| 31 | apply Submodule.le_of_le_smul_of_le_jacobson_bot Module.Finite.fg_top hJ |
| 32 | intro y _ |
| 33 | obtain ⟨x, hx⟩ := hres (fun i => PadicInt.toZModPow 1 (y i)) |
| 34 | have hdiff : y - f x ∈ J • (⊤ : Submodule ℤ_[q] (I → ℤ_[q])) := by |
| 35 | rw [← (Pi.basisFun ℤ_[q] I).sum_repr (y - f x)] |
| 36 | apply Submodule.sum_mem |
| 37 | intro i _ |
| 38 | apply Submodule.smul_mem_smul _ (Submodule.mem_top) |
| 39 | change y i - f x i ∈ IsLocalRing.maximalIdeal ℤ_[q] |
| 40 | rw [PadicInt.maximalIdeal_eq_span_p] |
| 41 | have hz : y i - f x i ∈ RingHom.ker (PadicInt.toZModPow (p := q) 1) := by |
| 42 | change PadicInt.toZModPow 1 (y i - f x i) = 0 |
| 43 | rw [map_sub, hx i, sub_self] |
| 44 | simpa only [PadicInt.ker_toZModPow, pow_one] using hz |
| 45 | have hxmem : f x ∈ LinearMap.range f ⊔ J • ⊤ := |
| 46 | Submodule.mem_sup_left ⟨x, rfl⟩ |
| 47 | have hsum := (LinearMap.range f ⊔ J • ⊤).add_mem hxmem |
| 48 | (Submodule.mem_sup_right hdiff) |
| 49 | simpa only [add_sub_cancel] using hsum |
| 50 | |
| 51 | variable {E K : Type} [Field E] [NumberField E] |
| 52 | [IsGalois ℚ E] [Field K] [NumberField K] {κ : K →+* ℂ} |
| 53 | (j : PELModuli.CMPoints.Arithmetic.QadicChoice K κ q) (iota : E →+* K) |
| 54 | |
| 55 | /-- Extension of the actual integral local characters to the integral |
| 56 | q-adic tensor product. -/ |
| 57 | def completionLinear : |
| 58 | ℤ_[q] ⊗[ℤ] RingOfIntegers E →ₗ[ℤ_[q]] (Gal(E/ℚ) → ℤ_[q]) := |
| 59 | AlgebraTensorModule.lift ((LinearMap.ringLmapEquivSelf ℤ_[q] ℤ_[q] _).symm |
| 60 | (RingHom.pi (j.localCharacter iota)).toIntAlgHom.toLinearMap) |
| 61 | |
| 62 | omit [IsGalois ℚ E] in |
| 63 | @[simp] theorem completionLinear_tmul (a : ℤ_[q]) (x : RingOfIntegers E) (τ : Gal(E/ℚ)) : |
| 64 | completionLinear j iota (a ⊗ₜ[ℤ] x) τ = a * j.localCharacter iota τ x := rfl |
| 65 | |
| 66 | /-- CMPoints's split coordinates imply the literal product decomposition |
| 67 | of the integral completion, with the same embedding labels. -/ |
| 68 | theorem completion_bijective (hsplit : j.HasSplitCoordinates iota) : |
| 69 | Function.Bijective (completionLinear j iota) := by |
| 70 | have hs : Function.Surjective (completionLinear j iota) := by |
| 71 | apply surjective_of_residue_coordinates |
| 72 | intro y |
| 73 | obtain ⟨x, hx⟩ := (hsplit 1).1 y |
| 74 | exact ⟨1 ⊗ₜ[ℤ] x, fun τ => by |
| 75 | simpa only [completionLinear_tmul, one_mul, |
| 76 | PELModuli.CMPoints.Arithmetic.QadicChoice.residueCoordinates, |
| 77 | PELModuli.CMPoints.Arithmetic.QadicChoice.residueCharacter, RingHom.coe_mk, |
| 78 | MonoidHom.coe_mk, OneHom.coe_mk, RingHom.comp_apply] using congrFun hx τ⟩ |
| 79 | have hdim : Module.finrank ℤ_[q] (Gal(E/ℚ) → ℤ_[q]) = |
| 80 | Module.finrank ℤ_[q] (ℤ_[q] ⊗[ℤ] RingOfIntegers E) := by |
| 81 | rw [Module.finrank_fintype_fun_eq_card, Module.finrank_baseChange, |
| 82 | RingOfIntegers.rank, ← IsGalois.card_aut_eq_finrank ℚ E, |
| 83 | Nat.card_eq_fintype_card] |
| 84 | let e := LinearEquiv.ofFinrankEq |
| 85 | (R := ℤ_[q]) (Gal(E/ℚ) → ℤ_[q]) (ℤ_[q] ⊗[ℤ] RingOfIntegers E) hdim |
| 86 | have hinj : Function.Injective ((completionLinear j iota).comp e.toLinearMap) := |
| 87 | Module.End.injective_of_surjective ℤ_[q] (Gal(E/ℚ) → ℤ_[q]) |
| 88 | (hs.comp e.surjective) |
| 89 | refine ⟨?_, hs⟩ |
| 90 | intro x y hxy |
| 91 | apply e.symm.injective |
| 92 | apply hinj |
| 93 | simpa only [LinearMap.comp_apply, LinearEquiv.coe_coe, |
| 94 | LinearEquiv.apply_symm_apply] using hxy |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.Completion.CM |