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.GeometricEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Open.SupportEuler |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.Prime |
| 4 | |
| 5 | /-! # Higher Euler -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.HigherEuler |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Higher-codimension affine prime factors have zero native Euler |
| 12 | contribution whenever their localized pairing is isolated. This uses |
| 13 | Serre vanishing and requires no additional positioning of that factor. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FiltrationAvoidance |
| 21 | |
| 22 | theorem zero (V : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p q : ℕ) |
| 23 | [SmoothOfRelativeDimension m V.structureMap] |
| 24 | (R : Type) [CommRing R] (j : Spec (.of R) ⟶ V.carrier) [IsOpenImmersion j] |
| 25 | (w : PrimeSpectrum R) (hw : q < V.supportCodimension (FiltrationAvoidance.support j w)) |
| 26 | (A : V.DimensionCycleSupport p) (A₀ : IrreducibleCloseds (Spec (.of R))) |
| 27 | (hA : j (CycleClass.Thom.IntersectionGeometry.supportPoint A₀) = CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 28 | (C : V.DimensionCycleSupport (p + q)) (x : PrimeSpectrum R) |
| 29 | (hx : j x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) (hxA : x ∈ (A₀ : Set (Spec (.of R)))) |
| 30 | (hi : letI : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 31 | Module.support ((Spec (.of R)).presheaf.stalk x) |
| 32 | ((Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj (.of R (R ⧸ w.asIdeal))) ∩ |
| 33 | Module.support ((Spec (.of R)).presheaf.stalk x) (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) A₀ x hxA) ⊆ |
| 34 | {IsLocalRing.closedPoint ((Spec (.of R)).presheaf.stalk x)}) : |
| 35 | letI : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 36 | Tor.Euler.euler ((Spec (.of R)).presheaf.stalk x) |
| 37 | ((Flat.Extension.baseChange R ((Spec (.of R)).presheaf.stalk x)).obj (.of R (R ⧸ w.asIdeal))) |
| 38 | (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) A₀ x hxA) m = 0 := by |
| 39 | let S := (Spec (.of R)).presheaf.stalk x |
| 40 | let : Algebra R S := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 41 | let : IsLocalization x.asIdeal.primeCompl S := by |
| 42 | change IsLocalization x.asIdeal.primeCompl ((structurePresheafInCommRingCat R).stalk x) |
| 43 | infer_instance |
| 44 | by_cases hwx : w.asIdeal ≤ x.asIdeal |
| 45 | · let B := FiltrationAvoidance.support j w |
| 46 | let B₀ := SupportStalk.support R w |
| 47 | have hxB₀ := SupportStalk.mem R w x hwx |
| 48 | have hB : j (CycleClass.Thom.IntersectionGeometry.supportPoint B₀) = CycleClass.Thom.IntersectionGeometry.supportPoint B := by |
| 49 | rw [SupportStalk.point] |
| 50 | exact (irreducibleSetEquivPoints.apply_symm_apply (j w)).symm |
| 51 | have hxB : j x ∈ (B : Set V.carrier) := (Prime.mem_iff j w x).mpr hwx |
| 52 | have hxAj : j x ∈ (A.val : Set V.carrier) := |
| 53 | CoverIsolation.image_subset j A₀ A.val hA ⟨x, hxA, rfl⟩ |
| 54 | have he := PrincipalBaseChange.SupportOrder.baseEquiv R w x hwx |
| 55 | rw [he.support_eq] at hi |
| 56 | rw [PrimeFiltrationEuler.euler_iso_left S he.toModuleIso (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) A₀ x hxA) m, |
| 57 | Open.SupportEuler.euler j B₀ A₀ B A.val hB hA x hxB₀ hxA hxB hxAj m] |
| 58 | apply Smooth.GeometricEuler.supports_at V m B A.val C.val (j x) hx hxB hxAj |
| 59 | · have hAd := A.property |
| 60 | have hCd := C.property |
| 61 | change q < V.supportCodimension B at hw |
| 62 | omega |
| 63 | · exact Open.SupportEuler.isolated j B₀ A₀ B A.val hB hA x hxB₀ hxA hxB hxAj hi |
| 64 | · exact LocalizedFixedFiltration.prime_euler_zero R S x w hwx _ m |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.HigherEuler |