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.Principal.TerminalSections |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.AffineCoordinates |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.NormalPurity |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechForgetNaturality |
| 5 | |
| 6 | /-! # Koszul Terminal Coordinates -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.KoszulTerminalCoordinates |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The canonical principal Koszul comparison, at the terminal open, |
| 13 | is the original affine dual-resolution comparison with scalar restriction. |
| 14 | Thus its top coordinate uses the original oriented purity normalization. -/ |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | universe u |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AugmentedOrdered.CechForgetNaturality |
| 22 | variable {Y : Scheme.{u}} (U : Y.Opens) (hU : IsAffineOpen U) |
| 23 | (N : Y.Modules) [N.IsQuasicoherent] |
| 24 | (e : Γ(N, U) ≃ₗ[Γ(Y, U)] Γ(Y, U)) |
| 25 | (K : ChainComplex Y.Modules ℕ) [∀ q, (K.X q).IsQuasicoherent] |
| 26 | |
| 27 | def sourceIso : |
| 28 | (((AffineOpen.LinearHom.sectionHom U N).mapHomologicalComplex (.up ℕ)).obj K.op) ≅ |
| 29 | AugmentedOrdered.CechForget.ambientComplex (Koszul.Comparison.nativeComplex U hU N K) := |
| 30 | (NatIso.mapHomologicalComplex (TerminalSections.iso U hU) (.up ℕ)).app |
| 31 | (Affine.LinearResolutionPurity.internalComplex N K) |
| 32 | |
| 33 | variable (M : Y.Modules) [M.IsQuasicoherent] |
| 34 | (ε : K ⟶ (ChainComplex.single₀ Y.Modules).obj M) [QuasiIso ε] |
| 35 | [∀ q, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X q))] |
| 36 | {c : ℕ} (s : Fin c → Γ(Y, U)) |
| 37 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Y, U) (List.ofFn s)) |
| 38 | (eM : (AffineOpen.InternalHom.sections U hU).obj M ≅ ModuleCat.of Γ(Y, U) |
| 39 | (Γ(Y, U) ⧸ Koszul.OrientedTopCohomology.ideal Γ(Y, U) s)) |
| 40 | |
| 41 | abbrev resolution := Affine.OrientedPurity.resolution U hU K M ε |
| 42 | (Koszul.OrientedTopCohomology.ideal Γ(Y, U) s) eM |
| 43 | |
| 44 | def lift := ProjectiveResolution.lift (𝟙 _) |
| 45 | (KoszulPartial.Resolution.normalResolution Γ(Y, U) s hreg) |
| 46 | (resolution U hU K M ε s eM) |
| 47 | |
| 48 | abbrev canonicalComparison := Koszul.Comparison.equivalence U hU N e K M ε s hreg eM |
| 49 | |
| 50 | theorem comparison_apply (q : ℕ) |
| 51 | (a : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X q) N, U)) |
| 52 | (x : ⋀[Γ(Y, U)]^q (Fin c → Γ(Y, U))) : |
| 53 | (show (⋀[Γ(Y, U)]^q (Fin c → Γ(Y, U))) →ₗ[Γ(Y, U)] |
| 54 | Γ(Y, SectionPresheaf.openSubset U (⊤_ (SectionPresheaf.Index U))) from |
| 55 | ((canonicalComparison U hU N e K M ε s hreg eM).hom.f q).app |
| 56 | (op (⊤_ (SectionPresheaf.Index U))) ((sourceIso U hU N K).hom.f q a)) x = |
| 57 | algebraMap Γ(Y, U) Γ(Y, SectionPresheaf.openSubset U (⊤_ (SectionPresheaf.Index U))) |
| 58 | (e (Affine.HomEvaluation.evaluation (K.X q) N U a |
| 59 | ((Affine.ChartSections.iso U hU (K.X q)).inv |
| 60 | ((KoszulTerminalCoordinates.lift U hU K M ε s hreg eM).f q x)))) := by |
| 61 | change LineFrame.frame U hU N e (⊤_ (SectionPresheaf.Index U)) |
| 62 | ((show Γ(K.X q, U) →ₗ[Γ(Y, U)] Γ(N, SectionPresheaf.openSubset U (⊤_ (SectionPresheaf.Index U))) from |
| 63 | (InternalHom.iso U hU (K.X q) N).hom.app (op (⊤_ (SectionPresheaf.Index U))) |
| 64 | ((ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X q) N).presheaf.map |
| 65 | (SectionPresheaf.inclusion U (⊤_ (SectionPresheaf.Index U))).op a)) |
| 66 | ((Affine.ChartSections.iso U hU (K.X q)).inv |
| 67 | ((KoszulTerminalCoordinates.lift U hU K M ε s hreg eM).f q x))) = _ |
| 68 | exact OrientedResidueNormalizationBase.framed_restriction U hU N e (K.X q) |
| 69 | (⊤_ (SectionPresheaf.Index U)) a _ |
| 70 | |
| 71 | theorem cochain_comparison : |
| 72 | (sourceIso U hU N K).hom ≫ AugmentedOrdered.CechForgetNaturality.ambientMap (canonicalComparison U hU N e K M ε s hreg eM).hom = |
| 73 | (OrientedResidueNormalizationBase.affineDualIso U hU N e K).hom ≫ |
| 74 | DualComplexHomology.map Γ(Y, U) (KoszulTerminalCoordinates.lift U hU K M ε s hreg eM) ≫ |
| 75 | KoszulPartial.CanonicalMap.scalarsMap Γ(Y, U) (SectionPresheaf.rings U hU) s := by |
| 76 | apply HomologicalComplex.Hom.ext |
| 77 | funext q |
| 78 | apply ModuleCat.hom_ext |
| 79 | apply LinearMap.ext |
| 80 | intro a |
| 81 | apply LinearMap.ext |
| 82 | intro x |
| 83 | have hp := comparison_apply U hU N e K M ε s hreg eM q a x |
| 84 | have ha := PrincipalResidue.AffineCoordinates.OrientedNormalization.affine_dual_apply U hU N e K q a |
| 85 | ((Affine.ChartSections.iso U hU (K.X q)).inv |
| 86 | ((KoszulTerminalCoordinates.lift U hU K M ε s hreg eM).f q x)) |
| 87 | rw [Iso.inv_hom_id_apply] at ha |
| 88 | exact hp.trans (congrArg |
| 89 | (algebraMap Γ(Y, U) Γ(Y, SectionPresheaf.openSubset U (⊤_ (SectionPresheaf.Index U)))) ha.symm) |
| 90 | |
| 91 | def affineMap := |
| 92 | (OrientedResidueNormalizationBase.affineDualIso U hU N e K).hom ≫ |
| 93 | Koszul.NormalPurity.map Γ(Y, U) s hreg (resolution U hU K M ε s eM) |
| 94 | |
| 95 | omit [N.IsQuasicoherent] in |
| 96 | theorem affine_homology : |
| 97 | homologyMap (affineMap U hU N e K M ε s hreg eM) c ≫ |
| 98 | (singleObjHomologySelfIso (.up ℕ) c (ModuleCat.of Γ(Y, U) |
| 99 | (Γ(Y, U) ⧸ Koszul.OrientedTopCohomology.ideal Γ(Y, U) s))).hom = |
| 100 | homologyMap (Affine.LinearResolutionPurity.sectionComplexIso U hU N K).hom c ≫ |
| 101 | (LinearHomOrientedPurity.iso Γ(Y, U) |
| 102 | (Koszul.OrientedTopCohomology.ideal Γ(Y, U) s) s rfl hreg |
| 103 | (resolution U hU K M ε s eM) ((AffineOpen.InternalHom.sections U hU).obj N) |
| 104 | (OrientedResidueNormalizationBase.lineIso U hU N e)).hom := by |
| 105 | rw [affineMap, homologyMap_comp, Category.assoc, Koszul.NormalPurity.homology] |
| 106 | simp only [OrientedResidueNormalizationBase.affineDualIso, |
| 107 | LinearHomOrientedPurity.iso, LinearHomDualPurity.targetHomologyIso, |
| 108 | LinearHomDualPurity.homologyIso, Iso.trans_hom, homologyMap_comp, |
| 109 | homologyMapIso_hom, Category.assoc] |
| 110 | rfl |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.KoszulTerminalCoordinates |