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.BaseChange |
| 2 | |
| 3 | /-! # Dual Maps -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.DualMaps.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # CartierDuality: functorial duality on coordinate morphisms |
| 11 | |
| 12 | Dual morphisms are ordinary transposes. Their compatibility with the two |
| 13 | bialgebra structures, composition, bidual evaluation and scalar extension |
| 14 | is proved here, for use in gluing the affine construction. |
| 15 | -/ |
| 16 | |
| 17 | open _root_.Module TensorProduct Coalgebra |
| 18 | |
| 19 | universe u v w w' |
| 20 | |
| 21 | variable (R : Type u) [CommRing R] |
| 22 | |
| 23 | section Transpose |
| 24 | |
| 25 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 26 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 27 | |
| 28 | /-- The transpose, with the convolution type synonym on both duals. -/ |
| 29 | def dualCoordinateMap (f : M →ₗ[R] N) : DualAlgebra.Construction.DualCoordinate R N →ₗ[R] DualAlgebra.Construction.DualCoordinate R M := |
| 30 | (DualAlgebra.Construction.dualCoordinateLinearEquiv R M).symm.toLinearMap ∘ₗ f.dualMap ∘ₗ |
| 31 | (DualAlgebra.Construction.dualCoordinateLinearEquiv R N).toLinearMap |
| 32 | |
| 33 | @[simp] |
| 34 | theorem dualCoordinateMap_apply (f : M →ₗ[R] N) (g : DualAlgebra.Construction.DualCoordinate R N) (x : M) : |
| 35 | dualCoordinateMap R f g x = g (f x) := rfl |
| 36 | |
| 37 | end Transpose |
| 38 | |
| 39 | section BaseChangeNaturality |
| 40 | |
| 41 | variable {M : Type v} [AddCommGroup M] [Module R M] |
| 42 | variable {N : Type w} [AddCommGroup N] [Module R N] |
| 43 | variable [Module.Finite R M] [Module.Projective R M] |
| 44 | variable [Module.Finite R N] [Module.Projective R N] |
| 45 | variable (S : Type w') [CommRing S] [Algebra R S] |
| 46 | |
| 47 | /-- The arbitrary base-change comparison is natural in module maps. -/ |
| 48 | theorem dualCoordinateBaseChange_natural (f : M →ₗ[R] N) |
| 49 | (z : S ⊗[R] DualAlgebra.Construction.DualCoordinate R N) : |
| 50 | DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R M S |
| 51 | ((dualCoordinateMap R f).baseChange S z) = |
| 52 | dualCoordinateMap S (f.baseChange S) |
| 53 | (DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R N S z) := by |
| 54 | induction z using TensorProduct.inductionOn with |
| 55 | | add z z' hz hz' => simp only [map_add, hz, hz'] |
| 56 | | tmul s g => |
| 57 | apply WithConv.ext |
| 58 | apply AlgebraTensorModule.ext |
| 59 | intro t x |
| 60 | change DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R M S |
| 61 | ((dualCoordinateMap R f).baseChange S (s ⊗ₜ[R] g)) (t ⊗ₜ[R] x) = |
| 62 | dualCoordinateMap S (f.baseChange S) |
| 63 | (DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R N S (s ⊗ₜ[R] g)) (t ⊗ₜ[R] x) |
| 64 | simp |
| 65 | |
| 66 | end BaseChangeNaturality |
| 67 | |
| 68 | variable {A : Type v} [CommRing A] [Bialgebra R A] [Coalgebra.IsCocomm R A] |
| 69 | variable {B : Type w} [CommRing B] [Bialgebra R B] [Coalgebra.IsCocomm R B] |
| 70 | variable [Module.Finite R A] [Module.Projective R A] |
| 71 | variable [Module.Finite R B] [Module.Projective R B] |
| 72 | |
| 73 | local instance e56DualMapsInstance1 : CommRing (DualAlgebra.Construction.DualCoordinate R A) := LinearMap.convCommRing |
| 74 | local instance e56DualMapsInstance2 : Algebra R (DualAlgebra.Construction.DualCoordinate R A) := LinearMap.convAlgebra |
| 75 | local instance e56DualMapsInstance3 : CommRing (DualAlgebra.Construction.DualCoordinate R B) := LinearMap.convCommRing |
| 76 | local instance e56DualMapsInstance4 : Algebra R (DualAlgebra.Construction.DualCoordinate R B) := LinearMap.convAlgebra |
| 77 | |
| 78 | omit [Coalgebra.IsCocomm R A] [Coalgebra.IsCocomm R B] in |
| 79 | theorem dualCoordinateTensor_map_eval (f : A →ₗ[R] B) |
| 80 | (z : DualAlgebra.Construction.DualCoordinate R B ⊗[R] DualAlgebra.Construction.DualCoordinate R B) (x y : A) : |
| 81 | DualAlgebra.Construction.dualCoordinateTensorEquiv R A A |
| 82 | (TensorProduct.map (dualCoordinateMap R f) (dualCoordinateMap R f) z) |
| 83 | (x ⊗ₜ[R] y) = DualAlgebra.Construction.dualCoordinateTensorEquiv R B B z (f x ⊗ₜ[R] f y) := by |
| 84 | induction z using TensorProduct.inductionOn with |
| 85 | | tmul g h => simp |
| 86 | | add z z' hz hz' => simp only [map_add, LinearMap.add_apply, hz, hz'] |
| 87 | |
| 88 | /-- Transposing a bialgebra map reverses its direction and preserves the |
| 89 | dual bialgebra structures. -/ |
| 90 | def dualCoordinateBialgHom (f : A →ₐc[R] B) : |
| 91 | DualAlgebra.Construction.DualCoordinate R B →ₐc[R] DualAlgebra.Construction.DualCoordinate R A where |
| 92 | __ := dualCoordinateMap R f.toLinearMap |
| 93 | map_one' := by |
| 94 | apply WithConv.ext |
| 95 | apply LinearMap.ext |
| 96 | intro x |
| 97 | exact CoalgHomClass.counit_comp_apply f x |
| 98 | map_mul' g h := by |
| 99 | apply WithConv.ext |
| 100 | exact LinearMap.convMul_comp_coalgHom_distrib g h f.toCoalgHom |
| 101 | counit_comp := by |
| 102 | apply LinearMap.ext |
| 103 | intro g |
| 104 | change g (f 1) = g 1 |
| 105 | rw [map_one] |
| 106 | map_comp_comul := by |
| 107 | apply LinearMap.ext |
| 108 | intro g |
| 109 | apply DualAlgebra.Construction.dualCoordinateTensor_ext |
| 110 | intro x y |
| 111 | change DualAlgebra.Construction.dualCoordinateTensorEquiv R A A |
| 112 | (TensorProduct.map (dualCoordinateMap R f.toLinearMap) |
| 113 | (dualCoordinateMap R f.toLinearMap) (DualAlgebra.Construction.dualCoordinateComul R B g)) |
| 114 | (x ⊗ₜ[R] y) = |
| 115 | DualAlgebra.Construction.dualCoordinateTensorEquiv R A A |
| 116 | (DualAlgebra.Construction.dualCoordinateComul R A (dualCoordinateMap R f.toLinearMap g)) (x ⊗ₜ[R] y) |
| 117 | rw [dualCoordinateTensor_map_eval, DualAlgebra.Construction.dualCoordinateComul_apply, |
| 118 | DualAlgebra.Construction.dualCoordinateComul_apply, dualCoordinateMap_apply] |
| 119 | exact congrArg (fun b : B => g b) (f.map_mul x y).symm |
| 120 | |
| 121 | omit [Coalgebra.IsCocomm R A] [Coalgebra.IsCocomm R B] in |
| 122 | @[simp] |
| 123 | theorem dualCoordinateBialgHom_apply (f : A →ₐc[R] B) (g : DualAlgebra.Construction.DualCoordinate R B) (x : A) : |
| 124 | dualCoordinateBialgHom R f g x = g (f x) := rfl |
| 125 | |
| 126 | omit [Coalgebra.IsCocomm R A] in |
| 127 | @[simp] |
| 128 | theorem dualCoordinateBialgHom_id : |
| 129 | dualCoordinateBialgHom R (BialgHom.id R A) = BialgHom.id R (DualAlgebra.Construction.DualCoordinate R A) := by |
| 130 | rfl |
| 131 | |
| 132 | omit [Coalgebra.IsCocomm R A] [Coalgebra.IsCocomm R B] in |
| 133 | theorem dualCoordinateBialgHom_comp |
| 134 | {C : Type w'} [CommRing C] [Bialgebra R C] [Coalgebra.IsCocomm R C] |
| 135 | [Module.Finite R C] [Module.Projective R C] |
| 136 | (f : A →ₐc[R] B) (g : B →ₐc[R] C) : |
| 137 | dualCoordinateBialgHom R (g.comp f) = |
| 138 | (dualCoordinateBialgHom R f).comp (dualCoordinateBialgHom R g) := by |
| 139 | rfl |
| 140 | |
| 141 | /-- The bidual identification is natural in the original bialgebra. -/ |
| 142 | theorem dualCoordinateBidual_natural (f : A →ₐc[R] B) (x : A) : |
| 143 | dualCoordinateBialgHom R (dualCoordinateBialgHom R f) |
| 144 | (DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R A x) = |
| 145 | DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R B (f x) := by |
| 146 | rfl |
| 147 | |
| 148 | /-- Dualization is fully faithful on finite projective commutative, |
| 149 | cocommutative bialgebras. The inverse is the transpose conjugated by |
| 150 | bidual evaluation, with both inverse laws proved. -/ |
| 151 | def dualCoordinateBialgHomEquiv : |
| 152 | (A →ₐc[R] B) ≃ (DualAlgebra.Construction.DualCoordinate R B →ₐc[R] DualAlgebra.Construction.DualCoordinate R A) where |
| 153 | toFun := dualCoordinateBialgHom R |
| 154 | invFun f := (DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R B).symm.toBialgHom.comp |
| 155 | ((dualCoordinateBialgHom R f).comp (DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R A).toBialgHom) |
| 156 | left_inv f := by |
| 157 | apply BialgHom.ext |
| 158 | intro x |
| 159 | apply (DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R B).injective |
| 160 | change DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R B |
| 161 | ((DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R B).symm |
| 162 | (dualCoordinateBialgHom R (dualCoordinateBialgHom R f) |
| 163 | (DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R A x))) = |
| 164 | DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R B (f x) |
| 165 | rw [BialgEquiv.apply_symm_apply] |
| 166 | rfl |
| 167 | right_inv f := by |
| 168 | apply BialgHom.ext |
| 169 | intro g |
| 170 | apply WithConv.ext |
| 171 | apply LinearMap.ext |
| 172 | intro x |
| 173 | exact congrArg (fun z : DualAlgebra.Construction.DualCoordinate R (DualAlgebra.Construction.DualCoordinate R B) => z g) |
| 174 | ((DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R B).apply_symm_apply |
| 175 | (dualCoordinateBialgHom R f (DualAlgebra.Construction.dualCoordinateBidualBialgEquiv R A x))) |
| 176 | |
| 177 | end |
| 178 | |
| 179 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.DualMaps.Construction |