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 Graph Projector -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Theta.Kernel.IntrinsicGraphProjector.Intrinsic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A self-adjoint phase-space projector preserving a Gaussian graph |
| 10 | is the cotangent projector when the quadratic form splits along its |
| 11 | position projector. -/ |
| 12 | |
| 13 | open scoped Classical _root_.Matrix |
| 14 | |
| 15 | variable {I k : Type} [Fintype I] [DecidableEq I] [Field k] |
| 16 | |
| 17 | def phasePairing (x y : (I ⊕ I) → k) : k := |
| 18 | (fun i => x (.inl i)) ⬝ᵥ (fun i => y (.inr i)) - |
| 19 | (fun i => x (.inr i)) ⬝ᵥ (fun i => y (.inl i)) |
| 20 | |
| 21 | theorem projector_on_momenta (E : ((I ⊕ I) → k) →ₗ[k] ((I ⊕ I) → k)) |
| 22 | (S : Matrix I I k) |
| 23 | (hE : ∀ x y, phasePairing (E x) y = phasePairing x (E y)) |
| 24 | (hpos : ∀ x i, E x (.inl i) = S.mulVec (fun j => x (.inl j)) i) |
| 25 | (p : I → k) : E (Sum.elim (0 : I → k) p) = Sum.elim (0 : I → k) (Sᵀ.mulVec p) := by |
| 26 | funext i |
| 27 | cases i with |
| 28 | | inl i => |
| 29 | rw [hpos] |
| 30 | exact congrFun (Matrix.mulVec_zero S) i |
| 31 | | inr i => |
| 32 | have he := hE (Sum.elim (0 : I → k) p) (Sum.elim (Pi.single i 1) (0 : I → k)) |
| 33 | change (fun j => E (Sum.elim (0 : I → k) p) (.inl j)) ⬝ᵥ (0 : I → k) - |
| 34 | (fun j => E (Sum.elim (0 : I → k) p) (.inr j)) ⬝ᵥ Pi.single i 1 = |
| 35 | (0 : I → k) ⬝ᵥ (fun j => E (Sum.elim (Pi.single i 1) (0 : I → k)) (.inr j)) - |
| 36 | p ⬝ᵥ (fun j => E (Sum.elim (Pi.single i 1) (0 : I → k)) (.inl j)) at he |
| 37 | simp only [zero_dotProduct,dotProduct_zero,zero_sub] at he |
| 38 | have hq : (fun j => E (Sum.elim (Pi.single i 1) (0 : I → k)) (.inl j)) = S.mulVec (Pi.single i 1) := |
| 39 | funext (hpos (Sum.elim (Pi.single i 1) (0 : I → k))) |
| 40 | rw [hq,← Matrix.dotProduct_transpose_mulVec S (Pi.single i 1) p, |
| 41 | dotProduct_single,single_dotProduct,mul_one,one_mul] at he |
| 42 | exact neg_injective he |
| 43 | |
| 44 | theorem graph_projector_cotangent (E : ((I ⊕ I) → k) →ₗ[k] ((I ⊕ I) → k)) |
| 45 | (S Z : Matrix I I k) |
| 46 | (hE : ∀ x y, phasePairing (E x) y = phasePairing x (E y)) |
| 47 | (hpos : ∀ x i, E x (.inl i) = S.mulVec (fun j => x (.inl j)) i) |
| 48 | (hgraph : ∀ q, E (Sum.elim q (Z.mulVec q)) = Sum.elim (S.mulVec q) (Z.mulVec (S.mulVec q))) |
| 49 | (hZS : Z * S = Sᵀ * Z) (x : (I ⊕ I) → k) : |
| 50 | E x = Sum.elim (S.mulVec (fun i => x (.inl i))) (Sᵀ.mulVec (fun i => x (.inr i))) := by |
| 51 | let q : I → k := fun i => x (.inl i) |
| 52 | let p : I → k := fun i => x (.inr i) |
| 53 | have hx : x = Sum.elim q (Z.mulVec q) + Sum.elim (0 : I → k) (p - Z.mulVec q) := by |
| 54 | funext i |
| 55 | cases i <;> simp [q,p] |
| 56 | have hcomm : Z.mulVec (S.mulVec q) = Sᵀ.mulVec (Z.mulVec q) := by |
| 57 | rw [Matrix.mulVec_mulVec,Matrix.mulVec_mulVec,hZS] |
| 58 | have he : E x = E (Sum.elim q (Z.mulVec q)) + E (Sum.elim (0 : I → k) (p - Z.mulVec q)) := |
| 59 | (congrArg E hx).trans (E.map_add _ _) |
| 60 | rw [he,hgraph,projector_on_momenta E S hE hpos] |
| 61 | funext i |
| 62 | cases i with |
| 63 | | inl i => simp [q,p] |
| 64 | | inr i => |
| 65 | change Z.mulVec (S.mulVec q) i + Sᵀ.mulVec (p - Z.mulVec q) i = Sᵀ.mulVec p i |
| 66 | rw [hcomm,Matrix.mulVec_sub] |
| 67 | simp |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.RepresentationTheory.Theta.Kernel.IntrinsicGraphProjector.Intrinsic |