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.Finite.FreeTraceDerivation |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.CoordinateComplexIso |
| 3 | import OAI.AlgebraicGeometry.Crystalline.Cohomology.Koszul.TensorMap |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrdinaryFormScalars |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.OrdinaryDeRhamFunctor |
| 6 | |
| 7 | /-! # De Rham Trace -/ |
| 8 | |
| 9 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.DeRhamTrace |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Ring trace gives a chain transfer on the actual de Rham complexes |
| 14 | of finite free maps between étale polynomial charts. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | universe u v |
| 20 | |
| 21 | variable (R A B σ : Type u) [CommRing R] [CommRing A] [CommRing B] |
| 22 | [Algebra R A] [Algebra R B] [Algebra A B] [IsScalarTower R A B] |
| 23 | [Algebra (MvPolynomial σ R) A] [Algebra (MvPolynomial σ R) B] |
| 24 | [IsScalarTower R (MvPolynomial σ R) A] [IsScalarTower R (MvPolynomial σ R) B] |
| 25 | [IsScalarTower (MvPolynomial σ R) A B] |
| 26 | [Algebra.FormallyEtale (MvPolynomial σ R) A] |
| 27 | [Algebra.FormallyEtale (MvPolynomial σ R) B] |
| 28 | [Fintype σ] [LinearOrder σ] |
| 29 | |
| 30 | omit [Algebra R A] [Algebra R B] [IsScalarTower R A B] |
| 31 | [IsScalarTower R (MvPolynomial σ R) A] [IsScalarTower R (MvPolynomial σ R) B] |
| 32 | [Algebra.FormallyEtale (MvPolynomial σ R) A] |
| 33 | [Algebra.FormallyEtale (MvPolynomial σ R) B] [Fintype σ] [LinearOrder σ] in |
| 34 | theorem coordinate_map (i : σ) : |
| 35 | algebraMap A B (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.coordinate R A σ i) = |
| 36 | AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.coordinate R B σ i := |
| 37 | (IsScalarTower.algebraMap_apply (MvPolynomial σ R) A B (MvPolynomial.X i)).symm |
| 38 | |
| 39 | omit [Fintype σ] in |
| 40 | theorem derivation_map (i : σ) (x : A) : |
| 41 | AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R B σ i (algebraMap A B x) = |
| 42 | algebraMap A B (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R A σ i x) := by |
| 43 | let D := AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R A σ i |
| 44 | let E := AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R B σ i |
| 45 | have he : E.compAlgebraMapL R A B B = (Algebra.ofId A B).toLinearMap.compDer D := by |
| 46 | apply AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.ext R A σ |
| 47 | intro j |
| 48 | change E (algebraMap A B (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.coordinate R A σ j)) = |
| 49 | algebraMap A B (D (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.coordinate R A σ j)) |
| 50 | rw [coordinate_map] |
| 51 | dsimp only [D, E] |
| 52 | rw [AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation_coordinate, |
| 53 | AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation_coordinate] |
| 54 | split_ifs <;> simp only [map_one, map_zero] |
| 55 | exact congrArg (fun F : Derivation R A B => F x) he |
| 56 | |
| 57 | variable {ι : Type v} [Fintype ι] (b : Module.Basis ι A B) |
| 58 | |
| 59 | include b in |
| 60 | omit [Fintype σ] in |
| 61 | theorem trace_derivation (i : σ) (x : B) : |
| 62 | Algebra.trace A B (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R B σ i x) = |
| 63 | AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R A σ i (Algebra.trace A B x) := |
| 64 | Finite.FreeTraceDerivation.trace_derivation b |
| 65 | (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R A σ i) |
| 66 | (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R B σ i) (derivation_map R A B σ i) x |
| 67 | |
| 68 | def coordinateTrace : OrdinaryCoordinates.Ordinary.complex R B σ ⟶ |
| 69 | OrdinaryCoordinates.Ordinary.complex R A σ := |
| 70 | AlgebraicGeometry.Crystalline.Cohomology.Koszul.TensorMap.KoszulTensorMap.map R σ B A |
| 71 | (fun i => (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R B σ i).toLinearMap) |
| 72 | (fun i => (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.derivation R A σ i).toLinearMap) |
| 73 | ((Algebra.trace A B).restrictScalars R) (trace_derivation R A B σ b) |
| 74 | (CoordinateDerivations.commute R B σ) |
| 75 | (CoordinateDerivations.commute R A σ) |
| 76 | |
| 77 | def trace : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex R B ⟶ AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex R A := |
| 78 | (CoordinateComplexIso.iso R B σ).inv ≫ coordinateTrace R A B σ b ≫ |
| 79 | (CoordinateComplexIso.iso R A σ).hom |
| 80 | |
| 81 | theorem trace_coordinates (n : ℕ) (z : AlgebraicGeometry.Crystalline.Cohomology.Koszul.Tensor.KoszulTensor.Term R σ B n) : |
| 82 | (DeRhamTrace.trace R A B σ b).f n ((CoordinateComplexIso.iso R B σ).hom.f n z) = |
| 83 | (CoordinateComplexIso.iso R A σ).hom.f n |
| 84 | (TensorProduct.map ((Algebra.trace A B).restrictScalars R) LinearMap.id z) := by |
| 85 | have he := Iso.hom_inv_id_apply |
| 86 | ((HomologicalComplex.eval (ModuleCat R) (.up ℕ) n).mapIso |
| 87 | (CoordinateComplexIso.iso R B σ)) z |
| 88 | change (CoordinateComplexIso.iso R B σ).inv.f n |
| 89 | ((CoordinateComplexIso.iso R B σ).hom.f n z) = z at he |
| 90 | change (CoordinateComplexIso.iso R A σ).hom.f n |
| 91 | ((coordinateTrace R A B σ b).f n |
| 92 | ((CoordinateComplexIso.iso R B σ).inv.f n |
| 93 | ((CoordinateComplexIso.iso R B σ).hom.f n z))) = _ |
| 94 | rw [he] |
| 95 | rfl |
| 96 | |
| 97 | theorem trace_coordinate_symbol (n : ℕ) (x : B) (v : Fin n → σ) : |
| 98 | (DeRhamTrace.trace R A B σ b).f n |
| 99 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R B x (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.coordinate R B σ ∘ v)) = |
| 100 | AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A (Algebra.trace A B x) |
| 101 | (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.coordinate R A σ ∘ v) := by |
| 102 | rw [← CoordinateComplexIso.word R B σ n x v] |
| 103 | rw [trace_coordinates] |
| 104 | change (CoordinateComplexIso.iso R A σ).hom.f n |
| 105 | (Algebra.trace A B x ⊗ₜ[R] exteriorPower.ιMulti R n |
| 106 | (fun i => Finsupp.single (v i) 1)) = _ |
| 107 | exact CoordinateComplexIso.word R A σ n _ v |
| 108 | |
| 109 | def pullback : AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex R A ⟶ AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex R B := |
| 110 | OrdinaryDeRhamFunctor.Ordinary.map (CommAlgCat.ofHom (IsScalarTower.toAlgHom R A B)) |
| 111 | |
| 112 | theorem pullback_coordinates (n : ℕ) (z : AlgebraicGeometry.Crystalline.Cohomology.Koszul.Tensor.KoszulTensor.Term R σ A n) : |
| 113 | (pullback R A B).f n ((CoordinateComplexIso.iso R A σ).hom.f n z) = |
| 114 | (CoordinateComplexIso.iso R B σ).hom.f n |
| 115 | (TensorProduct.map (IsScalarTower.toAlgHom R A B).toLinearMap LinearMap.id z) := by |
| 116 | have he : ((pullback R A B).f n).hom.comp |
| 117 | ((CoordinateComplexIso.iso R A σ).hom.f n).hom = |
| 118 | ((CoordinateComplexIso.iso R B σ).hom.f n).hom.comp |
| 119 | (TensorProduct.map (IsScalarTower.toAlgHom R A B).toLinearMap LinearMap.id) := by |
| 120 | apply TensorProduct.ext |
| 121 | apply LinearMap.ext |
| 122 | intro a |
| 123 | apply LinearMap.ext_on (AlgebraicGeometry.Crystalline.Cohomology.ExteriorCoordinate.ExteriorCoordinateProjection.word_span R σ n) |
| 124 | rintro _ ⟨v, rfl⟩ |
| 125 | change (pullback R A B).f n |
| 126 | ((CoordinateComplexIso.iso R A σ).hom.f n |
| 127 | (a ⊗ₜ[R] exteriorPower.ιMulti R n (fun i => Finsupp.single (v i) 1))) = _ |
| 128 | rw [CoordinateComplexIso.word] |
| 129 | change AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap (CommAlgCat.ofHom (IsScalarTower.toAlgHom R A B)) n |
| 130 | (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.symbol R A a (AlgebraicGeometry.Crystalline.Cohomology.EtaleCoordinate.EtaleCoordinateDerivations.coordinate R A σ ∘ v)) = |
| 131 | (CoordinateComplexIso.iso R B σ).hom.f n |
| 132 | (algebraMap A B a ⊗ₜ[R] exteriorPower.ιMulti R n (fun i => Finsupp.single (v i) 1)) |
| 133 | rw [AlgebraicGeometry.Crystalline.Cohomology.DeRhamGlobalId.DeRhamGlobal.formMap_symbol, CoordinateComplexIso.word] |
| 134 | congr 1 |
| 135 | exact funext (fun i => coordinate_map R A B σ (v i)) |
| 136 | exact LinearMap.congr_fun he z |
| 137 | |
| 138 | theorem pullback_trace : |
| 139 | pullback R A B ≫ DeRhamTrace.trace R A B σ b = |
| 140 | (Fintype.card ι : R) • 𝟙 (AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex R A) := by |
| 141 | apply HomologicalComplex.Hom.ext |
| 142 | funext n |
| 143 | apply ModuleCat.hom_ext |
| 144 | apply LinearMap.ext |
| 145 | intro ω |
| 146 | obtain ⟨z, rfl⟩ := (ModuleCat.epi_iff_surjective |
| 147 | ((CoordinateComplexIso.iso R A σ).hom.f n)).mp inferInstance ω |
| 148 | change (DeRhamTrace.trace R A B σ b).f n |
| 149 | ((pullback R A B).f n ((CoordinateComplexIso.iso R A σ).hom.f n z)) = |
| 150 | (Fintype.card ι : R) • (CoordinateComplexIso.iso R A σ).hom.f n z |
| 151 | rw [pullback_coordinates R A B σ n z, trace_coordinates R A B σ b n] |
| 152 | have ht : TensorProduct.map ((Algebra.trace A B).restrictScalars R) LinearMap.id |
| 153 | (TensorProduct.map (IsScalarTower.toAlgHom R A B).toLinearMap LinearMap.id z) = |
| 154 | (Fintype.card ι : R) • z := by |
| 155 | induction z using TensorProduct.inductionOn with |
| 156 | | tmul a η => |
| 157 | change Algebra.trace A B (algebraMap A B a) ⊗ₜ[R] η = |
| 158 | (Fintype.card ι : R) • (a ⊗ₜ[R] η) |
| 159 | rw [Algebra.trace_algebraMap_of_basis b, Nat.cast_smul_eq_nsmul, |
| 160 | TensorProduct.smul_tmul'] |
| 161 | | add x y hx hy => |
| 162 | simp only [map_add, hx, hy] |
| 163 | exact (smul_add (Fintype.card ι : R) x y).symm |
| 164 | rw [ht] |
| 165 | exact ((CoordinateComplexIso.iso R A σ).hom.f n).hom.map_smul _ _ |
| 166 | |
| 167 | theorem cohomology_pullback_trace (n : ℕ) : |
| 168 | HomologicalComplex.homologyMap (pullback R A B) n ≫ |
| 169 | HomologicalComplex.homologyMap (DeRhamTrace.trace R A B σ b) n = |
| 170 | (Fintype.card ι : R) • 𝟙 ((AlgebraicGeometry.Crystalline.Cohomology.DeRhamPresentationTo.DeRhamPresentation.complex R A).homology n) := by |
| 171 | let H := HomologicalComplex.homologyFunctor (ModuleCat R) (.up ℕ) n |
| 172 | change H.map (pullback R A B) ≫ H.map (DeRhamTrace.trace R A B σ b) = _ |
| 173 | rw [← H.map_comp, pullback_trace, Nat.cast_smul_eq_nsmul, H.map_nsmul, H.map_id, |
| 174 | Nat.cast_smul_eq_nsmul] |
| 175 | rfl |
| 176 | |
| 177 | end |
| 178 | |
| 179 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.DeRhamTrace |