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.Local.ReflectionCongruence |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PrimeIntegralLocalization |
| 3 | |
| 4 | /-! # Integral Hermitian Coefficients -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.IntegralHermitianCoefficients |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The actual number-field reflection matrices satisfy principal |
| 13 | congruences at every prime of the ring of integers dividing the chosen |
| 14 | level. Integral input data and the explicit localized coefficient ring |
| 15 | supply all local coefficient and relative-norm denominator conditions. |
| 16 | -/ |
| 17 | |
| 18 | variable (E : Type*) [Field E] [NumberField E] [NumberField.IsCMField E] |
| 19 | |
| 20 | def integralMatrixReflectionForm |
| 21 | (H : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E)) : |
| 22 | (Fin 3 → E) →ₗ[E] (Fin 3 → E) →ₛₗ[(NumberField.IsCMField.complexConj E).toRingHom] E := |
| 23 | MatrixReflectionEmbedding.matrixReflectionForm (NumberField.IsCMField.complexConj E).toRingHom |
| 24 | (H.map (algebraMap (NumberField.RingOfIntegers E) E)) |
| 25 | |
| 26 | theorem two_integral_matrix_reflections_congruent_at_bad_prime |
| 27 | (p : Ideal (NumberField.RingOfIntegers E)) [p.IsPrime] |
| 28 | (ℓ : ℕ) (hℓ : (ℓ : NumberField.RingOfIntegers E) ∈ p) |
| 29 | (H : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E)) |
| 30 | (hHerm : ∀ i j, (H i j : E) = NumberField.IsCMField.complexConj E (H j i : E)) |
| 31 | (w : Fin 3 → NumberField.RingOfIntegers E) |
| 32 | (z : NumberField.RingOfIntegers E) (c : Fin 3 → E) |
| 33 | (hc : ∀ i, c i ∈ EmbeddedLocalizedVectors.localizedCoefficientRing (ℓ + 1) (z : E)) |
| 34 | (hw : integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E)) ≠ 0) |
| 35 | (hv : integralMatrixReflectionForm E H |
| 36 | ((fun i => (w i : E)) + ((ℓ : E) * |
| 37 | (integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E))) ^ 2) • c) |
| 38 | ((fun i => (w i : E)) + ((ℓ : E) * |
| 39 | (integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E))) ^ 2) • c) ≠ 0) : |
| 40 | let σ := (NumberField.IsCMField.complexConj E).toRingHom |
| 41 | let B := integralMatrixReflectionForm E H |
| 42 | let w₀ := fun i => (w i : E) |
| 43 | let v := w₀ + ((ℓ : E) * (B w₀ w₀) ^ 2) • c |
| 44 | ∀ i j : Fin 3, ∃ a b : PrimeIntegralLocalization.primeIntegralLocalization E p, |
| 45 | LinearMap.toMatrix' (ReflectionDeterminant.twoHermitianReflections σ B v w₀ hv hw).toLinearMap i j - |
| 46 | (1 : Matrix (Fin 3) (Fin 3) E) i j = (ℓ : E) * (a : E) ∧ |
| 47 | LinearMap.toMatrix' (ReflectionDeterminant.twoHermitianReflections σ B w₀ v hw hv).toLinearMap i j - |
| 48 | (1 : Matrix (Fin 3) (Fin 3) E) i j = (ℓ : E) * (b : E) := by |
| 49 | classical |
| 50 | dsimp only |
| 51 | let S : Subring E := (PrimeIntegralLocalization.primeIntegralLocalization E p).toSubring |
| 52 | let : IsLocalRing S := PrimeIntegralLocalization.primeIntegralLocalization_isLocalRing E p |
| 53 | let σ := (NumberField.IsCMField.complexConj E).toRingHom |
| 54 | let H₀ := H.map (algebraMap (NumberField.RingOfIntegers E) E) |
| 55 | let w₀ := fun i => (w i : E) |
| 56 | have hσ : Function.Involutive σ := NumberField.IsCMField.complexConj_apply_apply E |
| 57 | have hH₀ : ∀ i j, H₀ i j = σ (H₀ j i) := hHerm |
| 58 | have hHS : ∀ i j, H₀ i j ∈ S := fun i j => PrimeIntegralLocalization.integral_mem_primeIntegralLocalization E p (H i j) |
| 59 | have hwS : ∀ i, w₀ i ∈ S := fun i => PrimeIntegralLocalization.integral_mem_primeIntegralLocalization E p (w i) |
| 60 | have hwσS : ∀ i, σ (w₀ i) ∈ S := fun i => |
| 61 | PrimeIntegralLocalization.integral_mem_primeIntegralLocalization E p (NumberField.IsCMField.ringOfIntegersComplexConj E (w i)) |
| 62 | have hcS : ∀ i, c i ∈ S := fun i => |
| 63 | PrimeIntegralLocalization.localized_coefficients_mem_primeIntegralLocalization E p ℓ hℓ z (hc i) |
| 64 | have hcσS : ∀ i, σ (c i) ∈ S := fun i => |
| 65 | PrimeIntegralLocalization.conjugate_localized_coefficients_mem_primeIntegralLocalization E p ℓ hℓ z (hc i) |
| 66 | have hlevel : (ℓ : S) ∈ IsLocalRing.maximalIdeal S := |
| 67 | PrimeIntegralLocalization.level_mem_primeIntegralLocalization_maximalIdeal E p ℓ hℓ |
| 68 | have hfixed : σ ((ℓ : S) : E) = ((ℓ : S) : E) := map_natCast σ ℓ |
| 69 | exact Local.ReflectionCongruence.twoMatrixReflections_local_congruence S σ hσ H₀ hH₀ hHS (ℓ : S) hlevel hfixed |
| 70 | w₀ c hwS hwσS hcS hcσS hw hv |
| 71 | |
| 72 | end |
| 73 | |
| 74 | /-! Integral representatives for the actual matrix pairing, together |
| 75 | with a common power denominator for localized perturbation coordinates. |
| 76 | Conjugation is performed in the original ring of integers. |
| 77 | -/ |
| 78 | |
| 79 | variable (E : Type*) [Field E] [NumberField E] [NumberField.IsCMField E] |
| 80 | |
| 81 | def integralHermitianPairing |
| 82 | (H : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E)) |
| 83 | (x y : Fin 3 → NumberField.RingOfIntegers E) : NumberField.RingOfIntegers E := |
| 84 | ∑ i, ∑ j, x i * H i j * NumberField.IsCMField.ringOfIntegersComplexConj E (y j) |
| 85 | |
| 86 | theorem integralHermitianPairing_coe |
| 87 | (H : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E)) |
| 88 | (x y : Fin 3 → NumberField.RingOfIntegers E) : |
| 89 | (integralHermitianPairing E H x y : E) = |
| 90 | integralMatrixReflectionForm E H (fun i => (x i : E)) (fun i => (y i : E)) := by |
| 91 | change algebraMap (NumberField.RingOfIntegers E) E |
| 92 | (∑ i, ∑ j, x i * H i j * NumberField.IsCMField.ringOfIntegersComplexConj E (y j)) = _ |
| 93 | simp only [map_sum, map_mul, integralMatrixReflectionForm, MatrixReflectionEmbedding.matrixReflectionForm_apply, |
| 94 | Matrix.map_apply, NumberField.IsCMField.coe_ringOfIntegersComplexConj] |
| 95 | rfl |
| 96 | |
| 97 | omit [NumberField.IsCMField E] in |
| 98 | theorem localized_vector_common_integral_denominator |
| 99 | {I : Type*} [Fintype I] (b : ℕ) (hb : 0 < b) |
| 100 | (z : NumberField.RingOfIntegers E) (c : I → E) |
| 101 | (hc : ∀ i, c i ∈ EmbeddedLocalizedVectors.localizedCoefficientRing b (z : E)) : |
| 102 | ∃ (n : ℕ) (C : I → NumberField.RingOfIntegers E), |
| 103 | ∀ i, (C i : E) = (b : E) ^ n * c i := by |
| 104 | let S : Subring E := (integralClosure ℤ E).toSubring |
| 105 | have hb0 : (b : E) ≠ 0 := Nat.cast_ne_zero.mpr (Nat.ne_of_gt hb) |
| 106 | obtain ⟨n, hn⟩ := LocalizedCoefficientDenominators.exists_common_power_mul_mem_of_localized_closure S |
| 107 | (b : E) (z : E) (natCast_mem S b) hb0 z.property c hc |
| 108 | exact ⟨n, fun i => ⟨(b : E) ^ n * c i, hn i⟩, fun i => rfl⟩ |
| 109 | |
| 110 | theorem common_integral_denominator_conjugate |
| 111 | {I : Type*} (b : ℕ) (n : ℕ) |
| 112 | (c : I → E) (C : I → NumberField.RingOfIntegers E) |
| 113 | (hC : ∀ i, (C i : E) = (b : E) ^ n * c i) (i : I) : |
| 114 | (NumberField.IsCMField.ringOfIntegersComplexConj E (C i) : E) = |
| 115 | (b : E) ^ n * NumberField.IsCMField.complexConj E (c i) := by |
| 116 | rw [NumberField.IsCMField.coe_ringOfIntegersComplexConj, hC i, map_mul, map_pow, |
| 117 | map_natCast] |
| 118 | |
| 119 | end |
| 120 | |
| 121 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.IntegralHermitianCoefficients |