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.MovedAffineWeightedEuler |
| 2 | |
| 3 | /-! # Euler Strata -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.EulerStrata |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A finite list of exceptional affine strata can be fixed before |
| 10 | choosing any intersecting cycle. Every cycle meeting these strata |
| 11 | properly has the same generic-length Euler expansion. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 17 | open scoped Classical |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FiltrationAvoidance |
| 20 | |
| 21 | theorem exists_data (R : Type) [CommRing R] [IsNoetherianRing R] |
| 22 | (V : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m q : ℕ) [SmoothOfRelativeDimension m V.structureMap] |
| 23 | (j : Spec (.of R) ⟶ V.carrier) [IsOpenImmersion j] |
| 24 | (M : ModuleCat R) [Module.Finite R M] |
| 25 | (hM : ∀ v ∈ Module.support R M, q ≤ V.supportCodimension (FiltrationAvoidance.support j v)) : |
| 26 | ∃ (F : Finset (PrimeSpectrum R)) (Z : Finset (IrreducibleCloseds V.carrier)), |
| 27 | (∀ B ∈ Z, q < V.supportCodimension B) ∧ |
| 28 | (∀ z ∈ F, z ∈ Module.support R M ∧ V.supportCodimension (FiltrationAvoidance.support j z) = q ∧ |
| 29 | FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M ≠ ⊤) ∧ |
| 30 | (∀ z : PrimeSpectrum R, V.supportCodimension (FiltrationAvoidance.support j z) = q → z ∉ F → |
| 31 | FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M = 0) ∧ |
| 32 | ∀ (p : ℕ) (a : V.RationalDimensionCycle p), |
| 33 | a ∈ Proper.SupportCycles.submodule V p (fun B : Z => B.val) → |
| 34 | ∀ A ∈ a.support, ∀ C : V.DimensionCycleSupport (p + q), ∀ x : PrimeSpectrum R, |
| 35 | j x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val → CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set V.carrier) → |
| 36 | letI : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 37 | ∀ (N : ModuleCat ((Spec (.of R)).presheaf.stalk x)) [Module.Finite ((Spec (.of R)).presheaf.stalk x) N] |
| 38 | (d : ℕ) [HasProjectiveDimensionLE N d], |
| 39 | Module.support ((Spec (.of R)).presheaf.stalk x) |
| 40 | ((ProjectionFormula.Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj M) ∩ |
| 41 | Module.support ((Spec (.of R)).presheaf.stalk x) N ⊆ |
| 42 | {IsLocalRing.closedPoint ((Spec (.of R)).presheaf.stalk x)} → |
| 43 | Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 44 | ((ProjectionFormula.Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj M) N d = |
| 45 | ∑ z ∈ F, ((FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M).toNat : ℚ) * |
| 46 | Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 47 | ((ProjectionFormula.Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj |
| 48 | (.of R (R ⧸ z.asIdeal))) N d := by |
| 49 | obtain ⟨k, v, hsupp, hcount, he⟩ := UniversalPrimeFiltration.exists_data R M |
| 50 | have hdim (i : Fin k) : q ≤ V.supportCodimension (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 (FiltrationAvoidance.support j z) = q |
| 53 | let F := (Finset.univ.image v).filter P |
| 54 | let Z := (Finset.univ.filter (fun i => q < V.supportCodimension (FiltrationAvoidance.support j (v i)))).image |
| 55 | (fun i => FiltrationAvoidance.support j (v i)) |
| 56 | have hc (z : PrimeSpectrum R) (hz : P z) : |
| 57 | FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M = |
| 58 | (Finset.univ.filter (fun i => v i = z)).card := |
| 59 | hcount z (PrimeCodimension.minimal V m q j M hM z hz) |
| 60 | refine ⟨F, Z, ?_, ?_, ?_, ?_⟩ |
| 61 | · intro B hB |
| 62 | obtain ⟨i, hi, rfl⟩ := Finset.mem_image.mp hB |
| 63 | exact (Finset.mem_filter.mp hi).2 |
| 64 | · intro z hz |
| 65 | have hP := (Finset.mem_filter.mp hz).2 |
| 66 | have hs : z ∈ Module.support R M := by |
| 67 | obtain ⟨i, _, rfl⟩ := Finset.mem_image.mp (Finset.mem_filter.mp hz).1 |
| 68 | exact hsupp i (MinimalPrimeFiltration.prime_mem_support R (v i)) |
| 69 | refine ⟨hs, hP, ?_⟩ |
| 70 | rw [hc z hP] |
| 71 | exact ENat.natCast_ne_top _ |
| 72 | · intro z hz hzF |
| 73 | rw [hc z hz] |
| 74 | have hempty : Finset.univ.filter (fun i => v i = z) = ∅ := by |
| 75 | apply Finset.eq_empty_iff_forall_notMem.mpr |
| 76 | intro i hi |
| 77 | exact hzF (Finset.mem_filter.mpr ⟨Finset.mem_image.mpr |
| 78 | ⟨i, Finset.mem_univ _, (Finset.mem_filter.mp hi).2⟩, hz⟩) |
| 79 | rw [hempty, Finset.card_empty, Nat.cast_zero] |
| 80 | · intro p a ha A hA C x hx hAC |
| 81 | let : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 82 | intro N _ d _ hisolated |
| 83 | let : IsLocalization x.asIdeal.primeCompl ((Spec (.of R)).presheaf.stalk x) := by |
| 84 | change IsLocalization x.asIdeal.primeCompl ((structurePresheafInCommRingCat R).stalk x) |
| 85 | infer_instance |
| 86 | let : Module.Flat R ((Spec (.of R)).presheaf.stalk x) := |
| 87 | IsLocalization.flat _ x.asIdeal.primeCompl |
| 88 | rw [he ((Spec (.of R)).presheaf.stalk x) N d |
| 89 | (IsLocalRing.closedPoint ((Spec (.of R)).presheaf.stalk x)) hisolated] |
| 90 | have hfilter : (∑ i ∈ Finset.univ.filter (fun i => P (v i)), |
| 91 | Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 92 | ((ProjectionFormula.Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj |
| 93 | (.of R (R ⧸ (v i).asIdeal))) N d) = |
| 94 | ∑ i : Fin k, Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 95 | ((ProjectionFormula.Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj |
| 96 | (.of R (R ⧸ (v i).asIdeal))) N d := by |
| 97 | apply Finset.sum_subset (Finset.filter_subset _ _) |
| 98 | intro i hi hnot |
| 99 | have hne : V.supportCodimension (FiltrationAvoidance.support j (v i)) ≠ q := |
| 100 | fun hh => hnot (Finset.mem_filter.mpr ⟨hi, hh⟩) |
| 101 | have hbad : q < V.supportCodimension (FiltrationAvoidance.support j (v i)) := lt_of_le_of_ne (hdim i) hne.symm |
| 102 | have hz : FiltrationAvoidance.support j (v i) ∈ Z := |
| 103 | Finset.mem_image.mpr ⟨i, Finset.mem_filter.mpr ⟨hi, hbad⟩, rfl⟩ |
| 104 | exact FiltrationAvoidance.native_euler_zero V j p q A C x (v i) hx hAC hbad (ha ⟨_, hz⟩ A hA) N d |
| 105 | rw [← hfilter] |
| 106 | simpa only [P, F, Finset.filter_congr_decidable] using ProjectionFormula.Finite.MultiplicitySum.reindex k v P |
| 107 | (fun z => FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M) hc |
| 108 | (fun z => Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 109 | ((ProjectionFormula.Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj |
| 110 | (.of R (R ⧸ z.asIdeal))) N d) |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.EulerStrata |