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.AbelianModuli.ReferenceFamily.EmbeddedLocalizedVectors |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ReflectionCongruenceCoefficients |
| 3 | import Mathlib.NumberTheory.NumberField.CMField |
| 4 | import Mathlib.RingTheory.Localization.AsSubring |
| 5 | import Mathlib.RingTheory.Localization.AtPrime.Basic |
| 6 | |
| 7 | /-! # Prime Integral Localization -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PrimeIntegralLocalization |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Actual prime localizations of the ring of integers, embedded in the |
| 14 | original number field. Localized input coefficients and their conjugates |
| 15 | belong to every localization at a prime dividing the chosen level. |
| 16 | -/ |
| 17 | |
| 18 | variable (E : Type*) [Field E] [NumberField E] |
| 19 | |
| 20 | omit [NumberField E] in |
| 21 | theorem integralPrimeCompl_nonZeroDivisors |
| 22 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] : |
| 23 | p.primeCompl ≤ nonZeroDivisors (NumberField.RingOfIntegers E) := by |
| 24 | intro a ha |
| 25 | apply mem_nonZeroDivisors_iff_ne_zero.mpr |
| 26 | intro h |
| 27 | apply (Ideal.mem_primeCompl_iff.mp ha) |
| 28 | rw [h] |
| 29 | exact p.zero_mem |
| 30 | |
| 31 | def primeIntegralLocalization (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] : |
| 32 | Subalgebra (NumberField.RingOfIntegers E) E := |
| 33 | Localization.subalgebra.ofField E p.primeCompl (integralPrimeCompl_nonZeroDivisors E p) |
| 34 | |
| 35 | instance primeIntegralLocalization_isLocalization |
| 36 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] : |
| 37 | IsLocalization p.primeCompl (primeIntegralLocalization E p) := by |
| 38 | dsimp only [primeIntegralLocalization] |
| 39 | exact Localization.subalgebra.isLocalization_ofField E p.primeCompl |
| 40 | (integralPrimeCompl_nonZeroDivisors E p) |
| 41 | |
| 42 | instance primeIntegralLocalization_isLocalRing |
| 43 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] : |
| 44 | IsLocalRing (primeIntegralLocalization E p) := |
| 45 | IsLocalization.AtPrime.isLocalRing (primeIntegralLocalization E p) p |
| 46 | |
| 47 | theorem integral_mem_primeIntegralLocalization |
| 48 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] |
| 49 | (a : NumberField.RingOfIntegers E) : (a : E) ∈ primeIntegralLocalization E p := by |
| 50 | change ∃ (x s : NumberField.RingOfIntegers E) (_ : s ∈ p.primeCompl), |
| 51 | (a : E) = (x : E) * (s : E)⁻¹ |
| 52 | exact ⟨a, 1, p.primeCompl.one_mem, by simp⟩ |
| 53 | |
| 54 | omit [NumberField E] in |
| 55 | theorem successor_level_not_mem_integralPrime |
| 56 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] |
| 57 | (ℓ : ℕ) (hℓ : (ℓ : NumberField.RingOfIntegers E) ∈ p) : |
| 58 | ((ℓ + 1 : ℕ) : NumberField.RingOfIntegers E) ∉ p := by |
| 59 | intro h |
| 60 | apply p.one_notMem |
| 61 | have hm := p.sub_mem h hℓ |
| 62 | simpa only [Nat.cast_add, Nat.cast_one, add_sub_cancel_left] using hm |
| 63 | |
| 64 | theorem successor_level_inverse_mem_primeIntegralLocalization |
| 65 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] |
| 66 | (ℓ : ℕ) (hℓ : (ℓ : NumberField.RingOfIntegers E) ∈ p) : |
| 67 | (((ℓ + 1 : ℕ) : E)⁻¹) ∈ primeIntegralLocalization E p := by |
| 68 | change ∃ (a s : NumberField.RingOfIntegers E) (_ : s ∈ p.primeCompl), |
| 69 | (((ℓ + 1 : ℕ) : E)⁻¹) = (a : E) * (s : E)⁻¹ |
| 70 | refine ⟨1, (ℓ + 1 : ℕ), |
| 71 | Ideal.mem_primeCompl_iff.mpr (successor_level_not_mem_integralPrime E p ℓ hℓ), ?_⟩ |
| 72 | simp |
| 73 | |
| 74 | theorem localized_coefficients_mem_primeIntegralLocalization |
| 75 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] |
| 76 | (ℓ : ℕ) (hℓ : (ℓ : NumberField.RingOfIntegers E) ∈ p) |
| 77 | (z : NumberField.RingOfIntegers E) {x : E} |
| 78 | (hx : x ∈ EmbeddedLocalizedVectors.localizedCoefficientRing (ℓ + 1) (z : E)) : |
| 79 | x ∈ primeIntegralLocalization E p := by |
| 80 | have hsub : EmbeddedLocalizedVectors.localizedCoefficientRing (ℓ + 1) (z : E) ≤ |
| 81 | (primeIntegralLocalization E p).toSubring := by |
| 82 | apply Subring.closure_le.mpr |
| 83 | intro a ha |
| 84 | rcases Set.mem_insert_iff.mp ha with rfl | ha |
| 85 | · exact successor_level_inverse_mem_primeIntegralLocalization E p ℓ hℓ |
| 86 | · obtain rfl := Set.mem_singleton_iff.mp ha |
| 87 | exact integral_mem_primeIntegralLocalization E p z |
| 88 | exact hsub hx |
| 89 | |
| 90 | theorem level_mem_primeIntegralLocalization_maximalIdeal |
| 91 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] |
| 92 | (ℓ : ℕ) (hℓ : (ℓ : NumberField.RingOfIntegers E) ∈ p) : |
| 93 | (ℓ : primeIntegralLocalization E p) ∈ IsLocalRing.maximalIdeal (primeIntegralLocalization E p) := by |
| 94 | have h := (IsLocalization.AtPrime.to_map_mem_maximal_iff |
| 95 | (primeIntegralLocalization E p) p (ℓ : NumberField.RingOfIntegers E)).mpr hℓ |
| 96 | simpa only [map_natCast] using h |
| 97 | |
| 98 | theorem primeIntegralLocalization_normDenominator_isUnit |
| 99 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] |
| 100 | (ℓ : ℕ) (hℓ : (ℓ : NumberField.RingOfIntegers E) ∈ p) |
| 101 | (q s t r : primeIntegralLocalization E p) : |
| 102 | IsUnit (ReflectionCongruenceCoefficients.reflectionNormDenominator (ℓ : primeIntegralLocalization E p) q s t r) := |
| 103 | ReflectionCongruenceCoefficients.reflectionNormDenominator_isUnit _ q s t r |
| 104 | (level_mem_primeIntegralLocalization_maximalIdeal E p ℓ hℓ) |
| 105 | |
| 106 | theorem conjugate_localized_coefficients_mem_primeIntegralLocalization |
| 107 | [NumberField.IsCMField E] |
| 108 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] |
| 109 | (ℓ : ℕ) (hℓ : (ℓ : NumberField.RingOfIntegers E) ∈ p) |
| 110 | (z : NumberField.RingOfIntegers E) {x : E} |
| 111 | (hx : x ∈ EmbeddedLocalizedVectors.localizedCoefficientRing (ℓ + 1) (z : E)) : |
| 112 | NumberField.IsCMField.complexConj E x ∈ primeIntegralLocalization E p := by |
| 113 | apply localized_coefficients_mem_primeIntegralLocalization E p ℓ hℓ |
| 114 | (NumberField.IsCMField.ringOfIntegersComplexConj E z) |
| 115 | have hc := Subring.mem_closure_image_of |
| 116 | (NumberField.IsCMField.complexConj E).toRingHom hx |
| 117 | rw [NumberField.IsCMField.coe_ringOfIntegersComplexConj] |
| 118 | change (NumberField.IsCMField.complexConj E).toRingHom x ∈ |
| 119 | EmbeddedLocalizedVectors.localizedCoefficientRing (ℓ + 1) ((NumberField.IsCMField.complexConj E).toRingHom (z : E)) |
| 120 | simpa only [EmbeddedLocalizedVectors.localizedCoefficientRing, Set.image_pair, map_inv₀, map_natCast] using hc |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PrimeIntegralLocalization |