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.KoszulPoint.Map |
| 2 | |
| 3 | /-! # Hom Coordinates -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPoint.HomCoordinates |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Coordinate isomorphisms connecting ordinary Hom of the product |
| 10 | point Koszul resolution to the standard concatenated-equation Hom |
| 11 | complex, preserving the actual normal inclusion. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.HomologicalComplex 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.Components |
| 18 | variable {C : Type u} [Preorder C] [HasFiniteProducts C] |
| 19 | (R : Type u) [CommRing R] (P : Cᵒᵖ ⥤ CommAlgCat.{u} R) |
| 20 | {c m : ℕ} (s : Fin c → R) (t : Fin m → R) |
| 21 | |
| 22 | abbrev normalIso := Koszul.HomCoefficientComplex.iso R (Fin c → R) (KoszulPartial.Fractions.modules R P) |
| 23 | (Koszul.GeneratorMatrix.equation R s) |
| 24 | |
| 25 | def pointIso : HomCoefficientFunctor.complex R (KoszulPartial.Fractions.modules R P) |
| 26 | (Exterior.KoszulComplex.complex R (KoszulPartial.Fractions.ambient R (c := c) (m := m)) |
| 27 | (KoszulPartial.Differential.equation R s t)) ≅ KoszulPartial.Components.coefficient R P (Fin.append s t) := |
| 28 | ((HomCoefficientFunctor.functor R (KoszulPartial.Fractions.modules R P)).mapHomologicalComplex (.up ℕ)).mapIso |
| 29 | ((HomologicalComplex.opFunctor (ModuleCat R) (.down ℕ)).mapIso |
| 30 | (Koszul.DuplicateFraction.pointIso R s t).op) ≪≫ |
| 31 | Koszul.HomCoefficientComplex.iso R (Fin (c + m) → R) (KoszulPartial.Fractions.modules R P) |
| 32 | (Koszul.GeneratorMatrix.equation R (Fin.append s t)) |
| 33 | |
| 34 | omit [HasFiniteProducts C] in |
| 35 | theorem square : (pointIso R P s t).hom ≫ Koszul.DuplicateFraction.normalMap R s t P = |
| 36 | HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) (KoszulPartial.Resolution.inclusion R s t) ≫ |
| 37 | (normalIso R P s).hom := by |
| 38 | apply HomologicalComplex.Hom.ext |
| 39 | funext q |
| 40 | apply NatTrans.ext |
| 41 | funext a |
| 42 | apply ModuleCat.hom_ext |
| 43 | apply LinearMap.ext |
| 44 | intro φ |
| 45 | apply LinearMap.ext |
| 46 | intro x |
| 47 | change (⋀[R]^q (KoszulPartial.Fractions.ambient R (c := c) (m := m))) →ₗ[R] P.obj a at φ |
| 48 | change (⋀[R]^q (Fin c → R)) at x |
| 49 | change φ ((Koszul.DuplicateFraction.pointIso R s t).hom.f q |
| 50 | ((Koszul.DuplicateFraction.normalInclusion R s t).f q x)) = |
| 51 | φ ((KoszulPartial.Resolution.inclusion R s t).f q x) |
| 52 | have he := congrArg (fun f => (f.f q).hom) |
| 53 | (Koszul.DuplicateFraction.normalInclusion_pointIso R s t) |
| 54 | exact congrArg φ (LinearMap.congr_fun he x) |
| 55 | |
| 56 | variable {L K : CochainComplex (Cᵒᵖ ⥤ ModuleCat.{u} R) ℕ} |
| 57 | (eP : HomotopyEquiv L (HomCoefficientFunctor.complex R (KoszulPartial.Fractions.modules R P) |
| 58 | (Exterior.KoszulComplex.complex R (KoszulPartial.Fractions.ambient R (c := c) (m := m)) |
| 59 | (KoszulPartial.Differential.equation R s t)))) |
| 60 | (eN : HomotopyEquiv K (HomCoefficientFunctor.complex R (KoszulPartial.Fractions.modules R P) |
| 61 | (Koszul.OrientedTopCohomology.koszul R s))) |
| 62 | (r : L ⟶ K) |
| 63 | (h : Homotopy (r ≫ eN.hom) (eP.hom ≫ HomCoefficientFunctor.map R (KoszulPartial.Fractions.modules R P) |
| 64 | (KoszulPartial.Resolution.inclusion R s t))) |
| 65 | |
| 66 | def homotopy : Homotopy |
| 67 | (r ≫ (eN.trans (HomotopyEquiv.ofIso (normalIso R P s))).hom) |
| 68 | ((eP.trans (HomotopyEquiv.ofIso (pointIso R P s t))).hom ≫ |
| 69 | Koszul.DuplicateFraction.normalMap R s t P) := by |
| 70 | change Homotopy (r ≫ (eN.hom ≫ (normalIso R P s).hom)) |
| 71 | ((eP.hom ≫ (pointIso R P s t).hom) ≫ Koszul.DuplicateFraction.normalMap R s t P) |
| 72 | exact (Homotopy.ofEq (Category.assoc _ _ _).symm).trans |
| 73 | ((h.compRight (normalIso R P s).hom).trans |
| 74 | (Homotopy.ofEq (by rw [Category.assoc, ← square, ← Category.assoc]))) |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPoint.HomCoordinates |