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.Analysis.DifferentialForms.Manifold.SquareZeroD |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 3 | import Mathlib.Algebra.Homology.ShortComplex.ModuleCat |
| 4 | import Mathlib.Algebra.Homology.ShortComplex.HomologicalComplex |
| 5 | |
| 6 | /-! # De Rham -/ |
| 7 | |
| 8 | namespace OAI.Analysis.DifferentialForms.Manifold.DeRham |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # The complex de Rham complex of a real normed space |
| 14 | |
| 15 | Its degree-n terms are actual smooth complex-valued real alternating forms, |
| 16 | and its differential is exterior differentiation. The homology construction is |
| 17 | mathlib's categorical kernel/image construction, identified below with its |
| 18 | explicit module quotient. This is a local model; no comparison with singular |
| 19 | cohomology or global manifold chart-gluing theorem is assumed here. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory |
| 23 | |
| 24 | universe u |
| 25 | variable (E : Type u) [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 26 | |
| 27 | /-- The actual de Rham cochain complex with complex coefficients. -/ |
| 28 | def deRhamComplex : CochainComplex (ModuleCat.{u} ℂ) ℕ := |
| 29 | CochainComplex.of (fun n => ModuleCat.of ℂ (Basic.SmoothForm E n)) |
| 30 | (fun _ => ModuleCat.ofHom Basic.SmoothForm.d) |
| 31 | (fun n => ModuleCat.hom_ext (Basic.SmoothForm.d_comp_d (E := E) n)) |
| 32 | |
| 33 | @[simp] |
| 34 | theorem deRhamComplex_X (n : ℕ) : |
| 35 | (deRhamComplex E).X n = ModuleCat.of ℂ (Basic.SmoothForm E n) := rfl |
| 36 | |
| 37 | @[simp] |
| 38 | theorem deRhamComplex_d (n : ℕ) : |
| 39 | (deRhamComplex E).d n (n + 1) = ModuleCat.ofHom |
| 40 | (Basic.SmoothForm.d : Basic.SmoothForm E n →ₗ[ℂ] Basic.SmoothForm E (n + 1)) := by |
| 41 | exact CochainComplex.of_d |
| 42 | (fun k => ModuleCat.of ℂ (Basic.SmoothForm E k)) |
| 43 | (fun k => ModuleCat.ofHom (Basic.SmoothForm.d : |
| 44 | Basic.SmoothForm E k →ₗ[ℂ] Basic.SmoothForm E (k + 1))) n |
| 45 | |
| 46 | /-- The differential in the assembled complex is the given exterior derivative. -/ |
| 47 | @[simp] |
| 48 | theorem deRhamComplex_d_apply (n : ℕ) (ω : Basic.SmoothForm E n) : |
| 49 | (deRhamComplex E).d n (n + 1) ω = Basic.SmoothForm.d ω := by |
| 50 | rw [deRhamComplex_d] |
| 51 | rfl |
| 52 | |
| 53 | /-- Complex de Rham cohomology of this normed-space model. -/ |
| 54 | def deRhamCohomology (n : ℕ) : ModuleCat.{u} ℂ := |
| 55 | (deRhamComplex E).homology n |
| 56 | |
| 57 | /-- The module of cocycles in the actual de Rham cochain complex. -/ |
| 58 | def deRhamCocycles (n : ℕ) : ModuleCat.{u} ℂ := |
| 59 | (deRhamComplex E).cycles n |
| 60 | |
| 61 | /-- The canonical complex-linear map sending a closed form to its cohomology class. -/ |
| 62 | def deRhamClass (n : ℕ) : deRhamCocycles E n ⟶ deRhamCohomology E n := |
| 63 | (deRhamComplex E).homologyπ n |
| 64 | |
| 65 | /-- The cocycles are the kernel of the next differential. -/ |
| 66 | def deRhamCocyclesKernelIso (n : ℕ) : |
| 67 | deRhamCocycles E n ≅ |
| 68 | ModuleCat.of ℂ (LinearMap.ker ((deRhamComplex E).sc n).g.hom) := |
| 69 | ((deRhamComplex E).sc n).moduleCatCyclesIso |
| 70 | |
| 71 | /-- The cohomology is precisely the kernel modulo the incoming image, using |
| 72 | mathlib's explicit module model of the categorical homology construction. -/ |
| 73 | def deRhamCohomologyQuotientIso (n : ℕ) : |
| 74 | deRhamCohomology E n ≅ ModuleCat.of ℂ |
| 75 | (LinearMap.ker ((deRhamComplex E).sc n).g.hom ⧸ |
| 76 | LinearMap.range ((deRhamComplex E).sc n).moduleCatToCycles) := |
| 77 | ((deRhamComplex E).sc n).moduleCatHomologyIso |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.Analysis.DifferentialForms.Manifold.DeRham |