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.Integral.ReflectionFractions |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Global.LevelFractions |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ReflectionDeterminant |
| 4 | |
| 5 | /-! # Reflection Congruence -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Global.ReflectionCongruence |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A common positive rational integer, coprime and congruent to one |
| 12 | modulo the level, clears the actual reflection product and its inverse. |
| 13 | Their matrix differences remain literal level multiples of integral |
| 14 | matrices after that common denominator is cleared. |
| 15 | -/ |
| 16 | |
| 17 | variable (E : Type*) [Field E] [NumberField E] [NumberField.IsCMField E] |
| 18 | |
| 19 | theorem integral_two_reflections_global_congruence |
| 20 | (ℓ : ℕ) |
| 21 | (H : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E)) |
| 22 | (hHerm : ∀ i j, (H i j : E) = NumberField.IsCMField.complexConj E (H j i : E)) |
| 23 | (w : Fin 3 → NumberField.RingOfIntegers E) |
| 24 | (z : NumberField.RingOfIntegers E) (c : Fin 3 → E) |
| 25 | (hc : ∀ i, c i ∈ EmbeddedLocalizedVectors.localizedCoefficientRing (ℓ + 1) (z : E)) |
| 26 | (hw : IntegralHermitianCoefficients.integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E)) ≠ 0) |
| 27 | (hv : IntegralHermitianCoefficients.integralMatrixReflectionForm E H |
| 28 | ((fun i => (w i : E)) + ((ℓ : E) * |
| 29 | (IntegralHermitianCoefficients.integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E))) ^ 2) • c) |
| 30 | ((fun i => (w i : E)) + ((ℓ : E) * |
| 31 | (IntegralHermitianCoefficients.integralMatrixReflectionForm E H (fun i => (w i : E)) (fun i => (w i : E))) ^ 2) • c) ≠ 0) : |
| 32 | let σ := (NumberField.IsCMField.complexConj E).toRingHom |
| 33 | let B := IntegralHermitianCoefficients.integralMatrixReflectionForm E H |
| 34 | let w₀ := fun i => (w i : E) |
| 35 | let v := w₀ + ((ℓ : E) * (B w₀ w₀) ^ 2) • c |
| 36 | let g := ReflectionDeterminant.twoHermitianReflections σ B v w₀ hv hw |
| 37 | ∃ D : ℕ, 0 < D ∧ Nat.Coprime D ℓ ∧ (ℓ : ℤ) ∣ (D : ℤ) - 1 ∧ |
| 38 | ∃ F G : Matrix (Fin 3) (Fin 3) (NumberField.RingOfIntegers E), |
| 39 | ∀ i j, |
| 40 | (D : E) * (LinearMap.toMatrix' g.toLinearMap i j - |
| 41 | (1 : Matrix (Fin 3) (Fin 3) E) i j) = (ℓ : E) * (F i j : E) ∧ |
| 42 | (D : E) * (LinearMap.toMatrix' g.symm.toLinearMap i j - |
| 43 | (1 : Matrix (Fin 3) (Fin 3) E) i j) = (ℓ : E) * (G i j : E) := by |
| 44 | classical |
| 45 | dsimp only |
| 46 | obtain ⟨A, hA0, ⟨t, rfl⟩, F, G, hcoeff⟩ := |
| 47 | Integral.ReflectionFractions.integral_two_reflections_common_fraction E ℓ H hHerm w z c hc hw hv |
| 48 | have ht0 : (1 + (ℓ : NumberField.RingOfIntegers E) * t) ≠ 0 := by |
| 49 | intro h |
| 50 | apply hA0 |
| 51 | exact congrArg (fun a : NumberField.RingOfIntegers E => (a : E)) h |
| 52 | let P : Bool × Fin 3 × Fin 3 → NumberField.RingOfIntegers E := |
| 53 | fun k => if k.1 then F k.2.1 k.2.2 else G k.2.1 k.2.2 |
| 54 | obtain ⟨D, hD, hcoprime, hcongr, R, hR⟩ := |
| 55 | LevelFractions.integral_level_fractions_common_denominator E ℓ t ht0 P |
| 56 | refine ⟨D, hD, hcoprime, hcongr, |
| 57 | (fun i j => R (true, i, j)), (fun i j => R (false, i, j)), ?_⟩ |
| 58 | intro i j |
| 59 | constructor |
| 60 | · rw [(hcoeff i j).1] |
| 61 | exact hR (true, i, j) |
| 62 | · rw [ReflectionDeterminant.twoHermitianReflections_symm, (hcoeff i j).2] |
| 63 | exact hR (false, i, j) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Global.ReflectionCongruence |