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.ResolutionAtOneCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientNormalPurity |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Koszul.CoefficientEvaluationHomotopy |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.AtOne |
| 5 | |
| 6 | /-! # Coefficient Residue Data -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.CoefficientResidueData |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The original coefficient resolution, evaluated at a normal-quotient |
| 13 | vector, gives a map to the actual closed structure sheaf on principal opens. -/ |
| 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 | abbrev coefficientResolution := Resolution.Comparison.resolution U hU M K ε T eM |
| 37 | abbrev comparisonLift := ResolutionAtOneCoordinates.lift U hU M K ε T eM P |
| 38 | abbrev normalLift := ProjectiveResolution.lift β |
| 39 | (KoszulPartial.Resolution.normalResolution Γ(Y, U) s hreg) P |
| 40 | |
| 41 | abbrev evaluation := Koszul.CoefficientEvaluationHomotopy.evaluation Γ(Y, U) |
| 42 | (SectionPresheaf.rings U hU) s hreg T P (normalLift U T P s hreg β) |
| 43 | |
| 44 | def map : Koszul.Comparison.nativeComplex U hU N K ⟶ |
| 45 | (single ((SectionPresheaf.Index U)ᵒᵖ ⥤ ModuleCat Γ(Y, U)) (.up ℕ) c).obj |
| 46 | (ClosedKoszulResidue.target f U hU) := |
| 47 | (Resolution.Comparison.equivalence U hU N e M K ε T eM P).hom ≫ |
| 48 | evaluation U hU T P s hreg β ≫ ClosedKoszulResidue.residue f U hU s hs |
| 49 | |
| 50 | def normalizedMap : |
| 51 | (((AffineOpen.LinearHom.sectionHom U N).mapHomologicalComplex (.up ℕ)).obj K.op) ⟶ |
| 52 | (single (ModuleCat Γ(Y, U)) (.up ℕ) c).obj |
| 53 | (ModuleCat.of Γ(Y, U) (Γ(Y, U) ⧸ KoszulPartial.Resolution.normalIdeal Γ(Y, U) s)) := |
| 54 | (OrientedResidueNormalizationBase.sourceAtOneIso U hU N K).hom ≫ |
| 55 | ((OrientedResidueNormalization.atOneFunctor U).mapHomologicalComplex (.up ℕ)).map |
| 56 | (CoefficientResidueData.map U hU N e M K ε T eM P f s hs hreg β) ≫ |
| 57 | (singleMapHomologicalComplex |
| 58 | (OrientedResidueNormalization.atOneFunctor U) (.up ℕ) c).hom.app |
| 59 | (ClosedKoszulResidue.target f U hU) ≫ |
| 60 | (single (ModuleCat Γ(Y, U)) (.up ℕ) c).map |
| 61 | (OrientedResidueNormalization.targetAtOne U hU f s hs).hom |
| 62 | |
| 63 | def canonicalMap : |
| 64 | (((AffineOpen.LinearHom.sectionHom U N).mapHomologicalComplex (.up ℕ)).obj K.op) ⟶ |
| 65 | (single (ModuleCat Γ(Y, U)) (.up ℕ) c).obj |
| 66 | (ModuleCat.of Γ(Y, U) (Γ(Y, U) ⧸ KoszulPartial.Resolution.normalIdeal Γ(Y, U) s)) := |
| 67 | (OrientedResidueNormalizationBase.affineDualIso U hU N e K).hom ≫ |
| 68 | DualComplexHomology.map Γ(Y, U) (comparisonLift U hU M K ε T eM P) ≫ |
| 69 | Koszul.CoefficientNormalPurity.map Γ(Y, U) s hreg P β |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.CoefficientResidueData |