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.GroupSchemes.CoordinateMaps |
| 2 | |
| 3 | /-! # Coordinate Points -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.GroupSchemes |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Recover all affine-valued points with their original group law in coordinates. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 12 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.MonObj WithConv |
| 13 | |
| 14 | namespace CoordinatePoints.FiniteEtale |
| 15 | |
| 16 | /-- Postcomposition by an algebra map commutes with convolution powers. -/ |
| 17 | theorem comp_convolution_pow {k A B : Type*} [Field k] [CommRing A] [CommRing B] |
| 18 | [Bialgebra k A] [Algebra k B] (f : A →ₐ[k] B) (n : ℕ) : |
| 19 | f.comp ((toConv (AlgHom.id k A)) ^ n).ofConv = ((toConv f) ^ n).ofConv := by |
| 20 | induction n with |
| 21 | | zero => |
| 22 | ext x |
| 23 | simp only [pow_zero, AlgHom.comp_apply, AlgHom.convOne_apply, AlgHom.commutes] |
| 24 | | succ n ih => |
| 25 | rw [pow_succ, pow_succ, AlgHom.comp_convMul_distrib, ih] |
| 26 | rfl |
| 27 | |
| 28 | end CoordinatePoints.FiniteEtale |
| 29 | |
| 30 | universe u |
| 31 | variable {k : Type u} [Field k] |
| 32 | |
| 33 | /-- The coordinate presentation of the original functor of points, including its group law. -/ |
| 34 | def FiniteEtale.FiniteCommGroupScheme.coordinatePoints (G : FiniteEtale.FiniteCommGroupScheme k) (R : CommAlgCat.{u} k) : |
| 35 | letI := G.coordinateHopf |
| 36 | letI : Bialgebra k G.algebra := G.coordinateHopf.toBialgebra |
| 37 | letI : Algebra k G.algebra := G.coordinateHopf.toAlgebra |
| 38 | WithConv (G.algebra →ₐ[k] R) ≃* (FiniteEtale.affine k R ⟶ G.scheme) := by |
| 39 | let := G.coordinateHopf |
| 40 | let : Bialgebra k G.algebra := G.coordinateHopf.toBialgebra |
| 41 | let : Algebra k G.algebra := G.coordinateHopf.toAlgebra |
| 42 | let e := @Spec.mapMulEquiv k G.algebra R _ _ _ G.coordinateHopf.toBialgebra _ |
| 43 | refine { e.toEquiv with map_mul' := ?_ } |
| 44 | intro f g |
| 45 | have h := congrArg Over.Hom.left (e.map_mul f g) |
| 46 | ext1 |
| 47 | simp only [Hom.mul_def, Over.comp_left, mul_spec_asOver_spec_left] at h |
| 48 | change _ = _ ≫ G.givenMultiplication |
| 49 | rw [← G.coordinateHopf_represents_mul] |
| 50 | exact h |
| 51 | |
| 52 | /-- Evaluation of the coordinate equivalence is the actual Spec map. -/ |
| 53 | theorem FiniteEtale.FiniteCommGroupScheme.coordinatePoints_apply (G : FiniteEtale.FiniteCommGroupScheme k) (R : CommAlgCat.{u} k) |
| 54 | (f : G.algebra →ₐ[k] R) : |
| 55 | G.coordinatePoints R (toConv f) = |
| 56 | (algSpec (CommRingCat.of k)).map (CommAlgCat.ofHom f).op := rfl |
| 57 | |
| 58 | /-- Coordinate evaluation intertwines postcomposition with a geometric morphism. -/ |
| 59 | theorem FiniteEtale.FiniteCommGroupScheme.coordinatePoints_postcomp {G H : FiniteEtale.FiniteCommGroupScheme k} |
| 60 | (h : G.scheme ⟶ H.scheme) (R : CommAlgCat.{u} k) (f : G.algebra →ₐ[k] R) : |
| 61 | H.coordinatePoints R (toConv (f.comp (FiniteEtale.FiniteCommGroupScheme.coordinateMap h))) = |
| 62 | G.coordinatePoints R (toConv f) ≫ h := by |
| 63 | change (algSpec (CommRingCat.of k)).map |
| 64 | (CommAlgCat.ofHom (f.comp (FiniteEtale.FiniteCommGroupScheme.coordinateMap h))).op = |
| 65 | (algSpec (CommRingCat.of k)).map (CommAlgCat.ofHom f).op ≫ h |
| 66 | conv_rhs => rw [← FiniteEtale.FiniteCommGroupScheme.coordinateMap_spec h] |
| 67 | rw [← Functor.map_comp] |
| 68 | apply congrArg ((algSpec (CommRingCat.of k)).map) |
| 69 | apply Quiver.Hom.unop_inj |
| 70 | apply CommAlgCat.hom_ext |
| 71 | rfl |
| 72 | |
| 73 | /-- Coordinate evaluation is natural in every affine test algebra. -/ |
| 74 | theorem FiniteEtale.FiniteCommGroupScheme.coordinatePoints_precomp (G : FiniteEtale.FiniteCommGroupScheme k) |
| 75 | {R S : CommAlgCat.{u} k} (a : R ⟶ S) (f : G.algebra →ₐ[k] R) : |
| 76 | G.coordinatePoints S (toConv (a.hom.comp f)) = |
| 77 | (algSpec (CommRingCat.of k)).map a.op ≫ G.coordinatePoints R (toConv f) := by |
| 78 | change (algSpec (CommRingCat.of k)).map (CommAlgCat.ofHom (a.hom.comp f)).op = |
| 79 | (algSpec (CommRingCat.of k)).map a.op ≫ |
| 80 | (algSpec (CommRingCat.of k)).map (CommAlgCat.ofHom f).op |
| 81 | rw [← Functor.map_comp] |
| 82 | apply congrArg ((algSpec (CommRingCat.of k)).map) |
| 83 | apply Quiver.Hom.unop_inj |
| 84 | apply CommAlgCat.hom_ext |
| 85 | rfl |
| 86 | |
| 87 | /-- Injectivity on geometric points is equivalent to injectivity on their algebra maps. -/ |
| 88 | theorem FiniteEtale.FiniteCommGroupScheme.pointMap_injective_iff (G : FiniteEtale.FiniteCommGroupScheme k) |
| 89 | {R S : CommAlgCat.{u} k} (a : R ⟶ S) : |
| 90 | Function.Injective (G.points.map a) ↔ |
| 91 | Function.Injective (a.hom.comp : (G.algebra →ₐ[k] R) → G.algebra →ₐ[k] S) := by |
| 92 | constructor |
| 93 | · intro h f g hfg |
| 94 | apply WithConv.toConv_injective |
| 95 | apply (G.coordinatePoints R).injective |
| 96 | apply h |
| 97 | exact (G.coordinatePoints_precomp a f).symm.trans |
| 98 | ((congrArg (fun b => G.coordinatePoints S (toConv b)) hfg).trans |
| 99 | (G.coordinatePoints_precomp a g)) |
| 100 | · intro h x y hxy |
| 101 | let f : G.algebra →ₐ[k] R := ((G.coordinatePoints R).symm x).ofConv |
| 102 | let g : G.algebra →ₐ[k] R := ((G.coordinatePoints R).symm y).ofConv |
| 103 | have hf : G.coordinatePoints R (toConv f) = x := (G.coordinatePoints R).apply_symm_apply x |
| 104 | have hg : G.coordinatePoints R (toConv g) = y := (G.coordinatePoints R).apply_symm_apply y |
| 105 | have hfg : a.hom.comp f = a.hom.comp g := by |
| 106 | apply WithConv.toConv_injective |
| 107 | apply (G.coordinatePoints S).injective |
| 108 | exact (G.coordinatePoints_precomp a f).trans |
| 109 | ((congrArg (fun z => (algSpec (CommRingCat.of k)).map a.op ≫ z) hf).trans |
| 110 | (hxy.trans ((congrArg (fun z => (algSpec (CommRingCat.of k)).map a.op ≫ z) hg).symm.trans |
| 111 | (G.coordinatePoints_precomp a g).symm))) |
| 112 | exact hf.symm.trans ((congrArg (fun b => G.coordinatePoints R (toConv b)) (h hfg)).trans hg) |
| 113 | |
| 114 | /-- Pullback of multiplication by n, constructed as the n-fold convolution of the identity. -/ |
| 115 | def FiniteEtale.FiniteCommGroupScheme.coordinatePower (G : FiniteEtale.FiniteCommGroupScheme k) (n : ℕ) : |
| 116 | G.algebra →ₐ[k] G.algebra := by |
| 117 | let := G.coordinateHopf |
| 118 | let : Bialgebra k G.algebra := G.coordinateHopf.toBialgebra |
| 119 | let : Algebra k G.algebra := G.coordinateHopf.toAlgebra |
| 120 | exact ((toConv (AlgHom.id k G.algebra)) ^ n).ofConv |
| 121 | |
| 122 | /-- Pullback of the identity section. -/ |
| 123 | def FiniteEtale.FiniteCommGroupScheme.coordinateAugmentation (G : FiniteEtale.FiniteCommGroupScheme k) : G.algebra →ₐ[k] k := by |
| 124 | let := G.coordinateHopf |
| 125 | exact Bialgebra.counitAlgHom k G.algebra |
| 126 | |
| 127 | /-- Pullback of the constant identity point in any affine algebra. -/ |
| 128 | def FiniteEtale.FiniteCommGroupScheme.coordinateIdentity (G : FiniteEtale.FiniteCommGroupScheme k) (R : CommAlgCat.{u} k) : |
| 129 | G.algebra →ₐ[k] R := |
| 130 | (Algebra.ofId k R).comp G.coordinateAugmentation |
| 131 | |
| 132 | /-- The pointwise n-torsion equation is precisely its coordinate algebra equation. -/ |
| 133 | theorem FiniteEtale.FiniteCommGroupScheme.coordinatePoints_pow_eq_one_iff (G : FiniteEtale.FiniteCommGroupScheme k) |
| 134 | (R : CommAlgCat.{u} k) (f : G.algebra →ₐ[k] R) (n : ℕ) : |
| 135 | (G.coordinatePoints R (toConv f)) ^ n = 1 ↔ |
| 136 | f.comp (G.coordinatePower n) = G.coordinateIdentity R := by |
| 137 | let := G.coordinateHopf |
| 138 | let : Bialgebra k G.algebra := G.coordinateHopf.toBialgebra |
| 139 | let : Algebra k G.algebra := G.coordinateHopf.toAlgebra |
| 140 | rw [← map_pow, ← (G.coordinatePoints R).map_one, (G.coordinatePoints R).injective.eq_iff] |
| 141 | change ((toConv f : WithConv (G.algebra →ₐ[k] R)) ^ n) = 1 ↔ _ |
| 142 | rw [← WithConv.ofConv_injective.eq_iff] |
| 143 | rw [← CoordinatePoints.FiniteEtale.comp_convolution_pow f n] |
| 144 | rfl |
| 145 | |
| 146 | /-- Coordinate multiplication by n agrees with convolution on linear endomorphisms. -/ |
| 147 | theorem FiniteEtale.FiniteCommGroupScheme.coordinatePower_apply (G : FiniteEtale.FiniteCommGroupScheme k) (n : ℕ) (x : G.algebra) : |
| 148 | letI := G.coordinateHopf |
| 149 | letI := G.coordinateCoalgebra |
| 150 | G.coordinatePower n x = ((toConv (LinearMap.id : G.algebra →ₗ[k] G.algebra)) ^ n) x := by |
| 151 | let := G.coordinateHopf |
| 152 | let : Bialgebra k G.algebra := G.coordinateHopf.toBialgebra |
| 153 | let : Algebra k G.algebra := G.coordinateHopf.toAlgebra |
| 154 | have h := AlgHom.toLinearMap_convPow (toConv (AlgHom.id k G.algebra)) n |
| 155 | exact congrArg (fun f : WithConv (G.algebra →ₗ[k] G.algebra) => f x) h |
| 156 | |
| 157 | end |
| 158 | |
| 159 | end OAI.AlgebraicGeometry.GroupSchemes |