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.AbelianScheme.CartierDuality.Characters |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.SliceCharacters |
| 3 | import Mathlib.RingTheory.TensorProduct.MonoidAlgebra |
| 4 | |
| 5 | /-! # Affine Pullback -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.AffinePullback.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # CartierDuality: affine coordinates for native scheme base change |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.CategoryTheory.Limits _root_.Module TensorProduct |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | variable (R S A : Type u) [CommRing R] [CommRing S] [CommRing A] |
| 21 | variable [Algebra R S] [HopfAlgebra R A] |
| 22 | |
| 23 | /-- The tensor-product coordinate algebra describes the native pullback |
| 24 | as a group scheme, with the group-law compatibility supplied by the |
| 25 | affine spectrum construction. -/ |
| 26 | def affineHopfPullbackIso : |
| 27 | (Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R S)))).mapGrp.obj |
| 28 | (Characters.Construction.affineHopfGroupScheme R A) ≅ |
| 29 | Characters.Construction.affineHopfGroupScheme S (S ⊗[R] A) := by |
| 30 | let e := pullbackSymmetry .. ≪≫ pullbackSpecIso' R S A |
| 31 | have h : IsMonHom (e.hom.asOver (Spec (CommRingCat.of S))) := |
| 32 | inferInstanceAs (IsMonHom |
| 33 | ((pullbackSymmetry .. ≪≫ pullbackSpecIso' R S A).hom.asOver (Spec (CommRingCat.of S)))) |
| 34 | let i : ((Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap R S)))).mapGrp.obj |
| 35 | (Characters.Construction.affineHopfGroupScheme R A)).X ≅ (Characters.Construction.affineHopfGroupScheme S (S ⊗[R] A)).X := |
| 36 | e.asOver (Spec (CommRingCat.of S)) |
| 37 | have : IsMonHom i.hom := h |
| 38 | exact Grp.mkIso' i |
| 39 | |
| 40 | /-- The affine pullback comparison preserves the projection to the |
| 41 | original affine group scheme. -/ |
| 42 | theorem affineHopfPullbackIso_inv_fst : |
| 43 | (affineHopfPullbackIso R S A).inv.hom.hom.left ≫ |
| 44 | Limits.pullback.fst (Spec.map (CommRingCat.ofHom (algebraMap R A))) |
| 45 | (Spec.map (CommRingCat.ofHom (algebraMap R S))) = |
| 46 | Spec.map (CommRingCat.ofHom |
| 47 | (Algebra.TensorProduct.includeRight : A →ₐ[R] S ⊗[R] A).toRingHom) := by |
| 48 | change (pullbackSpecIso' R S A).inv ≫ (Limits.pullbackSymmetry _ _).inv ≫ |
| 49 | Limits.pullback.fst _ _ = _ |
| 50 | rw [Limits.pullbackSymmetry_inv_comp_fst] |
| 51 | exact pullbackSpecIso_inv_snd R S A |
| 52 | |
| 53 | section MonoidAlgebra |
| 54 | |
| 55 | variable (M : Type v) [CommMonoid M] |
| 56 | |
| 57 | /-- Scalar extension of a monoid algebra respects comultiplication and |
| 58 | counit in addition to its algebra structure. -/ |
| 59 | def monoidAlgebraBaseChangeBialgEquiv : |
| 60 | S ⊗[R] MonoidAlgebra R M ≃ₐc[S] MonoidAlgebra S M where |
| 61 | __ := (MonoidAlgebra.scalarTensorEquiv R S (M := M)).toLinearEquiv |
| 62 | map_mul' := (MonoidAlgebra.scalarTensorEquiv R S (M := M)).map_mul |
| 63 | counit_comp := by |
| 64 | apply AlgebraTensorModule.ext |
| 65 | intro s p |
| 66 | induction p using MonoidAlgebra.induction_linear with |
| 67 | | zero => simp |
| 68 | | add p q hp hq => simp only [TensorProduct.tmul_add, map_add, hp, hq] |
| 69 | | single m r => |
| 70 | simp [MonoidAlgebra.scalarTensorEquiv_tmul, Algebra.smul_def, mul_comm] |
| 71 | map_comp_comul := by |
| 72 | apply LinearMap.ext |
| 73 | intro z |
| 74 | induction z using TensorProduct.inductionOn with |
| 75 | | add p q hp hq => simp only [map_add, hp, hq] |
| 76 | | tmul s p => |
| 77 | induction p using MonoidAlgebra.induction_linear with |
| 78 | | zero => simp |
| 79 | | add p q hp hq => simp only [TensorProduct.tmul_add, map_add, hp, hq] |
| 80 | | single m r => |
| 81 | simp [MonoidAlgebra.scalarTensorEquiv_tmul, Algebra.smul_def] |
| 82 | |
| 83 | /-- The scalar-extension isomorphism identifies the old monoid algebra |
| 84 | with its ordinary coefficient-extension map. -/ |
| 85 | theorem monoidAlgebraBaseChange_includeRight : |
| 86 | ((monoidAlgebraBaseChangeBialgEquiv R S M).toAlgEquiv.toAlgHom.restrictScalars R).comp |
| 87 | (Algebra.TensorProduct.includeRight : MonoidAlgebra R M →ₐ[R] S ⊗[R] MonoidAlgebra R M) = |
| 88 | MonoidAlgebra.mapAlgHom M (Algebra.ofId R S) := by |
| 89 | apply AlgHom.ext |
| 90 | intro p |
| 91 | change MonoidAlgebra.scalarTensorEquiv R S (1 ⊗ₜ[R] p) = |
| 92 | MonoidAlgebra.mapAlgHom M (Algebra.ofId R S) p |
| 93 | simp only [MonoidAlgebra.scalarTensorEquiv_tmul, one_smul] |
| 94 | |
| 95 | end MonoidAlgebra |
| 96 | |
| 97 | namespace Schemes |
| 98 | |
| 99 | /-- On an affine scheme, the global multiplicative-group model agrees |
| 100 | with the Laurent-coordinate model used by the affine character theorem. -/ |
| 101 | def multiplicativeGroupOverSpecIso (R : Type u) [CommRing R] : |
| 102 | CharacterSheaf.Construction.Schemes.multiplicativeGroupOver (Spec (CommRingCat.of R)) ≅ Characters.Construction.multiplicativeGroupScheme R := by |
| 103 | letI : Algebra (ULift.{u} ℤ) R := |
| 104 | ((Int.castRingHom R).comp (ULift.ringEquiv.toRingHom)).toAlgebra |
| 105 | have h : specULiftZIsTerminal.from (Spec (CommRingCat.of R)) = |
| 106 | Spec.map (CommRingCat.ofHom (algebraMap (ULift.{u} ℤ) R)) := |
| 107 | specULiftZIsTerminal.hom_ext _ _ |
| 108 | let i : Over.pullback (specULiftZIsTerminal.from (Spec (CommRingCat.of R))) ≅ |
| 109 | Over.pullback (Spec.map (CommRingCat.ofHom (algebraMap (ULift.{u} ℤ) R))) := |
| 110 | eqToIso (congrArg |
| 111 | (fun g : Spec (CommRingCat.of R) ⟶ Spec (CommRingCat.of (ULift.{u} ℤ)) => |
| 112 | Over.pullback g) h) |
| 113 | exact (Functor.mapGrpNatIso i).app (Characters.Construction.multiplicativeGroupScheme (ULift.{u} ℤ)) ≪≫ |
| 114 | affineHopfPullbackIso (ULift.{u} ℤ) R |
| 115 | (Characters.Construction.MultiplicativeGroupCoordinate (ULift.{u} ℤ)) ≪≫ |
| 116 | ((hopfSpec (CommRingCat.of R)).mapIso |
| 117 | (CommHopfAlgCat.isoMk |
| 118 | (monoidAlgebraBaseChangeBialgEquiv (ULift.{u} ℤ) R (Multiplicative ℤ))).op).symm |
| 119 | |
| 120 | /-- The global multiplicative-group model has the expected projection |
| 121 | to its integral Laurent-coordinate model. -/ |
| 122 | theorem multiplicativeGroupOverSpecIso_inv_integralProjection (R : Type u) [CommRing R] : |
| 123 | (multiplicativeGroupOverSpecIso R).inv.hom.hom.left ≫ |
| 124 | Limits.pullback.fst (Characters.Construction.multiplicativeGroupScheme (ULift.{u} ℤ)).X.hom |
| 125 | (specULiftZIsTerminal.from (Spec (CommRingCat.of R))) = |
| 126 | Spec.map (CommRingCat.ofHom (MonoidAlgebra.mapRingHom (Multiplicative ℤ) |
| 127 | ((Int.castRingHom R).comp ULift.ringEquiv.toRingHom))) := by |
| 128 | let : Algebra (ULift.{u} ℤ) R := |
| 129 | ((Int.castRingHom R).comp (ULift.ringEquiv.toRingHom)).toAlgebra |
| 130 | let G₀ := Characters.Construction.multiplicativeGroupScheme (ULift.{u} ℤ) |
| 131 | let f₀ := specULiftZIsTerminal.from (Spec (CommRingCat.of R)) |
| 132 | let f₁ := Spec.map (CommRingCat.ofHom (algebraMap (ULift.{u} ℤ) R)) |
| 133 | have h : f₀ = f₁ := specULiftZIsTerminal.hom_ext _ _ |
| 134 | let i : Over.pullback f₀ ≅ Over.pullback f₁ := |
| 135 | eqToIso (congrArg (fun f : Spec (CommRingCat.of R) ⟶ |
| 136 | Spec (CommRingCat.of (ULift.{u} ℤ)) => Over.pullback f) h) |
| 137 | let e := affineHopfPullbackIso (ULift.{u} ℤ) R |
| 138 | (Characters.Construction.MultiplicativeGroupCoordinate (ULift.{u} ℤ)) |
| 139 | let j : (Over.pullback f₁).mapGrp.obj G₀ ≅ Characters.Construction.multiplicativeGroupScheme R := |
| 140 | e ≪≫ ((hopfSpec (CommRingCat.of R)).mapIso |
| 141 | (CommHopfAlgCat.isoMk |
| 142 | (monoidAlgebraBaseChangeBialgEquiv (ULift.{u} ℤ) R (Multiplicative ℤ))).op).symm |
| 143 | have hstage : (multiplicativeGroupOverSpecIso R).inv.hom.hom.left ≫ |
| 144 | Limits.pullback.fst G₀.X.hom f₀ = |
| 145 | j.inv.hom.hom.left ≫ Limits.pullback.fst G₀.X.hom f₁ := by |
| 146 | change j.inv.hom.hom.left ≫ ((Functor.mapGrpNatIso i).inv.app G₀).hom.hom.left ≫ |
| 147 | Limits.pullback.fst G₀.X.hom f₀ = _ |
| 148 | exact congrArg (fun f => j.inv.hom.hom.left ≫ f) (SliceCharacters.Construction.Schemes.pullback_eqIso_inv_fst f₀ f₁ h G₀) |
| 149 | apply hstage.trans |
| 150 | change Spec.map (CommRingCat.ofHom |
| 151 | (monoidAlgebraBaseChangeBialgEquiv (ULift.{u} ℤ) R (Multiplicative ℤ)).toAlgEquiv.toRingEquiv.toRingHom) ≫ |
| 152 | e.inv.hom.hom.left ≫ Limits.pullback.fst G₀.X.hom f₁ = _ |
| 153 | have hp := congrArg (fun f => Spec.map (CommRingCat.ofHom |
| 154 | (monoidAlgebraBaseChangeBialgEquiv (ULift.{u} ℤ) R (Multiplicative ℤ)).toAlgEquiv.toRingEquiv.toRingHom) ≫ f) |
| 155 | (affineHopfPullbackIso_inv_fst (ULift.{u} ℤ) R (Characters.Construction.MultiplicativeGroupCoordinate (ULift.{u} ℤ))) |
| 156 | apply hp.trans |
| 157 | have hs := congrArg (fun f => Spec.map (CommRingCat.ofHom f)) |
| 158 | (congrArg AlgHom.toRingHom |
| 159 | (monoidAlgebraBaseChange_includeRight (ULift.{u} ℤ) R (Multiplicative ℤ))) |
| 160 | change Spec.map (CommRingCat.ofHom |
| 161 | ((monoidAlgebraBaseChangeBialgEquiv (ULift.{u} ℤ) R (Multiplicative ℤ)).toAlgEquiv.toRingEquiv.toRingHom.comp |
| 162 | Algebra.TensorProduct.includeRight.toRingHom)) = _ at hs |
| 163 | rw [CommRingCat.ofHom_comp, Spec.map_comp] at hs |
| 164 | exact hs |
| 165 | |
| 166 | end Schemes |
| 167 | |
| 168 | /-- Affine-coordinate characters are exactly sections of the actual |
| 169 | fppf character sheaf on the corresponding affine test scheme. -/ |
| 170 | def affineGroupCharacterSectionsEquiv : |
| 171 | (Characters.Construction.affineHopfGroupScheme S (S ⊗[R] A) ⟶ Characters.Construction.multiplicativeGroupScheme S) ≃ |
| 172 | (CharacterSheaf.Construction.Schemes.characterSheaf (Spec (CommRingCat.of R)) (Characters.Construction.affineHopfGroupScheme R A)).obj.obj |
| 173 | (Opposite.op ((Spec (CommRingCat.of S)).asOver (Spec (CommRingCat.of R)))) := |
| 174 | (affineHopfPullbackIso R S A).homFromEquiv.symm.trans <| |
| 175 | (Schemes.multiplicativeGroupOverSpecIso S).homToEquiv.symm.trans <| |
| 176 | (SliceCharacters.Construction.Schemes.characterSheaf_testCharacterEquiv (Spec (CommRingCat.of R)) |
| 177 | (Characters.Construction.affineHopfGroupScheme R A) |
| 178 | ((Spec (CommRingCat.of S)).asOver (Spec (CommRingCat.of R)))).symm |
| 179 | |
| 180 | variable [Coalgebra.IsCocomm R A] [Module.Finite R A] [Module.Projective R A] |
| 181 | |
| 182 | /-- The constructed affine Cartier dual represents sections of the actual |
| 183 | fppf character sheaf on every affine test scheme. Both sides use native |
| 184 | scheme morphisms and the global multiplicative-group model. -/ |
| 185 | def affineCartierSheafSectionsEquiv : |
| 186 | ((Spec (CommRingCat.of S)).asOver (Spec (CommRingCat.of R)) ⟶ |
| 187 | (Characters.Construction.affineHopfGroupScheme R (DualAlgebra.Construction.DualCoordinate R A)).X) ≃ |
| 188 | (CharacterSheaf.Construction.Schemes.characterSheaf (Spec (CommRingCat.of R)) (Characters.Construction.affineHopfGroupScheme R A)).obj.obj |
| 189 | (Opposite.op ((Spec (CommRingCat.of S)).asOver (Spec (CommRingCat.of R)))) := |
| 190 | (Characters.Construction.affineSchemePointsEquivAlgHom R (DualAlgebra.Construction.DualCoordinate R A) S).trans <| |
| 191 | (DualAlgebra.Construction.affineDualPointsEquivCharacters R S A).trans <| |
| 192 | (Characters.Construction.groupLikeEquivSchemeCharacters S (S ⊗[R] A)).trans <| |
| 193 | affineGroupCharacterSectionsEquiv R S A |
| 194 | |
| 195 | end |
| 196 | |
| 197 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.AffinePullback.Construction |