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 | /- |
| 2 | Copyright (c) 2026 The AINTLIB contributors. All rights reserved. |
| 3 | Released under Apache 2.0 license as described in the file LICENSE. |
| 4 | Authors: AINTLIB ModularCurves project |
| 5 | This file has been modified. |
| 6 | -/ |
| 7 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.StandardIntersectionRing |
| 8 | |
| 9 | /-! # Laurent Weight -/ |
| 10 | |
| 11 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentWeight.MvPolynomial |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! |
| 16 | # Homogeneous Laurent weights on projective coordinate intersections |
| 17 | |
| 18 | The Laurent exponents in one affine chart are reindexed by global integer exponent vectors of a |
| 19 | fixed total degree. The local localization condition becomes the requirement that every negative |
| 20 | global exponent occur among the coordinates defining the projective intersection. |
| 21 | -/ |
| 22 | |
| 23 | open _root_.MvPolynomial |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | variable {σ : Type u} |
| 28 | |
| 29 | /-- Integer exponent vectors of total degree `d`. -/ |
| 30 | def HomogeneousLaurentExponent (σ : Type u) (d : ℤ) := |
| 31 | {e : σ →₀ ℤ // Finsupp.degree e = d} |
| 32 | |
| 33 | namespace HomogeneousLaurentExponent |
| 34 | |
| 35 | /-- The coordinates where a homogeneous Laurent exponent is negative. -/ |
| 36 | def negativeSupport {d : ℤ} (e : HomogeneousLaurentExponent σ d) : Set σ := |
| 37 | {i | e.1 i < 0} |
| 38 | |
| 39 | /-- A Laurent exponent is allowed on a coordinate intersection when all its negative coordinates |
| 40 | occur in the tuple defining that intersection. -/ |
| 41 | def IsAllowedOn {d : ℤ} (e : HomogeneousLaurentExponent σ d) |
| 42 | {n : ℕ} (a : Fin (n + 1) → σ) : Prop := |
| 43 | e.negativeSupport ⊆ Set.range a |
| 44 | |
| 45 | end HomogeneousLaurentExponent |
| 46 | |
| 47 | private def coordinateNonanchorEmbedding {n : ℕ} (a : Fin (n + 1) → σ) : |
| 48 | {j : σ // j ≠ a 0} ↪ σ := |
| 49 | Function.Embedding.subtype _ |
| 50 | |
| 51 | private noncomputable def coordinateLocalToHomogeneousLaurentExponent {n : ℕ} |
| 52 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 53 | (e : LaurentExponentLocalization.MvPolynomial.laurentExponentSubmonoid (StandardIntersectionRing.MvPolynomial.coordinateTailExponent a)) : |
| 54 | HomogeneousLaurentExponent σ d := by |
| 55 | let f : σ →₀ ℤ := |
| 56 | Finsupp.embDomain (coordinateNonanchorEmbedding a) e.1 + |
| 57 | Finsupp.single (a 0) (d - Finsupp.degree e.1) |
| 58 | refine ⟨f, ?_⟩ |
| 59 | rw [show f = Finsupp.embDomain (coordinateNonanchorEmbedding a) e.1 + |
| 60 | Finsupp.single (a 0) (d - Finsupp.degree e.1) by rfl] |
| 61 | rw [map_add, Finsupp.degree_single] |
| 62 | have hemb : Finsupp.degree |
| 63 | (Finsupp.embDomain (coordinateNonanchorEmbedding a) e.1) = |
| 64 | Finsupp.degree e.1 := by |
| 65 | change (Finsupp.embDomain (coordinateNonanchorEmbedding a) e.1).sum |
| 66 | (fun _ z => z) = e.1.sum (fun _ z => z) |
| 67 | rw [Finsupp.sum_embDomain] |
| 68 | rw [hemb] |
| 69 | omega |
| 70 | |
| 71 | private theorem coordinateLocalToHomogeneousLaurentExponent_apply_of_ne {n : ℕ} |
| 72 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 73 | (e : LaurentExponentLocalization.MvPolynomial.laurentExponentSubmonoid (StandardIntersectionRing.MvPolynomial.coordinateTailExponent a)) |
| 74 | (i : σ) (hi : i ≠ a 0) : |
| 75 | (coordinateLocalToHomogeneousLaurentExponent a d e).1 i = |
| 76 | e.1 ⟨i, hi⟩ := by |
| 77 | change (Finsupp.embDomain (coordinateNonanchorEmbedding a) e.1) i + |
| 78 | Finsupp.single (a 0) (d - Finsupp.degree e.1) i = e.1 ⟨i, hi⟩ |
| 79 | have hemb := Finsupp.embDomain_apply_self |
| 80 | (coordinateNonanchorEmbedding a) e.1 ⟨i, hi⟩ |
| 81 | change (Finsupp.embDomain (coordinateNonanchorEmbedding a) e.1) i = |
| 82 | e.1 ⟨i, hi⟩ at hemb |
| 83 | rw [hemb] |
| 84 | simp [hi] |
| 85 | |
| 86 | private theorem coordinateLocalToHomogeneousLaurentExponent_apply_anchor {n : ℕ} |
| 87 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 88 | (e : LaurentExponentLocalization.MvPolynomial.laurentExponentSubmonoid (StandardIntersectionRing.MvPolynomial.coordinateTailExponent a)) : |
| 89 | (coordinateLocalToHomogeneousLaurentExponent a d e).1 (a 0) = |
| 90 | d - Finsupp.degree e.1 := by |
| 91 | have hnot : a 0 ∉ Set.range (coordinateNonanchorEmbedding a) := by |
| 92 | rintro ⟨j, hj⟩ |
| 93 | exact j.2 hj |
| 94 | simp [coordinateLocalToHomogeneousLaurentExponent, |
| 95 | Finsupp.embDomain_of_notMem_range _ _ _ hnot] |
| 96 | |
| 97 | private theorem coordinateLocalToHomogeneousLaurentExponent_allowed {n : ℕ} |
| 98 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 99 | (e : LaurentExponentLocalization.MvPolynomial.laurentExponentSubmonoid (StandardIntersectionRing.MvPolynomial.coordinateTailExponent a)) : |
| 100 | (coordinateLocalToHomogeneousLaurentExponent a d e).IsAllowedOn a := by |
| 101 | intro i hi |
| 102 | by_cases hanchor : i = a 0 |
| 103 | · exact ⟨0, hanchor.symm⟩ |
| 104 | · have hlocal : e.1 ⟨i, hanchor⟩ < 0 := by |
| 105 | rw [← coordinateLocalToHomogeneousLaurentExponent_apply_of_ne a d e i hanchor] |
| 106 | exact hi |
| 107 | exact (StandardIntersectionRing.MvPolynomial.coordinateTailExponent_ne_zero_iff a ⟨i, hanchor⟩).1 (e.2 _ hlocal) |
| 108 | |
| 109 | private noncomputable def coordinateRestrictLaurentExponent {n : ℕ} |
| 110 | (a : Fin (n + 1) → σ) (e : σ →₀ ℤ) : {j : σ // j ≠ a 0} →₀ ℤ := |
| 111 | Finsupp.comapDomain (coordinateNonanchorEmbedding a) |
| 112 | (Finsupp.erase (a 0) e) (coordinateNonanchorEmbedding a).injective.injOn |
| 113 | |
| 114 | @[simp] |
| 115 | private theorem coordinateRestrictLaurentExponent_apply {n : ℕ} |
| 116 | (a : Fin (n + 1) → σ) (e : σ →₀ ℤ) (j : {j : σ // j ≠ a 0}) : |
| 117 | coordinateRestrictLaurentExponent a e j = e j.1 := by |
| 118 | rw [coordinateRestrictLaurentExponent, Finsupp.comapDomain_apply] |
| 119 | change (Finsupp.erase (a 0) e) j.1 = e j.1 |
| 120 | rw [Finsupp.erase_ne j.2] |
| 121 | |
| 122 | private theorem coordinateRestrictLaurentExponent_degree {n : ℕ} |
| 123 | (a : Fin (n + 1) → σ) (e : σ →₀ ℤ) : |
| 124 | Finsupp.degree (coordinateRestrictLaurentExponent a e) = |
| 125 | Finsupp.degree e - e (a 0) := by |
| 126 | let emb := coordinateNonanchorEmbedding a |
| 127 | let r := coordinateRestrictLaurentExponent a e |
| 128 | have hsupp : ↑(Finsupp.erase (a 0) e).support ⊆ Set.range emb := by |
| 129 | intro i hi |
| 130 | have hi0 : i ≠ a 0 := by |
| 131 | intro h |
| 132 | subst i |
| 133 | simp at hi |
| 134 | exact ⟨⟨i, hi0⟩, rfl⟩ |
| 135 | have herase : Finsupp.embDomain emb r = Finsupp.erase (a 0) e := by |
| 136 | exact Finsupp.embDomain_comapDomain hsupp |
| 137 | have hdegree : Finsupp.degree (Finsupp.embDomain emb r) = Finsupp.degree r := by |
| 138 | change (Finsupp.embDomain emb r).sum (fun _ z => z) = r.sum (fun _ z => z) |
| 139 | rw [Finsupp.sum_embDomain] |
| 140 | have hsplit := congrArg Finsupp.degree (Finsupp.single_add_erase (a 0) e) |
| 141 | rw [map_add, Finsupp.degree_single] at hsplit |
| 142 | rw [← hdegree, herase] |
| 143 | omega |
| 144 | |
| 145 | private noncomputable def coordinateHomogeneousToLocalLaurentExponent {n : ℕ} |
| 146 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 147 | (e : {e : HomogeneousLaurentExponent σ d // e.IsAllowedOn a}) : |
| 148 | LaurentExponentLocalization.MvPolynomial.laurentExponentSubmonoid (StandardIntersectionRing.MvPolynomial.coordinateTailExponent a) := by |
| 149 | refine ⟨coordinateRestrictLaurentExponent a e.1.1, ?_⟩ |
| 150 | intro j hj |
| 151 | apply (StandardIntersectionRing.MvPolynomial.coordinateTailExponent_ne_zero_iff a j).2 |
| 152 | apply e.2 |
| 153 | simpa [HomogeneousLaurentExponent.negativeSupport] using hj |
| 154 | |
| 155 | @[simp] |
| 156 | private theorem coordinateHomogeneousToLocalLaurentExponent_apply {n : ℕ} |
| 157 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 158 | (e : {e : HomogeneousLaurentExponent σ d // e.IsAllowedOn a}) |
| 159 | (j : {j : σ // j ≠ a 0}) : |
| 160 | (coordinateHomogeneousToLocalLaurentExponent a d e).1 j = e.1.1 j.1 := by |
| 161 | exact coordinateRestrictLaurentExponent_apply a e.1.1 j |
| 162 | |
| 163 | /-- Laurent exponents in the affine chart anchored at `a 0` are equivalent to global homogeneous |
| 164 | Laurent exponents whose negative support lies in the coordinate tuple. -/ |
| 165 | noncomputable def coordinateLaurentExponentEquiv {n : ℕ} |
| 166 | (a : Fin (n + 1) → σ) (d : ℤ) : |
| 167 | LaurentExponentLocalization.MvPolynomial.laurentExponentSubmonoid (StandardIntersectionRing.MvPolynomial.coordinateTailExponent a) ≃ |
| 168 | {e : HomogeneousLaurentExponent σ d // e.IsAllowedOn a} where |
| 169 | toFun e := ⟨coordinateLocalToHomogeneousLaurentExponent a d e, |
| 170 | coordinateLocalToHomogeneousLaurentExponent_allowed a d e⟩ |
| 171 | invFun := coordinateHomogeneousToLocalLaurentExponent a d |
| 172 | left_inv e := by |
| 173 | apply Subtype.ext |
| 174 | ext j |
| 175 | rw [coordinateHomogeneousToLocalLaurentExponent_apply] |
| 176 | exact coordinateLocalToHomogeneousLaurentExponent_apply_of_ne a d e j.1 j.2 |
| 177 | right_inv e := by |
| 178 | apply Subtype.ext |
| 179 | apply Subtype.ext |
| 180 | ext i |
| 181 | by_cases hi : i = a 0 |
| 182 | · subst i |
| 183 | rw [coordinateLocalToHomogeneousLaurentExponent_apply_anchor] |
| 184 | change d - Finsupp.degree (coordinateRestrictLaurentExponent a e.1.1) = |
| 185 | e.1.1 (a 0) |
| 186 | rw [coordinateRestrictLaurentExponent_degree, e.1.2] |
| 187 | omega |
| 188 | · rw [coordinateLocalToHomogeneousLaurentExponent_apply_of_ne] |
| 189 | exact coordinateHomogeneousToLocalLaurentExponent_apply a d e ⟨i, hi⟩ |
| 190 | |
| 191 | /-- Away from the anchor, the global homogeneous exponent is the original chart exponent. -/ |
| 192 | @[simp] |
| 193 | theorem coordinateLaurentExponentEquiv_apply_of_ne {n : ℕ} |
| 194 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 195 | (e : LaurentExponentLocalization.MvPolynomial.laurentExponentSubmonoid (StandardIntersectionRing.MvPolynomial.coordinateTailExponent a)) |
| 196 | (i : σ) (hi : i ≠ a 0) : |
| 197 | (coordinateLaurentExponentEquiv a d e).1.1 i = e.1 ⟨i, hi⟩ := |
| 198 | coordinateLocalToHomogeneousLaurentExponent_apply_of_ne a d e i hi |
| 199 | |
| 200 | /-- At the anchor, the global exponent is chosen to make the total degree equal to `d`. -/ |
| 201 | @[simp] |
| 202 | theorem coordinateLaurentExponentEquiv_apply_anchor {n : ℕ} |
| 203 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 204 | (e : LaurentExponentLocalization.MvPolynomial.laurentExponentSubmonoid (StandardIntersectionRing.MvPolynomial.coordinateTailExponent a)) : |
| 205 | (coordinateLaurentExponentEquiv a d e).1.1 (a 0) = |
| 206 | d - Finsupp.degree e.1 := |
| 207 | coordinateLocalToHomogeneousLaurentExponent_apply_anchor a d e |
| 208 | |
| 209 | /-- The inverse homogeneous-to-chart map restricts a global exponent away from the anchor. -/ |
| 210 | @[simp] |
| 211 | theorem coordinateLaurentExponentEquiv_symm_apply {n : ℕ} |
| 212 | (a : Fin (n + 1) → σ) (d : ℤ) |
| 213 | (e : {e : HomogeneousLaurentExponent σ d // e.IsAllowedOn a}) |
| 214 | (j : {j : σ // j ≠ a 0}) : |
| 215 | ((coordinateLaurentExponentEquiv a d).symm e).1 j = e.1.1 j.1 := |
| 216 | coordinateHomogeneousToLocalLaurentExponent_apply a d e j |
| 217 | |
| 218 | end |
| 219 | |
| 220 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentWeight.MvPolynomial |