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.ChartEquations |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalWeightTransport |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.WeightDifference |
| 4 | |
| 5 | /-! # Chart Coefficient -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartCoefficient |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original principal-divisor coefficient is exactly the |
| 12 | difference of the fixed affine numerator and denominator weights. -/ |
| 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.ChartGerm.FiniteSupportCharts OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |
| 20 | |
| 21 | theorem coefficient (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W : IrreducibleCloseds X.carrier) |
| 22 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (hg : g ≠ 0) |
| 23 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W) (z : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W i)) |
| 24 | (hvz : (Affine.ChartGerm.FiniteSupportCharts.prime X W i).asIdeal ≤ z.asIdeal) |
| 25 | (C : IrreducibleCloseds X.carrier) (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W i z = CycleClass.Thom.IntersectionGeometry.supportPoint C) : |
| 26 | CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient X W g C = |
| 27 | Affine.PrincipalWeight.weight (Affine.ChartGerm.FiniteSupportCharts.ring X W i) (Affine.ChartGerm.FiniteSupportCharts.prime X W i) (ChartEquations.numerator X W g hg i) z - |
| 28 | Affine.PrincipalWeight.weight (Affine.ChartGerm.FiniteSupportCharts.ring X W i) (Affine.ChartGerm.FiniteSupportCharts.prime X W i) (ChartEquations.denominator X W g hg i) z := by |
| 29 | have hzU : Affine.ChartGerm.FiniteSupportCharts.chart X W i z ∈ Affine.ChartGerm.FiniteSupportCharts.opens X W i := by |
| 30 | rw [← (Affine.ChartGerm.FiniteSupportCharts.affine X W i).opensRange_fromSpec] |
| 31 | exact ⟨z, rfl⟩ |
| 32 | have hzW : Affine.ChartGerm.FiniteSupportCharts.chart X W i z ∈ (W : Set X.carrier) := by |
| 33 | have h := (Affine.Prime.mem_iff (Affine.ChartGerm.FiniteSupportCharts.chart X W i) (Affine.ChartGerm.FiniteSupportCharts.prime X W i) z).mpr hvz |
| 34 | exact (congrArg (fun B : IrreducibleCloseds X.carrier => Affine.ChartGerm.FiniteSupportCharts.chart X W i z ∈ (B : Set X.carrier)) |
| 35 | (Affine.ChartGerm.FiniteSupportCharts.prime_support X W i)).mp h |
| 36 | have hfrac := ChartEquations.fraction X W g hg i (Affine.ChartGerm.FiniteSupportCharts.chart X W i z) hzW hzU |
| 37 | have he := WeightDifference.order X.carrier W (Affine.ChartGerm.FiniteSupportCharts.chart X W i z) hzW |
| 38 | (X.carrier.presheaf.germ (Affine.ChartGerm.FiniteSupportCharts.opens X W i) (Affine.ChartGerm.FiniteSupportCharts.chart X W i z) hzU (ChartEquations.numerator X W g hg i)) |
| 39 | (X.carrier.presheaf.germ (Affine.ChartGerm.FiniteSupportCharts.opens X W i) (Affine.ChartGerm.FiniteSupportCharts.chart X W i z) hzU (ChartEquations.denominator X W g hg i)) |
| 40 | hfrac.1 hfrac.2.1 g hfrac.2.2 |
| 41 | let : IsNoetherianRing Γ(X.carrier, Affine.ChartGerm.FiniteSupportCharts.opens X W i) := |
| 42 | IsLocallyNoetherian.component_noetherian ⟨Affine.ChartGerm.FiniteSupportCharts.opens X W i, Affine.ChartGerm.FiniteSupportCharts.affine X W i⟩ |
| 43 | have ha := Affine.PrincipalWeightTransport.chart X.carrier W (Affine.ChartGerm.FiniteSupportCharts.opens X W i) (Affine.ChartGerm.FiniteSupportCharts.affine X W i) |
| 44 | z hvz hzU (ChartEquations.numerator X W g hg i) |
| 45 | have hb := Affine.PrincipalWeightTransport.chart X.carrier W (Affine.ChartGerm.FiniteSupportCharts.opens X W i) (Affine.ChartGerm.FiniteSupportCharts.affine X W i) |
| 46 | z hvz hzU (ChartEquations.denominator X W g hg i) |
| 47 | have hcoef : CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient X W g C = |
| 48 | ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W).ord g (CycleClass.Thom.IntersectionGeometry.supportPreimage W (Affine.ChartGerm.FiniteSupportCharts.chart X W i z) hzW) : ℚ) := by |
| 49 | have hxW : CycleClass.Thom.IntersectionGeometry.supportPoint C ∈ (W : Set X.carrier) := |
| 50 | (congrArg (fun x : X.carrier => x ∈ (W : Set X.carrier)) hx).mp hzW |
| 51 | rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_left hxW] |
| 52 | apply congrArg (fun y => ((CycleClass.Geometric.GenericPoint.reducedSupportScheme W).ord g y : ℚ)) |
| 53 | apply (CycleClass.Geometric.GenericPoint.reducedSupportι W).isEmbedding.injective |
| 54 | rw [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec, CycleClass.Thom.IntersectionGeometry.supportPreimage_spec] |
| 55 | exact hx.symm |
| 56 | exact hcoef.trans (he.symm.trans (congrArg₂ (fun a b : ℚ => a - b) ha hb).symm) |
| 57 | |
| 58 | end |
| 59 | |
| 60 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartCoefficient |