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.Mapped.CochainCup |
| 2 | import Mathlib.Algebra.Category.ModuleCat.ChangeOfRingsExact |
| 3 | |
| 4 | /-! # Restrict Scalars Cochain Cup -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.RestrictScalarsCochainCup |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Scalar restriction preserves the actual cochain product and its |
| 11 | canonical categorical cohomology product. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory |
| 14 | |
| 15 | universe u v w |
| 16 | variable (R : Type u) (S : Type v) [CommRing R] [CommRing S] [Algebra R S] |
| 17 | (K : CochainComplex (ModuleCat.{w} S) ℕ) |
| 18 | |
| 19 | local notation "F" => ModuleCat.restrictScalars (algebraMap R S) |
| 20 | local notation "L" => Functor.obj (Functor.mapHomologicalComplex F (ComplexShape.up ℕ)) K |
| 21 | local instance restrictedModule (V : ModuleCat.{w} S) : Module R V := |
| 22 | Module.compHom V (algebraMap R S) |
| 23 | local instance tower (V : ModuleCat.{w} S) : IsScalarTower R S V where |
| 24 | smul_assoc r s x := by rw [Algebra.smul_def]; exact mul_smul _ _ _ |
| 25 | |
| 26 | variable (μ : ∀ i j, K.X i →ₗ[S] K.X j →ₗ[S] K.X (i+j)) |
| 27 | |
| 28 | def pairing (i j : ℕ) : (L).X i →ₗ[R] (L).X j →ₗ[R] (L).X (i+j) := |
| 29 | (μ i j).restrictScalars₁₂ R R |
| 30 | |
| 31 | private theorem cast_eq {i j : ℕ} (h : i=j) (x : K.X i) : |
| 32 | Cochain.CohomologyCup.degreeCast L h x = Cochain.CohomologyCup.degreeCast K h x := by subst j; rfl |
| 33 | |
| 34 | variable (hμ : ∀ i j (x : K.X i) (y : K.X j), |
| 35 | K.d (i+j) (i+j+1) (μ i j x y) = |
| 36 | Cochain.CohomologyCup.cupInto K μ (i+1) j (i+j+1) (by omega) (K.d i (i+1) x) y + |
| 37 | (-1 : ℤ)^i • Cochain.CohomologyCup.cupInto K μ i (j+1) (i+j+1) (by omega) x (K.d j (j+1) y)) |
| 38 | |
| 39 | include hμ in |
| 40 | theorem differential (i j : ℕ) (x : (L).X i) (y : (L).X j) : |
| 41 | (L).d (i+j) (i+j+1) (pairing R S K μ i j x y) = |
| 42 | Cochain.CohomologyCup.cupInto L (pairing R S K μ) (i+1) j (i+j+1) (by omega) ((L).d i (i+1) x) y + |
| 43 | (-1 : ℤ)^i • Cochain.CohomologyCup.cupInto L (pairing R S K μ) i (j+1) (i+j+1) (by omega) x ((L).d j (j+1) y) := by |
| 44 | change K.d (i+j) (i+j+1) (μ i j x y) = |
| 45 | Cochain.CohomologyCup.degreeCast L (by omega : (i+1)+j=i+j+1) (μ (i+1) j (K.d i (i+1) x) y) + |
| 46 | (-1 : ℤ)^i • Cochain.CohomologyCup.degreeCast L (by omega : i+(j+1)=i+j+1) (μ i (j+1) x (K.d j (j+1) y)) |
| 47 | rw [cast_eq, cast_eq] |
| 48 | exact hμ i j x y |
| 49 | |
| 50 | def map (i : ℕ) := Mapped.CochainCup.map F (fun M => AddMonoidHom.id M) K i |
| 51 | |
| 52 | abbrev map_cup := Mapped.CochainCup.map_cup F (fun M => AddMonoidHom.id M) |
| 53 | (fun _ _ => rfl) K μ (pairing R S K μ) hμ (differential R S K μ hμ) |
| 54 | (fun _ _ _ _ => rfl) |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.NumberTheory.PadicHodge.IntegralComparison.RestrictScalarsCochainCup |