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.TotalAdjunctionDimensionData |
| 2 | |
| 3 | /-! # Residue Total Adjunction Dimension -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ResidueTotalAdjunctionDimension |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Transport the complete original residue statement in the ambient |
| 10 | index before supplying the dependent geometric data. -/ |
| 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 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 21 | LocalAdjunction.ambientAlgebra ParameterChart.coordinateOrder |
| 22 | |
| 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))) (f : X ⟶ IntrinsicOverlap.Intrinsic.model R N) |
| 27 | [IsClosedImmersion f.left] [Smooth X.hom] [IsProper X.hom] [SmoothOfRelativeDimension g X.hom] |
| 28 | (j : Fin (N + 1)) (B : ℕ) (hB : N + 1 ≤ B) |
| 29 | (U : (IntrinsicOverlap.Intrinsic.space R N).Opens) (hU : IsAffineOpen U) |
| 30 | (i : Fin (N + 1)) (hUi : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) |
| 31 | (s : Fin c → Γ(IntrinsicOverlap.Intrinsic.space R N, U)) |
| 32 | (hs : Koszul.OrientedTopCohomology.ideal Γ(IntrinsicOverlap.Intrinsic.space R N, U) s = LocalAdjunction.ideal X f U hU) |
| 33 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(IntrinsicOverlap.Intrinsic.space R N, U) (List.ofFn s)) |
| 34 | (bI : Basis (Fin c) (LocalAdjunction.quotient X f U hU) (LocalAdjunction.ideal X f U hU).Cotangent) |
| 35 | (_hI : ∀ k, bI k = (LocalAdjunction.ideal X f U hU).toCotangent |
| 36 | (ConormalKoszulPurity.conormalVectors Γ(IntrinsicOverlap.Intrinsic.space R N, U) (LocalAdjunction.ideal X f U hU) s hs k)) |
| 37 | (bQ : Basis (Fin g) (LocalAdjunction.quotient X f U hU) Ω[LocalAdjunction.quotient X f U hU⁄R]) |
| 38 | (t : Fin g → Γ(IntrinsicOverlap.Intrinsic.space R N, U)) |
| 39 | (_ht : ∀ k, bQ k = KaehlerDifferential.D R (LocalAdjunction.quotient X f U hU) |
| 40 | (Ideal.Quotient.mk (LocalAdjunction.ideal X f U hU) (t k))) |
| 41 | (b : Basis (Fin N) Γ(IntrinsicOverlap.Intrinsic.space R N, U) Ω[Γ(IntrinsicOverlap.Intrinsic.space R N, U)⁄R]) |
| 42 | (_hb : (fun k : Fin (c + g) => b (Fin.cast h k)) = |
| 43 | Fin.append (fun k => KaehlerDifferential.D R Γ(IntrinsicOverlap.Intrinsic.space R N, U) (s k)) |
| 44 | (fun k => KaehlerDifferential.D R Γ(IntrinsicOverlap.Intrinsic.space R N, U) (t k))) |
| 45 | (τ : Type u) [Fintype τ] |
| 46 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 47 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 48 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (f.left ⁻¹ᵁ U))] |
| 49 | {ι : Type u} [LinearOrder ι] (W : ι → Principal.SectionPresheaf.Index U) (q : ℕ), |
| 50 | TotalAdjunctionDimensionData.Residue.leftMap X f j B U hU i hUi s hs hreg t b W q = TotalAdjunctionDimensionData.Residue.rightMap h X f j B hB U hU W q |
| 51 | |
| 52 | theorem comparison_sum : comparisonType (R := R) (c := c) (g := g) rfl := by |
| 53 | intro X f hf hsm hp hrd j B hB U hU i hUi s hs hreg bI hI bQ t ht b hb τ hfin hpoly htower het ι hlin W q |
| 54 | exact ResidueTotalAdjunction.comparison X f j B hB U hU i hUi |
| 55 | s hs hreg bI hI bQ t ht b (by simpa using hb) τ W q |
| 56 | |
| 57 | theorem comparison_all (h : c + g = N) : comparisonType (R := R) h := by |
| 58 | cases h |
| 59 | exact comparison_sum |
| 60 | |
| 61 | abbrev comparison (h : c + g = N) := comparison_all (R := R) h |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.ResidueTotalAdjunctionDimension |