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.KoszulPartial.Components |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Cech.ComponentSquares |
| 3 | |
| 4 | /-! # Total Map -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.TotalMap |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual mixed Koszul partial-fraction map to the supported |
| 11 | ordered Čech total, with the ordinary total differential sign. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.CategoryTheory.Preadditive Opposite |
| 13 | set_option backward.defeqAttrib.useBackward true |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | universe u |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Fractions OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Differential |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Components OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.CechDifferential |
| 19 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 20 | (R : Type u) [CommRing R] (P : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 21 | {c m : ℕ} (U : ULift.{u} (Fin m) → C) |
| 22 | (s : Fin c → R) (t : Fin m → R) |
| 23 | (ht : ∀ i, IsUnit (algebraMap R (P.obj (op (U i))) (t i.down))) |
| 24 | |
| 25 | abbrev delta (n : ℕ) := ModuleCat.ofHom |
| 26 | (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R (Fractions.ambient R (c := c) (m := m)) (Differential.equation R s t) n).dualMap |
| 27 | abbrev hp (p : ℕ) := Koszul.HomPresheaf.homPresheaf R (Fractions.normal R (c := c)) (Fractions.modules R P) p |
| 28 | abbrev hd (p : ℕ) := Koszul.HomPresheaf.differential R (Fractions.normal R (c := c)) (Fractions.modules R P) |
| 29 | (Koszul.GeneratorMatrix.equation R s) p |
| 30 | |
| 31 | theorem left (n : ℕ) : |
| 32 | Components.component R P U t ht n 0 n (by omega) ≫ ((Components.target R P U s).X 0).d n (n + 1) = |
| 33 | (Components.source R s t).d n (n + 1) ≫ Components.component R P U t ht (n + 1) 0 (n + 1) (by omega) := by |
| 34 | rw [Components.vertical_d, ModuleCat.hom_ext_iff.mpr (Components.source_d R s t n)] |
| 35 | apply Cech.ComponentSquares.vertical U (delta R s t n) (hp R P 0) n |
| 36 | (fun a => ModuleCat.ofHom (Components.coordinateAt R P U t ht n 0 n (by omega) a)) |
| 37 | (fun a => ModuleCat.ofHom (Components.coordinateAt R P U t ht (n + 1) 0 (n + 1) (by omega) a)) |
| 38 | intro a |
| 39 | apply ModuleCat.hom_ext |
| 40 | apply LinearMap.ext |
| 41 | intro φ |
| 42 | apply LinearMap.ext |
| 43 | intro x |
| 44 | simp only [ModuleCat.hom_sum, ModuleCat.hom_zsmul, ModuleCat.hom_comp, ModuleCat.hom_ofHom, |
| 45 | LinearMap.sum_apply, LinearMap.smul_apply, LinearMap.comp_apply] |
| 46 | change (∑ k : Fin (n + 1), (-1 : ℤ) ^ k.val • |
| 47 | (P.map ((AugmentedOrdered.Cech.face U n k).φ a).op).hom.toLinearMap.comp |
| 48 | (Components.coordinateAt R P U t ht n 0 n (by omega) (a.delete k) φ)) x = _ |
| 49 | simp only [LinearMap.sum_apply, LinearMap.smul_apply, LinearMap.comp_apply] |
| 50 | change (∑ k : Fin (n + 1), (-1 : ℤ) ^ k.val • |
| 51 | (P.map ((AugmentedOrdered.Cech.face U n k).φ a).op).hom |
| 52 | (CechDifferential.value R P U t ht 0 n n (by omega) (a.delete k) φ x)) = |
| 53 | CechDifferential.value R P U t ht 0 (n + 1) (n + 1) (by omega) a |
| 54 | (φ.comp (AlgebraicGeometry.Crystalline.Cohomology.ExteriorContractionCoe.ExteriorContraction.contraction R _ (Differential.equation R s t) n)) x |
| 55 | simpa only [← Int.cast_smul_eq_zsmul R, Int.cast_pow, Int.cast_neg, Int.cast_one] using |
| 56 | (Edges.left R s t P U ht n a φ x).symm |
| 57 | |
| 58 | theorem right (n : ℕ) : |
| 59 | Components.component R P U t ht n n 0 (by omega) ≫ ((Components.target R P U s).d n (n + 1)).f 0 = |
| 60 | (Components.source R s t).d n (n + 1) ≫ Components.component R P U t ht (n + 1) (n + 1) 0 (by omega) := by |
| 61 | rw [Components.horizontal_d, ModuleCat.hom_ext_iff.mpr (Components.source_d R s t n)] |
| 62 | apply Cech.ComponentSquares.horizontal U (delta R s t n) (hd R P s n) 0 |
| 63 | (fun a => ModuleCat.ofHom (Components.coordinateAt R P U t ht n n 0 (by omega) a)) |
| 64 | (fun a => ModuleCat.ofHom (Components.coordinateAt R P U t ht (n + 1) (n + 1) 0 (by omega) a)) |
| 65 | intro a |
| 66 | apply ModuleCat.hom_ext |
| 67 | apply LinearMap.ext |
| 68 | intro φ |
| 69 | apply LinearMap.ext |
| 70 | intro x |
| 71 | exact (Edges.right R s t P U ht n a φ x).symm |
| 72 | |
| 73 | end |
| 74 | |
| 75 | end OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.TotalMap |