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.Resolution |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPoint.ResolutionHomotopy |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPoint.HomCoordinates |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPoint.ScalarAmbient |
| 5 | |
| 6 | /-! # Koszul -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalPoint.Koszul.Comparison |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The actual product point comparison and the concatenated-equation |
| 13 | comparison give the same scalar coordinate of the original resolution. -/ |
| 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 | {c m : ℕ} (s : Fin c → Γ(Y, U)) (t : Fin m → Γ(Y, U)) |
| 28 | (hst : RingTheory.Sequence.IsWeaklyRegular Γ(Y, U) (List.ofFn (Fin.append s t))) |
| 29 | (eM : (AffineOpen.InternalHom.sections U hU).obj M ≅ ModuleCat.of Γ(Y, U) |
| 30 | (Γ(Y, U) ⧸ KoszulPartial.Resolution.pointIdeal Γ(Y, U) s t)) |
| 31 | |
| 32 | abbrev productCoordinates := |
| 33 | (Principal.Resolution.Comparison.equivalence U hU N e M K ε _ eM |
| 34 | (KoszulPartial.Resolution.pointResolution Γ(Y, U) s t hst)).trans |
| 35 | (HomotopyEquiv.ofIso (KoszulPoint.HomCoordinates.pointIso Γ(Y, U) (Principal.SectionPresheaf.rings U hU) s t)) |
| 36 | |
| 37 | abbrev fullCoordinates := |
| 38 | (Principal.Resolution.Comparison.equivalence U hU N e M K ε _ eM |
| 39 | (KoszulPoint.Resolution.Comparison.fullResolution Γ(Y, U) s t hst)).trans |
| 40 | (HomotopyEquiv.ofIso (Koszul.HomCoefficientComplex.iso Γ(Y, U) |
| 41 | (Fin (c+m) → Γ(Y, U)) (Principal.LineFrame.scalars U hU) |
| 42 | (Koszul.GeneratorMatrix.equation Γ(Y, U) (Fin.append s t)))) |
| 43 | |
| 44 | def homotopy : Homotopy (productCoordinates U hU N e M K ε s t hst eM).hom |
| 45 | (fullCoordinates U hU N e M K ε s t hst eM).hom := by |
| 46 | let F := HomCoefficientFunctor.functor Γ(Y, U) (Principal.LineFrame.scalars U hU) |
| 47 | let P := Principal.Resolution.Comparison.resolution U hU M K ε _ eM |
| 48 | let a := (Principal.FramedHomNaturality.iso U hU N e (.down ℕ) K).hom |
| 49 | let b := (Koszul.HomCoefficientComplex.iso Γ(Y, U) (Fin (c+m) → Γ(Y, U)) |
| 50 | (Principal.LineFrame.scalars U hU) |
| 51 | (Koszul.GeneratorMatrix.equation Γ(Y, U) (Fin.append s t))).hom |
| 52 | let h := KoszulPoint.ResolutionHomotopy.homotopy Γ(Y, U) s t hst F P |
| 53 | exact ((h.compLeft a).compRight b) |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalPoint.Koszul.Comparison |