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.KoszulResolution |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.DeterminantTransition |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveResolution.Hom |
| 4 | |
| 5 | /-! # Resolution Orientation -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.ResolutionOrientation |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Canonical quotient augmentations make the determinant transition an |
| 12 | identity for the same Ext group, computed with any projective resolution. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.GeneratorMatrix OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.OrientedTopCohomology |
| 20 | Exterior.KoszulResolution DeterminantTransition |
| 21 | |
| 22 | universe u |
| 23 | variable (R : Type u) [CommRing R] |
| 24 | |
| 25 | section Comparison |
| 26 | variable {M : ModuleCat.{u} R} (P Q S : ProjectiveResolution M) |
| 27 | |
| 28 | def comparison (n : ℕ) : |
| 29 | (DualComplexHomology.complex R P.complex).homology n ≅ |
| 30 | (DualComplexHomology.complex R Q.complex).homology n := |
| 31 | IntegralComparison.ProjectiveResolution.Hom.Comparison.homologyIso (ExactModuleDualFunctor.functor R) P Q n |
| 32 | |
| 33 | theorem comparison_hom (n : ℕ) : (comparison R P Q n).hom = |
| 34 | homologyMap (DualComplexHomology.map R (ProjectiveResolution.lift (𝟙 M) Q P)) n := rfl |
| 35 | |
| 36 | theorem dual_map_comp {K L N : ChainComplex (ModuleCat.{u} R) ℕ} |
| 37 | (f : K ⟶ L) (g : L ⟶ N) : DualComplexHomology.map R (f ≫ g) = |
| 38 | DualComplexHomology.map R g ≫ DualComplexHomology.map R f := by |
| 39 | apply HomologicalComplex.Hom.ext |
| 40 | funext n |
| 41 | apply ModuleCat.hom_ext |
| 42 | apply LinearMap.ext |
| 43 | intro a |
| 44 | apply LinearMap.ext |
| 45 | intro x |
| 46 | rfl |
| 47 | |
| 48 | theorem comparison_naturality (a : S.complex ⟶ Q.complex) (ha : a ≫ Q.π = S.π) (n : ℕ) : |
| 49 | (comparison R P Q n).hom ≫ homologyMap (DualComplexHomology.map R a) n = |
| 50 | (comparison R P S n).hom := by |
| 51 | rw [comparison_hom, comparison_hom, ← homologyMap_comp, ← dual_map_comp] |
| 52 | have h : Homotopy (a ≫ ProjectiveResolution.lift (𝟙 M) Q P) |
| 53 | (ProjectiveResolution.lift (𝟙 M) S P) := |
| 54 | ProjectiveResolution.liftHomotopy (𝟙 M) _ _ (by simp [Category.assoc, ha]) (by simp) |
| 55 | exact ((ExactModuleDualFunctor.functor R).mapHomotopy h.op).homologyMap_eq n |
| 56 | |
| 57 | end Comparison |
| 58 | |
| 59 | variable {n : ℕ} (I : Ideal R) (s : Fin n → R) (hs : OrientedTopCohomology.ideal R s = I) |
| 60 | (hreg : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) |
| 61 | |
| 62 | def resolutionAtIdeal : ProjectiveResolution (ModuleCat.of R (R ⧸ I)) where |
| 63 | complex := OrientedTopCohomology.koszul R s |
| 64 | projective m := inferInstance |
| 65 | π := (Exterior.KoszulResolution.resolution R s hreg).π ≫ (ChainComplex.single₀ (ModuleCat R)).map |
| 66 | (Submodule.quotEquivOfEq _ _ hs).toModuleIso.hom |
| 67 | quasiIso := by |
| 68 | have := (Exterior.KoszulResolution.resolution R s hreg).quasiIso |
| 69 | exact quasiIso_comp _ _ |
| 70 | |
| 71 | @[simp] theorem resolutionAtIdeal_π_zero : (resolutionAtIdeal R I s hs hreg).π.f 0 = |
| 72 | ModuleCat.ofHom (I.mkQ.comp (exteriorPower.zeroEquiv R (Fin n → R)).toLinearMap) := by |
| 73 | simp only [resolutionAtIdeal, HomologicalComplex.comp_f, Exterior.KoszulResolution.resolution_π_f_zero, |
| 74 | ChainComplex.single₀_map_f_zero] |
| 75 | apply ModuleCat.hom_ext |
| 76 | apply LinearMap.ext |
| 77 | intro x |
| 78 | rfl |
| 79 | |
| 80 | variable (t : Fin n → R) (ht : OrientedTopCohomology.ideal R t = I) |
| 81 | (htreg : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn t)) |
| 82 | (A : Matrix (Fin n) (Fin n) R) (hA : ∀ i, s i = ∑ j, A i j * t j) |
| 83 | |
| 84 | theorem change_augmentation : |
| 85 | GeneratorMatrix.change R s t A hA ≫ (resolutionAtIdeal R I t ht htreg).π = |
| 86 | (resolutionAtIdeal R I s hs hreg).π := by |
| 87 | apply HomologicalComplex.Hom.ext |
| 88 | funext m |
| 89 | cases m with |
| 90 | | zero => |
| 91 | rw [HomologicalComplex.comp_f, resolutionAtIdeal_π_zero, resolutionAtIdeal_π_zero] |
| 92 | apply ModuleCat.hom_ext |
| 93 | apply LinearMap.ext |
| 94 | intro x |
| 95 | change I.mkQ (exteriorPower.zeroEquiv R _ |
| 96 | (exteriorPower.map 0 (Matrix.toLin' A.transpose) x)) = |
| 97 | I.mkQ (exteriorPower.zeroEquiv R _ x) |
| 98 | exact congrArg I.mkQ (LinearMap.congr_fun |
| 99 | (exteriorPower.zeroEquiv_naturality (Matrix.toLin' A.transpose)) x) |
| 100 | | succ m => |
| 101 | exact (isZero_single_obj_X (.down ℕ) 0 (ModuleCat.of R (R ⧸ I)) (m + 1) (by omega)).eq_of_tgt _ _ |
| 102 | |
| 103 | variable (P : ProjectiveResolution (ModuleCat.of R (R ⧸ I))) |
| 104 | |
| 105 | def purityIso : (DualComplexHomology.complex R P.complex).homology n ≅ |
| 106 | ModuleCat.of R (R ⧸ I) := |
| 107 | comparison R P (resolutionAtIdeal R I s hs hreg) n ≪≫ DeterminantTransition.isoToIdeal R I s hs |
| 108 | |
| 109 | include hA in |
| 110 | theorem purity_transition : (purityIso R I s hs hreg P).hom = |
| 111 | (purityIso R I t ht htreg P).hom ≫ |
| 112 | ModuleCat.ofHom (A.det • (LinearMap.id : (R ⧸ I) →ₗ[R] (R ⧸ I))) := by |
| 113 | have h := comparison_naturality R P (resolutionAtIdeal R I t ht htreg) |
| 114 | (resolutionAtIdeal R I s hs hreg) (GeneratorMatrix.change R s t A hA) |
| 115 | (change_augmentation R I s hs hreg t ht htreg A hA) n |
| 116 | dsimp only [purityIso, Iso.trans_hom] |
| 117 | rw [← h, Category.assoc] |
| 118 | change _ ≫ (homologyMap (DeterminantTransition.dualChange R s t A hA) n ≫ (DeterminantTransition.isoToIdeal R I s hs).hom) = _ |
| 119 | rw [DeterminantTransition.homology_transition R I s t hs ht A hA, ← Category.assoc] |
| 120 | |
| 121 | end |
| 122 | |
| 123 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.ResolutionOrientation |