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.HodgeConjecture.CMExtraction.ParameterChoices |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Data |
| 3 | |
| 4 | /-! # Primes -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Intrinsic.Primes.ParameterChoices |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The native completion characters determine distinct conjugate finite |
| 11 | primes. Their distinction follows from the actual split completion map. -/ |
| 12 | |
| 13 | open _root_.NumberField IsDedekindDomain OAI.AlgebraicGeometry.AbelianScheme.TateComparison.Data |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | theorem ringHom_toZMod_eq_of_ker_eq {R : Type*} [Ring R] (q : ℕ) |
| 17 | (f g : R →+* ZMod q) (h : RingHom.ker f = RingHom.ker g) : f = g := by |
| 18 | ext a |
| 19 | obtain ⟨z, hz⟩ := ZMod.intCast_surjective (f a) |
| 20 | have ha : a - (z : R) ∈ RingHom.ker f := by |
| 21 | change f (a - (z : R)) = 0 |
| 22 | rw [map_sub, map_intCast, hz, sub_self] |
| 23 | rw [h] at ha |
| 24 | change g (a - (z : R)) = 0 at ha |
| 25 | rw [map_sub, map_intCast, sub_eq_zero] at ha |
| 26 | exact hz.symm.trans ha.symm |
| 27 | |
| 28 | variable {E K : Type} [Field E] [NumberField E] [NumberField.IsCMField E] |
| 29 | [Field K] [NumberField K] {s q : ℕ} [Fact q.Prime] |
| 30 | (D : AbelianScheme.TateComparison.Data.SphericalPELAlbaneseData E K s q) |
| 31 | |
| 32 | def nativeResidueCharacter (i : Fin s × Bool) : 𝓞 E →+* ZMod q := |
| 33 | PadicInt.toZMod.comp (D.localCharacter i) |
| 34 | |
| 35 | def nativeLocalPrime (i : Fin s × Bool) : HeightOneSpectrum (𝓞 E) where |
| 36 | asIdeal := RingHom.ker (nativeResidueCharacter D i) |
| 37 | isPrime := RingHom.ker_isPrime _ |
| 38 | ne_bot := by |
| 39 | intro h |
| 40 | have hq : (q : 𝓞 E) ∈ RingHom.ker (nativeResidueCharacter D i) := by |
| 41 | change nativeResidueCharacter D i q = 0 |
| 42 | simp |
| 43 | rw [h, Ideal.mem_bot] at hq |
| 44 | exact (Nat.cast_ne_zero.mpr (Fact.out : q.Prime).ne_zero) hq |
| 45 | |
| 46 | theorem nativeLocalPrime_liesOver (i : Fin s × Bool) : (q : 𝓞 E) ∈ (nativeLocalPrime D i).asIdeal := by |
| 47 | change nativeResidueCharacter D i q = 0 |
| 48 | simp |
| 49 | |
| 50 | theorem nativeResidueCharacter_injective (hg : D.IsGoodCompletelySplitPrime) : |
| 51 | Function.Injective (nativeResidueCharacter D) := by |
| 52 | intro i j hij |
| 53 | by_contra hne |
| 54 | have hcoord (z : ℤ_[q] ⊗[ℤ] 𝓞 E) : |
| 55 | PadicInt.toZMod (D.localCompletionMap z i) = PadicInt.toZMod (D.localCompletionMap z j) := by |
| 56 | induction z using TensorProduct.inductionOn with |
| 57 | | tmul a b => |
| 58 | change PadicInt.toZMod (a * D.localCharacter i b) = |
| 59 | PadicInt.toZMod (a * D.localCharacter j b) |
| 60 | rw [map_mul, map_mul] |
| 61 | exact congrArg (PadicInt.toZMod a * ·) (RingHom.congr_fun hij b) |
| 62 | | add x y hx hy => |
| 63 | simp only [map_add, Pi.add_apply, hx, hy] |
| 64 | obtain ⟨z, hz⟩ := hg.1.2 (Pi.single i 1) |
| 65 | have h := hcoord z |
| 66 | rw [hz] at h |
| 67 | simp [Ne.symm hne] at h |
| 68 | |
| 69 | theorem nativeLocalPrime_injective (hg : D.IsGoodCompletelySplitPrime) : |
| 70 | Function.Injective (nativeLocalPrime D) := by |
| 71 | intro i j hij |
| 72 | apply nativeResidueCharacter_injective D hg |
| 73 | apply ringHom_toZMod_eq_of_ker_eq q |
| 74 | exact congrArg (fun p : HeightOneSpectrum (𝓞 E) => p.asIdeal) hij |
| 75 | |
| 76 | theorem nativeLocalPrime_conjugate (hg : D.IsGoodCompletelySplitPrime) |
| 77 | (v : Fin s) (side : Bool) : |
| 78 | (nativeLocalPrime D (v, !side)).asIdeal = |
| 79 | Ideal.map (NumberField.IsCMField.ringOfIntegersComplexConj E).toRingHom |
| 80 | (nativeLocalPrime D (v, side)).asIdeal := by |
| 81 | let c := NumberField.IsCMField.ringOfIntegersComplexConj E |
| 82 | have hc (a : 𝓞 E) : c (c a) = a := by |
| 83 | apply NumberField.RingOfIntegers.ext |
| 84 | exact NumberField.IsCMField.complexConj_apply_apply E (a : E) |
| 85 | apply le_antisymm |
| 86 | · intro a ha |
| 87 | apply (Ideal.mem_map_iff_of_surjective c.toRingHom c.surjective).mpr |
| 88 | refine ⟨c a, ?_, ?_⟩ |
| 89 | · change PadicInt.toZMod (D.localCharacter (v, side) (c a)) = 0 |
| 90 | change PadicInt.toZMod (D.localCharacter (v, !side) a) = 0 at ha |
| 91 | exact (congrArg PadicInt.toZMod (hg.2.1 v side a)).symm.trans ha |
| 92 | · exact hc a |
| 93 | · intro a ha |
| 94 | obtain ⟨b, hb, rfl⟩ := (Ideal.mem_map_iff_of_surjective c.toRingHom c.surjective).mp ha |
| 95 | change PadicInt.toZMod (D.localCharacter (v, !side) (c b)) = 0 |
| 96 | rw [hg.2.1 v side (c b)] |
| 97 | change PadicInt.toZMod (D.localCharacter (v, side) (c (c b))) = 0 |
| 98 | rw [hc] |
| 99 | exact hb |
| 100 | |
| 101 | /-- NormOneApproximation now applies to the actual native local characters, with no separate |
| 102 | prime-distinction or conjugate-prime identification premise. -/ |
| 103 | theorem exists_native_split_scalar [IsGalois ℚ E] (hg : D.IsGoodCompletelySplitPrime) |
| 104 | (v : Fin s) (side : Bool) : |
| 105 | ∃ (r : Eˣ) (M : ℕ), 0 < M ∧ |
| 106 | (r : E) * NumberField.IsCMField.complexConj E (r : E) = 1 ∧ |
| 107 | (∀ i : Fin s × Bool, (nativeLocalPrime D i).valuation E (r : E) = |
| 108 | if i = (v, side) then WithZero.exp (-(M : ℤ)) |
| 109 | else if i = (v, !side) then WithZero.exp (M : ℤ) else 1) ∧ |
| 110 | (∀ p : HeightOneSpectrum (𝓞 E), |
| 111 | p ≠ nativeLocalPrime D (v, side) → p ≠ nativeLocalPrime D (v, !side) → |
| 112 | p.valuation E (r : E) = 1) ∧ |
| 113 | (∀ (S : Finset (HeightOneSpectrum (𝓞 E))) (depth : HeightOneSpectrum (𝓞 E) → ℕ), |
| 114 | nativeLocalPrime D (v, side) ∉ S → nativeLocalPrime D (v, !side) ∉ S → |
| 115 | ∃ N : ℕ, 0 < N ∧ ∀ p ∈ S, |
| 116 | p.valuation E ((r : E) ^ N - 1) ≤ WithZero.exp (-(depth p : ℤ))) := by |
| 117 | classical |
| 118 | have hpair : (v, side) ≠ (v, !side) := by |
| 119 | intro h |
| 120 | have hs := congrArg Prod.snd h |
| 121 | cases side <;> simp at hs |
| 122 | have hsplit : nativeLocalPrime D (v, side) ≠ nativeLocalPrime D (v, !side) := |
| 123 | fun h => hpair (nativeLocalPrime_injective D hg h) |
| 124 | obtain ⟨r, M, hM, hnorm, hleft, hright, hrest, happrox⟩ := |
| 125 | NumberTheory.CMField.NormOneApproximation.Construction.exists_norm_one_scalar (E := E) inferInstance |
| 126 | (nativeLocalPrime D (v, side)) (nativeLocalPrime D (v, !side)) |
| 127 | (nativeLocalPrime_conjugate D hg v side) hsplit |
| 128 | refine ⟨r, M, hM, hnorm, ?_, hrest, happrox⟩ |
| 129 | intro i |
| 130 | split_ifs with hi hj |
| 131 | · subst i |
| 132 | exact hleft |
| 133 | · subst i |
| 134 | exact hright |
| 135 | · exact hrest _ (fun h => hi (nativeLocalPrime_injective D hg h)) |
| 136 | (fun h => hj (nativeLocalPrime_injective D hg h)) |
| 137 | |
| 138 | end |
| 139 | |
| 140 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.Intrinsic.Primes.ParameterChoices |