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.DualAlgebra |
| 2 | |
| 3 | /-! # Base Change -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.BaseChange.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # CartierDuality: base change of the complete dual Hopf structure |
| 11 | |
| 12 | The comparison with the scalar-extended dual preserves comultiplication and |
| 13 | counit as well as multiplication. The scalar extension is arbitrary. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.Module TensorProduct Coalgebra |
| 17 | |
| 18 | universe u v w |
| 19 | |
| 20 | variable (R : Type u) [CommRing R] |
| 21 | variable (S : Type w) [CommRing S] [Algebra R S] |
| 22 | variable (A : Type v) [CommRing A] [Bialgebra R A] [Coalgebra.IsCocomm R A] |
| 23 | variable [Module.Finite R A] [Module.Projective R A] |
| 24 | |
| 25 | local instance e56BaseChangeInstance1 : CommRing (DualAlgebra.Construction.DualCoordinate R A) := LinearMap.convCommRing |
| 26 | local instance e56BaseChangeInstance2 : Algebra R (DualAlgebra.Construction.DualCoordinate R A) := LinearMap.convAlgebra |
| 27 | local instance e56BaseChangeInstance3 : CommRing (S ⊗[R] DualAlgebra.Construction.DualCoordinate R A) := Algebra.TensorProduct.instCommRing |
| 28 | local instance e56BaseChangeInstance4 : CommRing (DualAlgebra.Construction.DualCoordinate S (S ⊗[R] A)) := LinearMap.convCommRing |
| 29 | local instance e56BaseChangeInstance5 : Algebra S (DualAlgebra.Construction.DualCoordinate S (S ⊗[R] A)) := LinearMap.convAlgebra |
| 30 | |
| 31 | omit [Coalgebra.IsCocomm R A] in |
| 32 | theorem dualCoordinateBaseChange_comul_eval |
| 33 | (s t u : S) (f : DualAlgebra.Construction.DualCoordinate R A) (x y : A) : |
| 34 | DualAlgebra.Construction.dualCoordinateTensorEquiv S (S ⊗[R] A) (S ⊗[R] A) |
| 35 | (TensorProduct.map (DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R A S).toLinearMap |
| 36 | (DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R A S).toLinearMap |
| 37 | (Coalgebra.comul (R := S) (s ⊗ₜ[R] f))) |
| 38 | ((t ⊗ₜ[R] x) ⊗ₜ[S] (u ⊗ₜ[R] y)) = |
| 39 | s * t * u * algebraMap R S (f (x * y)) := by |
| 40 | let ρ := Coalgebra.Repr.arbitrary R f |
| 41 | have hsum : ∑ i ∈ ρ.index, ρ.left i x * ρ.right i y = f (x * y) := by |
| 42 | rw [← DualAlgebra.Construction.dualCoordinateComul_apply R A f x y] |
| 43 | change _ = DualAlgebra.Construction.dualCoordinateTensorEquiv R A A (Coalgebra.comul f) (x ⊗ₜ[R] y) |
| 44 | rw [← ρ.eq] |
| 45 | simp |
| 46 | rw [← (DualAlgebra.Construction.scalarExtensionRepr R S (DualAlgebra.Construction.DualCoordinate R A) ρ s).eq] |
| 47 | simp only [map_sum, LinearMap.sum_apply, DualAlgebra.Construction.scalarExtensionRepr, |
| 48 | TensorProduct.map_tmul, LinearEquiv.coe_coe, DualAlgebra.Construction.dualCoordinateTensorEquiv_apply, |
| 49 | DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv_apply, one_mul] |
| 50 | simp only [← map_mul, ← Finset.mul_sum, ← map_sum, mul_assoc, mul_left_comm, mul_comm, |
| 51 | hsum] |
| 52 | |
| 53 | /-- Arbitrary base change commutes with Cartier duality as a bialgebra |
| 54 | isomorphism, hence also with its induced group-scheme structure. -/ |
| 55 | def dualCoordinateBaseChangeBialgEquiv : |
| 56 | S ⊗[R] DualAlgebra.Construction.DualCoordinate R A ≃ₐc[S] DualAlgebra.Construction.DualCoordinate S (S ⊗[R] A) where |
| 57 | __ := DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R A S |
| 58 | map_mul' := DualAlgebra.Construction.dualCoordinateBaseChange_mul R S A |
| 59 | counit_comp := by |
| 60 | apply AlgebraTensorModule.ext |
| 61 | intro s f |
| 62 | change DualAlgebra.Construction.dualCoordinateCounit S (S ⊗[R] A) |
| 63 | (DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R A S (s ⊗ₜ[R] f)) = |
| 64 | Coalgebra.counit (R := S) (s ⊗ₜ[R] f) |
| 65 | rw [DualAlgebra.Construction.dualCoordinateCounit_apply, Algebra.TensorProduct.one_def, |
| 66 | DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv_apply] |
| 67 | rw [TensorProduct.counit_tmul] |
| 68 | change s * 1 * algebraMap R S (f 1) = (f 1) • s |
| 69 | simp [Algebra.smul_def, mul_comm] |
| 70 | map_comp_comul := by |
| 71 | apply LinearMap.ext |
| 72 | intro z |
| 73 | induction z using TensorProduct.inductionOn with |
| 74 | | add a b ha hb => simp only [map_add, ha, hb] |
| 75 | | tmul s f => |
| 76 | apply (DualAlgebra.Construction.dualCoordinateTensorEquiv S (S ⊗[R] A) (S ⊗[R] A)).injective |
| 77 | apply TensorProduct.ext' |
| 78 | intro p q |
| 79 | induction p using TensorProduct.inductionOn with |
| 80 | | add a b ha hb => simp only [TensorProduct.add_tmul, map_add, ha, hb] |
| 81 | | tmul t x => |
| 82 | induction q using TensorProduct.inductionOn with |
| 83 | | add a b ha hb => simp only [TensorProduct.tmul_add, map_add, ha, hb] |
| 84 | | tmul u y => |
| 85 | change DualAlgebra.Construction.dualCoordinateTensorEquiv S (S ⊗[R] A) (S ⊗[R] A) |
| 86 | (TensorProduct.map (DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R A S).toLinearMap |
| 87 | (DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R A S).toLinearMap |
| 88 | (Coalgebra.comul (R := S) (s ⊗ₜ[R] f))) |
| 89 | ((t ⊗ₜ[R] x) ⊗ₜ[S] (u ⊗ₜ[R] y)) = _ |
| 90 | rw [dualCoordinateBaseChange_comul_eval] |
| 91 | change _ = DualAlgebra.Construction.dualCoordinateTensorEquiv S (S ⊗[R] A) (S ⊗[R] A) |
| 92 | (DualAlgebra.Construction.dualCoordinateComul S (S ⊗[R] A) |
| 93 | (DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv R A S (s ⊗ₜ[R] f))) |
| 94 | ((t ⊗ₜ[R] x) ⊗ₜ[S] (u ⊗ₜ[R] y)) |
| 95 | rw [DualAlgebra.Construction.dualCoordinateComul_apply, Algebra.TensorProduct.tmul_mul_tmul, |
| 96 | DualAlgebra.Construction.dualCoordinateBaseChangeLinearEquiv_apply] |
| 97 | simp only [mul_assoc] |
| 98 | |
| 99 | end |
| 100 | |
| 101 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.BaseChange.Construction |