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.Single.ColumnCycleCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.TopRowEdge |
| 3 | import Mathlib.Algebra.Group.Int.Units |
| 4 | |
| 5 | /-! # Column Top Edge -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Single.ColumnTopEdge |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original top-row edge is inverse to single-column concentration |
| 12 | with exactly the total-flip sign in bidegree (c,c). -/ |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | universe u v |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClasses OAI.NumberTheory.PadicHodge.IntegralComparison.Module.CochainClassNaturality |
| 19 | variable {R : Type u} [CommRing R] |
| 20 | (B : HomologicalComplex₂ (ModuleCat.{v} R) (.up ℕ) (.up ℕ)) |
| 21 | (c : ℕ) (hB : ∀ p q, q ≠ c → IsZero ((B.flip.X p).X q)) |
| 22 | (outgoing : ∀ q, (B.d c (c+1)).f q = 0) |
| 23 | local notation "T" => B.total (ComplexShape.up ℕ) |
| 24 | local notation "σ" => ComplexShape.σ (ComplexShape.up ℕ) (ComplexShape.up ℕ) (ComplexShape.up ℕ) c c |
| 25 | local notation "e" => OAI.NumberTheory.PadicHodge.IntegralComparison.Single.ColumnCycleCoordinates.homologyIso B c hB c |
| 26 | |
| 27 | /-- Exact cycle coordinate of the row inclusion, retaining the flip sign. -/ |
| 28 | theorem cycle_coordinates : |
| 29 | ModuleCat.ofHom (X := ModuleCat.of R (Module.CochainClasses.cycles (B.X c) c)) |
| 30 | (Y := ModuleCat.of R (Module.CochainClasses.cycles T (c+c))) (TopRowEdge.cycleMap B c outgoing c) ≫ |
| 31 | (Module.CochainClassNaturality.cyclesIso T (c+c)).hom ≫ |
| 32 | ColumnCycleCoordinates.cycleProjection B c hB c = |
| 33 | σ • (Module.CochainClassNaturality.cyclesIso (B.X c) c).hom := by |
| 34 | apply (cancel_mono ((B.X c).iCycles c)).mp |
| 35 | have hi : |
| 36 | ModuleCat.ofHom (X := ModuleCat.of R (Module.CochainClasses.cycles (B.X c) c)) |
| 37 | (Y := ModuleCat.of R (Module.CochainClasses.cycles T (c+c))) (TopRowEdge.cycleMap B c outgoing c) ≫ |
| 38 | (Module.CochainClassNaturality.cyclesIso T (c+c)).hom ≫ (T).iCycles (c+c) = |
| 39 | (Module.CochainClassNaturality.cyclesIso (B.X c) c).hom ≫ (B.X c).iCycles c ≫ |
| 40 | B.ιTotal (.up ℕ) c c (c+c) rfl := by |
| 41 | rw [Module.CochainClassNaturality.cyclesIso_hom_i, ← Category.assoc, Module.CochainClassNaturality.cyclesIso_hom_i] |
| 42 | apply ModuleCat.hom_ext |
| 43 | apply LinearMap.ext |
| 44 | intro z |
| 45 | rfl |
| 46 | rw [Category.assoc, Category.assoc, |
| 47 | ColumnCycleCoordinates.cycleProjection_i] |
| 48 | rw [← Category.assoc _ _ (σ • AbelianSingleRowTotal.projection B c c (c+c) _), |
| 49 | ← Category.assoc _ _ (σ • AbelianSingleRowTotal.projection B c c (c+c) _), hi] |
| 50 | simp only [Units.smul_def, Category.assoc, Preadditive.comp_zsmul, |
| 51 | Preadditive.zsmul_comp] |
| 52 | simp [AbelianSingleRowTotal.projection] |
| 53 | |
| 54 | /-- Concentration of a top-row class is its original class with the flip sign. -/ |
| 55 | theorem class_coordinates (z : Module.CochainClasses.cycles (B.X c) c) : |
| 56 | (e).hom (Module.CochainClasses.classMap T (c+c) (TopRowEdge.cycleMap B c outgoing c z)) = |
| 57 | σ • Module.CochainClasses.classMap (B.X c) c z := by |
| 58 | have he : |
| 59 | ModuleCat.ofHom (X := ModuleCat.of R (Module.CochainClasses.cycles T (c+c))) |
| 60 | (Y := (T).homology (c+c)) (Module.CochainClasses.classMap T (c+c)) ≫ (e).hom = |
| 61 | (Module.CochainClassNaturality.cyclesIso T (c+c)).hom ≫ |
| 62 | ColumnCycleCoordinates.cycleProjection B c hB c ≫ |
| 63 | (B.X c).homologyπ c := by |
| 64 | rw [Module.CochainClassNaturality.classMap_eq, Category.assoc, |
| 65 | ColumnCycleCoordinates.homologyπ_coordinate] |
| 66 | have h := congrArg (fun a => |
| 67 | ModuleCat.ofHom (X := ModuleCat.of R (Module.CochainClasses.cycles (B.X c) c)) |
| 68 | (Y := ModuleCat.of R (Module.CochainClasses.cycles T (c+c))) (TopRowEdge.cycleMap B c outgoing c) ≫ a) he |
| 69 | have hc := congrArg (fun a => a ≫ (B.X c).homologyπ c) |
| 70 | (cycle_coordinates B c hB outgoing) |
| 71 | rw [Category.assoc] at hc |
| 72 | have h' := h.trans hc |
| 73 | have hz := ConcreteCategory.congr_hom h' z |
| 74 | simpa only [Units.smul_def, Category.assoc, Preadditive.zsmul_comp, |
| 75 | ← Module.CochainClassNaturality.classMap_eq, ConcreteCategory.comp_apply, ModuleCat.hom_zsmul, ModuleCat.hom_ofHom, |
| 76 | LinearMap.comp_apply, LinearMap.smul_apply] using hz |
| 77 | |
| 78 | theorem map_apply (x : (B.X c).homology c) : |
| 79 | (e).hom (TopRowEdge.map B c outgoing c x) = σ • x := by |
| 80 | obtain ⟨z, rfl⟩ := Module.CochainClasses.classMap_surjective (B.X c) c x |
| 81 | rw [TopRowEdge.map_class] |
| 82 | exact class_coordinates B c hB outgoing z |
| 83 | |
| 84 | private theorem sign_self : σ * σ = 1 := by |
| 85 | apply Units.ext |
| 86 | exact Int.isUnit_mul_self (σ).isUnit |
| 87 | |
| 88 | theorem inv_apply (x : (B.X c).homology c) : |
| 89 | (e).inv x = σ • TopRowEdge.map B c outgoing c x := by |
| 90 | apply (ModuleCat.mono_iff_injective (e).hom).mp inferInstance |
| 91 | rw [Iso.inv_hom_id_apply] |
| 92 | simp only [Units.smul_def, map_zsmul] |
| 93 | rw [map_apply] |
| 94 | change x = σ • (σ • x) |
| 95 | rw [smul_smul, sign_self, one_smul] |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Single.ColumnTopEdge |