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.Projective.ResidueTotalAdjunction |
| 2 | |
| 3 | /-! # Total Adjunction Dimension Data -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.TotalAdjunctionDimensionData.Residue |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Transport the original residue comparison across the equality |
| 10 | between the ambient dimension and codimension plus relative dimension. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial _root_.Module _root_.HomologicalComplex Opposite |
| 13 | |
| 14 | set_option backward.defeqAttrib.useBackward true |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | universe u |
| 19 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 20 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {c g N : ℕ} (h : c + g = N) |
| 21 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 22 | LocalAdjunction.ambientAlgebra ParameterChart.coordinateOrder |
| 23 | variable (X : Over (Spec (CommRingCat.of R))) (f : X ⟶ IntrinsicOverlap.Intrinsic.model R N) |
| 24 | [IsClosedImmersion f.left] [Smooth X.hom] [IsProper X.hom] [SmoothOfRelativeDimension g X.hom] |
| 25 | (j : Fin (N + 1)) (B : ℕ) (hB : N + 1 ≤ B) |
| 26 | (U : (IntrinsicOverlap.Intrinsic.space R N).Opens) (hU : IsAffineOpen U) |
| 27 | (i : Fin (N + 1)) (hUi : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) |
| 28 | (s : Fin c → Γ(IntrinsicOverlap.Intrinsic.space R N, U)) |
| 29 | (hs : Koszul.OrientedTopCohomology.ideal Γ(IntrinsicOverlap.Intrinsic.space R N, U) s = LocalAdjunction.ideal X f U hU) |
| 30 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(IntrinsicOverlap.Intrinsic.space R N, U) (List.ofFn s)) |
| 31 | (bI : Basis (Fin c) (LocalAdjunction.quotient X f U hU) (LocalAdjunction.ideal X f U hU).Cotangent) |
| 32 | (hI : ∀ k, bI k = (LocalAdjunction.ideal X f U hU).toCotangent |
| 33 | (ConormalKoszulPurity.conormalVectors Γ(IntrinsicOverlap.Intrinsic.space R N, U) (LocalAdjunction.ideal X f U hU) s hs k)) |
| 34 | (bQ : Basis (Fin g) (LocalAdjunction.quotient X f U hU) Ω[LocalAdjunction.quotient X f U hU⁄R]) |
| 35 | (t : Fin g → Γ(IntrinsicOverlap.Intrinsic.space R N, U)) |
| 36 | (ht : ∀ k, bQ k = KaehlerDifferential.D R (LocalAdjunction.quotient X f U hU) |
| 37 | (Ideal.Quotient.mk (LocalAdjunction.ideal X f U hU) (t k))) |
| 38 | (b : Basis (Fin N) Γ(IntrinsicOverlap.Intrinsic.space R N, U) Ω[Γ(IntrinsicOverlap.Intrinsic.space R N, U)⁄R]) |
| 39 | (hb : (fun k : Fin (c + g) => b (Fin.cast h k)) = |
| 40 | Fin.append (fun k => KaehlerDifferential.D R Γ(IntrinsicOverlap.Intrinsic.space R N, U) (s k)) |
| 41 | (fun k => KaehlerDifferential.D R Γ(IntrinsicOverlap.Intrinsic.space R N, U) (t k))) |
| 42 | (τ : Type u) [Fintype τ] |
| 43 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 44 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 45 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 46 | |
| 47 | local notation "L" => OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j (N + 1) |
| 48 | |
| 49 | include h hB in |
| 50 | omit [Smooth X.hom] [IsProper X.hom] in |
| 51 | theorem exactAt (a : ℕ) (ha : a ≠ c) : (LocalAdjunction.dual X f j B).ExactAt a := by |
| 52 | let : SmoothOfRelativeDimension g (f.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) := by |
| 53 | change SmoothOfRelativeDimension g (f.left ≫ (IntrinsicOverlap.Intrinsic.model R N).hom) |
| 54 | rw [Over.w f] |
| 55 | infer_instance |
| 56 | apply SmoothDualPurity.exactAt f.left j B (N+1) hB g a |
| 57 | simp only [Fintype.card_fin, Nat.add_sub_cancel_right] |
| 58 | have hc : N - g = c := by omega |
| 59 | simpa only [hc] using ha |
| 60 | |
| 61 | variable {ι : Type u} [LinearOrder ι] |
| 62 | (W : ι → Principal.SectionPresheaf.Index U) (q : ℕ) |
| 63 | |
| 64 | def residue := by |
| 65 | letI : (L).IsQuasicoherent := AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_quasicoherent |
| 66 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower_isInvertible j (N+1)) |
| 67 | letI (k : ℕ) : ((LocalAdjunction.source X f j B).X k).IsQuasicoherent := |
| 68 | ClosedImmersionPurity.source_quasicoherent f.left j B k |
| 69 | letI (k : ℕ) : ((Affine.LinearResolutionPurity.internalComplex L (LocalAdjunction.source X f j B)).X k).IsQuasicoherent := |
| 70 | LocalDualLine.term_quasicoherent f.left j B (N+1) hB k |
| 71 | letI (k : ℕ) : CategoryTheory.Projective ((AffineOpen.InternalHom.sections U hU).obj ((LocalAdjunction.source X f j B).X k)) := |
| 72 | Affine.ProjectiveResolutionTerms.term_projective U hU i hUi (LocalAdjunction.structureImage X f) j B k |
| 73 | letI : QuasiIso (NegativeResolution.augmentation (LocalAdjunction.structureImage X f) j B) := |
| 74 | inferInstanceAs (QuasiIso (NegativeResolution.tower (LocalAdjunction.structureImage X f) j B).augmentation) |
| 75 | exact Principal.OrientedResidue.map f.left U hU L |
| 76 | (PrincipalResidueCoordinates.scalarFrame (c := N) (g := 0) j U hU i hUi b) (LocalAdjunction.source X f j B) |
| 77 | (NegativeResolution.augmentation (LocalAdjunction.structureImage X f) j B) s hs hreg |
| 78 | |
| 79 | def symbol := |
| 80 | (single ((Principal.SectionPresheaf.Index U)ᵒᵖ ⥤ ModuleCat.{u} Γ(IntrinsicOverlap.Intrinsic.space R N, U)) (.up ℕ) c).map |
| 81 | (Principal.DifferentialSymbol.map R X (IntrinsicOverlap.Intrinsic.model R N) f U hU g (fun k => f.left.app U (t k))) |
| 82 | |
| 83 | def concentration := by |
| 84 | letI (k : ℕ) : ((Affine.LinearResolutionPurity.internalComplex L (LocalAdjunction.source X f j B)).X k).IsQuasicoherent := |
| 85 | LocalDualLine.term_quasicoherent f.left j B (N+1) hB k |
| 86 | exact PrincipalReference.Concentration.Reference.iso U hU W |
| 87 | (Affine.LinearResolutionPurity.internalComplex L (LocalAdjunction.source X f j B)) c (exactAt h X f j B hB) q |
| 88 | |
| 89 | def adjunction := |
| 90 | (PrincipalReference.Concentration.Reference.functor U hU W q).map |
| 91 | ((single (IntrinsicOverlap.Intrinsic.space R N).Modules (.up ℕ) c).map |
| 92 | (ParameterGlobalCoordinates.iso X f (by omega : c = N-g) |
| 93 | j B hB (by omega : g ≤ N)).hom) |
| 94 | |
| 95 | def coefficient := |
| 96 | (singleMapHomologicalComplex (Principal.ModuleFunctor.functor U hU) (.up ℕ) c).hom.app |
| 97 | ((Scheme.Modules.pushforward f.left).obj (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g)) |
| 98 | |
| 99 | def leftMap := |
| 100 | (Supported.CechHomotopyEquivalence.functor W q).map |
| 101 | (residue X f j B U hU i hUi s hs hreg b) ≫ |
| 102 | (Supported.CechHomotopyEquivalence.functor W q).map (symbol X f U hU t) |
| 103 | |
| 104 | def rightMap := |
| 105 | (concentration h X f j B hB U hU W q).hom ≫ adjunction h X f j B hB U hU W q ≫ |
| 106 | (Supported.CechHomotopyEquivalence.functor W q).map (coefficient (c := c) (g := g) X f U hU) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.TotalAdjunctionDimensionData.Residue |