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.Algebra.DirectSum.Module |
| 2 | |
| 3 | /-! # Sum Filtration Intersection -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.SumFiltrationIntersection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! # Two filtrations in an internal direct sum intersect in their common component -/ |
| 10 | |
| 11 | universe u v w |
| 12 | |
| 13 | variable {R : Type u} [Ring R] {V : Type v} [AddCommGroup V] [Module R V] |
| 14 | {I : Type w} [DecidableEq I] |
| 15 | |
| 16 | /-- A coordinate outside the selected summands vanishes. -/ |
| 17 | theorem internalSum_coordinate_zero (S : I → Submodule R V) (h : DirectSum.IsInternal S) |
| 18 | (P : I → Prop) (i : I) (hi : ¬ P i) (x : V) (hx : x ∈ ⨆ j, ⨆ (_ : P j), S j) : |
| 19 | (LinearEquiv.ofBijective (DirectSum.coeLinearMap S) h).symm x i = 0 := by |
| 20 | let e := LinearEquiv.ofBijective (DirectSum.coeLinearMap S) h |
| 21 | let π := (DirectSum.component R I (fun j => S j) i).comp e.symm.toLinearMap |
| 22 | have hker : (⨆ j, ⨆ (_ : P j), S j) ≤ LinearMap.ker π := by |
| 23 | refine iSup_le fun j => iSup_le fun hj => ?_ |
| 24 | intro a ha |
| 25 | change e.symm a i = 0 |
| 26 | exact h.ofBijective_coeLinearMap_of_mem_ne (by |
| 27 | intro heq |
| 28 | exact hi (heq ▸ hj)) ha |
| 29 | exact hker hx |
| 30 | |
| 31 | /-- If both selections have only one index in common, their intersection lies in that summand. -/ |
| 32 | theorem internalSum_selected_intersection (S : I → Submodule R V) |
| 33 | (h : DirectSum.IsInternal S) (P Q : I → Prop) (k : I) |
| 34 | (hk : ∀ i, P i → Q i → i = k) : |
| 35 | (⨆ i, ⨆ (_ : P i), S i) ⊓ (⨆ i, ⨆ (_ : Q i), S i) ≤ S k := by |
| 36 | classical |
| 37 | let e := LinearEquiv.ofBijective (DirectSum.coeLinearMap S) h |
| 38 | intro x hx |
| 39 | have hz : ∀ i, i ≠ k → e.symm x i = 0 := by |
| 40 | intro i hik |
| 41 | by_cases hP : P i |
| 42 | · exact internalSum_coordinate_zero S h Q i (fun hQ => hik (hk i hP hQ)) x hx.2 |
| 43 | · exact internalSum_coordinate_zero S h P i hP x hx.1 |
| 44 | have he : e.symm x = DirectSum.of (fun i => S i) k (e.symm x k) := by |
| 45 | apply DirectSum.ext_component R |
| 46 | intro i |
| 47 | change e.symm x i = (DirectSum.of (fun i => S i) k (e.symm x k)) i |
| 48 | by_cases hi : i = k |
| 49 | · subst i |
| 50 | simp only [DirectSum.of_eq_same] |
| 51 | · rw [DirectSum.of_eq_of_ne k i _ hi, hz i hi] |
| 52 | have hxk : x = (e.symm x k : V) := by |
| 53 | exact (e.apply_symm_apply x).symm.trans |
| 54 | ((congrArg (DirectSum.coeLinearMap S) he).trans (DirectSum.coeLinearMap_of S k _)) |
| 55 | exact hxk.symm ▸ (e.symm x k).property |
| 56 | |
| 57 | end |
| 58 | |
| 59 | end OAI.AlgebraicGeometry.ComplexMultiplication.SumFiltrationIntersection |