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.Component.SerreVanishing |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GlobalParameterWeightDimension |
| 3 | |
| 4 | /-! # Expected Component Cycle -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExpectedComponentCycle |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The expected-codimension component cycle is defined for every |
| 11 | pair of supports. Serre vanishing removes excess components from the |
| 12 | principal-weight formula, without assuming the pair meets properly. -/ |
| 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 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 21 | (A : X.DimensionCycleSupport p) (W : X.DimensionCycleSupport k) |
| 22 | |
| 23 | abbrev components := Finite.ClosedComponents.components X.carrier |
| 24 | (IsolatedGeometricComponents.intersection X.carrier W.val A.val) |
| 25 | |
| 26 | def ambient : IrreducibleCloseds X.carrier →₀ ℚ := |
| 27 | Finsupp.onFinset (components X p k A W) |
| 28 | (fun D => if D ∈ components X p k A W then |
| 29 | TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D) m else 0) |
| 30 | (by intro D h; by_contra hn; exact h (ite_eq_right hn)) |
| 31 | |
| 32 | def cycle : X.RationalDimensionCycle (p + k) := |
| 33 | Finsupp.comapDomain Subtype.val (ambient X m p k A W) Subtype.val_injective.injOn |
| 34 | |
| 35 | theorem apply (D : X.DimensionCycleSupport (p + k)) : |
| 36 | cycle X m p k A W D = if D.val ∈ components X p k A W then |
| 37 | TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D.val) m else 0 := rfl |
| 38 | |
| 39 | theorem mem_components (D : X.DimensionCycleSupport (p + k)) |
| 40 | (hD : D ∈ (cycle X m p k A W).support) : D.val ∈ components X p k A W := by |
| 41 | by_contra hn |
| 42 | exact (Finsupp.mem_support_iff.mp hD) (by rw [ExpectedComponentCycle.apply, ite_eq_right hn]) |
| 43 | |
| 44 | theorem support_subset (D : X.DimensionCycleSupport (p + k)) |
| 45 | (hD : D ∈ (cycle X m p k A W).support) : D.val ≤ A.val ∧ D.val ≤ W.val := by |
| 46 | have h := Finite.ClosedComponents.subset X.carrier |
| 47 | (IsolatedGeometricComponents.intersection X.carrier W.val A.val) D.val |
| 48 | (mem_components X m p k A W D hD) |
| 49 | exact ⟨fun _ hy => (h hy).2, fun _ hy => (h hy).1⟩ |
| 50 | |
| 51 | variable [SmoothOfRelativeDimension m X.structureMap] |
| 52 | |
| 53 | theorem reindex (C : X.DimensionCycleSupport (p + (k + 1))) |
| 54 | (r s : X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)) : |
| 55 | (∑ D ∈ components X p k A W, |
| 56 | TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D) m * |
| 57 | (GlobalParameterSum.Weights.weight X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) r D - |
| 58 | GlobalParameterSum.Weights.weight X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) s D)) = |
| 59 | (cycle X m p k A W).sum (fun D c => c * |
| 60 | (GlobalParameterSum.Weights.weight X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) r D.val - |
| 61 | GlobalParameterSum.Weights.weight X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) s D.val)) := by |
| 62 | let c := cycle X m p k A W |
| 63 | let F := components X p k A W |
| 64 | let T := c.support.image Subtype.val |
| 65 | let w := fun D : IrreducibleCloseds X.carrier => |
| 66 | GlobalParameterSum.Weights.weight X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) r D - |
| 67 | GlobalParameterSum.Weights.weight X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) s D |
| 68 | have hc (D : X.DimensionCycleSupport (p + k)) (hD : D.val ∈ F) : |
| 69 | TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D.val) m = c D := by |
| 70 | rw [ExpectedComponentCycle.apply, ite_eq_left hD] |
| 71 | have hT : T ⊆ F := by |
| 72 | intro D hD |
| 73 | obtain ⟨E, hE, rfl⟩ := Finset.mem_image.mp hD |
| 74 | exact mem_components X m p k A W E hE |
| 75 | have hsum : (∑ D ∈ T, TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D) m * w D) = |
| 76 | ∑ D ∈ F, TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D) m * w D := by |
| 77 | apply Finset.sum_subset hT |
| 78 | intro D hDF hDT |
| 79 | by_cases hdim : X.supportCodimension D = p + k |
| 80 | · let E : X.DimensionCycleSupport (p + k) := ⟨D, hdim⟩ |
| 81 | have hE : E ∉ c.support := fun h => hDT (Finset.mem_image.mpr ⟨E, h, rfl⟩) |
| 82 | rw [hc E hDF, Finsupp.notMem_support_iff.mp hE, zero_mul] |
| 83 | · by_cases hlow : X.supportCodimension D < p + k |
| 84 | · have hd : X.supportCodimension D < X.supportCodimension W.val + X.supportCodimension A.val := by |
| 85 | rw [W.property, A.property] |
| 86 | omega |
| 87 | rw [Component.SerreVanishing.zero X m W.val A.val D hDF hd, zero_mul] |
| 88 | · have hd : X.supportCodimension C.val ≤ X.supportCodimension D := by rw [C.property]; omega |
| 89 | have hw : w D = 0 := by |
| 90 | dsimp only [w] |
| 91 | rw [GlobalParameterWeightDimension.vanishes X m C.val D hd r, |
| 92 | GlobalParameterWeightDimension.vanishes X m C.val D hd s, sub_self] |
| 93 | rw [hw, mul_zero] |
| 94 | change (∑ D ∈ F, _ * w D) = c.sum (fun D a => a * w D.val) |
| 95 | rw [← hsum, Finset.sum_image (fun _ _ _ _ h => Subtype.val_injective h)] |
| 96 | apply Finset.sum_congr rfl |
| 97 | intro D hD |
| 98 | rw [hc D (mem_components X m p k A W D hD)] |
| 99 | |
| 100 | theorem reindex_at (C : X.DimensionCycleSupport (p + (k + 1))) |
| 101 | (x : X.carrier) (hx : x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) (r s : X.carrier.presheaf.stalk x) : |
| 102 | (∑ D ∈ components X p k A W, |
| 103 | TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D) m * |
| 104 | (GlobalParameterSum.Weights.weight X.carrier x r D - GlobalParameterSum.Weights.weight X.carrier x s D)) = |
| 105 | (cycle X m p k A W).sum (fun D c => c * |
| 106 | (GlobalParameterSum.Weights.weight X.carrier x r D.val - GlobalParameterSum.Weights.weight X.carrier x s D.val)) := by |
| 107 | subst x |
| 108 | exact reindex X m p k A W C r s |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ExpectedComponentCycle |