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.PrincipalBaseChange |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.CoverIsolation |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportTor |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Truncation |
| 5 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizedFixedFiltration |
| 6 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FiltrationAvoidance |
| 7 | |
| 8 | /-! # Prime -/ |
| 9 | |
| 10 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Prime |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | /-! Every prime factor in an affine Euler expansion gives exactly |
| 15 | ThomClass's native global intersection coefficient, including factors whose |
| 16 | support misses the chosen point. -/ |
| 17 | |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 22 | |
| 23 | theorem mem_iff {R : Type} [CommRing R] {X : Scheme} |
| 24 | (j : Spec (.of R) ⟶ X) [IsOpenImmersion j] (w x : PrimeSpectrum R) : |
| 25 | j x ∈ (FiltrationAvoidance.support j w : Set X) ↔ w.asIdeal ≤ x.asIdeal := by |
| 26 | change j x ∈ closure ({j w} : Set X) ↔ _ |
| 27 | rw [← specializes_iff_mem_closure] |
| 28 | exact j.isOpenEmbedding.isInducing.specializes_iff.trans |
| 29 | (PrimeSpectrum.le_iff_specializes w x).symm |
| 30 | |
| 31 | theorem euler (V : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 32 | [SmoothOfRelativeDimension m V.structureMap] |
| 33 | (R : Type) [CommRing R] (j : Spec (.of R) ⟶ V.carrier) [IsOpenImmersion j] |
| 34 | (w : PrimeSpectrum R) (A₀ : IrreducibleCloseds (Spec (.of R))) |
| 35 | (A C : IrreducibleCloseds V.carrier) (hA : j (CycleClass.Thom.IntersectionGeometry.supportPoint A₀) = CycleClass.Thom.IntersectionGeometry.supportPoint A) |
| 36 | (x : PrimeSpectrum R) (hx : j x = CycleClass.Thom.IntersectionGeometry.supportPoint C) (hxA : x ∈ (A₀ : Set (Spec (.of R)))) : |
| 37 | letI : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 38 | Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 39 | ((Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj (.of R (R ⧸ w.asIdeal))) |
| 40 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) A₀ x hxA) m = |
| 41 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity V (FiltrationAvoidance.support j w) A C := by |
| 42 | let S := (Spec (.of R)).presheaf.stalk x |
| 43 | let : Algebra R S := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 44 | let B := FiltrationAvoidance.support j w |
| 45 | have hxAj : j x ∈ (A : Set V.carrier) := |
| 46 | CoverIsolation.image_subset j A₀ A hA ⟨x, hxA, rfl⟩ |
| 47 | have hxAC : CycleClass.Thom.IntersectionGeometry.supportPoint C ∈ (A : Set V.carrier) := hx ▸ hxAj |
| 48 | by_cases hw : w.asIdeal ≤ x.asIdeal |
| 49 | · have hxBj : j x ∈ (B : Set V.carrier) := (mem_iff j w x).mpr hw |
| 50 | have hxBC : CycleClass.Thom.IntersectionGeometry.supportPoint C ∈ (B : Set V.carrier) := hx ▸ hxBj |
| 51 | let B₀ := SupportStalk.support R w |
| 52 | have hxB₀ := SupportStalk.mem R w x hw |
| 53 | have hB : j (CycleClass.Thom.IntersectionGeometry.supportPoint B₀) = CycleClass.Thom.IntersectionGeometry.supportPoint B := by |
| 54 | rw [SupportStalk.point] |
| 55 | exact (irreducibleSetEquivPoints.apply_symm_apply (j w)).symm |
| 56 | rw [PrimeFiltrationEuler.euler_iso_left S |
| 57 | (PrincipalBaseChange.SupportOrder.baseEquiv R w x hw).toModuleIso |
| 58 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) A₀ x hxA) m, |
| 59 | Truncation.intersectionMultiplicity_eq_relative_sum V m B A C hxBC hxAC] |
| 60 | apply Finset.sum_congr rfl |
| 61 | intro n _ |
| 62 | apply congrArg (fun l : ℕ∞ => (-1 : ℚ) ^ n * (l.toNat : ℚ)) |
| 63 | exact (Open.SupportTor.localTorLength_eq j B₀ A₀ B A hB hA x hxB₀ hxA hxBj hxAj n).trans |
| 64 | (Open.SupportTor.localTorLength_congr_point V.carrier B A hx hxBj hxAj hxBC hxAC n) |
| 65 | · let : IsLocalization x.asIdeal.primeCompl S := by |
| 66 | change IsLocalization x.asIdeal.primeCompl ((structurePresheafInCommRingCat R).stalk x) |
| 67 | infer_instance |
| 68 | rw [LocalizedFixedFiltration.prime_euler_zero R S x w hw] |
| 69 | symm |
| 70 | apply dite_eq_right |
| 71 | intro h |
| 72 | apply hw |
| 73 | apply (mem_iff j w x).mp |
| 74 | exact hx.symm ▸ h.1 |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Prime |