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.ChartComponentSum |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NestedGenericRatio |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.WeightDifference |
| 4 | |
| 5 | /-! # Chart Restricted Coefficient -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartRestrictedCoefficient |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! The fixed numerator and denominator on a moved intersection |
| 14 | component represent its actual restricted rational function everywhere |
| 15 | in the chart, through the native closed-immersion maps. -/ |
| 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 | namespace Function |
| 23 | |
| 24 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm.FiniteSupportCharts OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction.Restriction |
| 25 | |
| 26 | theorem germ_unit_congr (X : Scheme) (U : X.Opens) (x y : X) (h : x = y) |
| 27 | (hx : x ∈ U) (hy : y ∈ U) (r : Γ(X, U)) : |
| 28 | IsUnit (X.presheaf.germ U x hx r) ↔ IsUnit (X.presheaf.germ U y hy r) := by |
| 29 | subst y |
| 30 | rfl |
| 31 | |
| 32 | theorem ratio (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 33 | [SmoothOfRelativeDimension m X.structureMap] |
| 34 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 35 | (a : X.RationalDimensionCycle p) |
| 36 | (hp : a ∈ Proper.SupportCycles.submodule X p (ChartSupportCover.family X m k W g hg)) |
| 37 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val) (A : X.DimensionCycleSupport p) (hAa : A ∈ a.support) |
| 38 | (D : X.DimensionCycleSupport (p + k)) (hDA : D.val ≤ A.val) (hDW : D.val ≤ W.val) |
| 39 | (hunit : ∃ u : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 40 | (NestedGenericRestriction.point X.carrier D.val W.val hDW), |
| 41 | IsUnit u ∧ algebraMap _ (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField u = g) |
| 42 | (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i)) (hxD : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x ∈ (D.val : Set X.carrier)) : |
| 43 | Support.LocalFraction.Restriction.toFunctionField X.carrier D.val (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) hxD |
| 44 | (ChartComponentSum.germ X W.val g hg (i, true) x) ≠ 0 ∧ |
| 45 | Support.LocalFraction.Restriction.toFunctionField X.carrier D.val (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) hxD |
| 46 | (ChartComponentSum.germ X W.val g hg (i, false) x) ≠ 0 ∧ |
| 47 | NestedGenericRestriction.function X.carrier D.val W.val hDW g hunit = |
| 48 | Support.LocalFraction.Restriction.toFunctionField X.carrier D.val (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) hxD |
| 49 | (ChartComponentSum.germ X W.val g hg (i, true) x) / |
| 50 | Support.LocalFraction.Restriction.toFunctionField X.carrier D.val (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) hxD |
| 51 | (ChartComponentSum.germ X W.val g hg (i, false) x) := by |
| 52 | obtain ⟨z, hz, _, _⟩ := Affine.SupportRepresentative.exists_prime (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) D.val x hxD |
| 53 | have hηD : CycleClass.Thom.IntersectionGeometry.supportPoint D.val ∈ (D.val : Set X.carrier) := |
| 54 | (D.val.isIrreducible.isGenericPoint_genericPoint D.val.isClosed).mem |
| 55 | have hηA := hDA hηD |
| 56 | have hηW := hDW hηD |
| 57 | have hηU : CycleClass.Thom.IntersectionGeometry.supportPoint D.val ∈ Affine.ChartGerm.FiniteSupportCharts.opens X W.val i := hz ▸ ChartComponentSum.mem_opens X W.val i z |
| 58 | have hvz : (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i).asIdeal ≤ z.asIdeal := by |
| 59 | apply (Affine.Prime.mem_iff (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i) (Affine.ChartGerm.FiniteSupportCharts.prime X W.val i) z).mp |
| 60 | have hzW : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i z ∈ (W.val : Set X.carrier) := hz.symm ▸ hηW |
| 61 | exact (congrArg (fun B : IrreducibleCloseds X.carrier => Affine.ChartGerm.FiniteSupportCharts.chart X W.val i z ∈ (B : Set X.carrier)) |
| 62 | (Affine.ChartGerm.FiniteSupportCharts.prime_support X W.val i)).mpr hzW |
| 63 | have hu (b : Bool) : IsUnit (X.carrier.presheaf.germ (Affine.ChartGerm.FiniteSupportCharts.opens X W.val i) (CycleClass.Thom.IntersectionGeometry.supportPoint D.val) hηU |
| 64 | (ChartEquations.equation X W.val g hg (i, b))) := |
| 65 | (germ_unit_congr X.carrier (Affine.ChartGerm.FiniteSupportCharts.opens X W.val i) (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i z) (CycleClass.Thom.IntersectionGeometry.supportPoint D.val) hz |
| 66 | (ChartComponentSum.mem_opens X W.val i z) hηU _).mp |
| 67 | (ChartComponentSum.GenericUnit.unit X m p k W g hg a hp (i, b) A hAa D z hz hηA hvz) |
| 68 | have hfrac := ChartEquations.fraction X W.val g hg i (CycleClass.Thom.IntersectionGeometry.supportPoint D.val) hηW hηU |
| 69 | exact NestedGenericRatio.Section.ratio X.carrier D.val W.val hDW hηD hηW g hunit |
| 70 | (Affine.ChartGerm.FiniteSupportCharts.opens X W.val i) hηU (ChartEquations.numerator X W.val g hg i) (ChartEquations.denominator X W.val g hg i) |
| 71 | (hu true) (hu false) hfrac.2.2 (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) hxD |
| 72 | (ChartComponentSum.mem_opens X W.val i x) |
| 73 | |
| 74 | end Function |
| 75 | |
| 76 | end |
| 77 | |
| 78 | /-! On every moved intersection component, the numerator-minus- |
| 79 | denominator weight is exactly the divisor coefficient of the actual |
| 80 | restricted rational function, including points outside the support. -/ |
| 81 | |
| 82 | set_option backward.isDefEq.respectTransparency false |
| 83 | set_option backward.isDefEq.respectTransparency.types false |
| 84 | |
| 85 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 86 | |
| 87 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm.FiniteSupportCharts OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.LocalFraction.Restriction |
| 88 | |
| 89 | theorem weight_coefficient (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 90 | (D C : IrreducibleCloseds X.carrier) (x : X.carrier) (hx : x = CycleClass.Thom.IntersectionGeometry.supportPoint C) |
| 91 | (a b : X.carrier.presheaf.stalk x) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme D).functionField) |
| 92 | (hfrac : ∀ hxD : x ∈ (D : Set X.carrier), |
| 93 | Support.LocalFraction.Restriction.toFunctionField X.carrier D x hxD a ≠ 0 ∧ Support.LocalFraction.Restriction.toFunctionField X.carrier D x hxD b ≠ 0 ∧ |
| 94 | g = Support.LocalFraction.Restriction.toFunctionField X.carrier D x hxD a / Support.LocalFraction.Restriction.toFunctionField X.carrier D x hxD b) : |
| 95 | GlobalParameterSum.Weights.weight X.carrier x a D - GlobalParameterSum.Weights.weight X.carrier x b D = |
| 96 | CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient X D g C := by |
| 97 | classical |
| 98 | by_cases hxD : x ∈ (D : Set X.carrier) |
| 99 | · have hηD : CycleClass.Thom.IntersectionGeometry.supportPoint C ∈ (D : Set X.carrier) := hx ▸ hxD |
| 100 | have hf := hfrac hxD |
| 101 | have he := WeightDifference.order X.carrier D x hxD a b hf.1 hf.2.1 g hf.2.2 |
| 102 | rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_left hηD] |
| 103 | refine he.trans ?_ |
| 104 | apply congrArg (fun y => ((CycleClass.Geometric.GenericPoint.reducedSupportScheme D).ord g y : ℚ)) |
| 105 | apply (CycleClass.Geometric.GenericPoint.reducedSupportι D).isEmbedding.injective |
| 106 | rw [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec, CycleClass.Thom.IntersectionGeometry.supportPreimage_spec] |
| 107 | exact hx |
| 108 | · have hηD : CycleClass.Thom.IntersectionGeometry.supportPoint C ∉ (D : Set X.carrier) := fun h => hxD (hx.symm ▸ h) |
| 109 | rw [GlobalParameterSum.Weights.weight, dite_eq_right hxD, GlobalParameterSum.Weights.weight, dite_eq_right hxD, sub_self] |
| 110 | rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right hηD] |
| 111 | |
| 112 | theorem coefficient (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 113 | [SmoothOfRelativeDimension m X.structureMap] |
| 114 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 115 | (a : X.RationalDimensionCycle p) |
| 116 | (hp : a ∈ Proper.SupportCycles.submodule X p (ChartSupportCover.family X m k W g hg)) |
| 117 | (i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val) (A : X.DimensionCycleSupport p) (hAa : A ∈ a.support) |
| 118 | (D : X.DimensionCycleSupport (p + k)) (hDA : D.val ≤ A.val) (hDW : D.val ≤ W.val) |
| 119 | (hunit : ∃ u : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).presheaf.stalk |
| 120 | (NestedGenericRestriction.point X.carrier D.val W.val hDW), |
| 121 | IsUnit u ∧ algebraMap _ (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField u = g) |
| 122 | (C : IrreducibleCloseds X.carrier) (x : PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i)) |
| 123 | (hx : Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x = CycleClass.Thom.IntersectionGeometry.supportPoint C) : |
| 124 | GlobalParameterSum.Weights.weight X.carrier (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) |
| 125 | (ChartComponentSum.germ X W.val g hg (i, true) x) D.val - |
| 126 | GlobalParameterSum.Weights.weight X.carrier (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) |
| 127 | (ChartComponentSum.germ X W.val g hg (i, false) x) D.val = |
| 128 | CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient X D.val |
| 129 | (NestedGenericRestriction.function X.carrier D.val W.val hDW g hunit) C := by |
| 130 | apply weight_coefficient X D.val C (Affine.ChartGerm.FiniteSupportCharts.chart X W.val i x) hx |
| 131 | intro hxD |
| 132 | exact Function.ratio X m p k W g hg a hp i A hAa D hDA hDW hunit x hxD |
| 133 | |
| 134 | end |
| 135 | |
| 136 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartRestrictedCoefficient |