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.ChartCoefficient |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.DescentPosition |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.SupportRepresentative |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.Principal |
| 5 | |
| 6 | /-! # Chart Contributing -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartContributing |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Every principal-divisor component that contributes to a local |
| 13 | intersection appears in the fixed numerator or denominator prime list |
| 14 | of any chart containing that intersection point. -/ |
| 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.Affine.ChartGerm.FiniteSupportCharts OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |
| 23 | |
| 24 | theorem exists_prime (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (k : ℕ) |
| 25 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 26 | (F : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val × Bool, Finset (PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1))) |
| 27 | (hout : DescentPosition.Outside X k W.val g hg F) |
| 28 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i)) |
| 29 | (A C : IrreducibleCloseds X.carrier) (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x = CycleClass.Thom.IntersectionGeometry.supportPoint C) |
| 30 | (B : X.DimensionCycleSupport (k + 1)) |
| 31 | (hB : B ∈ (ClosedSectionCycle.principalCycle X (k + 1) W.val g).support) |
| 32 | (hI : CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A C ≠ 0) : |
| 33 | ∃ z : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i), z ∈ F (i, true) ∪ F (i, false) ∧ |
| 34 | Affine.FiltrationAvoidance.support (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) z = B.val := by |
| 35 | have hBC : CycleClass.Thom.IntersectionGeometry.supportPoint C ∈ (B.val : Set X.carrier) := by |
| 36 | by_contra h |
| 37 | exact hI (dite_eq_right (fun hh => h hh.1)) |
| 38 | have hxB : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x ∈ (B.val : Set X.carrier) := |
| 39 | (congrArg (fun y : X.carrier => y ∈ (B.val : Set X.carrier)) hx).mpr hBC |
| 40 | obtain ⟨z, hz, hzB, _⟩ := Affine.SupportRepresentative.exists_prime (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) B.val x hxB |
| 41 | have hBW := Support.Principal.subset X k W g B hB |
| 42 | have hzW : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i z ∈ (W.val : Set X.carrier) := |
| 43 | (congrArg (fun y : X.carrier => y ∈ (W.val : Set X.carrier)) hz).mpr |
| 44 | (hBW (B.val.isIrreducible.isGenericPoint_genericPoint B.val.isClosed).mem) |
| 45 | have hvz : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i).asIdeal ≤ z.asIdeal := by |
| 46 | apply (Affine.Prime.mem_iff (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) z).mp |
| 47 | exact (congrArg (fun D : IrreducibleCloseds X.carrier => Affine.ChartGerm.FiniteSupportCharts.chart X W.val i z ∈ (D : Set X.carrier)) |
| 48 | (Affine.ChartGerm.FiniteSupportCharts.prime_support X W.val i)).mpr hzW |
| 49 | refine ⟨z, ?_, hzB⟩ |
| 50 | by_contra hzout |
| 51 | have hzt : z ∉ F (i, true) := fun h => hzout (Finset.mem_union_left _ h) |
| 52 | have hzf : z ∉ F (i, false) := fun h => hzout (Finset.mem_union_right _ h) |
| 53 | have hdim : X.supportCodimension (Affine.FiltrationAvoidance.support (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) z) = k + 1 := |
| 54 | (congrArg X.supportCodimension hzB).trans B.property |
| 55 | have hnum : Affine.PrincipalWeight.weight (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) |
| 56 | (ChartEquations.numerator X W.val g hg i) z = 0 := hout (i, true) z hdim hzt |
| 57 | have hden : Affine.PrincipalWeight.weight (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) |
| 58 | (ChartEquations.denominator X W.val g hg i) z = 0 := hout (i, false) z hdim hzf |
| 59 | apply Finsupp.mem_support_iff.mp hB |
| 60 | rw [ClosedSectionCycle.principalCycle_apply, |
| 61 | ChartCoefficient.coefficient X W.val g hg i z hvz B.val hz, hnum, hden, sub_self] |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartContributing |