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.PrincipalResidue.TopCoordinates |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AtOneHomology |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Mapped.SingleCompositeHomology |
| 4 | |
| 5 | /-! # Survivor Data -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.SurvivorData |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual principal residue on the surviving homology sheaf. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 14 | |
| 15 | set_option backward.defeqAttrib.useBackward true |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | universe u |
| 20 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |
| 21 | |
| 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 | {X : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] |
| 27 | (ε : K ⟶ (ChainComplex.single₀ Y.Modules).obj (Principal.ClosedQuotient.directImage f)) |
| 28 | [QuasiIso ε] [∀ q, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X q))] |
| 29 | {c : ℕ} (s : Fin c → Γ(Y, U)) |
| 30 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Y, U) s = f.ker.ideal ⟨U, hU⟩) |
| 31 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Y, U) (List.ofFn s)) |
| 32 | [∀ q, ((Affine.LinearResolutionPurity.internalComplex N K).X q).IsQuasicoherent] |
| 33 | |
| 34 | attribute [local instance] Principal.OrientedResidue.structure_quasicoherent |
| 35 | |
| 36 | def map : Principal.SectionPresheaf.modules U hU ((Affine.LinearResolutionPurity.internalComplex N K).homology c) ⟶ |
| 37 | Principal.ClosedKoszulResidue.target f U hU := |
| 38 | (Principal.ModuleHomology.complexIso U hU |
| 39 | (Affine.LinearResolutionPurity.internalComplex N K) c).inv ≫ |
| 40 | homologyMap (Principal.OrientedResidue.map f U hU N e K ε s hs hreg) c ≫ |
| 41 | (singleObjHomologySelfIso (.up ℕ) c (Principal.ClosedKoszulResidue.target f U hU)).hom |
| 42 | |
| 43 | def normalized : (Affine.ModuleExactSections.sections U).obj |
| 44 | ((Affine.LinearResolutionPurity.internalComplex N K).homology c) ⟶ |
| 45 | ModuleCat.of Γ(Y, U) (Γ(Y, U) ⧸ KoszulPartial.Resolution.normalIdeal Γ(Y, U) s) := |
| 46 | ((Principal.AtOne.iso U hU).app |
| 47 | ((Affine.LinearResolutionPurity.internalComplex N K).homology c)).hom ≫ |
| 48 | (map U hU N e K f ε s hs hreg).app (op (Principal.AtOne.object U)) ≫ |
| 49 | (Principal.OrientedResidueNormalization.targetAtOne U hU f s hs).hom |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.SurvivorData |