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 Mathlib.Algebra.Category.ModuleCat.ChangeOfRings |
| 2 | import Mathlib.RingTheory.TensorProduct.Basic |
| 3 | |
| 4 | /-! # Module Base Change -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Affine module base change for PoincareBundle |
| 12 | |
| 13 | The base-change formula for direct image along an affine morphism is |
| 14 | the canonical tensor equivalence `(S ⊗[R] T) ⊗[S] M ≃ T ⊗[R] M`. |
| 15 | The formula on pure tensors is retained for comparison with adjunction mates. |
| 16 | -/ |
| 17 | |
| 18 | open TensorProduct |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R S T : Type u) [CommRing R] [CommRing S] [CommRing T] |
| 24 | [Algebra R S] [Algebra R T] |
| 25 | (M : Type u) [AddCommGroup M] [Module S M] [Module R M] [IsScalarTower R S M] |
| 26 | |
| 27 | /-- The underlying R-linear affine base-change equivalence. -/ |
| 28 | def baseChangeEquivR : ((S ⊗[R] T) ⊗[S] M) ≃ₗ[R] T ⊗[R] M := |
| 29 | ((TensorProduct.comm S (S ⊗[R] T) M).restrictScalars R).trans |
| 30 | (((AlgebraTensorModule.cancelBaseChange R S S M T).restrictScalars R).trans |
| 31 | (TensorProduct.comm R M T)) |
| 32 | |
| 33 | @[simp] |
| 34 | theorem baseChangeEquivR_tmul (s : S) (t : T) (m : M) : |
| 35 | baseChangeEquivR R S T M ((s ⊗ₜ[R] t) ⊗ₜ[S] m) = t ⊗ₜ[R] (s • m) := by |
| 36 | simp [baseChangeEquivR, AlgebraTensorModule.cancelBaseChange] |
| 37 | |
| 38 | attribute [local instance] Algebra.TensorProduct.rightAlgebra |
| 39 | |
| 40 | /-- The second coordinate ring acts on its own tensor factor. -/ |
| 41 | theorem right_smul_tmul (s : S) (t t' : T) : |
| 42 | t • (s ⊗ₜ[R] t' : S ⊗[R] T) = s ⊗ₜ[R] (t * t') := by |
| 43 | rw [Algebra.smul_def] |
| 44 | change (1 ⊗ₜ[R] t : S ⊗[R] T) * (s ⊗ₜ[R] t') = _ |
| 45 | rw [Algebra.TensorProduct.tmul_mul_tmul, one_mul] |
| 46 | |
| 47 | /-- The tensor base-change equivalence is linear over the new base ring. -/ |
| 48 | def baseChangeEquiv : ((S ⊗[R] T) ⊗[S] M) ≃ₗ[T] T ⊗[R] M where |
| 49 | __ := (baseChangeEquivR R S T M).toAddEquiv |
| 50 | map_smul' t z := by |
| 51 | change baseChangeEquivR R S T M (t • z) = t • baseChangeEquivR R S T M z |
| 52 | induction z using TensorProduct.inductionOn with |
| 53 | | add x y hx hy => simp only [smul_add, map_add, hx, hy] |
| 54 | | tmul x m => |
| 55 | induction x using TensorProduct.inductionOn with |
| 56 | | add x y hx hy => simp only [smul_add, add_tmul, map_add, hx, hy] |
| 57 | | tmul s t' => |
| 58 | rw [smul_tmul', right_smul_tmul, baseChangeEquivR_tmul, |
| 59 | baseChangeEquivR_tmul, smul_tmul', smul_eq_mul] |
| 60 | |
| 61 | @[simp] |
| 62 | theorem baseChangeEquiv_tmul (s : S) (t : T) (m : M) : |
| 63 | baseChangeEquiv R S T M ((s ⊗ₜ[R] t) ⊗ₜ[S] m) = t ⊗ₜ[R] (s • m) := |
| 64 | baseChangeEquivR_tmul R S T M s t m |
| 65 | |
| 66 | @[simp] |
| 67 | theorem baseChangeEquiv_symm_tmul (t : T) (m : M) : |
| 68 | (baseChangeEquiv R S T M).symm (t ⊗ₜ[R] m) = (1 ⊗ₜ[R] t) ⊗ₜ[S] m := by |
| 69 | apply (baseChangeEquiv R S T M).injective |
| 70 | rw [LinearEquiv.apply_symm_apply, baseChangeEquiv_tmul, one_smul] |
| 71 | |
| 72 | variable {M} {N : Type u} [AddCommGroup N] [Module S N] [Module R N] [IsScalarTower R S N] |
| 73 | |
| 74 | /-- Affine base change is natural in the original module. -/ |
| 75 | theorem baseChangeEquiv_naturality (a : M →ₗ[S] N) (z : (S ⊗[R] T) ⊗[S] M) : |
| 76 | baseChangeEquiv R S T N (TensorProduct.map (LinearMap.id : (S ⊗[R] T) →ₗ[S] _) a z) = |
| 77 | TensorProduct.map (LinearMap.id : T →ₗ[R] T) (a.restrictScalars R) |
| 78 | (baseChangeEquiv R S T M z) := by |
| 79 | induction z using TensorProduct.inductionOn with |
| 80 | | add x y hx hy => simp only [map_add, hx, hy] |
| 81 | | tmul x m => |
| 82 | induction x using TensorProduct.inductionOn with |
| 83 | | add x y hx hy => simp only [add_tmul, map_add, hx, hy] |
| 84 | | tmul s t => simp [a.map_smul] |
| 85 | |
| 86 | /-- The inverse base-change map is the canonical map sending a pure |
| 87 | tensor to the corresponding scalar extended tensor. -/ |
| 88 | theorem baseChangeEquiv_symm_naturality (a : M →ₗ[S] N) (z : T ⊗[R] M) : |
| 89 | (baseChangeEquiv R S T N).symm |
| 90 | (TensorProduct.map (LinearMap.id : T →ₗ[R] T) (a.restrictScalars R) z) = |
| 91 | TensorProduct.map (LinearMap.id : (S ⊗[R] T) →ₗ[S] _) a |
| 92 | ((baseChangeEquiv R S T M).symm z) := by |
| 93 | apply (baseChangeEquiv R S T N).injective |
| 94 | rw [LinearEquiv.apply_symm_apply, baseChangeEquiv_naturality, LinearEquiv.apply_symm_apply] |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.ModuleBaseChange |