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.GeometricComparison.Module.TotalOneMap |
| 2 | import OAI.NumberTheory.PadicHodge.GeometricComparison.Module.HomologyBoundaryEquality |
| 3 | import Mathlib.Algebra.Homology.Homotopy |
| 4 | |
| 5 | /-! # Total Homotopy One -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Module.TotalHomotopyOne.ModuleTotalHomotopyHOne |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A horizontal cochain homotopy induces equality on H-one of the |
| 12 | original first-quadrant total complexes, by their actual cycle coordinates. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.GeometricComparison.BicomplexLow.BicomplexLowDegree OAI.NumberTheory.PadicHodge.GeometricComparison.Module.TotalOneCoordinates.ModuleTotalOneCoordinates |
| 17 | universe u v |
| 18 | variable {R : Type u} [CommRing R] |
| 19 | {B C : HomologicalComplex₂ (ModuleCat.{v} R) (.up ℕ) (.up ℕ)} |
| 20 | {f g : B ⟶ C} (h : Homotopy f g) |
| 21 | |
| 22 | theorem row_zero (j : ℕ) (x : (B.X 0).X j) : BicomplexLow.BicomplexLowDegree.component f 0 j x - BicomplexLow.BicomplexLowDegree.component g 0 j x = |
| 23 | ((h.hom 1 0).f j).hom (BicomplexLow.BicomplexLowDegree.horizontal B 0 j x) := by |
| 24 | have hh := h.comm 0 |
| 25 | rw [dNext_eq h.hom (show (ComplexShape.up ℕ).Rel 0 1 from rfl), |
| 26 | prevD_eq_zero h.hom 0 (by simp), add_zero] at hh |
| 27 | have hx := congrArg (fun q => (q.f j).hom x) hh |
| 28 | exact sub_eq_iff_eq_add.mpr hx |
| 29 | |
| 30 | theorem row_one (j : ℕ) (x : (B.X 1).X j) : BicomplexLow.BicomplexLowDegree.component f 1 j x - BicomplexLow.BicomplexLowDegree.component g 1 j x = |
| 31 | ((h.hom 2 1).f j).hom (BicomplexLow.BicomplexLowDegree.horizontal B 1 j x) + |
| 32 | BicomplexLow.BicomplexLowDegree.horizontal C 0 j (((h.hom 1 0).f j).hom x) := by |
| 33 | have hh := h.comm 1 |
| 34 | rw [dNext_eq h.hom (show (ComplexShape.up ℕ).Rel 1 2 from rfl), |
| 35 | prevD_eq h.hom (show (ComplexShape.up ℕ).Rel 0 1 from rfl)] at hh |
| 36 | have hx := congrArg (fun q => (q.f j).hom x) hh |
| 37 | exact sub_eq_iff_eq_add.mpr hx |
| 38 | |
| 39 | variable [B.HasTotal (.up ℕ)] [C.HasTotal (.up ℕ)] |
| 40 | |
| 41 | omit [C.HasTotal (.up ℕ)] in |
| 42 | theorem first_boundary (z : (B.total (.up ℕ)).X 1) |
| 43 | (hz : ((B.total (.up ℕ)).d 1 2).hom z = 0) : |
| 44 | BicomplexLow.BicomplexLowDegree.component f 0 1 (TotalOneCoordinates.ModuleTotalOneCoordinates.first B z) - BicomplexLow.BicomplexLowDegree.component g 0 1 (TotalOneCoordinates.ModuleTotalOneCoordinates.first B z) = |
| 45 | BicomplexLow.BicomplexLowDegree.vertical C 0 0 (((h.hom 1 0).f 0).hom (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z)) := by |
| 46 | rw [row_zero h, TotalOneCoordinates.ModuleTotalOneCoordinates.cycle_mixed B z hz] |
| 47 | exact (congrArg (fun q => q.hom (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z)) ((h.hom 1 0).comm 0 1)).symm |
| 48 | |
| 49 | omit [C.HasTotal (.up ℕ)] in |
| 50 | theorem second_boundary (z : (B.total (.up ℕ)).X 1) |
| 51 | (hz : ((B.total (.up ℕ)).d 1 2).hom z = 0) : |
| 52 | BicomplexLow.BicomplexLowDegree.component f 1 0 (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z) - BicomplexLow.BicomplexLowDegree.component g 1 0 (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z) = |
| 53 | BicomplexLow.BicomplexLowDegree.horizontal C 0 0 (((h.hom 1 0).f 0).hom (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z)) := by |
| 54 | rw [row_one h, TotalOneCoordinates.ModuleTotalOneCoordinates.cycle_second B z hz, map_zero, zero_add] |
| 55 | |
| 56 | theorem boundary (z : (B.total (.up ℕ)).X 1) |
| 57 | (hz : ((B.total (.up ℕ)).d 1 2).hom z = 0) : |
| 58 | ((HomologicalComplex₂.total.map f (.up ℕ)).f 1).hom z - |
| 59 | ((HomologicalComplex₂.total.map g (.up ℕ)).f 1).hom z = |
| 60 | ((C.total (.up ℕ)).d 0 1).hom (TotalOneCoordinates.ModuleTotalOneCoordinates.zero C (((h.hom 1 0).f 0).hom (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z))) := by |
| 61 | calc |
| 62 | _ = TotalOneCoordinates.ModuleTotalOneCoordinates.one C (BicomplexLow.BicomplexLowDegree.component f 0 1 (TotalOneCoordinates.ModuleTotalOneCoordinates.first B z), BicomplexLow.BicomplexLowDegree.component f 1 0 (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z)) - |
| 63 | TotalOneCoordinates.ModuleTotalOneCoordinates.one C (BicomplexLow.BicomplexLowDegree.component g 0 1 (TotalOneCoordinates.ModuleTotalOneCoordinates.first B z), BicomplexLow.BicomplexLowDegree.component g 1 0 (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z)) := by |
| 64 | rw [← TotalOneMap.ModuleTotalOneMap.map_one, ← TotalOneMap.ModuleTotalOneMap.map_one, TotalOneCoordinates.ModuleTotalOneCoordinates.one_coordinates] |
| 65 | _ = TotalOneCoordinates.ModuleTotalOneCoordinates.one C (BicomplexLow.BicomplexLowDegree.component f 0 1 (TotalOneCoordinates.ModuleTotalOneCoordinates.first B z) - BicomplexLow.BicomplexLowDegree.component g 0 1 (TotalOneCoordinates.ModuleTotalOneCoordinates.first B z), |
| 66 | BicomplexLow.BicomplexLowDegree.component f 1 0 (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z) - BicomplexLow.BicomplexLowDegree.component g 1 0 (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z)) := (map_sub (TotalOneCoordinates.ModuleTotalOneCoordinates.one C) _ _).symm |
| 67 | _ = _ := by rw [first_boundary h z hz, second_boundary h z hz, TotalOneCoordinates.ModuleTotalOneCoordinates.boundary] |
| 68 | |
| 69 | include h in |
| 70 | theorem homology : HomologicalComplex.homologyMap (HomologicalComplex₂.total.map f (.up ℕ)) 1 = |
| 71 | HomologicalComplex.homologyMap (HomologicalComplex₂.total.map g (.up ℕ)) 1 := by |
| 72 | let F := HomologicalComplex.shortComplexFunctor' (ModuleCat.{v} R) (.up ℕ) 0 1 2 |
| 73 | have he : ShortComplex.homologyMap (F.map (HomologicalComplex₂.total.map f (.up ℕ))) = |
| 74 | ShortComplex.homologyMap (F.map (HomologicalComplex₂.total.map g (.up ℕ))) := by |
| 75 | apply HomologyBoundaryEquality.ModuleHomologyBoundaryEquality.homology |
| 76 | intro z hz |
| 77 | exact ⟨TotalOneCoordinates.ModuleTotalOneCoordinates.zero C (((h.hom 1 0).f 0).hom (TotalOneCoordinates.ModuleTotalOneCoordinates.second B z)), boundary h z hz⟩ |
| 78 | let e := HomologicalComplex.homologyFunctorIso' (ModuleCat.{v} R) (.up ℕ) 0 1 2 (by simp) (by simp) |
| 79 | apply (cancel_mono (e.app (C.total (.up ℕ))).hom).mp |
| 80 | exact (e.hom.naturality (HomologicalComplex₂.total.map f (.up ℕ))).trans |
| 81 | ((congrArg (fun q => (e.app (B.total (.up ℕ))).hom ≫ q) he).trans |
| 82 | (e.hom.naturality (HomologicalComplex₂.total.map g (.up ℕ))).symm) |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Module.TotalHomotopyOne.ModuleTotalHomotopyHOne |