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.SheafCohomology.Projective.LaurentZeroCycleWeights |
| 2 | |
| 3 | /-! # Laurent Zero Coefficients -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Nonnegative Laurent weights give the coefficients of global positive twists. -/ |
| 10 | |
| 11 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 12 | universe u |
| 13 | open _root_.MvPolynomial |
| 14 | variable {σ : Type} |
| 15 | |
| 16 | def NonnegativeLaurentWeight (σ : Type) (d : ℤ) := |
| 17 | {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d // ∀ i, 0 ≤ e.val i} |
| 18 | |
| 19 | theorem NonnegativeLaurentWeight.emptySupport {d : ℤ} (e : NonnegativeLaurentWeight σ d) : |
| 20 | (e.val.liftedNegativeSupport : Set (ULift.{u} σ)) = ∅ := by |
| 21 | apply Set.eq_empty_iff_forall_notMem.mpr |
| 22 | intro i hi |
| 23 | exact (not_lt_of_ge (e.property i.down)) hi |
| 24 | |
| 25 | instance nonnegativeLaurentWeightFinite [Fintype σ] (d : ℤ) : |
| 26 | Finite (NonnegativeLaurentWeight σ d) := by |
| 27 | have hsub : {e : LaurentWeight.MvPolynomial.HomogeneousLaurentExponent σ d | ∀ i, 0 ≤ e.val i} ⊆ |
| 28 | {e | (e.liftedNegativeSupport : Set (ULift.{0} σ)) = ∅} := by |
| 29 | intro e he |
| 30 | exact NonnegativeLaurentWeight.emptySupport (⟨e, he⟩ : NonnegativeLaurentWeight σ d) |
| 31 | exact ((LaurentWeight.MvPolynomial.HomogeneousLaurentExponent.finite_setOf_liftedNegativeSupport_eq_empty |
| 32 | (σ := σ) d).subset hsub).to_subtype |
| 33 | |
| 34 | instance nonnegativeLaurentWeightFintype [Fintype σ] (d : ℤ) : |
| 35 | Fintype (NonnegativeLaurentWeight σ d) := Fintype.ofFinite _ |
| 36 | |
| 37 | variable {R : Type u} [CommRing R] [LinearOrder σ] |
| 38 | local instance laurentZeroCoefficientsDecidableEq : DecidableEq σ := Classical.decEq σ |
| 39 | |
| 40 | def laurentZeroCoefficients (d : ℤ) (j : σ) : |
| 41 | LaurentZeroCycleWeights.MvPolynomial.LaurentZeroCycles (R := R) (σ := σ) d →ₗ[Γ(Spec (CommRingCat.of R), ⊤)] |
| 42 | (NonnegativeLaurentWeight σ d → Γ(Spec (CommRingCat.of R), ⊤)) := |
| 43 | LinearMap.pi fun e => |
| 44 | (OrderedCechZeroCycles.orderedEmptySupportCyclesEquiv Γ(Spec (CommRingCat.of R), ⊤) |
| 45 | e.val.liftedNegativeSupport e.emptySupport (ULift.up j)).toLinearMap.comp |
| 46 | (LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeight (R := R) d e.val) |
| 47 | |
| 48 | def laurentZeroFromCoefficients [Fintype σ] (d : ℤ) (j : σ) : |
| 49 | (NonnegativeLaurentWeight σ d → Γ(Spec (CommRingCat.of R), ⊤)) →ₗ[ |
| 50 | Γ(Spec (CommRingCat.of R), ⊤)] LaurentZeroCycleWeights.MvPolynomial.LaurentZeroCycles (R := R) (σ := σ) d := by |
| 51 | classical |
| 52 | exact ∑ e : NonnegativeLaurentWeight σ d, |
| 53 | (LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeightInclusion (R := R) d e.val).comp |
| 54 | ((OrderedCechZeroCycles.orderedEmptySupportCyclesEquiv Γ(Spec (CommRingCat.of R), ⊤) |
| 55 | e.val.liftedNegativeSupport e.emptySupport (ULift.up j)).symm.toLinearMap.comp |
| 56 | (LinearMap.proj e)) |
| 57 | |
| 58 | theorem laurentZeroWeight_fromCoefficients [Fintype σ] (d : ℤ) (j : σ) |
| 59 | (c : NonnegativeLaurentWeight σ d → Γ(Spec (CommRingCat.of R), ⊤)) |
| 60 | (e : NonnegativeLaurentWeight σ d) : |
| 61 | LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeight (R := R) d e.val (laurentZeroFromCoefficients (R := R) d j c) = |
| 62 | (OrderedCechZeroCycles.orderedEmptySupportCyclesEquiv Γ(Spec (CommRingCat.of R), ⊤) |
| 63 | e.val.liftedNegativeSupport e.emptySupport (ULift.up j)).symm (c e) := by |
| 64 | classical |
| 65 | simp only [laurentZeroFromCoefficients, LinearMap.sum_apply, map_sum, LinearMap.comp_apply, |
| 66 | LinearEquiv.coe_coe, LinearMap.proj_apply] |
| 67 | rw [Finset.sum_eq_single e] |
| 68 | · exact LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeight_inclusion d e.val _ |
| 69 | · intro f _ hfe |
| 70 | exact LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeight_inclusion_ne d f.val e.val |
| 71 | (fun h => hfe (Subtype.ext h.symm)) _ |
| 72 | · simp |
| 73 | |
| 74 | theorem laurentZeroCoefficients_from [Fintype σ] (d : ℤ) (j : σ) |
| 75 | (c : NonnegativeLaurentWeight σ d → Γ(Spec (CommRingCat.of R), ⊤)) : |
| 76 | laurentZeroCoefficients (R := R) d j (laurentZeroFromCoefficients (R := R) d j c) = c := by |
| 77 | funext e |
| 78 | change OrderedCechZeroCycles.orderedEmptySupportCyclesEquiv Γ(Spec (CommRingCat.of R), ⊤) |
| 79 | e.val.liftedNegativeSupport e.emptySupport (ULift.up j) |
| 80 | (LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeight (R := R) d e.val (laurentZeroFromCoefficients (R := R) d j c)) = c e |
| 81 | rw [laurentZeroWeight_fromCoefficients, LinearEquiv.apply_symm_apply] |
| 82 | |
| 83 | theorem laurentZeroFrom_coefficients [Fintype σ] (d : ℤ) (hd : 0 ≤ d) (j : σ) |
| 84 | (z : LaurentZeroCycleWeights.MvPolynomial.LaurentZeroCycles (R := R) (σ := σ) d) : |
| 85 | laurentZeroFromCoefficients (R := R) d j (laurentZeroCoefficients (R := R) d j z) = z := by |
| 86 | apply LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycle_ext d |
| 87 | intro e |
| 88 | by_cases he : ∀ i, 0 ≤ e.val i |
| 89 | · let e' : NonnegativeLaurentWeight σ d := ⟨e, he⟩ |
| 90 | change LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeight (R := R) d e'.val |
| 91 | (laurentZeroFromCoefficients (R := R) d j (laurentZeroCoefficients (R := R) d j z)) = _ |
| 92 | rw [laurentZeroWeight_fromCoefficients] |
| 93 | exact (OrderedCechZeroCycles.orderedEmptySupportCyclesEquiv Γ(Spec (CommRingCat.of R), ⊤) |
| 94 | e'.val.liftedNegativeSupport e'.emptySupport (ULift.up j)).symm_apply_apply _ |
| 95 | · have hn : (e.liftedNegativeSupport : Set (ULift.{u} σ)) ≠ ∅ := by |
| 96 | intro h |
| 97 | apply he |
| 98 | intro i |
| 99 | by_contra hi |
| 100 | have hm : (ULift.up i : ULift.{u} σ) ∈ e.liftedNegativeSupport := by exact lt_of_not_ge hi |
| 101 | rw [h] at hm |
| 102 | exact hm |
| 103 | rw [LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeight_eq_zero_of_nonempty d hd j e hn, |
| 104 | LaurentZeroCycleWeights.MvPolynomial.laurentZeroCycleWeight_eq_zero_of_nonempty d hd j e hn] |
| 105 | |
| 106 | def laurentZeroCyclesEquivCoefficients [Fintype σ] (d : ℤ) (hd : 0 ≤ d) (j : σ) : |
| 107 | LaurentZeroCycleWeights.MvPolynomial.LaurentZeroCycles (R := R) (σ := σ) d ≃ₗ[Γ(Spec (CommRingCat.of R), ⊤)] |
| 108 | (NonnegativeLaurentWeight σ d → Γ(Spec (CommRingCat.of R), ⊤)) := |
| 109 | { laurentZeroCoefficients (R := R) d j with |
| 110 | invFun := laurentZeroFromCoefficients (R := R) d j |
| 111 | left_inv := laurentZeroFrom_coefficients d hd j |
| 112 | right_inv := laurentZeroCoefficients_from d j } |
| 113 | |
| 114 | end |
| 115 | |
| 116 | end OAI.AlgebraicGeometry.SheafCohomology.Projective.LaurentZeroCoefficients.MvPolynomial |