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.FormalGeometry.Completion.NonnegativeQuadraticMk |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.CubicalBilinear |
| 3 | import Mathlib.LinearAlgebra.QuadraticForm.Basic |
| 4 | |
| 5 | /-! # Nonnegative Quadratic Bilinear -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The parallelogram identity supplies the actual bilinear polarization |
| 12 | of each nonnegative quadratic coefficient in the Hilbert filtration. -/ |
| 13 | |
| 14 | universe u |
| 15 | variable {G : Type u} [AddCommGroup G] (q : NonnegativeQuadraticMk.Construction.NonnegativeQuadratic G) |
| 16 | |
| 17 | theorem NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.cube (x y z : G) : |
| 18 | q.value (x + y + z) + q.value x + q.value y + q.value z = |
| 19 | q.value (x + y) + q.value (x + z) + q.value (y + z) := by |
| 20 | have h₁ := q.parallelogram (x + y) z |
| 21 | have h₂ := q.parallelogram (x + z) y |
| 22 | have h₃ := q.parallelogram x (y - z) |
| 23 | have h₄ := q.parallelogram y z |
| 24 | have hxyz : x + z + y = x + y + z := by abel |
| 25 | have hxm : x + z - y = x - (y - z) := by abel |
| 26 | have hxp : x + (y - z) = x + y - z := by abel |
| 27 | rw [hxyz, hxm] at h₂ |
| 28 | rw [hxp] at h₃ |
| 29 | linarith |
| 30 | |
| 31 | def NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.bilinear : G →ₗ[ℤ] G →ₗ[ℤ] ℚ := CubicalBilinear.Construction.cubicalCrossBilinear q.value q.zero q.cube |
| 32 | |
| 33 | theorem NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.bilinear_apply (x y : G) : q.bilinear x y = q.value (x + y) - q.value x - q.value y := rfl |
| 34 | |
| 35 | theorem NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.bilinear_self (x : G) : q.bilinear x x = 2 * q.value x := by |
| 36 | have h := q.nsmul 2 x |
| 37 | rw [two_nsmul] at h |
| 38 | change q.value (x + x) - q.value x - q.value x = _ |
| 39 | norm_num at h |
| 40 | linarith |
| 41 | |
| 42 | theorem NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.zsmul (n : ℤ) (x : G) : q.value (n • x) = (n : ℚ) ^ 2 * q.value x := by |
| 43 | cases n with |
| 44 | | ofNat n => simpa using q.nsmul n x |
| 45 | | negSucc n => |
| 46 | rw [negSucc_zsmul, q.neg, q.nsmul] |
| 47 | push_cast |
| 48 | ring |
| 49 | |
| 50 | def NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.quadraticMap : QuadraticMap ℤ G ℚ where |
| 51 | toFun := q.value |
| 52 | toFun_smul n x := by |
| 53 | rw [q.zsmul] |
| 54 | simp only [zsmul_eq_mul, Int.cast_mul, pow_two] |
| 55 | exists_companion' := ⟨q.bilinear, fun x y => by rw [NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.bilinear_apply]; ring⟩ |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.FormalGeometry.Completion |