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.Divisors.LineBundles.ResidueCycleFamily |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.FamilyReindex |
| 3 | import Mathlib.LinearAlgebra.Finsupp.LSum |
| 4 | |
| 5 | /-! # Residue Boundary Addition -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.ResidueBoundaryAddition.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! |
| 14 | # LineBundleCycles: addition laws for the complete geometric residue boundary |
| 15 | |
| 16 | Summing the intrinsic finite family recovers exactly the explicit |
| 17 | geometric residue cycle. The pointwise product laws therefore imply |
| 18 | addition of the complete residue boundary in either rational function. |
| 19 | The proof covers all coefficients and all changes of finite support. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 23 | |
| 24 | variable (X : Scheme) [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 25 | variable (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 26 | |
| 27 | def residueFamilySum : ({x : X // coheight x = 1} →₀ (X →₀ ℚ)) →ₗ[ℚ] (X →₀ ℚ) := |
| 28 | Finsupp.lsum ℚ (fun _ => LinearMap.id) |
| 29 | |
| 30 | theorem residueFamilySum_eq_boundary (g h : X.functionFieldˣ) : |
| 31 | residueFamilySum X (ResidueCycleFamily.BundleCycles.normalResidueCycleFamily X hNormal g h) = Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g h := by |
| 32 | let i : Normal.PointResidue.BundleCycles.residueDivisorSupport X g h ↪ {x : X // coheight x = 1} := |
| 33 | ⟨fun x => ⟨x, Normal.PointResidue.BundleCycles.residueDivisorSupport_coheight X g h x⟩, |
| 34 | fun x y hxy => Subtype.ext (congrArg (fun z : {x : X // coheight x = 1} => (z : X)) hxy)⟩ |
| 35 | have hs : ((ResidueCycleFamily.BundleCycles.normalResidueCycleFamily X hNormal g h).support : Set {x : X // coheight x = 1}) ⊆ |
| 36 | Set.range i := by |
| 37 | intro x hx |
| 38 | have hxD : (x : X) ∈ Normal.PointResidue.BundleCycles.residueDivisorSupport X g h := by |
| 39 | by_contra hn |
| 40 | exact (Finsupp.mem_support_iff.mp hx) (ResidueCycleFamily.BundleCycles.normalResidueContribution_eq_zero X hNormal g h x hn) |
| 41 | exact ⟨⟨x, hxD⟩, Subtype.ext rfl⟩ |
| 42 | exact Finite.FamilyReindex.BundleCycles.finiteFamily_sum_embedding i (ResidueCycleFamily.BundleCycles.normalResidueCycleFamily X hNormal g h) hs |
| 43 | |
| 44 | theorem normalResidueBoundaryCycle_mul_left (g h k : X.functionFieldˣ) : |
| 45 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal (g * h) k = |
| 46 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g k + Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal h k := by |
| 47 | have he := congrArg (residueFamilySum X) (ResidueCycleFamily.BundleCycles.normalResidueCycleFamily_mul_left X hNormal g h k) |
| 48 | rw [map_add] at he |
| 49 | exact (residueFamilySum_eq_boundary X hNormal (g * h) k).symm.trans |
| 50 | (he.trans (congrArg₂ (· + ·) (residueFamilySum_eq_boundary X hNormal g k) |
| 51 | (residueFamilySum_eq_boundary X hNormal h k))) |
| 52 | |
| 53 | theorem normalResidueBoundaryCycle_mul_right (g h k : X.functionFieldˣ) : |
| 54 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g (h * k) = |
| 55 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g h + Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g k := by |
| 56 | have he := congrArg (residueFamilySum X) (ResidueCycleFamily.BundleCycles.normalResidueCycleFamily_mul_right X hNormal g h k) |
| 57 | rw [map_add] at he |
| 58 | exact (residueFamilySum_eq_boundary X hNormal g (h * k)).symm.trans |
| 59 | (he.trans (congrArg₂ (· + ·) (residueFamilySum_eq_boundary X hNormal g h) |
| 60 | (residueFamilySum_eq_boundary X hNormal g k))) |
| 61 | |
| 62 | end |
| 63 | |
| 64 | /-! |
| 65 | # LineBundleCycles: alternating laws for the actual residue boundary |
| 66 | |
| 67 | The unit quotient for two identical rational functions is one, so its |
| 68 | actual principal divisor is zero. Combining this with the proved global |
| 69 | product laws makes the complete residue boundary alternating. Inverting |
| 70 | one argument changes its sign. |
| 71 | -/ |
| 72 | |
| 73 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.TopologicalSpace _root_.Order |
| 74 | |
| 75 | variable (X : Scheme) [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 76 | |
| 77 | theorem normalPointResidueFunction_self (x : X) (hx : coheight x = 1) |
| 78 | [IsIntegrallyClosed (X.presheaf.stalk x)] (g : X.functionFieldˣ) : |
| 79 | Normal.PointResidue.BundleCycles.normalPointResidueFunction X x hx g g = 1 := by |
| 80 | let := Normal.PointResidue.BundleCycles.normal_stalk_isDVR X x hx |
| 81 | let π := Classical.choose (IsDiscreteValuationRing.exists_irreducible (X.presheaf.stalk x)) |
| 82 | have hπ : Irreducible π := Classical.choose_spec (IsDiscreteValuationRing.exists_irreducible _) |
| 83 | have he : DVRResidueOf.BundleCycles.dvrResidueQuotient π hπ g g = 1 := by |
| 84 | unfold DVRResidueOf.BundleCycles.dvrResidueQuotient DVRResidueOf.BundleCycles.dvrBalancedUnit |
| 85 | simp |
| 86 | exact (congrArg (Point.SupportResidue.BundleCycles.pointSupportResidueFunction X x) he).trans (Geometric.ResidueLaws.BundleCycles.pointSupportResidueFunction_one X x) |
| 87 | |
| 88 | variable (hNormal : ∀ x : X, IsIntegrallyClosed (X.presheaf.stalk x)) |
| 89 | |
| 90 | theorem normalResidueBoundaryCycle_self (g : X.functionFieldˣ) : Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g g = 0 := by |
| 91 | have hf : ResidueCycleFamily.BundleCycles.normalResidueCycleFamily X hNormal g g = 0 := by |
| 92 | ext x y |
| 93 | let := hNormal x |
| 94 | change Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm (x : X)) |
| 95 | (Normal.PointResidue.BundleCycles.normalPointResidueFunction X x x.2 g g) y = 0 |
| 96 | rw [normalPointResidueFunction_self, Support.PrincipalLaws.BundleCycles.schemePrincipalPointDivisor_one] |
| 97 | rfl |
| 98 | exact (residueFamilySum_eq_boundary X hNormal g g).symm.trans |
| 99 | ((congrArg (residueFamilySum X) hf).trans (map_zero (residueFamilySum X))) |
| 100 | |
| 101 | theorem normalResidueBoundaryCycle_one_left (g : X.functionFieldˣ) : |
| 102 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal 1 g = 0 := by |
| 103 | have he := normalResidueBoundaryCycle_mul_left X hNormal 1 1 g |
| 104 | rw [one_mul] at he |
| 105 | exact (add_left_cancel (a := Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal 1 g) |
| 106 | ((add_zero _).trans he)).symm |
| 107 | |
| 108 | theorem normalResidueBoundaryCycle_swap (g h : X.functionFieldˣ) : |
| 109 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g h = -Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal h g := by |
| 110 | have he := normalResidueBoundaryCycle_self X hNormal (g * h) |
| 111 | rw [normalResidueBoundaryCycle_mul_left, normalResidueBoundaryCycle_mul_right, |
| 112 | normalResidueBoundaryCycle_mul_right, normalResidueBoundaryCycle_self, |
| 113 | normalResidueBoundaryCycle_self, zero_add, add_zero] at he |
| 114 | exact eq_neg_iff_add_eq_zero.mpr he |
| 115 | |
| 116 | theorem normalResidueBoundaryCycle_inv_left (g h : X.functionFieldˣ) : |
| 117 | Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g⁻¹ h = -Normal.PointResidue.BundleCycles.normalResidueBoundaryCycle X hNormal g h := by |
| 118 | have he := normalResidueBoundaryCycle_mul_left X hNormal g g⁻¹ h |
| 119 | rw [mul_inv_cancel, normalResidueBoundaryCycle_one_left] at he |
| 120 | exact eq_neg_iff_add_eq_zero.mpr ((add_comm _ _).trans he.symm) |
| 121 | |
| 122 | end |
| 123 | |
| 124 | end OAI.AlgebraicGeometry.Divisors.LineBundles.ResidueBoundaryAddition.BundleCycles |