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.Affine.HigherEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.EulerStrata |
| 3 | |
| 4 | /-! # Affine Euler -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Proper.AffineEuler |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An actual proper pairing has the generic-length affine Euler |
| 11 | expansion. Higher-codimension filtration factors vanish by Serre's |
| 12 | theorem, so no exceptional filtration strata need to be moved against. -/ |
| 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 | open scoped Classical |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FiltrationAvoidance |
| 21 | |
| 22 | theorem exists_data (V : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m q : ℕ) |
| 23 | [SmoothOfRelativeDimension m V.structureMap] |
| 24 | (R : Type) [CommRing R] [IsNoetherianRing R] |
| 25 | (j : Spec (.of R) ⟶ V.carrier) [IsOpenImmersion j] |
| 26 | (M : ModuleCat R) [Module.Finite R M] |
| 27 | (hM : ∀ v ∈ Module.support R M, q ≤ V.supportCodimension (Affine.FiltrationAvoidance.support j v)) : |
| 28 | ∃ F : Finset (PrimeSpectrum R), |
| 29 | (∀ z ∈ F, z ∈ Module.support R M ∧ V.supportCodimension (Affine.FiltrationAvoidance.support j z) = q ∧ |
| 30 | FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M ≠ ⊤) ∧ |
| 31 | (∀ z : PrimeSpectrum R, V.supportCodimension (Affine.FiltrationAvoidance.support j z) = q → z ∉ F → |
| 32 | FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M = 0) ∧ |
| 33 | ∀ (p : ℕ) (Z : Finset (IrreducibleCloseds V.carrier)) |
| 34 | (_hZ : ∀ B ∈ Z, q ≤ V.supportCodimension B) |
| 35 | (_hcover : ∀ v ∈ Module.support R M, ∃ B ∈ Z, j v ∈ (B : Set V.carrier)) |
| 36 | (A : V.DimensionCycleSupport p) (A₀ : IrreducibleCloseds (Spec (.of R))) |
| 37 | (_hA : j (CycleClass.Thom.IntersectionGeometry.supportPoint A₀) = CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 38 | (_hproper : ∀ B ∈ Z, ∀ D : IrreducibleCloseds V.carrier, |
| 39 | (D : Set V.carrier) ⊆ (A.val : Set V.carrier) ∩ (B : Set V.carrier) → |
| 40 | p + V.supportCodimension B ≤ V.supportCodimension D) |
| 41 | (C : V.DimensionCycleSupport (p + q)) (x : PrimeSpectrum R) |
| 42 | (_hx : j x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) (hxA : x ∈ (A₀ : Set (Spec (.of R)))), |
| 43 | letI : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 44 | Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 45 | ((ProjectionFormula.Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj M) |
| 46 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) A₀ x hxA) m = |
| 47 | ∑ z ∈ F, ((FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M).toNat : ℚ) * |
| 48 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity V (Affine.FiltrationAvoidance.support j z) A.val C.val := by |
| 49 | obtain ⟨k, v, hsupp, hcount, he⟩ := UniversalPrimeFiltration.exists_data R M |
| 50 | have hdim (i : Fin k) : q ≤ V.supportCodimension (Affine.FiltrationAvoidance.support j (v i)) := |
| 51 | hM (v i) (hsupp i (MinimalPrimeFiltration.prime_mem_support R (v i))) |
| 52 | let P := fun z : PrimeSpectrum R => V.supportCodimension (Affine.FiltrationAvoidance.support j z) = q |
| 53 | let F := (Finset.univ.image v).filter P |
| 54 | have hc (z : PrimeSpectrum R) (hz : P z) : |
| 55 | FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M = |
| 56 | (Finset.univ.filter (fun i => v i = z)).card := |
| 57 | hcount z (Affine.PrimeCodimension.minimal V m q j M hM z hz) |
| 58 | refine ⟨F, ?_, ?_, ?_⟩ |
| 59 | · intro z hz |
| 60 | have hP := (Finset.mem_filter.mp hz).2 |
| 61 | have hs : z ∈ Module.support R M := by |
| 62 | obtain ⟨i, _, rfl⟩ := Finset.mem_image.mp (Finset.mem_filter.mp hz).1 |
| 63 | exact hsupp i (MinimalPrimeFiltration.prime_mem_support R (v i)) |
| 64 | refine ⟨hs, hP, ?_⟩ |
| 65 | rw [hc z hP] |
| 66 | exact ENat.natCast_ne_top _ |
| 67 | · intro z hz hzF |
| 68 | rw [hc z hz] |
| 69 | have hempty : Finset.univ.filter (fun i => v i = z) = ∅ := by |
| 70 | apply Finset.eq_empty_iff_forall_notMem.mpr |
| 71 | intro i hi |
| 72 | exact hzF (Finset.mem_filter.mpr ⟨Finset.mem_image.mpr |
| 73 | ⟨i, Finset.mem_univ _, (Finset.mem_filter.mp hi).2⟩, hz⟩) |
| 74 | rw [hempty, Finset.card_empty, Nat.cast_zero] |
| 75 | · intro p Z hZ hcover A A₀ hA hproper C x hx hxA |
| 76 | let S := (Spec (.of R)).presheaf.stalk x |
| 77 | let : Algebra R S := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 78 | let : IsLocalization x.asIdeal.primeCompl S := by |
| 79 | change IsLocalization x.asIdeal.primeCompl ((structurePresheafInCommRingCat R).stalk x) |
| 80 | infer_instance |
| 81 | let : Module.Flat R S := IsLocalization.flat S x.asIdeal.primeCompl |
| 82 | let N := CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) A₀ x hxA |
| 83 | let : Module.Finite S N := Local.TorFinite.localSupportModule_finite (Spec (.of R)) A₀ x hxA |
| 84 | let : HasProjectiveDimensionLE N m := |
| 85 | Polynomial.DimensionBound.bound_of_ringEquiv (asIso (j.stalkMap x)).commRingCatIsoToRingEquiv m |
| 86 | (Smooth.StalkDimension.stalk_bound V.structureMap m (j x)) N |
| 87 | have hiso := Affine.CoverIsolation.isolated V m p q R j M Z hZ hcover A A₀ hA hproper C x hx hxA |
| 88 | rw [he S N m (IsLocalRing.closedPoint S) hiso] |
| 89 | have hfilter : (∑ i ∈ Finset.univ.filter (fun i => P (v i)), |
| 90 | Tor.Euler.euler S ((ProjectionFormula.Flat.Extension.baseChange R S).obj (.of R (R ⧸ (v i).asIdeal))) N m) = |
| 91 | ∑ i : Fin k, Tor.Euler.euler S |
| 92 | ((ProjectionFormula.Flat.Extension.baseChange R S).obj (.of R (R ⧸ (v i).asIdeal))) N m := by |
| 93 | apply Finset.sum_subset (Finset.filter_subset _ _) |
| 94 | intro i hi hnot |
| 95 | have hne : V.supportCodimension (Affine.FiltrationAvoidance.support j (v i)) ≠ q := |
| 96 | fun hh => hnot (Finset.mem_filter.mpr ⟨hi, hh⟩) |
| 97 | have hbad : q < V.supportCodimension (Affine.FiltrationAvoidance.support j (v i)) := lt_of_le_of_ne (hdim i) hne.symm |
| 98 | apply Affine.HigherEuler.zero V m p q R j (v i) hbad A A₀ hA C x hx hxA |
| 99 | exact Affine.CoverIsolation.isolated V m p q R j (.of R (R ⧸ (v i).asIdeal)) Z hZ |
| 100 | (fun z hz => hcover z (hsupp i hz)) A A₀ hA hproper C x hx hxA |
| 101 | rw [← hfilter] |
| 102 | calc |
| 103 | _ = ∑ z ∈ F, ((FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M).toNat : ℚ) * |
| 104 | Tor.Euler.euler S ((ProjectionFormula.Flat.Extension.baseChange R S).obj (.of R (R ⧸ z.asIdeal))) N m := by |
| 105 | simpa only [P, F, Finset.filter_congr_decidable] using ProjectionFormula.Finite.MultiplicitySum.reindex k v P |
| 106 | (fun z => FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M) hc |
| 107 | (fun z => Tor.Euler.euler S ((ProjectionFormula.Flat.Extension.baseChange R S).obj (.of R (R ⧸ z.asIdeal))) N m) |
| 108 | _ = _ := by |
| 109 | apply Finset.sum_congr rfl |
| 110 | intro z _ |
| 111 | rw [Affine.Prime.euler V m R j z A₀ A.val C.val hA x hx hxA] |
| 112 | |
| 113 | end |
| 114 | |
| 115 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Proper.AffineEuler |