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 OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulCone |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.GeneratorMatrix |
| 3 | import Mathlib.Data.List.OfFn |
| 4 | |
| 5 | /-! # Koszul Cone -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.KoszulCone |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The last-coordinate decomposition of the finite exterior Koszul complex. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.HomologicalComplex |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Exterior.KoszulComplex OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.GeneratorMatrix |
| 19 | |
| 20 | universe u |
| 21 | variable (R : Type u) [CommRing R] (n : ℕ) |
| 22 | |
| 23 | def includeInit : (Fin n → R) →ₗ[R] (Fin (n + 1) → R) := |
| 24 | LinearMap.pi (Fin.lastCases 0 (fun i => LinearMap.proj i)) |
| 25 | |
| 26 | def projectInit : (Fin (n + 1) → R) →ₗ[R] (Fin n → R) := |
| 27 | LinearMap.pi (fun i => LinearMap.proj i.castSucc) |
| 28 | |
| 29 | def lastVector : Fin (n + 1) → R := Pi.single (Fin.last n) 1 |
| 30 | |
| 31 | @[simp] theorem includeInit_castSucc (v : Fin n → R) (i : Fin n) : |
| 32 | includeInit R n v i.castSucc = v i := by simp [includeInit] |
| 33 | |
| 34 | @[simp] theorem includeInit_last (v : Fin n → R) : |
| 35 | includeInit R n v (Fin.last n) = 0 := by simp [includeInit] |
| 36 | |
| 37 | @[simp] theorem projectInit_apply (v : Fin (n + 1) → R) (i : Fin n) : |
| 38 | projectInit R n v i = v i.castSucc := rfl |
| 39 | |
| 40 | @[simp] theorem lastVector_last : lastVector R n (Fin.last n) = 1 := by |
| 41 | simp [lastVector] |
| 42 | |
| 43 | @[simp] theorem lastVector_castSucc (i : Fin n) : lastVector R n i.castSucc = 0 := by |
| 44 | simp [lastVector, ne_of_lt i.castSucc_lt_last] |
| 45 | |
| 46 | theorem project_include : (projectInit R n).comp (includeInit R n) = LinearMap.id := by |
| 47 | ext v i |
| 48 | simp |
| 49 | |
| 50 | theorem include_project : (includeInit R n).comp (projectInit R n) = |
| 51 | Exterior.CoordinateSplit.projection R (Fin (n + 1) → R) |
| 52 | (LinearMap.proj (Fin.last n)) (lastVector R n) := by |
| 53 | apply LinearMap.ext |
| 54 | intro v |
| 55 | funext i |
| 56 | refine Fin.lastCases ?_ (fun j => ?_) i |
| 57 | · simp [Exterior.CoordinateSplit.projection_apply] |
| 58 | · simp [Exterior.CoordinateSplit.projection_apply] |
| 59 | |
| 60 | theorem last_include : (LinearMap.proj (Fin.last n)).comp (includeInit R n) = 0 := by |
| 61 | ext v |
| 62 | simp |
| 63 | |
| 64 | theorem project_last : projectInit R n (lastVector R n) = 0 := by |
| 65 | funext i |
| 66 | simp |
| 67 | |
| 68 | theorem equation_include (s : Fin (n + 1) → R) : |
| 69 | (Koszul.GeneratorMatrix.equation R s).comp (includeInit R n) = Koszul.GeneratorMatrix.equation R (s ∘ Fin.castSucc) := by |
| 70 | apply LinearMap.ext |
| 71 | intro v |
| 72 | simp [Koszul.GeneratorMatrix.equation_apply, Fin.sum_univ_castSucc] |
| 73 | |
| 74 | theorem equation_last (s : Fin (n + 1) → R) : |
| 75 | Koszul.GeneratorMatrix.equation R s (lastVector R n) = s (Fin.last n) := by |
| 76 | simp [Koszul.GeneratorMatrix.equation_apply, Fin.sum_univ_castSucc] |
| 77 | |
| 78 | def iso (s : Fin (n + 1) → R) : |
| 79 | homotopyCofiber (s (Fin.last n) • |
| 80 | 𝟙 (Exterior.KoszulComplex.complex R (Fin n → R) (Koszul.GeneratorMatrix.equation R (s ∘ Fin.castSucc)))) ≅ |
| 81 | Exterior.KoszulComplex.complex R (Fin (n + 1) → R) (Koszul.GeneratorMatrix.equation R s) := by |
| 82 | rw [← equation_last R n s] |
| 83 | exact Exterior.KoszulCone.iso R (Fin (n + 1) → R) (Koszul.GeneratorMatrix.equation R s) |
| 84 | (LinearMap.proj (Fin.last n)) (lastVector R n) (Fin n → R) |
| 85 | (Koszul.GeneratorMatrix.equation R (s ∘ Fin.castSucc)) (includeInit R n) (projectInit R n) |
| 86 | (equation_include R n s) (project_include R n) (include_project R n) |
| 87 | (lastVector_last R n) (last_include R n) (project_last R n) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.KoszulCone |