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.Proper.AffineEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CoveredPrincipalExpansion |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalCodimension |
| 4 | |
| 5 | /-! # Principal Expansion -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Proper.PrincipalExpansion |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Proper principal-quotient pairings have the native divisor-order |
| 12 | expansion, without an auxiliary moving condition on filtration primes. -/ |
| 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 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.FiltrationAvoidance |
| 20 | |
| 21 | theorem exists_data (V : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m k : ℕ) |
| 22 | [SmoothOfRelativeDimension m V.structureMap] |
| 23 | (R : Type) [CommRing R] [IsNoetherianRing R] |
| 24 | (j : Spec (.of R) ⟶ V.carrier) [IsOpenImmersion j] |
| 25 | (v : PrimeSpectrum R) (hv : V.supportCodimension (Affine.FiltrationAvoidance.support j v) = k) |
| 26 | (r : R) (hr : r ∉ v.asIdeal) : |
| 27 | ∃ F : Finset (PrimeSpectrum R), |
| 28 | (∀ z ∈ F, v.asIdeal ≤ z.asIdeal ∧ r ∈ z.asIdeal ∧ V.supportCodimension (Affine.FiltrationAvoidance.support j z) = k + 1) ∧ |
| 29 | (∀ z, V.supportCodimension (Affine.FiltrationAvoidance.support j z) = k + 1 → z ∉ F → |
| 30 | Affine.PrincipalWeight.weight R v r z = 0) ∧ |
| 31 | ∀ (p : ℕ) (Z : Finset (IrreducibleCloseds V.carrier)) |
| 32 | (_hZ : ∀ B ∈ Z, k + 1 ≤ V.supportCodimension B) |
| 33 | (_hcover : ∀ w ∈ Module.support R (QuotSMulTop r (R ⧸ v.asIdeal)), |
| 34 | ∃ B ∈ Z, j w ∈ (B : Set V.carrier)) |
| 35 | (A : V.DimensionCycleSupport p) (A₀ : IrreducibleCloseds (Spec (.of R))) |
| 36 | (_hA : j (CycleClass.Thom.IntersectionGeometry.supportPoint A₀) = CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 37 | (_hproper : ∀ B ∈ Z, ∀ D : IrreducibleCloseds V.carrier, |
| 38 | (D : Set V.carrier) ⊆ (A.val : Set V.carrier) ∩ (B : Set V.carrier) → |
| 39 | p + V.supportCodimension B ≤ V.supportCodimension D) |
| 40 | (C : V.DimensionCycleSupport (p + (k + 1))) (x : PrimeSpectrum R) |
| 41 | (_hx : j x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) (hxA : x ∈ (A₀ : Set (Spec (.of R)))) |
| 42 | (hvx : v.asIdeal ≤ x.asIdeal), |
| 43 | CoveredPrincipalExpansion.pairing R v r A₀ x hxA hvx m = |
| 44 | ∑ z ∈ F, Affine.PrincipalWeight.weight R v r z * |
| 45 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity V (Affine.FiltrationAvoidance.support j z) A.val C.val := by |
| 46 | let M := ModuleCat.of R (QuotSMulTop r (R ⧸ v.asIdeal)) |
| 47 | have hM : ∀ z ∈ Module.support R M, k + 1 ≤ V.supportCodimension (Affine.FiltrationAvoidance.support j z) := |
| 48 | Affine.PrincipalCodimension.bound V m k j v hv r hr |
| 49 | obtain ⟨F, hF, hout, he⟩ := AffineEuler.exists_data V m (k + 1) R j M hM |
| 50 | refine ⟨F, ?_, ?_, ?_⟩ |
| 51 | · intro z hz |
| 52 | have h := Affine.PrincipalCodimension.mem_support v z r (hF z hz).1 |
| 53 | exact ⟨h.1, h.2, (hF z hz).2.1⟩ |
| 54 | · intro z hz hnot |
| 55 | rw [Affine.PrincipalWeight.eq_length_all R v r hr z, hout z hz hnot] |
| 56 | rfl |
| 57 | · intro p Z hZ hcover A A₀ hA hproper C x hx hxA hvx |
| 58 | let : Algebra R ((Spec (.of R)).presheaf.stalk x) := (StructureSheaf.toStalk R x).hom.toAlgebra |
| 59 | unfold CoveredPrincipalExpansion.pairing |
| 60 | rw [← Affine.PrincipalBaseChange.euler R v x hvx r (CycleClass.Thom.IntersectionGeometry.localSupportModule (Spec (.of R)) A₀ x hxA) m, |
| 61 | he p Z hZ hcover A A₀ hA hproper C x hx hxA] |
| 62 | apply Finset.sum_congr rfl |
| 63 | intro z hz |
| 64 | rw [Affine.PrincipalWeight.eq_length R v r hr z (hF z hz).1] |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Proper.PrincipalExpansion |