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.Principal.ChartContributing |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Finite.MultiplicitySum |
| 3 | |
| 4 | /-! # Chart Finite Sum -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartFiniteSum |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The full local pairing with the original principal-divisor |
| 11 | cycle is the finite difference of the chart numerator and denominator |
| 12 | weighted intersection sums. -/ |
| 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 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm.FiniteSupportCharts OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |
| 21 | |
| 22 | theorem coefficient (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (k : ℕ) |
| 23 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 24 | (F : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val × Bool, Finset (PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1))) |
| 25 | (hF : DescentPosition.PrimeData X k W.val g hg F) |
| 26 | (hout : DescentPosition.Outside X k W.val g hg F) |
| 27 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i)) |
| 28 | (A C : IrreducibleCloseds X.carrier) (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x = CycleClass.Thom.IntersectionGeometry.supportPoint C) : |
| 29 | (ClosedSectionCycle.principalCycle X (k + 1) W.val g).sum |
| 30 | (fun B c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A C) = |
| 31 | ∑ z ∈ F (i, true) ∪ F (i, false), |
| 32 | (Affine.PrincipalWeight.weight (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) (ChartEquations.numerator X W.val g hg i) z - |
| 33 | Affine.PrincipalWeight.weight (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) (ChartEquations.denominator X W.val g hg i) z) * |
| 34 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X (Affine.FiltrationAvoidance.support (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) z) A C := by |
| 35 | let T := F (i, true) ∪ F (i, false) |
| 36 | have hdata (z : T) : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i).asIdeal ≤ z.val.asIdeal ∧ |
| 37 | X.supportCodimension (Affine.FiltrationAvoidance.support (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) z.val) = k + 1 := by |
| 38 | rcases Finset.mem_union.mp z.property with hz | hz |
| 39 | · exact ⟨(hF (i, true) z.val hz).1, (hF (i, true) z.val hz).2.2⟩ |
| 40 | · exact ⟨(hF (i, false) z.val hz).1, (hF (i, false) z.val hz).2.2⟩ |
| 41 | let D : T → X.DimensionCycleSupport (k + 1) := |
| 42 | fun z => ⟨Affine.FiltrationAvoidance.support (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) z.val, (hdata z).2⟩ |
| 43 | have hD : Function.Injective D := by |
| 44 | intro z w he |
| 45 | apply Subtype.ext |
| 46 | exact Affine.PrimeCodimension.injective (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) (congrArg Subtype.val he) |
| 47 | let b := ClosedSectionCycle.principalCycle X (k + 1) W.val g |
| 48 | let e := fun B : X.DimensionCycleSupport (k + 1) => CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A C |
| 49 | let w := fun z : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) => |
| 50 | Affine.PrincipalWeight.weight (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) (ChartEquations.numerator X W.val g hg i) z - |
| 51 | Affine.PrincipalWeight.weight (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) (ChartEquations.denominator X W.val g hg i) z |
| 52 | have hcoeff (z : T) (_ : z ∈ (Finset.univ : Finset T)) : b (D z) = w z.val := by |
| 53 | rw [ClosedSectionCycle.principalCycle_apply] |
| 54 | exact ChartCoefficient.coefficient X W.val g hg i z.val (hdata z).1 (D z).val |
| 55 | (irreducibleSetEquivPoints.apply_symm_apply (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i z.val)).symm |
| 56 | have hmissing (B : X.DimensionCycleSupport (k + 1)) (hB : B ∉ Finset.univ.image D) : b B * e B = 0 := by |
| 57 | by_cases hb : b B = 0 |
| 58 | · rw [hb, zero_mul] |
| 59 | by_cases he : e B = 0 |
| 60 | · rw [he, mul_zero] |
| 61 | obtain ⟨z, hz, hzB⟩ := ChartContributing.exists_prime X k W g hg F hout i x A C hx B |
| 62 | (Finsupp.mem_support_iff.mpr hb) he |
| 63 | exact (hB (Finset.mem_image.mpr ⟨⟨z, hz⟩, Finset.mem_univ _, Subtype.ext hzB⟩)).elim |
| 64 | have he := Finite.MultiplicitySum.LocalCycle.reindex b e Finset.univ D hD (fun z => w z.val) hcoeff hmissing |
| 65 | exact he.trans (Finset.sum_coe_sort T |
| 66 | (fun z => w z * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X (Affine.FiltrationAvoidance.support (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) z) A C)) |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartFiniteSum |