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.Koszul.ResidueHomology |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Resolution |
| 3 | |
| 4 | /-! # Normal Purity -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.NormalPurity |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The canonical comparison to the original normal Koszul resolution, |
| 11 | followed by its cochain residue, is the previously defined oriented purity. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | universe u |
| 19 | variable (R : Type u) [CommRing R] {c : ℕ} (s : Fin c → R) |
| 20 | (hreg : RingTheory.Sequence.IsWeaklyRegular R (List.ofFn s)) |
| 21 | |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.OrientedTopCohomology OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.ResolutionOrientation |
| 23 | |
| 24 | theorem augmentation : |
| 25 | (ResolutionOrientation.resolutionAtIdeal R (OrientedTopCohomology.ideal R s) s rfl hreg).π = |
| 26 | (KoszulPartial.Resolution.normalResolution R s hreg).π := by |
| 27 | apply HomologicalComplex.Hom.ext |
| 28 | funext i |
| 29 | cases i with |
| 30 | | zero => |
| 31 | rw [ResolutionOrientation.resolutionAtIdeal_π_zero, Exterior.KoszulResolution.resolution_π_f_zero] |
| 32 | rfl |
| 33 | | succ i => |
| 34 | exact (isZero_single_obj_X (.down ℕ) 0 (ModuleCat.of R (R ⧸ OrientedTopCohomology.ideal R s)) |
| 35 | (i+1) (by omega)).eq_of_tgt _ _ |
| 36 | |
| 37 | variable (P : ProjectiveResolution (ModuleCat.of R (R ⧸ OrientedTopCohomology.ideal R s))) |
| 38 | |
| 39 | theorem comparison_eq : |
| 40 | (ResolutionOrientation.comparison R P (KoszulPartial.Resolution.normalResolution R s hreg) c).hom = |
| 41 | (ResolutionOrientation.comparison R P (ResolutionOrientation.resolutionAtIdeal R (OrientedTopCohomology.ideal R s) s rfl hreg) c).hom := by |
| 42 | have h := ResolutionOrientation.comparison_naturality R P |
| 43 | (ResolutionOrientation.resolutionAtIdeal R (OrientedTopCohomology.ideal R s) s rfl hreg) |
| 44 | (KoszulPartial.Resolution.normalResolution R s hreg) |
| 45 | (𝟙 _) (by simpa only [Category.id_comp] using augmentation R s hreg) c |
| 46 | have hid : DualComplexHomology.map R |
| 47 | (𝟙 (OrientedTopCohomology.koszul R s)) = 𝟙 _ := by |
| 48 | apply HomologicalComplex.Hom.ext |
| 49 | funext i |
| 50 | apply ModuleCat.hom_ext |
| 51 | apply LinearMap.ext |
| 52 | intro a |
| 53 | apply LinearMap.ext |
| 54 | intro x |
| 55 | rfl |
| 56 | erw [hid, homologyMap_id, Category.comp_id] at h |
| 57 | exact h.symm |
| 58 | |
| 59 | def map : DualComplexHomology.complex R P.complex ⟶ |
| 60 | (single (ModuleCat R) (.up ℕ) c).obj (ModuleCat.of R (R ⧸ OrientedTopCohomology.ideal R s)) := |
| 61 | DualComplexHomology.map R |
| 62 | (ProjectiveResolution.lift (𝟙 _) (KoszulPartial.Resolution.normalResolution R s hreg) P) ≫ |
| 63 | ResidueHomology.map R s |
| 64 | |
| 65 | theorem homology : homologyMap (map R s hreg P) c ≫ |
| 66 | (singleObjHomologySelfIso (.up ℕ) c (ModuleCat.of R (R ⧸ OrientedTopCohomology.ideal R s))).hom = |
| 67 | (ResolutionOrientation.purityIso R (OrientedTopCohomology.ideal R s) s rfl hreg P).hom := by |
| 68 | rw [map, homologyMap_comp, Category.assoc, ResidueHomology.homology] |
| 69 | change (ResolutionOrientation.comparison R P (KoszulPartial.Resolution.normalResolution R s hreg) c).hom ≫ |
| 70 | (OrientedTopCohomology.iso R s).hom = _ |
| 71 | rw [comparison_eq] |
| 72 | change _ = (ResolutionOrientation.comparison R P (ResolutionOrientation.resolutionAtIdeal R (OrientedTopCohomology.ideal R s) s rfl hreg) c).hom ≫ |
| 73 | ((OrientedTopCohomology.iso R s).hom ≫ |
| 74 | (Submodule.quotEquivOfEq (OrientedTopCohomology.ideal R s) (OrientedTopCohomology.ideal R s) rfl).toModuleIso.hom) |
| 75 | have he : (Submodule.quotEquivOfEq (OrientedTopCohomology.ideal R s) (OrientedTopCohomology.ideal R s) rfl).toModuleIso.hom = 𝟙 _ := by |
| 76 | apply ModuleCat.hom_ext |
| 77 | apply LinearMap.ext |
| 78 | intro x |
| 79 | obtain ⟨x, rfl⟩ := Submodule.mkQ_surjective (OrientedTopCohomology.ideal R s) x |
| 80 | rfl |
| 81 | erw [he, Category.comp_id] |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.NormalPurity |