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.PrimeCodimension |
| 2 | |
| 3 | /-! # Moved Affine Filtration Euler -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.MovedAffineFiltrationEuler |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! After moving against the finitely many higher-codimension strata |
| 10 | of one fixed affine filtration, every relevant local Euler pairing is |
| 11 | computed solely by its factors in the expected codimension. Their |
| 12 | multiplicities are the native generic module lengths. -/ |
| 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_moved (R : Type) [CommRing R] [IsNoetherianRing R] |
| 23 | (V : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p q : ℕ) [SmoothOfRelativeDimension m V.structureMap] |
| 24 | (j : Spec (.of R) ⟶ V.carrier) [IsOpenImmersion j] |
| 25 | (M : ModuleCat R) [Module.Finite R M] |
| 26 | (hM : ∀ v ∈ Module.support R M, q ≤ V.supportCodimension (Affine.FiltrationAvoidance.support j v)) |
| 27 | (a : V.RationalDimensionCycle p) : |
| 28 | ∃ (k : ℕ) (v : Fin k → PrimeSpectrum R) (a' : V.RationalDimensionCycle p), |
| 29 | CycleClass.Thom.IntersectionGeometry.RationallyEquivalent V p a a' ∧ |
| 30 | (∀ i, q ≤ V.supportCodimension (Affine.FiltrationAvoidance.support j (v i))) ∧ |
| 31 | (∀ z : PrimeSpectrum R, V.supportCodimension (Affine.FiltrationAvoidance.support j z) = q → |
| 32 | FiltrationBaseLength.length R (Localization.AtPrime z.asIdeal) M = |
| 33 | (Finset.univ.filter (fun i => v i = z)).card) ∧ |
| 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 | ∑ i ∈ Finset.univ.filter (fun i => V.supportCodimension (Affine.FiltrationAvoidance.support j (v i)) = q), |
| 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 ⧸ (v i).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 (Affine.FiltrationAvoidance.support j (v i)) := |
| 51 | hM (v i) (hsupp i (MinimalPrimeFiltration.prime_mem_support R (v i))) |
| 52 | let I := {i : Fin k // q < V.supportCodimension (Affine.FiltrationAvoidance.support j (v i))} |
| 53 | obtain ⟨a', ha', hproper⟩ := General.ChowMoving.cycle V m (fun i : I => Affine.FiltrationAvoidance.support j (v i.val)) p a |
| 54 | refine ⟨k, v, a', ha', hdim, ?_, ?_⟩ |
| 55 | · intro z hz |
| 56 | exact hcount z (Affine.PrimeCodimension.minimal V m q j M hM z hz) |
| 57 | · intro A hA C x hx hAC |
| 58 | let : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 59 | intro N _ d _ hisolated |
| 60 | let : IsLocalization x.asIdeal.primeCompl ((Spec (.of R)).presheaf.stalk x) := by |
| 61 | change IsLocalization x.asIdeal.primeCompl ((structurePresheafInCommRingCat R).stalk x) |
| 62 | infer_instance |
| 63 | let : Module.Flat R ((Spec (.of R)).presheaf.stalk x) := |
| 64 | IsLocalization.flat _ x.asIdeal.primeCompl |
| 65 | rw [he ((Spec (.of R)).presheaf.stalk x) N d |
| 66 | (IsLocalRing.closedPoint ((Spec (.of R)).presheaf.stalk x)) hisolated] |
| 67 | symm |
| 68 | apply Finset.sum_subset (Finset.filter_subset _ _) |
| 69 | intro i hi hnot |
| 70 | have hne : V.supportCodimension (Affine.FiltrationAvoidance.support j (v i)) ≠ q := |
| 71 | fun hh => hnot (Finset.mem_filter.mpr ⟨hi, hh⟩) |
| 72 | have hbad : q < V.supportCodimension (Affine.FiltrationAvoidance.support j (v i)) := lt_of_le_of_ne (hdim i) hne.symm |
| 73 | exact Affine.FiltrationAvoidance.native_euler_zero V j p q A C x (v i) hx hAC hbad (hproper ⟨i, hbad⟩ A hA) N d |
| 74 | |
| 75 | end |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.MovedAffineFiltrationEuler |