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.ChartEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.PrincipalComponentSum |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm |
| 4 | |
| 5 | /-! # Chart Component Sum -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartComponentSum |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The original principal-divisor pairing is a finite sum over the |
| 14 | fixed ambient intersection components, weighted by the difference of |
| 15 | the actual numerator and denominator germ orders. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm.FiniteSupportCharts OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |
| 23 | |
| 24 | theorem mem_opens (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W : IrreducibleCloseds X.carrier) |
| 25 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W i)) : Affine.ChartGerm.FiniteSupportCharts.chart X W i x ∈ Affine.ChartGerm.FiniteSupportCharts.opens X W i := by |
| 26 | rw [← (Affine.ChartGerm.FiniteSupportCharts.affine X W i).opensRange_fromSpec] |
| 27 | exact ⟨x, rfl⟩ |
| 28 | |
| 29 | def germ (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W : IrreducibleCloseds X.carrier) |
| 30 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (hg : g ≠ 0) |
| 31 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W i.1)) : |
| 32 | X.carrier.presheaf.stalk (Affine.ChartGerm.FiniteSupportCharts.chart X W i.1 x) := |
| 33 | X.carrier.presheaf.germ (Affine.ChartGerm.FiniteSupportCharts.opens X W i.1) (Affine.ChartGerm.FiniteSupportCharts.chart X W i.1 x) (mem_opens X W i.1 x) |
| 34 | (ChartEquations.equation X W g hg i) |
| 35 | |
| 36 | theorem germ_map (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W : IrreducibleCloseds X.carrier) |
| 37 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (hg : g ≠ 0) |
| 38 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W i.1)) : |
| 39 | (Affine.ChartGerm.FiniteSupportCharts.chart X W i.1).stalkMap x (ChartComponentSum.germ X W g hg i x) = |
| 40 | StructureSheaf.toStalk (Affine.ChartGerm.FiniteSupportCharts.ring X W i.1) x (ChartEquations.equation X W g hg i) := |
| 41 | Affine.ChartGerm.apply X.carrier (Affine.ChartGerm.FiniteSupportCharts.opens X W i.1) (Affine.ChartGerm.FiniteSupportCharts.affine X W i.1) x |
| 42 | (mem_opens X W i.1 x) (ChartEquations.equation X W g hg i) |
| 43 | |
| 44 | theorem equation (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 45 | [SmoothOfRelativeDimension m X.structureMap] |
| 46 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 47 | (a : X.RationalDimensionCycle p) |
| 48 | (hp : a ∈ Proper.SupportCycles.submodule X p (ChartSupportCover.family X m k W g hg)) |
| 49 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val × Bool) (A : X.DimensionCycleSupport p) (hAa : A ∈ a.support) |
| 50 | (A₀ : IrreducibleCloseds (Spec (.of (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1)))) |
| 51 | (hA : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1 (CycleClass.Thom.IntersectionGeometry.supportPoint A₀) = CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 52 | (C : X.DimensionCycleSupport (p + (k + 1))) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1)) |
| 53 | (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1 x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 54 | (hxA : x ∈ (A₀ : Set (Spec (.of (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1))))) |
| 55 | (hvx : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i.1).asIdeal ≤ x.asIdeal) : |
| 56 | CoveredPrincipalExpansion.pairing (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i.1) |
| 57 | (ChartEquations.equation X W.val g hg i) A₀ x hxA hvx m = |
| 58 | ∑ D ∈ Finite.ClosedComponents.components X.carrier |
| 59 | (IsolatedGeometricComponents.intersection X.carrier W.val A.val), |
| 60 | TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D) m * |
| 61 | GlobalParameterSum.Weights.weight X.carrier (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1 x) (ChartComponentSum.germ X W.val g hg i x) D := by |
| 62 | apply Affine.PrincipalComponentSum.coefficient X m p (k + 1) (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1) |
| 63 | (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i.1) (ChartEquations.equation X W.val g hg i) |
| 64 | (ChartEquations.equation_avoid X W.val g hg i) W.val (Affine.ChartGerm.FiniteSupportCharts.prime_point X W.val i.1) |
| 65 | (ChartSupportCover.supports X m k W g hg i) |
| 66 | (ChartSupportCover.codimension X m k W g hg i) |
| 67 | (ChartSupportCover.covers X m k W g hg i) A A₀ hA ?_ C x hx hxA hvx |
| 68 | (ChartComponentSum.germ X W.val g hg i x) (germ_map X W.val g hg i x) |
| 69 | intro B hB |
| 70 | exact hp ⟨i, ⟨B, hB⟩⟩ A hAa |
| 71 | |
| 72 | theorem coefficient (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 73 | [SmoothOfRelativeDimension m X.structureMap] |
| 74 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 75 | (F : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val × Bool, Finset (PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1))) |
| 76 | (hF : DescentPosition.PrimeData X k W.val g hg F) |
| 77 | (hout : DescentPosition.Outside X k W.val g hg F) |
| 78 | (a : X.RationalDimensionCycle p) |
| 79 | (he : DescentPosition.Expansions X p k W.val g hg F a) |
| 80 | (hp : a ∈ Proper.SupportCycles.submodule X p (ChartSupportCover.family X m k W g hg)) |
| 81 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val) (A : X.DimensionCycleSupport p) (hAa : A ∈ a.support) |
| 82 | (A₀ : IrreducibleCloseds (Spec (.of (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i)))) |
| 83 | (hA : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i (CycleClass.Thom.IntersectionGeometry.supportPoint A₀) = CycleClass.Thom.IntersectionGeometry.supportPoint A.val) |
| 84 | (C : X.DimensionCycleSupport (p + (k + 1))) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i)) |
| 85 | (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 86 | (hxA : x ∈ (A₀ : Set (Spec (.of (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i))))) |
| 87 | (hvx : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i).asIdeal ≤ x.asIdeal) : |
| 88 | (ClosedSectionCycle.principalCycle X (k + 1) W.val g).sum |
| 89 | (fun B c => c * CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X B.val A.val C.val) = |
| 90 | ∑ D ∈ Finite.ClosedComponents.components X.carrier |
| 91 | (IsolatedGeometricComponents.intersection X.carrier W.val A.val), |
| 92 | TotalTorCoefficient.coefficient X.carrier W.val A.val (CycleClass.Thom.IntersectionGeometry.supportPoint D) m * |
| 93 | (GlobalParameterSum.Weights.weight X.carrier (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) (ChartComponentSum.germ X W.val g hg (i, true) x) D - |
| 94 | GlobalParameterSum.Weights.weight X.carrier (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) (ChartComponentSum.germ X W.val g hg (i, false) x) D) := by |
| 95 | refine (ChartEuler.coefficient X m p k W g hg F hF hout a he hp i A hAa A₀ hA C x hx hxA hvx).trans ?_ |
| 96 | refine (congrArg₂ (fun a b : ℚ => a - b) |
| 97 | (equation X m p k W g hg a hp (i, true) A hAa A₀ hA C x hx hxA hvx) |
| 98 | (equation X m p k W g hg a hp (i, false) A hAa A₀ hA C x hx hxA hvx)).trans ?_ |
| 99 | simp only [mul_sub, Finset.sum_sub_distrib] |
| 100 | |
| 101 | end |
| 102 | |
| 103 | /-! Properness against the full numerator and denominator zero loci |
| 104 | makes both chart equations units at generic intersection points. -/ |
| 105 | |
| 106 | set_option backward.isDefEq.respectTransparency false |
| 107 | set_option backward.isDefEq.respectTransparency.types false |
| 108 | |
| 109 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 110 | |
| 111 | namespace GenericUnit |
| 112 | |
| 113 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm.FiniteSupportCharts OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |
| 114 | |
| 115 | theorem toStalk_unit (R : Type) [CommRing R] (x : PrimeSpectrum R) (r : R) (hr : r ∉ x.asIdeal) : |
| 116 | IsUnit (StructureSheaf.toStalk R x r) := by |
| 117 | have hu := (IsLocalization.AtPrime.isUnit_to_map_iff (Localization.AtPrime x.asIdeal) x.asIdeal r).mpr hr |
| 118 | have h := hu.map (StructureSheaf.stalkIso R x).toRingHom |
| 119 | change IsUnit ((StructureSheaf.stalkIso R x) (algebraMap R (Localization.AtPrime x.asIdeal) r)) at h |
| 120 | rwa [(StructureSheaf.stalkIso R x).commutes] at h |
| 121 | |
| 122 | theorem not_mem (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 123 | [SmoothOfRelativeDimension m X.structureMap] |
| 124 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 125 | (a : X.RationalDimensionCycle p) |
| 126 | (hp : a ∈ Proper.SupportCycles.submodule X p (ChartSupportCover.family X m k W g hg)) |
| 127 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val × Bool) (A : X.DimensionCycleSupport p) (hAa : A ∈ a.support) |
| 128 | (C : X.DimensionCycleSupport (p + k)) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1)) |
| 129 | (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1 x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 130 | (hxA : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier)) |
| 131 | (hvx : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i.1).asIdeal ≤ x.asIdeal) : |
| 132 | ChartEquations.equation X W.val g hg i ∉ x.asIdeal := by |
| 133 | have hn := Affine.ModuleSupportCover.avoids X p k (k + 1) (Nat.lt_succ_self k) |
| 134 | (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1) (ChartSupportCover.module X k W g hg i) |
| 135 | (ChartSupportCover.supports X m k W g hg i) |
| 136 | (ChartSupportCover.codimension X m k W g hg i) |
| 137 | (ChartSupportCover.covers X m k W g hg i) A |
| 138 | (fun B hB => hp ⟨i, ⟨B, hB⟩⟩ A hAa) C x hx hxA |
| 139 | intro hr |
| 140 | apply hn |
| 141 | change x ∈ Module.support (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1) |
| 142 | (QuotSMulTop (ChartEquations.equation X W.val g hg i) ((Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1) ⧸ (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i.1).asIdeal)) |
| 143 | rw [Module.support_quotSMulTop, Module.support_of_algebra, Ideal.Quotient.algebraMap_eq, Ideal.mk_ker] |
| 144 | exact ⟨hvx, Set.singleton_subset_iff.mpr hr⟩ |
| 145 | |
| 146 | theorem unit (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 147 | [SmoothOfRelativeDimension m X.structureMap] |
| 148 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 149 | (a : X.RationalDimensionCycle p) |
| 150 | (hp : a ∈ Proper.SupportCycles.submodule X p (ChartSupportCover.family X m k W g hg)) |
| 151 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val × Bool) (A : X.DimensionCycleSupport p) (hAa : A ∈ a.support) |
| 152 | (C : X.DimensionCycleSupport (p + k)) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1)) |
| 153 | (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1 x = CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 154 | (hxA : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier)) |
| 155 | (hvx : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i.1).asIdeal ≤ x.asIdeal) : |
| 156 | IsUnit (ChartComponentSum.germ X W.val g hg i x) := by |
| 157 | apply isUnit_of_map_unit ((Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1).stalkMap x).hom |
| 158 | rw [germ_map] |
| 159 | exact toStalk_unit (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1) x (ChartEquations.equation X W.val g hg i) |
| 160 | (not_mem X m p k W g hg a hp i A hAa C x hx hxA hvx) |
| 161 | |
| 162 | end GenericUnit |
| 163 | |
| 164 | end |
| 165 | |
| 166 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartComponentSum |