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.GeometricWeightedEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.LocalizedTorEuler |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.Tor |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkDimension |
| 5 | |
| 6 | /-! # Geometric Iterated Expansion -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GeometricIteratedExpansion |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Expanding the iterated Euler pairing along the top-dimensional |
| 13 | primes of the intermediate intersection gives actual localized Tor |
| 14 | Euler coefficients. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | open scoped Classical |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 23 | |
| 24 | theorem exists_sum {k : Type} [Field k] {X : Scheme} [IsLocallyNoetherian X] |
| 25 | (f : X ⟶ Spec (.of k)) (d : ℕ) [SmoothOfRelativeDimension d f] (x : X) |
| 26 | (N M L : ModuleCat (X.presheaf.stalk x)) |
| 27 | [Module.Finite (X.presheaf.stalk x) N] [Module.Finite (X.presheaf.stalk x) M] |
| 28 | [Module.Finite (X.presheaf.stalk x) L] (r s : ℕ) |
| 29 | (hNM : ∀ p ∈ Module.support (X.presheaf.stalk x) N ∩ Module.support (X.presheaf.stalk x) M, |
| 30 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f ≤ r) |
| 31 | (hL : ∀ p ∈ Module.support (X.presheaf.stalk x) L, |
| 32 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f ≤ s) |
| 33 | (heq : r + s = d + Foundations.Scheme.SupportDimension.supportTranscendenceDimension (irreducibleSetEquivPoints.symm x) f) |
| 34 | (hi : (Module.support (X.presheaf.stalk x) N ∩ Module.support (X.presheaf.stalk x) M) ∩ |
| 35 | Module.support (X.presheaf.stalk x) L ⊆ {IsLocalRing.closedPoint (X.presheaf.stalk x)}) : |
| 36 | ∃ F : Finset (PrimeSpectrum (X.presheaf.stalk x)), |
| 37 | (∀ p ∈ F, p ∈ Module.support (X.presheaf.stalk x) N ∩ Module.support (X.presheaf.stalk x) M ∧ |
| 38 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f = r) ∧ |
| 39 | (∀ p, Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f = r → p ∉ F → |
| 40 | ProjectionFormula.Tor.Euler.euler (Localization.AtPrime p.asIdeal) |
| 41 | ((Flat.Extension.baseChange (X.presheaf.stalk x) (Localization.AtPrime p.asIdeal)).obj N) |
| 42 | ((Flat.Extension.baseChange (X.presheaf.stalk x) (Localization.AtPrime p.asIdeal)).obj M) d = 0) ∧ |
| 43 | (∑ j ∈ Finset.range (d + 1), (-1 : ℚ) ^ j * ProjectionFormula.Tor.Euler.euler (X.presheaf.stalk x) |
| 44 | (((Tor (ModuleCat (X.presheaf.stalk x)) j).obj N).obj M) L d) = |
| 45 | ∑ p ∈ F, ProjectionFormula.Tor.Euler.euler (Localization.AtPrime p.asIdeal) |
| 46 | ((Flat.Extension.baseChange (X.presheaf.stalk x) (Localization.AtPrime p.asIdeal)).obj N) |
| 47 | ((Flat.Extension.baseChange (X.presheaf.stalk x) (Localization.AtPrime p.asIdeal)).obj M) d * |
| 48 | ProjectionFormula.Tor.Euler.euler (X.presheaf.stalk x) (.of _ (X.presheaf.stalk x ⧸ p.asIdeal)) L d := by |
| 49 | let R := X.presheaf.stalk x |
| 50 | let T (j : ℕ) := ((Tor (ModuleCat R) j).obj N).obj M |
| 51 | let : ∀ j, Module.Finite R (T j) := fun j => ProjectionFormula.Finite.Tor.finite R N M j |
| 52 | let : HasProjectiveDimensionLE L d := Smooth.StalkDimension.stalk_bound f d x L |
| 53 | have hT (j : ℕ) : ∀ p ∈ Module.support R (T j), |
| 54 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f ≤ r := by |
| 55 | intro p hp |
| 56 | exact hNM p (ProjectionFormula.Tor.Support.support_subset R N M j hp) |
| 57 | choose F hF hout he using (fun j : ℕ => GeometricWeightedEuler.exists_data f d x (T j) r (hT j)) |
| 58 | let U := (Finset.range (d + 1)).biUnion F |
| 59 | have hU (p : PrimeSpectrum R) (hp : p ∈ U) : |
| 60 | p ∈ Module.support R N ∩ Module.support R M ∧ |
| 61 | Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f = r := by |
| 62 | obtain ⟨j, _, hpj⟩ := Finset.mem_biUnion.mp hp |
| 63 | exact ⟨ProjectionFormula.Tor.Support.support_subset R N M j (hF j p hpj).1, (hF j p hpj).2.1⟩ |
| 64 | have hzero (p : PrimeSpectrum R) |
| 65 | (hp : Foundations.Scheme.SupportDimension.supportTranscendenceDimension (Stalk.DivisorSupport.primeClosure X x p) f = r) (hpU : p ∉ U) : |
| 66 | ProjectionFormula.Tor.Euler.euler (Localization.AtPrime p.asIdeal) |
| 67 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj N) |
| 68 | ((Flat.Extension.baseChange R (Localization.AtPrime p.asIdeal)).obj M) d = 0 := by |
| 69 | rw [LocalizedTorEuler.euler] |
| 70 | apply Finset.sum_eq_zero |
| 71 | intro j hj |
| 72 | rw [hout j p hp (fun hpj => hpU (Finset.mem_biUnion.mpr ⟨j, hj, hpj⟩))] |
| 73 | simp |
| 74 | refine ⟨U, hU, hzero, ?_⟩ |
| 75 | have hj (j : ℕ) (hj : j ∈ Finset.range (d + 1)) : |
| 76 | ProjectionFormula.Tor.Euler.euler R (T j) L d = |
| 77 | ∑ p ∈ U, ((FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) (T j)).toNat : ℚ) * |
| 78 | ProjectionFormula.Tor.Euler.euler R (.of R (R ⧸ p.asIdeal)) L d := by |
| 79 | have his : Module.support R (T j) ∩ Module.support R L ⊆ {IsLocalRing.closedPoint R} := |
| 80 | (Set.inter_subset_inter_left _ (ProjectionFormula.Tor.Support.support_subset R N M j)).trans hi |
| 81 | rw [he j L s hL heq his] |
| 82 | apply Finset.sum_subset (fun p hp => Finset.mem_biUnion.mpr ⟨j, hj, hp⟩) |
| 83 | intro p hp hpj |
| 84 | rw [hout j p (hU p hp).2 hpj] |
| 85 | simp |
| 86 | calc |
| 87 | _ = ∑ j ∈ Finset.range (d + 1), ∑ p ∈ U, |
| 88 | ((-1 : ℚ) ^ j * ((FiltrationBaseLength.length R (Localization.AtPrime p.asIdeal) (T j)).toNat : ℚ)) * |
| 89 | ProjectionFormula.Tor.Euler.euler R (.of R (R ⧸ p.asIdeal)) L d := by |
| 90 | apply Finset.sum_congr rfl |
| 91 | intro j hj' |
| 92 | rw [hj j hj', Finset.mul_sum] |
| 93 | apply Finset.sum_congr rfl |
| 94 | intro p _ |
| 95 | ring |
| 96 | _ = _ := by |
| 97 | rw [Finset.sum_comm] |
| 98 | apply Finset.sum_congr rfl |
| 99 | intro p _ |
| 100 | rw [LocalizedTorEuler.euler, Finset.sum_mul] |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GeometricIteratedExpansion |