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.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.LocalWeightedEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.GeometricEuler |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 4 | |
| 5 | /-! # Geometric Weighted Euler -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GeometricWeightedEuler |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The smooth-stalk Euler expansion in intrinsic geometric dimensions. |
| 12 | All primes and generic lengths belong to the actual scheme stalk. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 20 | |
| 21 | theorem rank_eq {K : Type} [Field K] {X : Scheme} |
| 22 | (f : X ⟶ Spec (.of K)) (U : X.affineOpens) (x : X) (hx : x ∈ U.1) |
| 23 | (p : PrimeSpectrum (X.presheaf.stalk x)) : |
| 24 | letI := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f U |
| 25 | Affine.SpectrumRank.dimension K Γ(X, U) |
| 26 | (PrimeSpectrum.comap (X.presheaf.germ U.1 x hx).hom p) = |
| 27 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f := by |
| 28 | rw [Affine.GeometricRank.dimension] |
| 29 | change Foundations.Scheme.SupportDimension.supportTranscendenceDimension |
| 30 | (irreducibleSetEquivPoints.symm (U.2.fromSpec (PrimeSpectrum.comap (X.presheaf.germ U.1 x hx).hom p))) f = _ |
| 31 | rw [Affine.GeometricRank.stalk_image] |
| 32 | rfl |
| 33 | |
| 34 | theorem exists_data {K : Type} [Field K] {X : Scheme} |
| 35 | (f : X ⟶ Spec (.of K)) (d : ℕ) [SmoothOfRelativeDimension d f] |
| 36 | (x : X) (M : ModuleCat (X.presheaf.stalk x)) [Module.Finite (X.presheaf.stalk x) M] |
| 37 | (r : ℕ) (hM : ∀ p ∈ Module.support (X.presheaf.stalk x) M, |
| 38 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f ≤ r) : |
| 39 | ∃ F : Finset (PrimeSpectrum (X.presheaf.stalk x)), |
| 40 | (∀ p ∈ F, p ∈ Module.support (X.presheaf.stalk x) M ∧ |
| 41 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f = r ∧ |
| 42 | FiltrationBaseLength.length (X.presheaf.stalk x) (Localization.AtPrime p.asIdeal) M ≠ ⊤) ∧ |
| 43 | (∀ p, Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f = r → p ∉ F → |
| 44 | FiltrationBaseLength.length (X.presheaf.stalk x) (Localization.AtPrime p.asIdeal) M = 0) ∧ |
| 45 | ∀ (N : ModuleCat (X.presheaf.stalk x)) [Module.Finite (X.presheaf.stalk x) N] |
| 46 | [HasProjectiveDimensionLE N d] (s : ℕ) |
| 47 | (_hN : ∀ p ∈ Module.support (X.presheaf.stalk x) N, |
| 48 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f ≤ s) |
| 49 | (_heq : r + s = d + Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm x) f) |
| 50 | (_hi : Module.support (X.presheaf.stalk x) M ∩ Module.support (X.presheaf.stalk x) N ⊆ |
| 51 | {IsLocalRing.closedPoint (X.presheaf.stalk x)}), |
| 52 | Tor.Euler.euler (X.presheaf.stalk x) M N d = |
| 53 | ∑ p ∈ F, ((FiltrationBaseLength.length (X.presheaf.stalk x) |
| 54 | (Localization.AtPrime p.asIdeal) M).toNat : ℚ) * |
| 55 | Tor.Euler.euler (X.presheaf.stalk x) (.of _ (X.presheaf.stalk x ⧸ p.asIdeal)) N d := by |
| 56 | let : Smooth f := SmoothOfRelativeDimension.smooth d f |
| 57 | obtain ⟨U, hU, V, hV, hx, e, hstd⟩ := |
| 58 | SmoothOfRelativeDimension.exists_isStandardSmoothOfRelativeDimension (n := d) (f := f) x |
| 59 | have hu : U = ⊤ := by |
| 60 | ext y |
| 61 | constructor |
| 62 | · intro _; trivial |
| 63 | · intro _; exact (Subsingleton.elim (f x) y) ▸ e hx |
| 64 | subst U |
| 65 | let : Nonempty V := ⟨⟨x, hx⟩⟩ |
| 66 | let := Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra f V |
| 67 | let := Stalk.PointAlgebra.scalarAlgebra f x |
| 68 | let : Algebra.IsStandardSmoothOfRelativeDimension d K Γ(X, V) := |
| 69 | Foundations.Scheme.SpecScalarTransport.specSectionScalarAlgebra_standardSmooth d f V hstd |
| 70 | let := TopCat.Presheaf.algebra_section_stalk X.presheaf (⟨x, hx⟩ : V) |
| 71 | let : IsScalarTower K Γ(X, V) (X.presheaf.stalk x) := |
| 72 | IsScalarTower.of_algebraMap_eq fun c => ((Stalk.ScalarMaps.germ f V x hx).commutes c).symm |
| 73 | let q := hV.primeIdealOf ⟨x, hx⟩ |
| 74 | let : IsLocalization q.asIdeal.primeCompl (X.presheaf.stalk x) := hV.isLocalization_stalk ⟨x, hx⟩ |
| 75 | have hδ (p : PrimeSpectrum (X.presheaf.stalk x)) : |
| 76 | Affine.SpectrumRank.dimension K Γ(X, V) |
| 77 | (PrimeSpectrum.comap (algebraMap Γ(X, V) (X.presheaf.stalk x)) p) = |
| 78 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f := rank_eq f ⟨V, hV⟩ x hx p |
| 79 | obtain ⟨F, hF, hout, he⟩ := ProjectionFormula.Smooth.LocalWeightedEuler.exists_data K Γ(X, V) |
| 80 | (X.presheaf.stalk x) d q M r (by |
| 81 | intro p hp |
| 82 | rw [hδ] |
| 83 | exact hM p hp) |
| 84 | refine ⟨F, ?_, ?_, ?_⟩ |
| 85 | · intro p hp |
| 86 | have h := hF p hp |
| 87 | rw [hδ] at h |
| 88 | exact h |
| 89 | · intro p hp hpF |
| 90 | apply hout p _ hpF |
| 91 | rw [hδ] |
| 92 | exact hp |
| 93 | · intro N _ _ s hN heq hi |
| 94 | apply he N s _ _ hi |
| 95 | · intro p hp |
| 96 | rw [hδ] |
| 97 | exact hN p hp |
| 98 | · rw [Affine.GeometricRank.point_dimension f ⟨V, hV⟩ x hx] |
| 99 | exact heq |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GeometricWeightedEuler |