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.CoefficientResidueData |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.AffineCoordinates |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Mapped.SingleCoordinates |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Mapped.SingleEvaluation |
| 5 | |
| 6 | /-! # Coefficient Residue Coordinates -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.CoefficientResidueCoordinates |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! At the unit principal open, the evaluated coefficient residue uses |
| 13 | exactly the affine dual of the actual augmentation-preserving lifts. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |
| 20 | variable {Y : Scheme.{u}} (U : Y.Opens) (hU : IsAffineOpen U) |
| 21 | (N : Y.Modules) [N.IsQuasicoherent] |
| 22 | (e : Γ(N, U) ≃ₗ[Γ(Y, U)] Γ(Y, U)) |
| 23 | (M : Y.Modules) [M.IsQuasicoherent] |
| 24 | (K : ChainComplex Y.Modules ℕ) [∀ q, (K.X q).IsQuasicoherent] |
| 25 | (ε : K ⟶ (ChainComplex.single₀ Y.Modules).obj M) [QuasiIso ε] |
| 26 | [∀ q, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X q))] |
| 27 | (T : ModuleCat.{u} Γ(Y, U)) (eM : (AffineOpen.InternalHom.sections U hU).obj M ≅ T) |
| 28 | (P : ProjectiveResolution T) |
| 29 | {X : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] |
| 30 | {c : ℕ} (s : Fin c → Γ(Y, U)) |
| 31 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Y, U) s = f.ker.ideal ⟨U, hU⟩) |
| 32 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Y, U) (List.ofFn s)) |
| 33 | (β : ModuleCat.of Γ(Y, U) |
| 34 | (Γ(Y, U) ⧸ KoszulPartial.Resolution.normalIdeal Γ(Y, U) s) ⟶ T) |
| 35 | |
| 36 | local notation "A" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.OrientedResidueNormalization.sectionRing U |
| 37 | local notation "J" => OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Resolution.normalIdeal A s |
| 38 | local notation "r₁" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AtOne.object U |
| 39 | local notation "Q" => OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.ClosedKoszulResidue.target f U hU |
| 40 | |
| 41 | private theorem evaluation_apply (q : ℕ) (r : SectionPresheaf.Index U) |
| 42 | (φ : P.complex.X q →ₗ[A] Γ(Y, SectionPresheaf.openSubset U r)) |
| 43 | (x : ⋀[A]^q (Fin c → A)) : |
| 44 | (show (⋀[A]^q (Fin c → A)) →ₗ[A] Γ(Y, SectionPresheaf.openSubset U r) from |
| 45 | ((CoefficientResidueData.evaluation U hU T P s hreg β).f q).app (op r) φ) x = |
| 46 | φ ((CoefficientResidueData.normalLift U T P s hreg β).f q x) := rfl |
| 47 | |
| 48 | theorem comparison_residue_top : |
| 49 | (CoefficientResidueData.map U hU N e M K ε T eM P f s hs hreg β).f c ≫ |
| 50 | (singleObjXSelf (.up ℕ) c Q).hom = |
| 51 | (Resolution.Comparison.equivalence U hU N e M K ε T eM P).hom.f c ≫ |
| 52 | (CoefficientResidueData.evaluation U hU T P s hreg β).f c ≫ |
| 53 | Koszul.CoefficientResidue.evaluation A (SectionPresheaf.rings U hU) s Q |
| 54 | (ClosedKoszulResidue.pullback f U hU s hs) := by |
| 55 | have ht : (ClosedKoszulResidue.residue f U hU s hs).f c ≫ |
| 56 | (singleObjXSelf (.up ℕ) c Q).hom = |
| 57 | Koszul.CoefficientResidue.evaluation A (SectionPresheaf.rings U hU) s Q |
| 58 | (ClosedKoszulResidue.pullback f U hU s hs) := |
| 59 | Koszul.CoefficientResidue.complexMap_top A (SectionPresheaf.rings U hU) s Q |
| 60 | (ClosedKoszulResidue.pullback f U hU s hs) |
| 61 | (ClosedKoszulResidue.annihilated f U hU s hs) |
| 62 | change ((Resolution.Comparison.equivalence U hU N e M K ε T eM P).hom ≫ |
| 63 | CoefficientResidueData.evaluation U hU T P s hreg β ≫ ClosedKoszulResidue.residue f U hU s hs).f c ≫ |
| 64 | (singleObjXSelf (.up ℕ) c Q).hom = _ |
| 65 | simp only [HomologicalComplex.comp_f, Category.assoc] |
| 66 | rw [ht] |
| 67 | |
| 68 | theorem normalized_top (a : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X c) N, U)) : |
| 69 | (singleObjXSelf (.up ℕ) c (ModuleCat.of A (A ⧸ J))).hom |
| 70 | ((CoefficientResidueData.normalizedMap U hU N e M K ε T eM P f s hs hreg β).f c a) = |
| 71 | Ideal.Quotient.mk J (e (Affine.HomEvaluation.evaluation (K.X c) N U a |
| 72 | ((Affine.ChartSections.iso U hU (K.X c)).inv |
| 73 | ((CoefficientResidueData.comparisonLift U hU M K ε T eM P).f c |
| 74 | ((CoefficientResidueData.normalLift U T P s hreg β).f c |
| 75 | (TopExteriorCoordinates.generator (Pi.basisFun A (Fin c)))))))) := by |
| 76 | have hn : |
| 77 | (OrientedResidueNormalizationBase.sourceAtOneIso U hU N K).hom ≫ |
| 78 | Mapped.SingleCoordinates.map |
| 79 | (OrientedResidueNormalization.atOneFunctor U) |
| 80 | (Koszul.Comparison.nativeComplex U hU N K) Q c |
| 81 | (CoefficientResidueData.map U hU N e M K ε T eM P f s hs hreg β) ≫ |
| 82 | (single (ModuleCat A) (.up ℕ) c).map |
| 83 | (OrientedResidueNormalization.targetAtOne U hU f s hs).hom = |
| 84 | CoefficientResidueData.normalizedMap U hU N e M K ε T eM P f s hs hreg β := by |
| 85 | simp only [Mapped.SingleCoordinates.map, CoefficientResidueData.normalizedMap, Category.assoc] |
| 86 | have ha := Mapped.SingleEvaluation.map_apply A (op r₁) |
| 87 | (Koszul.Comparison.nativeComplex U hU N K) Q c |
| 88 | (CoefficientResidueData.map U hU N e M K ε T eM P f s hs hreg β) |
| 89 | (OrientedResidueNormalizationBase.sourceAtOneIso U hU N K).hom |
| 90 | (OrientedResidueNormalization.targetAtOne U hU f s hs).hom |
| 91 | ((Resolution.Comparison.equivalence U hU N e M K ε T eM P).hom.f c) |
| 92 | ((CoefficientResidueData.evaluation U hU T P s hreg β).f c) |
| 93 | (Koszul.CoefficientResidue.evaluation A (SectionPresheaf.rings U hU) s Q |
| 94 | (ClosedKoszulResidue.pullback f U hU s hs)) |
| 95 | (comparison_residue_top U hU N e M K ε T eM P f s hs hreg β) a |
| 96 | rw [hn] at ha |
| 97 | let ψ : P.complex.X c →ₗ[A] Γ(Y, SectionPresheaf.openSubset U r₁) := |
| 98 | ((Resolution.Comparison.equivalence U hU N e M K ε T eM P).hom.f c).app |
| 99 | (op r₁) ((OrientedResidueNormalizationBase.sourceAtOneIso U hU N K).hom.f c a) |
| 100 | let φ : (⋀[A]^c (Fin c → A)) →ₗ[A] Γ(Y, SectionPresheaf.openSubset U r₁) := |
| 101 | ((CoefficientResidueData.evaluation U hU T P s hreg β).f c).app (op r₁) ψ |
| 102 | have hc := ResolutionAtOneCoordinates.comparison U hU N e M K ε T eM P c a |
| 103 | ((CoefficientResidueData.normalLift U T P s hreg β).f c |
| 104 | (TopExteriorCoordinates.generator (Pi.basisFun A (Fin c)))) |
| 105 | have hc' := (evaluation_apply U hU T P s hreg β c r₁ ψ |
| 106 | (TopExteriorCoordinates.generator (Pi.basisFun A (Fin c)))).trans hc |
| 107 | exact ha.trans (PrincipalResidue.AtOne.OrientedNormalization.residue_at_one U hU f s hs φ _ hc') |
| 108 | |
| 109 | omit [N.IsQuasicoherent] in |
| 110 | theorem canonical_top (a : Γ(ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (K.X c) N, U)) : |
| 111 | (singleObjXSelf (.up ℕ) c (ModuleCat.of A (A ⧸ J))).hom |
| 112 | ((CoefficientResidueData.canonicalMap U hU N e M K ε T eM P s hreg β).f c a) = |
| 113 | Ideal.Quotient.mk J (e (Affine.HomEvaluation.evaluation (K.X c) N U a |
| 114 | ((Affine.ChartSections.iso U hU (K.X c)).inv |
| 115 | ((CoefficientResidueData.comparisonLift U hU M K ε T eM P).f c |
| 116 | ((CoefficientResidueData.normalLift U T P s hreg β).f c |
| 117 | (TopExteriorCoordinates.generator (Pi.basisFun A (Fin c)))))))) := by |
| 118 | have h : (CoefficientResidueData.canonicalMap U hU N e M K ε T eM P s hreg β).f c ≫ |
| 119 | (singleObjXSelf (.up ℕ) c (ModuleCat.of A (A ⧸ J))).hom = |
| 120 | (OrientedResidueNormalizationBase.affineDualIso U hU N e K).hom.f c ≫ |
| 121 | (DualComplexHomology.map A (CoefficientResidueData.comparisonLift U hU M K ε T eM P)).f c ≫ |
| 122 | (DualComplexHomology.map A (CoefficientResidueData.normalLift U T P s hreg β)).f c ≫ |
| 123 | Koszul.ResidueHomology.evaluation A s := by |
| 124 | dsimp only [CoefficientResidueData.canonicalMap, Koszul.CoefficientNormalPurity.map, HomologicalComplex.comp_f] |
| 125 | simp only [Category.assoc] |
| 126 | erw [Koszul.ResidueHomology.map_top] |
| 127 | have ha := ConcreteCategory.congr_hom h a |
| 128 | have he := PrincipalResidue.AffineCoordinates.OrientedNormalization.affine_dual_apply U hU N e K c a |
| 129 | ((Affine.ChartSections.iso U hU (K.X c)).inv |
| 130 | ((CoefficientResidueData.comparisonLift U hU M K ε T eM P).f c |
| 131 | ((CoefficientResidueData.normalLift U T P s hreg β).f c |
| 132 | (TopExteriorCoordinates.generator (Pi.basisFun A (Fin c)))))) |
| 133 | rw [Iso.inv_hom_id_apply] at he |
| 134 | exact ha.trans (congrArg (Ideal.Quotient.mk J) he) |
| 135 | |
| 136 | theorem cochain_comparison : CoefficientResidueData.normalizedMap U hU N e M K ε T eM P f s hs hreg β = |
| 137 | CoefficientResidueData.canonicalMap U hU N e M K ε T eM P s hreg β := by |
| 138 | apply HomologicalComplex.to_single_hom_ext |
| 139 | apply (cancel_mono (singleObjXSelf (.up ℕ) c (ModuleCat.of A (A ⧸ J))).hom).mp |
| 140 | apply ModuleCat.hom_ext |
| 141 | apply LinearMap.ext |
| 142 | intro a |
| 143 | exact (normalized_top U hU N e M K ε T eM P f s hs hreg β a).trans |
| 144 | (canonical_top U hU N e M K ε T eM P s hreg β a).symm |
| 145 | |
| 146 | end |
| 147 | |
| 148 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.CoefficientResidueCoordinates |