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.AlgebraicGeometry.FormalGeometry.Completion.ClosedHilbertNumerics |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.PushforwardExact |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.HilbertAdditivity |
| 4 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.CoherentQuotientFiniteType |
| 5 | |
| 6 | /-! # Closed Hilbert Additivity -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.ClosedHilbertAdditivity |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Hilbert polynomials on an actual closed projective scheme are additive |
| 13 | on actual coherent short exact sequences. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 18 | |
| 19 | namespace Construction |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 24 | |
| 25 | variable {K : Type u} [Field K] {r : ℕ} {X : Scheme.{u}} |
| 26 | (f : X ⟶ Proj (MvPolynomial.homogeneousSubmodule (Fin (r + 1)) K)) [IsClosedImmersion f] |
| 27 | |
| 28 | theorem closedProjectiveHilbertPolynomial_add_of_shortExact |
| 29 | (T : ShortComplex X.Modules) (hT : T.ShortExact) |
| 30 | [T.X₁.IsQuasicoherent] [T.X₂.IsQuasicoherent] [T.X₃.IsQuasicoherent] |
| 31 | [T.X₁.IsFiniteType] [T.X₂.IsFiniteType] [T.X₃.IsFiniteType] |
| 32 | (j : Fin (r + 1)) : |
| 33 | ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f T.X₂ j = |
| 34 | ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f T.X₁ j + ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f T.X₃ j := by |
| 35 | let S := T.map (Scheme.Modules.pushforward f) |
| 36 | have : S.X₁.IsQuasicoherent := ClosedHilbertNumerics.Construction.coherentClosedDirectImage_quasicoherent f T.X₁ |
| 37 | have : S.X₂.IsQuasicoherent := ClosedHilbertNumerics.Construction.coherentClosedDirectImage_quasicoherent f T.X₂ |
| 38 | have : S.X₃.IsQuasicoherent := ClosedHilbertNumerics.Construction.coherentClosedDirectImage_quasicoherent f T.X₃ |
| 39 | have : S.X₁.IsFiniteType := ClosedHilbertNumerics.Construction.coherentClosedDirectImage_finiteType f T.X₁ |
| 40 | have : S.X₂.IsFiniteType := ClosedHilbertNumerics.Construction.coherentClosedDirectImage_finiteType f T.X₂ |
| 41 | have : S.X₃.IsFiniteType := ClosedHilbertNumerics.Construction.coherentClosedDirectImage_finiteType f T.X₃ |
| 42 | exact HilbertAdditivity.Construction.projectiveHilbertPolynomial_add_of_shortExact S (Affine.PushforwardExact.Construction.affineModulePushforward_shortExact f hT) j |
| 43 | |
| 44 | def closedProjectiveCokernelHilbertPolynomial |
| 45 | {M N : X.Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] [N.IsFiniteType] |
| 46 | (a : M ⟶ N) (j : Fin (r + 1)) : Polynomial ℚ := by |
| 47 | have := SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_cokernel a |
| 48 | have := SheafCohomology.Projective.CoherentQuotientFiniteType.Scheme.Modules.isFiniteType_cokernel a |
| 49 | exact ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f (cokernel a) j |
| 50 | |
| 51 | theorem closedProjectiveCokernelHilbertPolynomial_eq_sub |
| 52 | {M N : X.Modules} [M.IsQuasicoherent] [N.IsQuasicoherent] [M.IsFiniteType] [N.IsFiniteType] |
| 53 | (a : M ⟶ N) [Mono a] (j : Fin (r + 1)) : |
| 54 | closedProjectiveCokernelHilbertPolynomial f a j = |
| 55 | ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f N j - ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f M j := by |
| 56 | have := SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_cokernel a |
| 57 | have := SheafCohomology.Projective.CoherentQuotientFiniteType.Scheme.Modules.isFiniteType_cokernel a |
| 58 | let T := ShortComplex.mk a (cokernel.π a) (cokernel.condition a) |
| 59 | have hT : T.ShortExact := { exact := ShortComplex.cokernelSequence_exact a } |
| 60 | have he := closedProjectiveHilbertPolynomial_add_of_shortExact f T hT j |
| 61 | change ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f N j = |
| 62 | ClosedHilbertNumerics.Construction.closedProjectiveHilbertPolynomial f M j + closedProjectiveCokernelHilbertPolynomial f a j at he |
| 63 | rw [he, add_sub_cancel_left] |
| 64 | |
| 65 | end Construction |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.ClosedHilbertAdditivity |