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.HyperplaneFrames |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.TensorSections |
| 9 | |
| 10 | /-! # Twist Powers -/ |
| 11 | |
| 12 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial |
| 13 | |
| 14 | noncomputable section |
| 15 | |
| 16 | open _root_.MvPolynomial |
| 17 | |
| 18 | open _root_.AlgebraicGeometry _root_.CategoryTheory MonoidalCategory |
| 19 | universe u |
| 20 | variable {R : Type u} {σ : Type} [CommRing R] |
| 21 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 22 | noncomputable local instance (X : Scheme.{u}) : MonoidalCategory X.Modules := |
| 23 | Monoidal.Scheme.Modules.monoidalCategory X |
| 24 | |
| 25 | /-- The nonnegative twists `O(n)` obtained as monoidal powers of the concrete |
| 26 | coordinate-hyperplane `O(1)`. -/ |
| 27 | noncomputable def coordinateHyperplanePoleSheafPower (j : σ) : |
| 28 | ℕ → (Proj (homogeneousSubmodule σ R)).Modules |
| 29 | | 0 => 𝟙_ (Proj (homogeneousSubmodule σ R)).Modules |
| 30 | | n + 1 => coordinateHyperplanePoleSheafPower j n ⊗ |
| 31 | HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j |
| 32 | |
| 33 | @[simp] |
| 34 | lemma coordinateHyperplanePoleSheafPower_zero (j : σ) : |
| 35 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j 0 = |
| 36 | 𝟙_ (Proj (homogeneousSubmodule σ R)).Modules := |
| 37 | rfl |
| 38 | |
| 39 | @[simp] |
| 40 | lemma coordinateHyperplanePoleSheafPower_succ (j : σ) (n : ℕ) : |
| 41 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j (n + 1) = |
| 42 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n ⊗ |
| 43 | HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j := |
| 44 | rfl |
| 45 | |
| 46 | /-- The canonical section of `O(n)`, obtained by starting with `1` in degree |
| 47 | zero and tensoring with the coordinate section in each successor degree. -/ |
| 48 | noncomputable def coordinateHyperplanePoleSectionPower (j : σ) : |
| 49 | ∀ n : ℕ, |
| 50 | Γ(TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n, |
| 51 | (⊤ : (Proj (homogeneousSubmodule σ R)).Opens)) |
| 52 | | 0 => TensorSections.monoidalUnitSection |
| 53 | (Proj (homogeneousSubmodule σ R)) |
| 54 | | n + 1 => TensorSections.tensorSection |
| 55 | (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n) |
| 56 | (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j) ⊤ |
| 57 | (coordinateHyperplanePoleSectionPower j n) |
| 58 | (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSection (R := R) j) |
| 59 | |
| 60 | /-- A frame of `O(1)` on an open induces compatible frames of all nonnegative |
| 61 | twists on that open. -/ |
| 62 | noncomputable def coordinateHyperplanePoleSheafPowerTrivializationOf |
| 63 | (U : (Proj (homogeneousSubmodule σ R)).Opens) (j : σ) |
| 64 | (e : (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j).restrict U.ι ≅ |
| 65 | Invertible.Scheme.Modules.unitObj U.toScheme) : ∀ n : ℕ, |
| 66 | (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n).restrict U.ι ≅ |
| 67 | Invertible.Scheme.Modules.unitObj U.toScheme |
| 68 | | 0 => TensorSections.restrictMonoidalUnitIso U.ι ≪≫ |
| 69 | TensorSections.monoidalUnitObjIso U.toScheme |
| 70 | | n + 1 => |
| 71 | TensorSections.restrictMonoidalTensorIso |
| 72 | U.ι |
| 73 | (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n) |
| 74 | (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j) ≪≫ |
| 75 | (coordinateHyperplanePoleSheafPowerTrivializationOf U j e n ⊗ᵢ e) ≪≫ |
| 76 | TensorSections.unitObjTensorIso U.toScheme |
| 77 | |
| 78 | /-- The compatible standard-chart frame of the nonnegative twist `O(n)`. -/ |
| 79 | noncomputable def coordinateHyperplanePoleSheafPowerTrivialization |
| 80 | (i j : σ) : ∀ n : ℕ, |
| 81 | (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n).restrict |
| 82 | (MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i).ι ≅ |
| 83 | Invertible.Scheme.Modules.unitObj (MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i).toScheme := |
| 84 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPowerTrivializationOf |
| 85 | (MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) j |
| 86 | (HyperplaneFrames.MvPolynomial.coordinateHyperplanePoleSheafTrivialization (R := R) i j) |
| 87 | |
| 88 | /-- Every nonnegative coordinate-hyperplane twist `O(n)` is invertible. -/ |
| 89 | theorem coordinateHyperplanePoleSheafPower_isInvertible (j : σ) (n : ℕ) : |
| 90 | Invertible.Scheme.Modules.IsInvertible |
| 91 | (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n) := by |
| 92 | induction n with |
| 93 | | zero => |
| 94 | exact Invertible.Scheme.Modules.isInvertible_unit.of_iso |
| 95 | (TensorSections.monoidalUnitObjIso |
| 96 | (Proj (homogeneousSubmodule σ R))) |
| 97 | | succ n ih => |
| 98 | exact (ih.tensorObj |
| 99 | (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf_isInvertible (R := R) j)).of_iso |
| 100 | (TensorSections.monoidalTensorObjIso _ _) |
| 101 | |
| 102 | /-- The nonnegative powers of the concrete coordinate-hyperplane `O(-1)`. -/ |
| 103 | noncomputable def coordinateHyperplaneIdealModulePower (j : σ) : |
| 104 | ℕ → (Proj (homogeneousSubmodule σ R)).Modules |
| 105 | | 0 => 𝟙_ (Proj (homogeneousSubmodule σ R)).Modules |
| 106 | | n + 1 => coordinateHyperplaneIdealModulePower j n ⊗ |
| 107 | IdealModule.idealModule (SpaceHyperplane.MvPolynomial.coordinateHyperplaneι (R := R) j) |
| 108 | |
| 109 | @[simp] |
| 110 | lemma coordinateHyperplaneIdealModulePower_zero (j : σ) : |
| 111 | TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j 0 = |
| 112 | 𝟙_ (Proj (homogeneousSubmodule σ R)).Modules := |
| 113 | rfl |
| 114 | |
| 115 | @[simp] |
| 116 | lemma coordinateHyperplaneIdealModulePower_succ (j : σ) (n : ℕ) : |
| 117 | TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j (n + 1) = |
| 118 | TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j n ⊗ |
| 119 | IdealModule.idealModule (SpaceHyperplane.MvPolynomial.coordinateHyperplaneι (R := R) j) := |
| 120 | rfl |
| 121 | |
| 122 | /-- A frame of `O(-1)` on an open induces compatible frames of all its |
| 123 | nonnegative powers on that open. -/ |
| 124 | noncomputable def coordinateHyperplaneIdealModulePowerTrivializationOf |
| 125 | (U : (Proj (homogeneousSubmodule σ R)).Opens) (j : σ) |
| 126 | (e : (IdealModule.idealModule |
| 127 | (SpaceHyperplane.MvPolynomial.coordinateHyperplaneι (R := R) j)).restrict U.ι ≅ |
| 128 | Invertible.Scheme.Modules.unitObj U.toScheme) : ∀ n : ℕ, |
| 129 | (TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j n).restrict U.ι ≅ |
| 130 | Invertible.Scheme.Modules.unitObj U.toScheme |
| 131 | | 0 => TensorSections.restrictMonoidalUnitIso U.ι ≪≫ |
| 132 | TensorSections.monoidalUnitObjIso U.toScheme |
| 133 | | n + 1 => |
| 134 | TensorSections.restrictMonoidalTensorIso |
| 135 | U.ι |
| 136 | (TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j n) |
| 137 | (IdealModule.idealModule (SpaceHyperplane.MvPolynomial.coordinateHyperplaneι (R := R) j)) ≪≫ |
| 138 | (coordinateHyperplaneIdealModulePowerTrivializationOf U j e n ⊗ᵢ e) ≪≫ |
| 139 | TensorSections.unitObjTensorIso U.toScheme |
| 140 | |
| 141 | /-- The compatible standard-chart frame of the nonnegative power of `O(-1)`. -/ |
| 142 | noncomputable def coordinateHyperplaneIdealModulePowerTrivialization |
| 143 | (i j : σ) : ∀ n : ℕ, |
| 144 | (TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j n).restrict |
| 145 | (MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i).ι ≅ |
| 146 | Invertible.Scheme.Modules.unitObj (MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i).toScheme := |
| 147 | TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePowerTrivializationOf |
| 148 | (MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i) j |
| 149 | (HyperplaneFrames.MvPolynomial.coordinateHyperplaneIdealModuleTrivialization (R := R) i j).symm |
| 150 | |
| 151 | /-- Every nonnegative power of the coordinate-hyperplane `O(-1)` is |
| 152 | invertible. -/ |
| 153 | theorem coordinateHyperplaneIdealModulePower_isInvertible (j : σ) (n : ℕ) : |
| 154 | Invertible.Scheme.Modules.IsInvertible |
| 155 | (TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j n) := by |
| 156 | induction n with |
| 157 | | zero => |
| 158 | exact Invertible.Scheme.Modules.isInvertible_unit.of_iso |
| 159 | (TensorSections.monoidalUnitObjIso |
| 160 | (Proj (homogeneousSubmodule σ R))) |
| 161 | | succ n ih => |
| 162 | exact (ih.tensorObj |
| 163 | (HyperplaneIdeal.MvPolynomial.coordinateHyperplaneIdealModule_isInvertible (R := R) j)).of_iso |
| 164 | (TensorSections.monoidalTensorObjIso _ _) |
| 165 | |
| 166 | /-- The integer twist `O(d)` on polynomial projective space, formed from the |
| 167 | concrete coordinate-hyperplane `O(1)` and `O(-1)`. -/ |
| 168 | noncomputable def coordinateHyperplaneTwist (j : σ) : |
| 169 | ℤ → (Proj (homogeneousSubmodule σ R)).Modules |
| 170 | | .ofNat n => TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n |
| 171 | | .negSucc n => TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j (n + 1) |
| 172 | |
| 173 | @[simp] |
| 174 | lemma coordinateHyperplaneTwist_ofNat (j : σ) (n : ℕ) : |
| 175 | coordinateHyperplaneTwist (R := R) j (.ofNat n) = |
| 176 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n := |
| 177 | rfl |
| 178 | |
| 179 | @[simp] |
| 180 | lemma coordinateHyperplaneTwist_negSucc (j : σ) (n : ℕ) : |
| 181 | coordinateHyperplaneTwist (R := R) j (.negSucc n) = |
| 182 | TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j (n + 1) := |
| 183 | rfl |
| 184 | |
| 185 | /-- The standard-chart frame of the integer twist `O(d)`. -/ |
| 186 | noncomputable def coordinateHyperplaneTwistTrivialization (i j : σ) : |
| 187 | ∀ d : ℤ, |
| 188 | (coordinateHyperplaneTwist (R := R) j d).restrict |
| 189 | (MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i).ι ≅ |
| 190 | Invertible.Scheme.Modules.unitObj (MvPolynomialClosure.MvPolynomial.coordinateOpen (R := R) i).toScheme |
| 191 | | .ofNat n => coordinateHyperplanePoleSheafPowerTrivialization (R := R) i j n |
| 192 | | .negSucc n => |
| 193 | coordinateHyperplaneIdealModulePowerTrivialization i j (n + 1) |
| 194 | |
| 195 | /-- Every integer twist `O(d)` is invertible. -/ |
| 196 | theorem coordinateHyperplaneTwist_isInvertible (j : σ) (d : ℤ) : |
| 197 | Invertible.Scheme.Modules.IsInvertible (coordinateHyperplaneTwist (R := R) j d) := by |
| 198 | cases d with |
| 199 | | ofNat n => exact coordinateHyperplanePoleSheafPower_isInvertible j n |
| 200 | | negSucc n => exact coordinateHyperplaneIdealModulePower_isInvertible j (n + 1) |
| 201 | |
| 202 | /-- The constructed twists have genuine finite local presentations. -/ |
| 203 | theorem coordinateHyperplaneTwist_finitePresentation (j : σ) (d : ℤ) : |
| 204 | (coordinateHyperplaneTwist (R := R) j d).IsFinitePresentation := |
| 205 | InvertibleFinitePresentation.invertible_finitePresentation |
| 206 | (coordinateHyperplaneTwist_isInvertible j d) |
| 207 | |
| 208 | end |
| 209 | |
| 210 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial |