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.AffineOpen.LinearHom |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ResolutionDualPurity |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.LinearHomDualPurity |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.ModuleHomology |
| 5 | |
| 6 | /-! # Linear Resolution Purity -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LinearResolutionPurity |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Local purity for the actual cohomology sheaf, with its full action |
| 13 | by the ring of functions on the affine open. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 22 | (N : X.Modules) (K : ChainComplex X.Modules ℕ) |
| 23 | |
| 24 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.LinearHom |
| 25 | |
| 26 | def algebraicComplexIso : |
| 27 | (((AffineOpen.LinearHom.algebraicHom U hU N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op) ≅ |
| 28 | ((((linearYoneda Γ(X, U) (ModuleCat Γ(X, U))).obj ((AffineOpen.InternalHom.sections U hU).obj N)).mapHomologicalComplex |
| 29 | (ComplexShape.down ℕ).symm).obj |
| 30 | (((AffineOpen.InternalHom.sections U hU).mapHomologicalComplex (.down ℕ)).obj K).op) := |
| 31 | HomologicalComplex.Hom.isoOfComponents (fun _ => Iso.refl _) (by intros; rfl) |
| 32 | |
| 33 | variable [∀ n, (K.X n).IsQuasicoherent] |
| 34 | |
| 35 | def sectionComplexIso : |
| 36 | (((AffineOpen.LinearHom.sectionHom U N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op) ≅ |
| 37 | ((((linearYoneda Γ(X, U) (ModuleCat Γ(X, U))).obj ((AffineOpen.InternalHom.sections U hU).obj N)).mapHomologicalComplex |
| 38 | (ComplexShape.down ℕ).symm).obj |
| 39 | (((AffineOpen.InternalHom.sections U hU).mapHomologicalComplex (.down ℕ)).obj K).op) := by |
| 40 | let (n : ℕ) : (K.op.X n).unop.IsQuasicoherent := |
| 41 | inferInstanceAs ((K.X n).IsQuasicoherent) |
| 42 | exact AffineOpen.LinearHom.complexIso U hU N (ComplexShape.down ℕ).symm K.op ≪≫ algebraicComplexIso U hU N K |
| 43 | |
| 44 | variable (M : X.Modules) [M.IsQuasicoherent] |
| 45 | (ε : K ⟶ (ChainComplex.single₀ X.Modules).obj M) [QuasiIso ε] |
| 46 | [∀ n, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X n))] |
| 47 | (rs : List Γ(X, U)) (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(X, U) rs) |
| 48 | (eM : (AffineOpen.InternalHom.sections U hU).obj M ≅ ProjectiveResolution.DualPurity.quotient Γ(X, U) rs) |
| 49 | (eN : (AffineOpen.InternalHom.sections U hU).obj N ≅ ModuleCat.of Γ(X, U) Γ(X, U)) |
| 50 | |
| 51 | def purityIso : |
| 52 | ((((AffineOpen.LinearHom.sectionHom U N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op).homology |
| 53 | rs.length) ≅ ProjectiveResolution.DualPurity.quotient Γ(X, U) rs := |
| 54 | HomologicalComplex.homologyMapIso (sectionComplexIso U hU N K) rs.length ≪≫ |
| 55 | LinearHomDualPurity.purityIso Γ(X, U) rs hreg |
| 56 | (ResolutionDualPurity.resolution U hU K M ε rs eM) |
| 57 | ((AffineOpen.InternalHom.sections U hU).obj N) eN |
| 58 | |
| 59 | abbrev internalComplex := SchemeInternalHom.complex (ComplexShape.down ℕ).symm N K.op |
| 60 | |
| 61 | variable [∀ n, ((internalComplex N K).X n).IsQuasicoherent] |
| 62 | |
| 63 | def sectionsHomologyIso (n : ℕ) : |
| 64 | (ModuleExactSections.sections U).obj ((internalComplex N K).homology n) ≅ |
| 65 | ((((AffineOpen.LinearHom.sectionHom U N).mapHomologicalComplex (ComplexShape.down ℕ).symm).obj K.op).homology n) := by |
| 66 | let T := (internalComplex N K).sc n |
| 67 | letI : T.X₁.IsQuasicoherent := inferInstanceAs |
| 68 | (((internalComplex N K).X ((ComplexShape.down ℕ).symm.prev n)).IsQuasicoherent) |
| 69 | letI : T.X₂.IsQuasicoherent := inferInstanceAs (((internalComplex N K).X n).IsQuasicoherent) |
| 70 | letI : T.X₃.IsQuasicoherent := inferInstanceAs |
| 71 | (((internalComplex N K).X ((ComplexShape.down ℕ).symm.next n)).IsQuasicoherent) |
| 72 | exact (ModuleHomology.iso U hU T).symm |
| 73 | |
| 74 | def cohomologySheafIso : |
| 75 | (ModuleExactSections.sections U).obj ((internalComplex N K).homology rs.length) ≅ |
| 76 | ProjectiveResolution.DualPurity.quotient Γ(X, U) rs := |
| 77 | sectionsHomologyIso U hU N K rs.length ≪≫ purityIso U hU N K M ε rs hreg eM eN |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LinearResolutionPurity |