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.PrincipalAdjunction |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.AdjunctionConcentration |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.SmoothDualPurity |
| 4 | |
| 5 | /-! # Residue Total Adjunction -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ResidueTotalAdjunction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original projective residue on the supported total equals |
| 12 | the original smooth-purity concentration followed by global adjunction. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial _root_.Module |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 22 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {c g : ℕ} |
| 23 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 24 | ParameterNeighborhood.sectionAlgebra ParameterChart.coordinateOrder |
| 25 | variable (X : Over (Spec (CommRingCat.of R))) (f : X ⟶ IntrinsicOverlap.Intrinsic.model R (c + g)) |
| 26 | [IsClosedImmersion f.left] [Smooth X.hom] [IsProper X.hom] [SmoothOfRelativeDimension g X.hom] |
| 27 | (j : Fin (c + g + 1)) (B : ℕ) (hB : c + g + 1 ≤ B) |
| 28 | (U : (IntrinsicOverlap.Intrinsic.space R (c + g)).Opens) (hU : IsAffineOpen U) |
| 29 | (i : Fin (c + g + 1)) (hUi : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) |
| 30 | (s : Fin c → Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U)) |
| 31 | (hs : Koszul.OrientedTopCohomology.ideal Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U) s = LocalAdjunction.ideal X f U hU) |
| 32 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U) (List.ofFn s)) |
| 33 | (bI : Basis (Fin c) (LocalAdjunction.quotient X f U hU) (LocalAdjunction.ideal X f U hU).Cotangent) |
| 34 | (hI : ∀ k, bI k = (LocalAdjunction.ideal X f U hU).toCotangent |
| 35 | (ConormalKoszulPurity.conormalVectors Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U) (LocalAdjunction.ideal X f U hU) s hs k)) |
| 36 | (bQ : Basis (Fin g) (LocalAdjunction.quotient X f U hU) Ω[LocalAdjunction.quotient X f U hU⁄R]) |
| 37 | (t : Fin g → Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U)) |
| 38 | (ht : ∀ k, bQ k = KaehlerDifferential.D R (LocalAdjunction.quotient X f U hU) |
| 39 | (Ideal.Quotient.mk (LocalAdjunction.ideal X f U hU) (t k))) |
| 40 | (b : Basis (Fin (c + g)) Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U) Ω[Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U)⁄R]) |
| 41 | (hb : (b : Fin (c + g) → Ω[Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U)⁄R]) = |
| 42 | Fin.append (fun k => KaehlerDifferential.D R Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U) (s k)) |
| 43 | (fun k => KaehlerDifferential.D R Γ(IntrinsicOverlap.Intrinsic.space R (c + g), U) (t k))) |
| 44 | (τ : Type u) [Fintype τ] |
| 45 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 46 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 47 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 48 | |
| 49 | local notation "N" => OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j (c + g + 1) |
| 50 | |
| 51 | include hB in |
| 52 | omit [Smooth X.hom] [IsProper X.hom] in |
| 53 | theorem exactAt (q : ℕ) (hq : q ≠ c) : (LocalAdjunction.dual X f j B).ExactAt q := by |
| 54 | let : SmoothOfRelativeDimension g (f.left ≫ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ) := by |
| 55 | change SmoothOfRelativeDimension g (f.left ≫ (IntrinsicOverlap.Intrinsic.model R (c + g)).hom) |
| 56 | rw [Over.w f] |
| 57 | infer_instance |
| 58 | exact SmoothDualPurity.exactAt f.left j B (c + g + 1) hB g q |
| 59 | (by simpa only [Fintype.card_fin, Nat.add_sub_cancel_right, Nat.add_sub_cancel] using hq) |
| 60 | |
| 61 | variable {ι : Type u} [LinearOrder ι] |
| 62 | (W : ι → Principal.SectionPresheaf.Index U) (q : ℕ) |
| 63 | |
| 64 | abbrev comparison := by |
| 65 | letI : (N).IsQuasicoherent := AlgebraicGeometry.SheafCohomology.Projective.InvertibleFinitePresentation.invertible_quasicoherent |
| 66 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower_isInvertible j (c + g + 1)) |
| 67 | letI (k : ℕ) : ((Affine.LinearResolutionPurity.internalComplex N (LocalAdjunction.source X f j B)).X k).IsQuasicoherent := |
| 68 | LocalDualLine.term_quasicoherent f.left j B (c + g + 1) hB k |
| 69 | letI (k : ℕ) : CategoryTheory.Projective ((AffineOpen.InternalHom.sections U hU).obj ((LocalAdjunction.source X f j B).X k)) := |
| 70 | Affine.ProjectiveResolutionTerms.term_projective U hU i hUi (LocalAdjunction.structureImage X f) j B k |
| 71 | letI := IntegralComparison.Smooth.FormCoherence.Integral.quasicoherent R X g |
| 72 | exact PrincipalResidue.AdjunctionConcentration.original_map U hU N |
| 73 | (PrincipalResidueCoordinates.scalarFrame j U hU i hUi b) (LocalAdjunction.source X f j B) f.left |
| 74 | (NegativeResolution.augmentation (LocalAdjunction.structureImage X f) j B) s hs hreg |
| 75 | (GeometricComparison.Integral.FormsModules.IntegralFormsModules.sheaf R X g) |
| 76 | (Principal.DifferentialSymbol.generator R X (IntrinsicOverlap.Intrinsic.model R (c + g)) f U g |
| 77 | (fun k => f.left.app U (t k))) |
| 78 | (ParameterGlobalCoordinates.iso X f (Nat.add_sub_cancel c g).symm |
| 79 | j B hB (Nat.le_add_left g c)).hom |
| 80 | (ResidueLocalAdjunction.comparison X f j B hB U hU i hUi |
| 81 | s hs hreg bI hI bQ t ht b hb τ) |
| 82 | W (exactAt X f j B hB) q |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ResidueTotalAdjunction |