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.Analysis.InnerProductSpace.PiL2 |
| 2 | |
| 3 | /-! # Positive Hermitian Coordinates -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PositiveHermitianCoordinates |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A positive Hermitian form supplies its own orthonormal coordinates. |
| 10 | The conclusion is purely linear and retains the given form exactly. -/ |
| 11 | |
| 12 | variable {V : Type*} [AddCommGroup V] [Module ℂ V] [Module.Finite ℂ V] |
| 13 | |
| 14 | theorem exists_positiveHermitian_coordinates |
| 15 | (F : V →ₗ[ℂ] V →ₗ⋆[ℂ] ℂ) |
| 16 | (hsym : ∀ x y, F y x = star (F x y)) |
| 17 | (hpos : ∀ x : V, x ≠ 0 → 0 < (F x x).re) |
| 18 | (n : ℕ) (hdim : Module.finrank ℂ V = n) : |
| 19 | ∃ e : V ≃ₗ[ℂ] (Fin n → ℂ), ∀ x y : V, |
| 20 | F x y = ∑ i, e x i * star (e y i) := by |
| 21 | let core : InnerProductSpace.Core ℂ V := { |
| 22 | inner x y := F y x |
| 23 | conj_inner_symm x y := (hsym x y).symm |
| 24 | re_inner_nonneg x := by |
| 25 | by_cases hx : x = 0 |
| 26 | · rw [hx, map_zero] |
| 27 | exact le_rfl |
| 28 | · exact (hpos x hx).le |
| 29 | add_left x y z := (F z).map_add x y |
| 30 | smul_left x y r := (F y).map_smulₛₗ r x |
| 31 | definite x hx := by |
| 32 | by_contra hn |
| 33 | have h := hpos x hn |
| 34 | rw [hx, Complex.zero_re] at h |
| 35 | exact (lt_irrefl 0) h } |
| 36 | let : InnerProductSpace.Core ℂ V := core |
| 37 | let : NormedAddCommGroup V := InnerProductSpace.Core.toNormedAddCommGroup (𝕜 := ℂ) (F := V) |
| 38 | let : InnerProductSpace ℂ V := InnerProductSpace.ofCore core.toCore |
| 39 | let b : OrthonormalBasis (Fin n) ℂ V := |
| 40 | (stdOrthonormalBasis ℂ V).reindex (finCongr hdim) |
| 41 | let e : V ≃ₗ[ℂ] (Fin n → ℂ) := b.toBasis.equivFun |
| 42 | refine ⟨e, ?_⟩ |
| 43 | intro x y |
| 44 | have he (v : V) (i : Fin n) : e v i = inner ℂ (b i) v := |
| 45 | (b.coe_toBasis_repr_apply v i).trans (b.repr_apply_apply v i) |
| 46 | have h : (∑ i, inner ℂ y (b i) * inner ℂ (b i) x) = F x y := |
| 47 | b.sum_inner_mul_inner y x |
| 48 | apply h.symm.trans |
| 49 | apply Finset.sum_congr rfl |
| 50 | intro i _ |
| 51 | rw [← inner_conj_symm y (b i), ← he y i, ← he x i] |
| 52 | exact mul_comm _ _ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.PositiveHermitianCoordinates |