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.Crystalline.Cohomology.Koszul.SuccessiveHomotopy |
| 2 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.Constants |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.TensorDegree |
| 4 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.SingleRetraction |
| 5 | import Mathlib.Algebra.Homology.QuasiIso |
| 6 | |
| 7 | /-! # Koszul Homotopy -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.KoszulHomotopy.MultivariableKoszulHomotopy |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! |
| 14 | # A multivariable divided-polynomial tensor contraction |
| 15 | |
| 16 | The commuting actual coordinate derivations and their integral primitives |
| 17 | give a homotopy equivalence between the tensor exterior complex and R[0]. |
| 18 | Identifying this tensor complex with the PD de Rham presentation is a |
| 19 | separate construction. |
| 20 | -/ |
| 21 | |
| 22 | open _root_.CategoryTheory |
| 23 | open scoped TensorProduct |
| 24 | |
| 25 | open OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.DividedAlgebra.MultivariableDividedAlgebra OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.CoordinateDerivation.MultivariableCoordinateDerivation OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.Primitive.MultivariablePrimitive |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | variable (R σ K : Type u) [CommRing R] [Field K] [CharZero K] [Algebra R K] |
| 30 | (h : Function.Injective (algebraMap R K)) |
| 31 | (I : Ideal R) (δ : DividedPowers I) (hunit : ∃ a ∈ I, IsUnit (algebraMap R K a)) [Fintype σ] |
| 32 | |
| 33 | local notation "G" => DividedPowerAlgebra R (σ →₀ R) |
| 34 | def derivatives (i : σ) : Module.End R G := (CoordinateDerivation.MultivariableCoordinateDerivation.derivation R σ K h I δ hunit i).toLinearMap |
| 35 | |
| 36 | local notation "D" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.KoszulHomotopy.MultivariableKoszulHomotopy.derivatives R σ K h I δ hunit |
| 37 | local notation "S" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.Primitive.MultivariablePrimitive.primitive R σ K h |
| 38 | |
| 39 | omit [Fintype σ] in |
| 40 | theorem commute (i j : σ) : Function.Commute (D i) (D j) := |
| 41 | CoordinateDerivation.MultivariableCoordinateDerivation.derivations_commute R σ K h I δ hunit i j |
| 42 | |
| 43 | def complex : CochainComplex (ModuleCat R) ℕ := |
| 44 | Koszul.Tensor.KoszulTensor.complex R σ G D (commute R σ K h I δ hunit) |
| 45 | |
| 46 | local notation "C" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.KoszulHomotopy.MultivariableKoszulHomotopy.complex R σ K h I δ hunit |
| 47 | local notation "comm" => OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.KoszulHomotopy.MultivariableKoszulHomotopy.commute R σ K h I δ hunit |
| 48 | |
| 49 | omit [Fintype σ] in |
| 50 | theorem rightInverse (i : σ) (a : G) : D i (S i a) = a := |
| 51 | Primitive.MultivariablePrimitive.derivation_primitive R σ K h I δ hunit i a |
| 52 | |
| 53 | omit [Fintype σ] in |
| 54 | theorem commute_primitive (i j : σ) (hji : j ≠ i) (a : G) : D j (S i a) = S i (D j a) := |
| 55 | LinearMap.congr_fun (Primitive.MultivariablePrimitive.derivation_primitive_commute R σ K h I δ hunit i j (Ne.symm hji)) a |
| 56 | |
| 57 | omit [Fintype σ] in |
| 58 | theorem coordinateProjection (i : σ) : |
| 59 | Koszul.CoordinateHomotopy.KoszulCoordinateHomotopy.coefficientProjection R σ G D i (S i) = Primitive.MultivariablePrimitive.projection R σ K h i := by |
| 60 | change LinearMap.id - (S i).comp (D i) = Primitive.MultivariablePrimitive.projection R σ K h i |
| 61 | exact sub_eq_iff_eq_add.mpr ((Primitive.MultivariablePrimitive.primitive_derivation_linear R σ K h I δ hunit i).symm.trans (add_comm _ _)) |
| 62 | |
| 63 | omit [Fintype σ] in |
| 64 | theorem coefficientProjection (l : List σ) : |
| 65 | Koszul.SuccessiveHomotopy.KoszulSuccessiveHomotopy.coefficient R σ G D S l = Constants.MultivariableConstants.successive R σ K h l := by |
| 66 | induction l with |
| 67 | | nil => rfl |
| 68 | | cons i l ih => |
| 69 | change (Koszul.SuccessiveHomotopy.KoszulSuccessiveHomotopy.coefficient R σ G D S l).comp |
| 70 | (Koszul.CoordinateHomotopy.KoszulCoordinateHomotopy.coefficientProjection R σ G D i (S i)) = |
| 71 | (Constants.MultivariableConstants.successive R σ K h l).comp (Primitive.MultivariablePrimitive.projection R σ K h i) |
| 72 | rw [ih, coordinateProjection] |
| 73 | |
| 74 | def coordinateList : List σ := Finset.univ.toList |
| 75 | |
| 76 | theorem mem_coordinateList (i : σ) : i ∈ coordinateList σ := by |
| 77 | classical |
| 78 | exact Finset.mem_toList.mpr (Finset.mem_univ i) |
| 79 | |
| 80 | def finalProjection : C ⟶ C := |
| 81 | Koszul.SuccessiveHomotopy.KoszulSuccessiveHomotopy.chain R σ G D S comm (coordinateList σ) |
| 82 | |
| 83 | def contraction : Homotopy (𝟙 C) (finalProjection R σ K h I δ hunit) := |
| 84 | Koszul.SuccessiveHomotopy.KoszulSuccessiveHomotopy.homotopy R σ G D S comm (coordinateList σ) |
| 85 | |
| 86 | theorem finalProjection_positive (n : ℕ) : (finalProjection R σ K h I δ hunit).f (n + 1) = 0 := |
| 87 | Koszul.SuccessiveHomotopy.KoszulSuccessiveHomotopy.chain_positive R σ G D S comm |
| 88 | (rightInverse R σ K h I δ hunit) (commute_primitive R σ K h I δ hunit) |
| 89 | (coordinateList σ) (mem_coordinateList σ) n |
| 90 | |
| 91 | local notation "e₀" => OAI.AlgebraicGeometry.Crystalline.Cohomology.TensorDegree.TensorDegreeZero.equiv R σ G |
| 92 | |
| 93 | def inclusionZero : R →ₗ[R] Koszul.Tensor.KoszulTensor.Term R σ G 0 := |
| 94 | (e₀).symm.toLinearMap.comp (Constants.MultivariableConstants.constants R σ) |
| 95 | |
| 96 | def retractionZero : Koszul.Tensor.KoszulTensor.Term R σ G 0 →ₗ[R] R := |
| 97 | (Constants.MultivariableConstants.constantCoefficient R σ K h).comp (e₀).toLinearMap |
| 98 | |
| 99 | omit [Fintype σ] in |
| 100 | theorem inclusionZero_apply (r : R) : inclusionZero R σ r = |
| 101 | algebraMap R G r ⊗ₜ[R] (exteriorPower.zeroEquiv R (σ →₀ R)).symm 1 := |
| 102 | TensorDegree.TensorDegreeZero.equiv_symm R σ G (algebraMap R G r) |
| 103 | |
| 104 | omit [Fintype σ] in |
| 105 | theorem retraction_inclusion : |
| 106 | (retractionZero R σ K h).comp (inclusionZero R σ) = LinearMap.id := by |
| 107 | apply LinearMap.ext |
| 108 | intro r |
| 109 | change Constants.MultivariableConstants.constantCoefficient R σ K h |
| 110 | (e₀ ((e₀).symm (Constants.MultivariableConstants.constants R σ r))) = r |
| 111 | rw [LinearEquiv.apply_symm_apply] |
| 112 | exact LinearMap.congr_fun (Constants.MultivariableConstants.constantCoefficient_constants R σ K h) r |
| 113 | |
| 114 | theorem finalProjection_zero : (finalProjection R σ K h I δ hunit).f 0 = |
| 115 | ModuleCat.ofHom ((inclusionZero R σ).comp (retractionZero R σ K h)) := by |
| 116 | have hf := Koszul.SuccessiveHomotopy.KoszulSuccessiveHomotopy.chain_f R σ G D S comm |
| 117 | (rightInverse R σ K h I δ hunit) (commute_primitive R σ K h I δ hunit) (coordinateList σ) 0 |
| 118 | change (finalProjection R σ K h I δ hunit).f 0 = _ at hf |
| 119 | rw [coefficientProjection R σ K h I δ hunit, |
| 120 | Constants.MultivariableConstants.successive_eq_constants R σ K h (coordinateList σ) (mem_coordinateList σ), |
| 121 | ExteriorCoordinate.ExteriorCoordinateProjection.successive_zero] at hf |
| 122 | apply hf.trans |
| 123 | apply ModuleCat.hom_ext |
| 124 | exact (TensorDegree.TensorDegreeZero.conjugate R σ G |
| 125 | ((Constants.MultivariableConstants.constants R σ).comp (Constants.MultivariableConstants.constantCoefficient R σ K h))).symm |
| 126 | |
| 127 | theorem differential_inclusion : |
| 128 | (Koszul.Tensor.KoszulTensor.differential R σ G D 0).comp (inclusionZero R σ) = 0 := by |
| 129 | apply LinearMap.ext |
| 130 | intro r |
| 131 | change Koszul.Tensor.KoszulTensor.differential R σ G D 0 (inclusionZero R σ r) = 0 |
| 132 | rw [inclusionZero_apply, Koszul.Tensor.KoszulTensor.differential_tmul] |
| 133 | apply Finset.sum_eq_zero |
| 134 | intro i _ |
| 135 | change CoordinateDerivation.MultivariableCoordinateDerivation.derivation R σ K h I δ hunit i (algebraMap R G r) ⊗ₜ[R] _ = 0 |
| 136 | rw [Derivation.map_algebraMap, TensorProduct.zero_tmul] |
| 137 | |
| 138 | def inclusionHom : ModuleCat.of R R ⟶ (C).X 0 := ModuleCat.ofHom (inclusionZero R σ) |
| 139 | |
| 140 | def retractionHom : (C).X 0 ⟶ ModuleCat.of R R := ModuleCat.ofHom (retractionZero R σ K h) |
| 141 | |
| 142 | theorem differential_inclusionHom : inclusionHom R σ K h I δ hunit ≫ (C).d 0 1 = 0 := by |
| 143 | apply ModuleCat.hom_ext |
| 144 | have hd := Koszul.CoordinateHomotopy.KoszulCoordinateHomotopy.complex_d R σ G D comm 0 |
| 145 | exact (congrArg (fun f : (C).X 0 ⟶ (C).X 1 => f.hom.comp (inclusionZero R σ)) hd).trans |
| 146 | (differential_inclusion R σ K h I δ hunit) |
| 147 | |
| 148 | theorem retraction_inclusionHom : inclusionHom R σ K h I δ hunit ≫ retractionHom R σ K h I δ hunit = |
| 149 | 𝟙 (ModuleCat.of R R) := ModuleCat.hom_ext (retraction_inclusion R σ K h) |
| 150 | |
| 151 | theorem inclusion_retractionHom : retractionHom R σ K h I δ hunit ≫ inclusionHom R σ K h I δ hunit = |
| 152 | (finalProjection R σ K h I δ hunit).f 0 := (finalProjection_zero R σ K h I δ hunit).symm |
| 153 | |
| 154 | /-- The actual divided-polynomial tensor complex contracts onto its constants. -/ |
| 155 | def homotopyEquiv : HomotopyEquiv ((CochainComplex.single₀ (ModuleCat R)).obj (ModuleCat.of R R)) C := |
| 156 | SingleRetraction.SingleRetractionHomotopy.homotopyEquiv C (ModuleCat.of R R) |
| 157 | (finalProjection R σ K h I δ hunit) (contraction R σ K h I δ hunit) |
| 158 | (inclusionHom R σ K h I δ hunit) (retractionHom R σ K h I δ hunit) |
| 159 | (differential_inclusionHom R σ K h I δ hunit) (retraction_inclusionHom R σ K h I δ hunit) |
| 160 | (inclusion_retractionHom R σ K h I δ hunit) (finalProjection_positive R σ K h I δ hunit) |
| 161 | |
| 162 | def augmentation : (CochainComplex.single₀ (ModuleCat R)).obj (ModuleCat.of R R) ⟶ C := |
| 163 | (homotopyEquiv R σ K h I δ hunit).hom |
| 164 | |
| 165 | instance augmentation_quasiIso : QuasiIso (augmentation R σ K h I δ hunit) := |
| 166 | HomotopyEquiv.quasiIso_hom (homotopyEquiv R σ K h I δ hunit) |
| 167 | |
| 168 | end |
| 169 | |
| 170 | end OAI.AlgebraicGeometry.Crystalline.Cohomology.Multivariable.KoszulHomotopy.MultivariableKoszulHomotopy |