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.CoefficientResidueTotalCoordinates |
| 2 | |
| 3 | /-! # Finite Coefficient Residue Total -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.FiniteCoefficientResidueTotal |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Typed supported-total form of the original finite coefficient residue. -/ |
| 10 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.MvPolynomial _root_.Module Opposite _root_.HomologicalComplex |
| 11 | private theorem factor {A : Type*} [Category A] |
| 12 | {P Q S T V W : A} {r : P ⟶ T} {a : P ⟶ Q} {b : Q ⟶ S} |
| 13 | {u : S ⟶ T} {v : T ⟶ W} {d : S ⟶ V} {e : V ⟶ W} |
| 14 | (hr : r = a ≫ b ≫ u) (he : d ≫ e = u ≫ v) : |
| 15 | r ≫ v = a ≫ b ≫ d ≫ e := by |
| 16 | rw [hr] |
| 17 | simp only [Category.assoc] |
| 18 | rw [← he] |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | set_option backward.isDefEq.respectTransparency.types false |
| 23 | universe u |
| 24 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.IntrinsicOverlap.Intrinsic |
| 25 | open OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveCoefficient.HomLocal OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.FlatCoefficientSections |
| 26 | variable {R : Type u} [CommRing R] [IsNoetherianRing R] {c g : ℕ} |
| 27 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 28 | Projective.LocalAdjunction.ambientAlgebra Projective.ParameterChart.coordinateOrder |
| 29 | attribute [local instance] Finite.FlatCoefficientSections.quotientAlgebra |
| 30 | Finite.FlatCoefficientSections.coefficientAlgebra Finite.FlatCoefficientSections.ambientAlgebra |
| 31 | attribute [local instance] ProjectiveCoefficient.HomLocal.scalar_terms |
| 32 | ProjectiveCoefficient.HomLocal.coefficient_terms |
| 33 | variable (X : Over (Spec (CommRingCat.of R))) {Y : Scheme.{u}} |
| 34 | (f : Y ⟶ X.left) [IsFinite f] [Flat f] |
| 35 | (i : X ⟶ Projective.IntrinsicOverlap.Intrinsic.model R (c+g)) [IsClosedImmersion i.left] |
| 36 | [Smooth X.hom] [IsProper X.hom] [SmoothOfRelativeDimension g X.hom] |
| 37 | (j : Fin (c+g+1)) (B : ℕ) (hB : c+g+1≤B) |
| 38 | (U : (Projective.IntrinsicOverlap.Intrinsic.space R (c+g)).Opens) (hU : IsAffineOpen U) |
| 39 | (k : Fin (c+g+1)) (hUk : U ≤ AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) k) |
| 40 | (s : Fin c → Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U)) |
| 41 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) s = Projective.LocalAdjunction.ideal X i U hU) |
| 42 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) (List.ofFn s)) |
| 43 | (bI : Basis (Fin c) (Projective.LocalAdjunction.quotient X i U hU) (Projective.LocalAdjunction.ideal X i U hU).Cotangent) |
| 44 | (hI : ∀ a, bI a = (Projective.LocalAdjunction.ideal X i U hU).toCotangent |
| 45 | (ConormalKoszulPurity.conormalVectors Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) (Projective.LocalAdjunction.ideal X i U hU) s hs a)) |
| 46 | (bQ : Basis (Fin g) (Projective.LocalAdjunction.quotient X i U hU) Ω[Projective.LocalAdjunction.quotient X i U hU⁄R]) |
| 47 | (t : Fin g → Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U)) |
| 48 | (ht : ∀ a, bQ a = KaehlerDifferential.D R (Projective.LocalAdjunction.quotient X i U hU) |
| 49 | (Ideal.Quotient.mk (Projective.LocalAdjunction.ideal X i U hU) (t a))) |
| 50 | (b : Basis (Fin (c+g)) Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) Ω[Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U)⁄R]) |
| 51 | (hb : (b : Fin (c+g) → Ω[Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U)⁄R]) = |
| 52 | Fin.append (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) (s a)) |
| 53 | (fun a => KaehlerDifferential.D R Γ(Projective.IntrinsicOverlap.Intrinsic.space R (c+g), U) (t a))) |
| 54 | (τ : Type u) [Fintype τ] |
| 55 | [Algebra (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 56 | [IsScalarTower R (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 57 | [Algebra.Etale (MvPolynomial τ R) (Intrinsic.SmoothClosedSections.ring R X (i.left ⁻¹ᵁ U))] |
| 58 | |
| 59 | variable {ι : Type u} [LinearOrder ι] |
| 60 | (W : ι → Principal.SectionPresheaf.Index U) (q : ℕ) |
| 61 | |
| 62 | include hI ht hb τ in |
| 63 | theorem comparison (x : Finite.FlatCoefficientSections.coefficientRing f i.left U) : |
| 64 | CoefficientResidueDimensionData.leftMap |
| 65 | (R := R) (c := c) (g := g) (N := c+g) X f i j B U hU k hUk |
| 66 | s hs hreg t b W q x = |
| 67 | CoefficientResidueDimensionData.rightMap |
| 68 | (R := R) (c := c) (g := g) (N := c+g) rfl X f i j B hB U hU W q x := |
| 69 | factor |
| 70 | (CoefficientResidueTotalCoordinates.concentration |
| 71 | X f i j B hB U hU k hUk s hs hreg b W q x) |
| 72 | (CoefficientResidueTotalCoordinates.adjunction |
| 73 | X f i j B hB U hU k hUk s hs hreg bI hI bQ t ht b hb τ W q x) |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.NumberTheory.PadicHodge.IntegralComparison.ProjectiveFinite.FiniteCoefficientResidueTotal |