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.ProjectivePoint.KoszulMap |
| 2 | |
| 3 | /-! # Koszul Left -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.KoszulLeft |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The left leg of the original common negative refinement induces |
| 10 | the identity local normal-Koszul map, by an actual cochain homotopy. |
| 11 | Together with the right leg this normalizes the full refinement zigzag. -/ |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial Opposite |
| 13 | set_option backward.defeqAttrib.useBackward true |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | universe u |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom OAI.NumberTheory.PadicHodge.IntegralComparison.KoszulPartial.Resolution OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.KoszulMap |
| 18 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] |
| 19 | {σ : Type} [Fintype σ] [LinearOrder σ] |
| 20 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 21 | variable {Z X : Scheme.{u}} (s₀ : Z ⟶ X) |
| 22 | (f : X ⟶ Proj (homogeneousSubmodule σ R)) |
| 23 | [IsClosedImmersion s₀] [IsClosedImmersion f] |
| 24 | (U : (Proj (homogeneousSubmodule σ R)).Opens) (hU : IsAffineOpen U) |
| 25 | (i : σ) (hi : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) (j : σ) (B : ℕ) |
| 26 | |
| 27 | local instance scalar_qc : (KoszulMap.scalar f).IsQuasicoherent := |
| 28 | IntegralComparison.Projective.ClosedImmersionPurity.directImage_quasicoherent f |
| 29 | local instance scalar_finite : (KoszulMap.scalar f).IsFiniteType := |
| 30 | IntegralComparison.Projective.ClosedImmersionPurity.directImage_finiteType f |
| 31 | local instance point_qc : (KoszulMap.point s₀ f).IsQuasicoherent := |
| 32 | Finite.MapPureTrace.coefficients_quasicoherent s₀ f |
| 33 | local instance point_finite : (KoszulMap.point s₀ f).IsFiniteType := |
| 34 | Finite.MapPureTrace.coefficients_finiteType s₀ f |
| 35 | local instance common_qc (q : ℕ) : ((KoszulMap.common s₀ f j B).X q).IsQuasicoherent := |
| 36 | IntegralComparison.Projective.NegativeRefinement.term_quasicoherent (KoszulMap.scalar f) (KoszulMap.point s₀ f) j B (KoszulMap.quotientMap s₀ f) q |
| 37 | |
| 38 | variable (N : (Proj (homogeneousSubmodule σ R)).Modules) [N.IsQuasicoherent] |
| 39 | (e : Γ(N, U) ≃ₗ[Γ(Proj (homogeneousSubmodule σ R), U)] Γ(Proj (homogeneousSubmodule σ R), U)) |
| 40 | {c : ℕ} (s : Fin c → Γ(Proj (homogeneousSubmodule σ R), U)) |
| 41 | (hs : KoszulPartial.Resolution.normalIdeal Γ(Proj (homogeneousSubmodule σ R), U) s = f.ker.ideal ⟨U, hU⟩) |
| 42 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Proj (homogeneousSubmodule σ R), U) (List.ofFn s)) |
| 43 | |
| 44 | abbrev leftHomotopy := by |
| 45 | let K := IntegralComparison.Projective.NegativeResolution.complex (KoszulMap.scalar f) j B |
| 46 | letI (q : ℕ) : Projective ((AffineOpen.InternalHom.sections U hU).obj ((KoszulMap.common s₀ f j B).X q)) := |
| 47 | KoszulMap.common_projective s₀ f U hU i hi j B q |
| 48 | letI (q : ℕ) : Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X q)) := |
| 49 | Affine.ProjectiveResolutionTerms.term_projective U hU i hi (KoszulMap.scalar f) j B q |
| 50 | let ε := IntegralComparison.Projective.NegativeRefinement.augmentation (KoszulMap.scalar f) (KoszulMap.point s₀ f) j B (KoszulMap.quotientMap s₀ f) |
| 51 | let ε' := IntegralComparison.Projective.NegativeResolution.augmentation (KoszulMap.scalar f) j B |
| 52 | let v := (IntegralComparison.Projective.NegativeRefinement.leftHom (KoszulMap.scalar f) (KoszulMap.point s₀ f) j B (KoszulMap.quotientMap s₀ f)).chainMap |
| 53 | let eM := Principal.OrientedResidue.quotientIso f U hU s hs |
| 54 | let P := KoszulPartial.Resolution.normalResolution _ s hreg |
| 55 | let hv := Principal.ResolutionAugmentation.square U hU (KoszulMap.scalar f) (KoszulMap.common s₀ f j B) ε _ eM |
| 56 | (KoszulMap.scalar f) K ε' _ eM v (𝟙 (KoszulMap.scalar f)) (𝟙 _) |
| 57 | (by simpa only [CategoryTheory.Functor.map_id, Category.comp_id] using |
| 58 | IntegralComparison.Projective.NegativeRefinement.left_augmentation (KoszulMap.scalar f) (KoszulMap.point s₀ f) j B (KoszulMap.quotientMap s₀ f)) |
| 59 | (by simp only [CategoryTheory.Functor.map_id, Category.id_comp, Category.comp_id]) |
| 60 | exact Principal.Resolution.Comparison.naturality U hU N e |
| 61 | (KoszulMap.scalar f) (KoszulMap.common s₀ f j B) ε _ eM P |
| 62 | (KoszulMap.scalar f) K ε' _ eM P v (𝟙 _) (𝟙 P.complex) hv |
| 63 | (by simp only [CategoryTheory.Functor.map_id, Category.id_comp, Category.comp_id]) |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectivePoint.KoszulLeft |