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 Mathlib.RingTheory.LocalRing.Basic |
| 2 | import Mathlib.RingTheory.LocalRing.MaximalIdeal.Basic |
| 3 | import Mathlib.Tactic.FieldSimp |
| 4 | import Mathlib.Tactic.Ring |
| 5 | |
| 6 | /-! # Reflection Congruence Coefficients -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ReflectionCongruenceCoefficients |
| 9 | |
| 10 | /-! Explicit denominator cancellation for both orders of a product of |
| 11 | nearby reflections. The relative norm denominator is a unit in every local |
| 12 | ring where the prescribed level belongs to the maximal ideal. These scalar |
| 13 | identities still require instantiation with the actual Hermitian coefficients. |
| 14 | -/ |
| 15 | |
| 16 | section Ring |
| 17 | |
| 18 | variable {R : Type*} [CommRing R] |
| 19 | |
| 20 | def reflectionNormDenominator (ℓ q s t r : R) : R := |
| 21 | 1 + ℓ * q * (s + t) + ℓ ^ 2 * q ^ 3 * r |
| 22 | |
| 23 | theorem perturbed_reflection_norm_factor (ℓ q s t r : R) : |
| 24 | q + (ℓ * q ^ 2) * (s + t) + (ℓ * q ^ 2) ^ 2 * r = |
| 25 | q * reflectionNormDenominator ℓ q s t r := by |
| 26 | unfold reflectionNormDenominator |
| 27 | ring |
| 28 | |
| 29 | theorem reflectionNormDenominator_modulo |
| 30 | {T : Type*} [CommRing T] (f : R →+* T) (ℓ q s t r : R) (hℓ : f ℓ = 0) : |
| 31 | f (reflectionNormDenominator ℓ q s t r) = 1 := by |
| 32 | simp [reflectionNormDenominator, hℓ] |
| 33 | |
| 34 | theorem reflectionNormDenominator_isUnit [IsLocalRing R] |
| 35 | (ℓ q s t r : R) (hℓ : ℓ ∈ IsLocalRing.maximalIdeal R) : |
| 36 | IsUnit (reflectionNormDenominator ℓ q s t r) := by |
| 37 | apply IsLocalRing.isUnit_of_mem_nonunits_one_sub_self |
| 38 | have he : 1 - reflectionNormDenominator ℓ q s t r = |
| 39 | -(q * (s + t) + ℓ * q ^ 3 * r) * ℓ := by |
| 40 | unfold reflectionNormDenominator |
| 41 | ring |
| 42 | rw [he] |
| 43 | exact (IsLocalRing.maximalIdeal R).mul_mem_left _ hℓ |
| 44 | |
| 45 | def forwardReflectionDifferencePolynomial (q m a c p d s t r : R) : R := |
| 46 | 2 * (q * (c * p - a * d) + (s - t) * a * p + |
| 47 | m * (-q * c * d - r * a * p + 2 * s * c * p)) |
| 48 | |
| 49 | def reverseReflectionDifferencePolynomial (q m a c p d s t r : R) : R := |
| 50 | 2 * (-q * c * p + q * a * d + (t - s) * a * p + |
| 51 | m * (-q * c * d - r * a * p + 2 * t * a * d)) |
| 52 | |
| 53 | end Ring |
| 54 | |
| 55 | variable {K : Type*} [Field K] |
| 56 | |
| 57 | /-- Once the relative norm is a unit in the actual local coefficient ring, |
| 58 | division by it still leaves a literal level multiple from that ring. -/ |
| 59 | theorem local_reflection_norm_division_is_level_multiple |
| 60 | {R : Type*} [CommRing R] [IsLocalRing R] (f : R →+* K) |
| 61 | (ℓ q s t r P : R) (hℓ : ℓ ∈ IsLocalRing.maximalIdeal R) : |
| 62 | ∃ a : R, f ℓ * f P / f (reflectionNormDenominator ℓ q s t r) = f (ℓ * a) := by |
| 63 | have hunit := reflectionNormDenominator_isUnit ℓ q s t r hℓ |
| 64 | have hnonzero : f (reflectionNormDenominator ℓ q s t r) ≠ 0 := (hunit.map f).ne_zero |
| 65 | obtain ⟨u, hu⟩ := hunit |
| 66 | have hinv : f (↑(u⁻¹) : R) * f (reflectionNormDenominator ℓ q s t r) = 1 := by |
| 67 | rw [← hu, ← map_mul, Units.inv_mul, map_one] |
| 68 | refine ⟨P * (↑(u⁻¹) : R), (div_eq_iff hnonzero).mpr ?_⟩ |
| 69 | simp only [map_mul, mul_assoc, hinv, mul_one] |
| 70 | |
| 71 | /-- The coefficient of `r_(w+m*c) * r_w - 1`, after substituting |
| 72 | `m = level * norm(w)^2`, is a level multiple with only the relative |
| 73 | norm denominator left. -/ |
| 74 | theorem forwardReflectionDifference_eq_level_multiple |
| 75 | (ℓ q a c p d s t r : K) (hq : q ≠ 0) |
| 76 | (hD : reflectionNormDenominator ℓ q s t r ≠ 0) : |
| 77 | let m := ℓ * q ^ 2; |
| 78 | let Q := q + m * (s + t) + m ^ 2 * r; |
| 79 | -2 * (a + m * c) * (p + m * d) / Q - 2 * a * p / q + |
| 80 | 4 * (a + m * c) * (q + m * s) * p / (Q * q) = |
| 81 | ℓ * forwardReflectionDifferencePolynomial q m a c p d s t r / |
| 82 | reflectionNormDenominator ℓ q s t r := by |
| 83 | dsimp only |
| 84 | simp only [perturbed_reflection_norm_factor] |
| 85 | field_simp [hq, hD] |
| 86 | unfold reflectionNormDenominator forwardReflectionDifferencePolynomial |
| 87 | ring |
| 88 | |
| 89 | /-- The inverse product has the same denominator control. -/ |
| 90 | theorem reverseReflectionDifference_eq_level_multiple |
| 91 | (ℓ q a c p d s t r : K) (hq : q ≠ 0) |
| 92 | (hD : reflectionNormDenominator ℓ q s t r ≠ 0) : |
| 93 | let m := ℓ * q ^ 2; |
| 94 | let Q := q + m * (s + t) + m ^ 2 * r; |
| 95 | -2 * a * p / q - 2 * (a + m * c) * (p + m * d) / Q + |
| 96 | 4 * a * (q + m * t) * (p + m * d) / (q * Q) = |
| 97 | ℓ * reverseReflectionDifferencePolynomial q m a c p d s t r / |
| 98 | reflectionNormDenominator ℓ q s t r := by |
| 99 | dsimp only |
| 100 | simp only [perturbed_reflection_norm_factor] |
| 101 | field_simp [hq, hD] |
| 102 | unfold reflectionNormDenominator reverseReflectionDifferencePolynomial |
| 103 | ring |
| 104 | |
| 105 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ReflectionCongruenceCoefficients |