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.TensorPowerCancellation |
| 8 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleEvaluation |
| 9 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistPowers |
| 10 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.InvertibleCancellationPairing |
| 11 | |
| 12 | /-! # Twist Shift Iso -/ |
| 13 | |
| 14 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistShiftIso.MvPolynomial |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | open _root_.MvPolynomial |
| 19 | |
| 20 | /-! |
| 21 | # Shift isomorphisms for projective-space twists |
| 22 | |
| 23 | Positive powers of the coordinate-hyperplane twist are additive, and |
| 24 | tensoring `O(-m)` with `O(n)` for `m ≤ n` gives `O(n-m)`. |
| 25 | -/ |
| 26 | |
| 27 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.HomogeneousIdeal MonoidalCategory |
| 28 | |
| 29 | universe u |
| 30 | |
| 31 | variable {R : Type u} {σ : Type} [CommRing R] |
| 32 | |
| 33 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 34 | |
| 35 | noncomputable local instance projectiveSpaceTwistShiftMonoidalCategory |
| 36 | (X : Scheme.{u}) : MonoidalCategory X.Modules := |
| 37 | Monoidal.Scheme.Modules.monoidalCategory X |
| 38 | |
| 39 | noncomputable local instance projectiveSpaceTwistShiftSymmetricCategory |
| 40 | (X : Scheme.{u}) : SymmetricCategory X.Modules := |
| 41 | Monoidal.Scheme.Modules.symmetricCategory X |
| 42 | |
| 43 | /-- Degree-one cancellation is the actual evaluation against the hyperplane dual. -/ |
| 44 | noncomputable def coordinateHyperplaneBaseCancellationIso (j : σ) : |
| 45 | IdealModule.idealModule (SpaceHyperplane.MvPolynomial.coordinateHyperplaneι (R := R) j) ⊗ |
| 46 | HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j ≅ |
| 47 | 𝟙_ (Proj (homogeneousSubmodule σ R)).Modules := by |
| 48 | let X := Proj (homogeneousSubmodule σ R) |
| 49 | let M := IdealModule.idealModule (SpaceHyperplane.MvPolynomial.coordinateHyperplaneι (R := R) j) |
| 50 | exact InvertibleCancellationPairing.invertibleDualPairingIso M |
| 51 | (HyperplaneIdeal.MvPolynomial.coordinateHyperplaneIdealModule_isInvertible (R := R) j) ≪≫ |
| 52 | (TensorSections.monoidalUnitObjIso X).symm |
| 53 | |
| 54 | /-- Positive and negative powers cancel through the actual dual evaluation. -/ |
| 55 | noncomputable def coordinateHyperplanePowerCancellationIso (j : σ) : |
| 56 | ∀ n : ℕ, TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j n ⊗ |
| 57 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n ≅ |
| 58 | 𝟙_ (Proj (homogeneousSubmodule σ R)).Modules |
| 59 | | 0 => λ_ (𝟙_ (Proj (homogeneousSubmodule σ R)).Modules) |
| 60 | | n + 1 => |
| 61 | TensorPowerCancellation.tensorSwapMiddleIso |
| 62 | (TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j n) |
| 63 | (IdealModule.idealModule (SpaceHyperplane.MvPolynomial.coordinateHyperplaneι (R := R) j)) |
| 64 | (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n) |
| 65 | (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j) ≪≫ |
| 66 | (coordinateHyperplanePowerCancellationIso j n ⊗ᵢ coordinateHyperplaneBaseCancellationIso j) ≪≫ |
| 67 | λ_ (𝟙_ (Proj (homogeneousSubmodule σ R)).Modules) |
| 68 | |
| 69 | set_option backward.isDefEq.respectTransparency false in |
| 70 | /-- Successor cancellation pairs the previous powers and the final factors. -/ |
| 71 | theorem coordinateHyperplanePowerCancellationIso_succ_hom (j : σ) (n : ℕ) : |
| 72 | (TwistShiftIso.MvPolynomial.coordinateHyperplanePowerCancellationIso (R := R) j (n + 1)).hom = |
| 73 | tensorμ (TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j n) |
| 74 | (IdealModule.idealModule (SpaceHyperplane.MvPolynomial.coordinateHyperplaneι (R := R) j)) |
| 75 | (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n) |
| 76 | (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j) ≫ |
| 77 | ((TwistShiftIso.MvPolynomial.coordinateHyperplanePowerCancellationIso (R := R) j n).hom ⊗ₘ |
| 78 | (coordinateHyperplaneBaseCancellationIso (R := R) j).hom) ≫ |
| 79 | (λ_ (𝟙_ (Proj (homogeneousSubmodule σ R)).Modules)).hom := rfl |
| 80 | |
| 81 | /-- The recursively defined positive powers satisfy `O(m+n) ≅ O(m) ⊗ O(n)`. -/ |
| 82 | noncomputable def coordinateHyperplanePoleSheafPower_addIso |
| 83 | (j : σ) : |
| 84 | ∀ m n : ℕ, |
| 85 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j (m + n) ≅ |
| 86 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j m ⊗ |
| 87 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n |
| 88 | | m, 0 => (ρ_ (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j m)).symm |
| 89 | | m, n + 1 => |
| 90 | (coordinateHyperplanePoleSheafPower_addIso j m n ⊗ᵢ |
| 91 | Iso.refl (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j)) ≪≫ |
| 92 | α_ (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j m) |
| 93 | (TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n) |
| 94 | (HyperplanePole.MvPolynomial.coordinateHyperplanePoleSheaf (R := R) j) |
| 95 | |
| 96 | /-- Cancelling equal negative and positive powers gives |
| 97 | `O(-m) ⊗ O(m+n) ≅ O(n)`. -/ |
| 98 | noncomputable def |
| 99 | coordinateHyperplaneIdealModulePowerTensorPoleSheafPowerAddIso |
| 100 | (j : σ) (m n : ℕ) : |
| 101 | TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j m ⊗ |
| 102 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j (m + n) ≅ |
| 103 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n := by |
| 104 | let X := Proj (homogeneousSubmodule σ R) |
| 105 | let N := TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j m |
| 106 | let Pm := TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j m |
| 107 | let Pn := TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n |
| 108 | let eNP : N ⊗ Pm ≅ 𝟙_ X.Modules := |
| 109 | TwistShiftIso.MvPolynomial.coordinateHyperplanePowerCancellationIso (R := R) j m |
| 110 | exact |
| 111 | (Iso.refl N ⊗ᵢ |
| 112 | TwistShiftIso.MvPolynomial.coordinateHyperplanePoleSheafPower_addIso (R := R) j m n) ≪≫ |
| 113 | (α_ N Pm Pn).symm ≪≫ |
| 114 | (eNP ⊗ᵢ Iso.refl Pn) ≪≫ |
| 115 | λ_ Pn |
| 116 | |
| 117 | /-- If `m ≤ n`, then `O(-m) ⊗ O(n) ≅ O(n-m)`. -/ |
| 118 | noncomputable def |
| 119 | coordinateHyperplaneIdealModulePowerTensorPoleSheafPowerIsoOfLE |
| 120 | (j : σ) (m n : ℕ) (h : m ≤ n) : |
| 121 | TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j m ⊗ |
| 122 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j n ≅ |
| 123 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j (n - m) := |
| 124 | eqToIso (congrArg |
| 125 | (fun k ↦ TwistPowers.MvPolynomial.coordinateHyperplaneIdealModulePower (R := R) j m ⊗ |
| 126 | TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j k) |
| 127 | (Nat.add_sub_of_le h).symm) ≪≫ |
| 128 | coordinateHyperplaneIdealModulePowerTensorPoleSheafPowerAddIso |
| 129 | (R := R) j m (n - m) |
| 130 | |
| 131 | end |
| 132 | |
| 133 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.TwistShiftIso.MvPolynomial |