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.NumberTheory.PadicHodge.IntegralComparison.Projective.ResidueTrace |
| 2 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.HomogeneousPolynomialCoefficientFormula |
| 3 | import OAI.AlgebraicGeometry.SheafCohomology.Projective.DegreeZeroPolynomials |
| 4 | import Mathlib.LinearAlgebra.Dual.Defs |
| 5 | |
| 6 | /-! # Twist Residue Duality -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.TwistResidueDuality |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Complementary Laurent monomials identify the original top |
| 13 | cohomology of O(-m-d-1) with the linear dual of the original global |
| 14 | sections of O(m). The pairing is given by its explicit residue |
| 15 | coefficient formula. -/ |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.MvPolynomial |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable (σ : Type) [Fintype σ] |
| 22 | |
| 23 | abbrev NegativeExponent (m : ℕ) := |
| 24 | {e : AlgebraicGeometry.SheafCohomology.Projective.LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ (-(m : ℤ) - (Fintype.card σ : ℤ)) // |
| 25 | e.liftedNegativeSupport = (Set.univ : Set (ULift.{u} σ))} |
| 26 | |
| 27 | def complementaryWeightEquiv (m : ℕ) : NegativeExponent.{u} σ m ≃ AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (m : ℤ) := |
| 28 | (AlgebraicGeometry.SheafCohomology.Projective.NegativeLaurentCount.MvPolynomial.liftedFullNegativeLaurentWeightEquiv.{u} (σ := σ) (-(m : ℤ) - (Fintype.card σ : ℤ))).trans |
| 29 | ((AlgebraicGeometry.SheafCohomology.Projective.NegativeLaurentCount.MvPolynomial.fullNegativeLaurentWeightEquivDegree (σ := σ) m).trans |
| 30 | (AlgebraicGeometry.SheafCohomology.Projective.NonnegativeLaurentPolynomials.MvPolynomial.nonnegativeLaurentWeightEquivDegree (σ := σ) m).symm) |
| 31 | |
| 32 | theorem complementaryWeight_add (m : ℕ) (e : NegativeExponent.{u} σ m) (i : σ) : |
| 33 | e.val.val i + (complementaryWeightEquiv σ m e).val.val i = -1 := by |
| 34 | have hi : e.val.val i < 0 := by |
| 35 | have h : ULift.up i ∈ e.val.liftedNegativeSupport := by rw [e.property]; trivial |
| 36 | exact h |
| 37 | change e.val.val i + ((-e.val.val i - 1).toNat : ℤ) = -1 |
| 38 | omega |
| 39 | |
| 40 | variable (C : Type u) [CommRing C] |
| 41 | |
| 42 | def polynomialDual (m : ℕ) : |
| 43 | (NegativeExponent.{u} σ m → C) ≃ₗ[C] Module.Dual C (homogeneousSubmodule σ C m) := |
| 44 | (LinearEquiv.piCongrLeft' C (fun _ : NegativeExponent.{u} σ m => C) |
| 45 | (complementaryWeightEquiv σ m)).trans |
| 46 | ((Module.Basis.ofEquivFun (AlgebraicGeometry.SheafCohomology.Projective.NonnegativeLaurentPolynomials.MvPolynomial.homogeneousPolynomialCoefficientsEquiv C m)).constr C) |
| 47 | |
| 48 | theorem polynomialDual_apply (m : ℕ) (a : NegativeExponent.{u} σ m → C) |
| 49 | (P : homogeneousSubmodule σ C m) : |
| 50 | polynomialDual σ C m a P = |
| 51 | ∑ e : AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (m : ℤ), |
| 52 | AlgebraicGeometry.SheafCohomology.Projective.NonnegativeLaurentPolynomials.MvPolynomial.homogeneousPolynomialCoefficientsEquiv C m P e * |
| 53 | a ((complementaryWeightEquiv σ m).symm e) := by |
| 54 | classical |
| 55 | change ((Module.Basis.ofEquivFun (AlgebraicGeometry.SheafCohomology.Projective.NonnegativeLaurentPolynomials.MvPolynomial.homogeneousPolynomialCoefficientsEquiv C m)).constr C |
| 56 | (fun e => a ((complementaryWeightEquiv σ m).symm e))) P = _ |
| 57 | rw [Module.Basis.constr_apply_fintype] |
| 58 | simp only [Module.Basis.equivFun_ofEquivFun, smul_eq_mul] |
| 59 | |
| 60 | theorem polynomialDual_monomial (m : ℕ) (a : NegativeExponent.{u} σ m → C) |
| 61 | (e : AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial.NonnegativeLaurentWeight σ (m : ℤ)) (c : C) : |
| 62 | polynomialDual σ C m a (AlgebraicGeometry.SheafCohomology.Projective.HomogeneousPolynomialCoefficientFormula.MvPolynomial.homogeneousMonomialOfWeight C m e c) = |
| 63 | c * a ((complementaryWeightEquiv σ m).symm e) := by |
| 64 | classical |
| 65 | rw [polynomialDual_apply] |
| 66 | simp only [AlgebraicGeometry.SheafCohomology.Projective.HomogeneousPolynomialCoefficientFormula.MvPolynomial.homogeneousMonomialOfWeight_coefficient, ite_mul, zero_mul, |
| 67 | Finset.sum_ite_eq, Finset.mem_univ, ite_true] |
| 68 | |
| 69 | def polynomialDualCard (m c : ℕ) (hc : Fintype.card σ = c) : |
| 70 | ({e : AlgebraicGeometry.SheafCohomology.Projective.LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ (-(m : ℤ) - (c : ℤ)) // |
| 71 | e.liftedNegativeSupport = (Set.univ : Set (ULift.{u} σ))} → C) |
| 72 | ≃ₗ[C] Module.Dual C (homogeneousSubmodule σ C m) := by |
| 73 | subst c |
| 74 | exact polynomialDual σ C m |
| 75 | |
| 76 | variable (R : Type u) [CommRing R] |
| 77 | |
| 78 | attribute [local instance] MvPolynomial.gradedAlgebra |
| 79 | |
| 80 | def laurentTopDual (n m : ℕ) (j : Fin (n + 2)) : |
| 81 | (AlgebraicGeometry.SheafCohomology.Projective.TwistCechWeights.MvPolynomial.coordinateHomogeneousLaurentOrderedCechComplex (R := R) j |
| 82 | (-(m : ℤ) - ((n + 2 : ℕ) : ℤ))).homology (n + 1) |
| 83 | ≃ₗ[Γ(Spec (CommRingCat.of R), ⊤)] |
| 84 | Module.Dual Γ(Spec (CommRingCat.of R), ⊤) |
| 85 | (homogeneousSubmodule (Fin (n + 2)) Γ(Spec (CommRingCat.of R), ⊤) m) := |
| 86 | (AlgebraicGeometry.SheafCohomology.Projective.NegativeLaurentTop.MvPolynomial.coordinateHomogeneousLaurentTopHomologyEquivCoefficients |
| 87 | (R := R) j (-(m : ℤ) - ((n + 2 : ℕ) : ℤ)) n (by simp)).trans |
| 88 | (polynomialDualCard (Fin (n + 2)) Γ(Spec (CommRingCat.of R), ⊤) m (n + 2) (by simp)) |
| 89 | |
| 90 | def topDual (n m : ℕ) (j : Fin (n + 2)) : |
| 91 | (AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCech.Scheme.Modules.orderedBaseCechComplex |
| 92 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) |
| 93 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplaneTwist (R := R) j (-(m : ℤ) - ((n + 2 : ℕ) : ℤ))) |
| 94 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := R) (σ := Fin (n + 2)))).homology (n + 1) |
| 95 | ≃ₗ[Γ(Spec (CommRingCat.of R), ⊤)] |
| 96 | Module.Dual Γ(Spec (CommRingCat.of R), ⊤) |
| 97 | ((AlgebraicGeometry.SheafCohomology.Projective.OrderedBaseCech.Scheme.Modules.orderedBaseCechComplex |
| 98 | (AlgebraicGeometry.SheafCohomology.Projective.MvPolynomialClosure.MvPolynomial.homogeneousProjπ (R := R) (σ := Fin (n + 2))) |
| 99 | (AlgebraicGeometry.SheafCohomology.Projective.TwistPowers.MvPolynomial.coordinateHyperplanePoleSheafPower (R := R) j m) |
| 100 | (AlgebraicGeometry.SheafCohomology.Projective.StandardCech.MvPolynomial.coordinateOpenCover (R := R) (σ := Fin (n + 2)))).homology 0) := |
| 101 | (HomologicalComplex.homologyMapIso |
| 102 | ((AlgebraicGeometry.SheafCohomology.Projective.TwistCech.MvPolynomial.coordinateHyperplaneTwistOrderedBaseCechComplexIso (R := R) j |
| 103 | (-(m : ℤ) - ((n + 2 : ℕ) : ℤ))) ≪≫ |
| 104 | (AlgebraicGeometry.SheafCohomology.Projective.TwistCechWeights.MvPolynomial.coordinateHomogeneousLaurentOrderedCechComplexIso (R := R) j |
| 105 | (-(m : ℤ) - ((n + 2 : ℕ) : ℤ)))) (n + 1)).toLinearEquiv.trans |
| 106 | ((laurentTopDual R n m j).trans (AlgebraicGeometry.SheafCohomology.Projective.DegreeZeroPolynomials.MvPolynomial.coordinateTwistHZeroLinearEquivPolynomials (R := R) j m).dualMap) |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Projective.TwistResidueDuality |