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 |
| 2 | |
| 3 | /-! # Intrinsic Rational Phase Arithmetic -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Kernel.IntrinsicRationalPhaseArithmetic.Intrinsic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Denominator clearing for a rational bilinear form on a finite |
| 10 | integer lattice. A sufficiently deep lattice translation changes its |
| 11 | quadratic value by an even integer. -/ |
| 12 | |
| 13 | open scoped Classical BigOperators |
| 14 | |
| 15 | theorem finite_denominator {I : Type} [Fintype I] (a : I → ℚ) : |
| 16 | ∃ D : ℕ, 0 < D ∧ ∀ i, ∃ z : ℤ, (D : ℚ) * a i = z := by |
| 17 | let D := ∏ i, (a i).den |
| 18 | refine ⟨D, Finset.prod_pos (fun i _ => (a i).den_pos), ?_⟩ |
| 19 | intro i |
| 20 | obtain ⟨m,hm⟩ : (a i).den ∣ D := Finset.dvd_prod_of_mem _ (Finset.mem_univ i) |
| 21 | refine ⟨(m : ℤ) * (a i).num, ?_⟩ |
| 22 | calc |
| 23 | (D : ℚ) * a i = (m : ℚ) * ((a i).den * a i) := by rw [hm, Nat.cast_mul]; ring |
| 24 | _ = _ := by rw [(a i).den_mul_eq_num]; push_cast; rfl |
| 25 | |
| 26 | theorem bilinear_basis_expansion {I V : Type} [Fintype I] |
| 27 | [AddCommGroup V] (b : Module.Basis I ℤ V) |
| 28 | (B : V →ₗ[ℤ] V →ₗ[ℤ] ℚ) (u v : V) : |
| 29 | B u v = ∑ i, ∑ j, (b.repr u i : ℚ) * (b.repr v j : ℚ) * B (b i) (b j) := by |
| 30 | calc |
| 31 | B u v = B (∑ i, b.repr u i • b i) (∑ j, b.repr v j • b j) := by |
| 32 | rw [b.sum_repr, b.sum_repr] |
| 33 | _ = _ := by |
| 34 | simp only [map_sum, LinearMap.sum_apply, map_smul, LinearMap.smul_apply, |
| 35 | zsmul_eq_mul, Finset.mul_sum] |
| 36 | conv_lhs => rw [Finset.sum_comm] |
| 37 | apply Finset.sum_congr rfl |
| 38 | intro i _ |
| 39 | apply Finset.sum_congr rfl |
| 40 | intro j _ |
| 41 | ring |
| 42 | |
| 43 | theorem bilinear_integer_denominator {I V : Type} [Fintype I] |
| 44 | [AddCommGroup V] (b : Module.Basis I ℤ V) |
| 45 | (B : V →ₗ[ℤ] V →ₗ[ℤ] ℚ) : |
| 46 | ∃ D : ℕ, 0 < D ∧ ∀ u v : V, ∃ z : ℤ, (D : ℚ) * B u v = z := by |
| 47 | obtain ⟨D,hD,hcoeff⟩ := finite_denominator (fun ij : I × I => B (b ij.1) (b ij.2)) |
| 48 | choose c hc using hcoeff |
| 49 | refine ⟨D,hD,?_⟩ |
| 50 | intro u v |
| 51 | refine ⟨∑ i, ∑ j, b.repr u i * b.repr v j * c (i,j), ?_⟩ |
| 52 | rw [bilinear_basis_expansion b B u v, Finset.mul_sum] |
| 53 | simp only [Finset.mul_sum, Int.cast_sum, Int.cast_mul] |
| 54 | apply Finset.sum_congr rfl |
| 55 | intro i _ |
| 56 | apply Finset.sum_congr rfl |
| 57 | intro j _ |
| 58 | calc |
| 59 | (D : ℚ) * ((b.repr u i : ℚ) * (b.repr v j : ℚ) * B (b i) (b j)) = |
| 60 | (b.repr u i : ℚ) * (b.repr v j : ℚ) * ((D : ℚ) * B (b i) (b j)) := by ring |
| 61 | _ = _ := by rw [hc (i,j)] |
| 62 | |
| 63 | theorem quadratic_even_difference {V : Type} [AddCommGroup V] |
| 64 | (B : V →ₗ[ℤ] V →ₗ[ℤ] ℚ) (D : ℕ) |
| 65 | (hD : ∀ u v : V, ∃ z : ℤ, (D : ℚ) * B u v = z) (u v : V) : |
| 66 | ∃ z : ℤ, B (u + (2 * (D : ℤ)) • v) (u + (2 * (D : ℤ)) • v) - B u u = 2 * z := by |
| 67 | obtain ⟨a,ha⟩ := hD u v |
| 68 | obtain ⟨b,hb⟩ := hD v u |
| 69 | obtain ⟨c,hc⟩ := hD v v |
| 70 | refine ⟨a + b + 2 * (D : ℤ) * c, ?_⟩ |
| 71 | simp only [map_add, LinearMap.add_apply, map_smul, LinearMap.smul_apply, |
| 72 | zsmul_eq_mul, Int.cast_add, Int.cast_mul, Int.cast_ofNat, Int.cast_natCast] |
| 73 | linear_combination 2 * ha + 2 * hb + 4 * (D : ℚ) * hc |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.RepresentationTheory.Theta.Kernel.IntrinsicRationalPhaseArithmetic.Intrinsic |