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.RepresentationTheory.Weil.AdelicSplitting.Integral |
| 2 | |
| 3 | /-! # Integral Squares -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.IntegralSquares.CM |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A square root and its inverse are integral whenever their squares |
| 10 | are integral in the actual finite valuation ring. -/ |
| 11 | |
| 12 | open scoped _root_.NumberField |
| 13 | open OAI.RepresentationTheory.Weil.AdelicSplitting.Integral.Construction |
| 14 | |
| 15 | variable (F : Type*) [Field F] [NumberField F] |
| 16 | (v : IsDedekindDomain.HeightOneSpectrum (𝓞 F)) |
| 17 | |
| 18 | theorem of_square (x : RepresentationTheory.Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Completion F (.inr v)) |
| 19 | (h : x ^ 2 ∈ RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localIntegerRing F (.inr v)) : |
| 20 | x ∈ RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localIntegerRing F (.inr v) := by |
| 21 | change Valued.v x ≤ 1 |
| 22 | change Valued.v (x ^ 2) ≤ 1 at h |
| 23 | rw [map_pow] at h |
| 24 | exact (pow_le_one_iff_of_nonneg zero_le (by decide : (2 : ℕ) ≠ 0)).mp h |
| 25 | |
| 26 | theorem inverse_of_square (x : RepresentationTheory.Weil.AdelicSplitting.ArchimedeanAdeles.Construction.Completion F (.inr v)) {d : F} |
| 27 | (hx : x ^ 2 = RepresentationTheory.Weil.AdelicSplitting.ArchimedeanAdeles.Construction.rationalScalar F (.inr v) d) |
| 28 | (h : RepresentationTheory.Weil.AdelicSplitting.ArchimedeanAdeles.Construction.rationalScalar F (.inr v) d⁻¹ ∈ RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localIntegerRing F (.inr v)) : |
| 29 | x⁻¹ ∈ RepresentationTheory.Weil.AdelicSplitting.Integral.Construction.localIntegerRing F (.inr v) := by |
| 30 | apply of_square F v |
| 31 | rw [inv_pow, hx, ← map_inv₀] |
| 32 | exact h |
| 33 | |
| 34 | end |
| 35 | |
| 36 | end OAI.AlgebraicGeometry.HodgeConjecture.HeckeCycles.Local.IntegralSquares.CM |