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.LinearAlgebra.TensorProduct.Tower |
| 2 | |
| 3 | /-! # Image Action -/ |
| 4 | |
| 5 | namespace OAI.RepresentationTheory.Hecke.ImageAction.SphericalIntrinsic |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Restrict an actual linear action to an invariant image. The algebra |
| 10 | laws follow from the intertwining source action and image surjectivity. -/ |
| 11 | |
| 12 | variable {k H S V : Type*} [Field k] [Ring H] [Algebra k H] |
| 13 | [AddCommGroup S] [Module k S] [AddCommGroup V] [Module k V] |
| 14 | (A : H →ₐ[k] Module.End k S) (T : S →ₗ[k] V) |
| 15 | (B : H →ₗ[k] Module.End k V) |
| 16 | (hc : ∀ h s, T (A h s) = B h (T s)) |
| 17 | |
| 18 | def imageOperator (h : H) : Module.End k T.range := |
| 19 | ((B h).comp T.range.subtype).codRestrict T.range (by |
| 20 | rintro ⟨y, s, rfl⟩ |
| 21 | exact ⟨A h s, hc h s⟩) |
| 22 | |
| 23 | theorem imageOperator_apply (h : H) (y : T.range) : |
| 24 | (imageOperator A T B hc h y).val = B h y.val := rfl |
| 25 | |
| 26 | theorem imageOperator_intertwines (h : H) (s : S) : |
| 27 | T.rangeRestrict (A h s) = imageOperator A T B hc h (T.rangeRestrict s) := by |
| 28 | exact Subtype.ext (hc h s) |
| 29 | |
| 30 | def imageAction : H →ₐ[k] Module.End k T.range where |
| 31 | toFun := imageOperator A T B hc |
| 32 | map_zero' := by ext x; exact LinearMap.congr_fun B.map_zero x.val |
| 33 | map_add' h l := by |
| 34 | ext x |
| 35 | exact LinearMap.congr_fun (B.map_add h l) x.val |
| 36 | map_one' := by |
| 37 | ext x |
| 38 | obtain ⟨s, hs⟩ := x.property |
| 39 | change B 1 x.val = x.val |
| 40 | rw [← hs, ← hc, map_one] |
| 41 | rfl |
| 42 | map_mul' h l := by |
| 43 | ext x |
| 44 | obtain ⟨s, hs⟩ := x.property |
| 45 | change B (h * l) x.val = B h (B l x.val) |
| 46 | rw [← hs, ← hc, ← hc, ← hc, map_mul] |
| 47 | rfl |
| 48 | commutes' a := by |
| 49 | ext x |
| 50 | obtain ⟨s, hs⟩ := x.property |
| 51 | change B (algebraMap k H a) x.val = a • x.val |
| 52 | rw [← hs, ← hc, A.commutes] |
| 53 | exact T.map_smul a s |
| 54 | |
| 55 | theorem imageAction_intertwines (h : H) (s : S) : |
| 56 | T.rangeRestrict (A h s) = imageAction A T B hc h (T.rangeRestrict s) := |
| 57 | imageOperator_intertwines A T B hc h s |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.RepresentationTheory.Hecke.ImageAction.SphericalIntrinsic |