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.ProjectiveFinite.CoefficientResidueDimensionData |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.FiniteCoefficientResidueTotal |
| 3 | |
| 4 | /-! # Coefficient Residue Dimension -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientResidueDimension |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Transport the finite-coefficient residue comparison in the ambient |
| 11 | index before the dependent chart and parameter data are supplied. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial _root_.Module _root_.HomologicalComplex 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.Projective.IntrinsicOverlap.Intrinsic |
| 18 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomLocal OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 19 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 20 | Projective.LocalAdjunction.ambientAlgebra Projective.ParameterChart.coordinateOrder |
| 21 | attribute [local instance] Finite.FlatCoefficientSections.quotientAlgebra |
| 22 | Finite.FlatCoefficientSections.coefficientAlgebra Finite.FlatCoefficientSections.ambientAlgebra |
| 23 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {c g N : ℕ} |
| 24 | |
| 25 | def comparisonType (h : c+g=N) : Prop := |
| 26 | ∀ (X : Over (Spec (CommRingCat.of R))) (Y : Scheme.{u}) (f : Y ⟶ X.left) |
| 27 | [IsFinite f] [Flat f] (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R N) [IsClosedImmersion i.left] |
| 28 | [Smooth X.hom] [IsProper X.hom] [SmoothOfRelativeDimension g X.hom] |
| 29 | (j : Fin (N+1)) (B : ℕ) (hB : N+1≤B) |
| 30 | (U : (Projective.IntrinsicOverlap.Intrinsic.space R N).Opens) (hU : IsAffineOpen U) |
| 31 | (k : Fin (N+1)) (hUk : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k) |
| 32 | (s : Fin c → Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U)) |
| 33 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U) s = Projective.LocalAdjunction.ideal X i U hU) |
| 34 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U) (List.ofFn s)) |
| 35 | (bI : Basis (Fin c) (Projective.LocalAdjunction.quotient X i U hU) (Projective.LocalAdjunction.ideal X i U hU).Cotangent) |
| 36 | (_hI : ∀ a, bI a = (Projective.LocalAdjunction.ideal X i U hU).toCotangent |
| 37 | (ConormalKoszulPurity.conormalVectors Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U) (Projective.LocalAdjunction.ideal X i U hU) s hs a)) |
| 38 | (bQ : Basis (Fin g) (Projective.LocalAdjunction.quotient X i U hU) Ω[Projective.LocalAdjunction.quotient X i U hU⁄R]) |
| 39 | (t : Fin g → Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U)) |
| 40 | (_ht : ∀ a, bQ a = KaehlerDifferential.D R (Projective.LocalAdjunction.quotient X i U hU) |
| 41 | (Ideal.Quotient.mk (Projective.LocalAdjunction.ideal X i U hU) (t a))) |
| 42 | (b : Basis (Fin N) Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U) Ω[Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U)⁄R]) |
| 43 | (_hb : (fun a : Fin (c+g) => b (Fin.cast h a)) = |
| 44 | Fin.append (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U) (s a)) |
| 45 | (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R N, U) (t a))) |
| 46 | (τ : Type u) [Fintype τ] |
| 47 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 48 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 49 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 50 | {ι : Type u} [LinearOrder ι] (W : ι → Principal.SectionPresheaf.Index U) (q : ℕ) |
| 51 | (x : Finite.FlatCoefficientSections.coefficientRing f i.left U), |
| 52 | CoefficientResidueDimensionData.leftMap X f i j B U hU k hUk s hs hreg t b W q x = |
| 53 | CoefficientResidueDimensionData.rightMap h X f i j B hB U hU W q x |
| 54 | |
| 55 | theorem comparison_sum : comparisonType (R := R) (c := c) (g := g) rfl := by |
| 56 | intro X Y f hf hflat i hi hsm hp hrd j B hB U hU k hUk s hs hreg bI hI bQ t ht b hb τ hfin hpoly htower het ι hlin W q x |
| 57 | exact FiniteCoefficientResidueTotal.comparison X f i j B hB U hU k hUk |
| 58 | s hs hreg bI hI bQ t ht b (by simpa using hb) τ W q x |
| 59 | |
| 60 | theorem comparison_all (h : c+g=N) : comparisonType (R := R) h := by |
| 61 | cases h |
| 62 | exact comparison_sum |
| 63 | |
| 64 | abbrev comparison (h : c+g=N) := comparison_all (R := R) h |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.CoefficientResidueDimension |