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.RingTheory.Flat.FaithfullyFlat.Algebra |
| 2 | import Mathlib.RingTheory.TensorProduct.Maps |
| 3 | |
| 4 | /-! # Amitsur Degree One -/ |
| 5 | |
| 6 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AmitsurDegreeOne.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Exactness in degree one of the faithfully flat Amitsur complex. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u v w |
| 15 | |
| 16 | variable (R : Type u) (B : Type v) [CommRing R] [CommRing B] [Algebra R B] |
| 17 | (M : Type w) [AddCommGroup M] [Module R M] |
| 18 | |
| 19 | def amitsurD0 : B ⊗[R] M →ₗ[R] B ⊗[R] (B ⊗[R] M) := |
| 20 | TensorProduct.mk R B (B ⊗[R] M) 1 - (TensorProduct.mk R B M 1).lTensor B |
| 21 | |
| 22 | def amitsurD1 : B ⊗[R] (B ⊗[R] M) →ₗ[R] B ⊗[R] (B ⊗[R] (B ⊗[R] M)) := |
| 23 | TensorProduct.mk R B (B ⊗[R] (B ⊗[R] M)) 1 - |
| 24 | (TensorProduct.mk R B (B ⊗[R] M) 1).lTensor B + |
| 25 | ((TensorProduct.mk R B M 1).lTensor B).lTensor B |
| 26 | |
| 27 | theorem amitsurD0_tmul (b : B) (m : M) : |
| 28 | amitsurD0 R B M (b ⊗ₜ[R] m) = 1 ⊗ₜ[R] (b ⊗ₜ[R] m) - b ⊗ₜ[R] (1 ⊗ₜ[R] m) := by |
| 29 | simp [amitsurD0] |
| 30 | |
| 31 | theorem amitsurD1_tmul (a b : B) (m : M) : |
| 32 | amitsurD1 R B M (a ⊗ₜ[R] (b ⊗ₜ[R] m)) = |
| 33 | 1 ⊗ₜ[R] (a ⊗ₜ[R] (b ⊗ₜ[R] m)) - a ⊗ₜ[R] (1 ⊗ₜ[R] (b ⊗ₜ[R] m)) + |
| 34 | a ⊗ₜ[R] (b ⊗ₜ[R] (1 ⊗ₜ[R] m)) := by |
| 35 | simp [amitsurD1] |
| 36 | |
| 37 | def amitsurContract : B ⊗[R] (B ⊗[R] M) →ₗ[R] B ⊗[R] M := |
| 38 | TensorProduct.map (Algebra.TensorProduct.lmul' R : B ⊗[R] B →ₐ[R] B).toLinearMap |
| 39 | (LinearMap.id : M →ₗ[R] M) ∘ₗ (TensorProduct.assoc R B B M).symm.toLinearMap |
| 40 | |
| 41 | theorem amitsurContract_tmul (a b : B) (m : M) : |
| 42 | amitsurContract R B M (a ⊗ₜ[R] (b ⊗ₜ[R] m)) = (a * b) ⊗ₜ[R] m := by |
| 43 | simp [amitsurContract] |
| 44 | |
| 45 | theorem amitsurD1_comp_D0 : (amitsurD1 R B M) ∘ₗ (amitsurD0 R B M) = 0 := by |
| 46 | ext b m |
| 47 | simp [amitsurD0_tmul, amitsurD1_tmul] |
| 48 | |
| 49 | theorem amitsur_degreeOne_contraction : |
| 50 | (amitsurD0 R B M).lTensor B ∘ₗ amitsurContract R B (B ⊗[R] M) + |
| 51 | amitsurContract R B (B ⊗[R] (B ⊗[R] M)) ∘ₗ (amitsurD1 R B M).lTensor B = |
| 52 | LinearMap.id := by |
| 53 | ext a b c m |
| 54 | simp [amitsurD0_tmul, amitsurD1_tmul, amitsurContract_tmul, |
| 55 | TensorProduct.tmul_sub, TensorProduct.tmul_add] |
| 56 | |
| 57 | theorem amitsur_exact_degreeOne [Module.FaithfullyFlat R B] : |
| 58 | Function.Exact (amitsurD0 R B M) (amitsurD1 R B M) := by |
| 59 | apply Module.FaithfullyFlat.lTensor_reflects_exact R B |
| 60 | intro z |
| 61 | constructor |
| 62 | · intro hz |
| 63 | refine ⟨amitsurContract R B (B ⊗[R] M) z, ?_⟩ |
| 64 | have h := LinearMap.congr_fun (amitsur_degreeOne_contraction R B M) z |
| 65 | simpa only [LinearMap.add_apply, LinearMap.comp_apply, hz, map_zero, add_zero, |
| 66 | LinearMap.id_apply] using h |
| 67 | · rintro ⟨y, rfl⟩ |
| 68 | have h := congrArg (fun f ↦ f.lTensor B) (amitsurD1_comp_D0 R B M) |
| 69 | have hz := LinearMap.congr_fun h y |
| 70 | simpa only [LinearMap.lTensor_comp_apply, LinearMap.lTensor_zero, LinearMap.zero_apply] using hz |
| 71 | |
| 72 | theorem amitsurD0_comp_unit : |
| 73 | amitsurD0 R B M ∘ₗ TensorProduct.mk R B M 1 = 0 := by |
| 74 | ext m |
| 75 | simp [amitsurD0_tmul] |
| 76 | |
| 77 | theorem amitsur_degreeZero_contraction : |
| 78 | (TensorProduct.mk R B M 1).lTensor B ∘ₗ amitsurContract R B M + |
| 79 | amitsurContract R B (B ⊗[R] M) ∘ₗ (amitsurD0 R B M).lTensor B = LinearMap.id := by |
| 80 | ext a b m |
| 81 | simp [amitsurD0_tmul, amitsurContract_tmul, TensorProduct.tmul_sub] |
| 82 | |
| 83 | theorem amitsur_exact_degreeZero [Module.FaithfullyFlat R B] : |
| 84 | Function.Exact (TensorProduct.mk R B M 1) (amitsurD0 R B M) := by |
| 85 | apply Module.FaithfullyFlat.lTensor_reflects_exact R B |
| 86 | intro z |
| 87 | constructor |
| 88 | · intro hz |
| 89 | refine ⟨amitsurContract R B M z, ?_⟩ |
| 90 | have h := LinearMap.congr_fun (amitsur_degreeZero_contraction R B M) z |
| 91 | simpa only [LinearMap.add_apply, LinearMap.comp_apply, hz, map_zero, add_zero, |
| 92 | LinearMap.id_apply] using h |
| 93 | · rintro ⟨y, rfl⟩ |
| 94 | have h := congrArg (fun f ↦ f.lTensor B) (amitsurD0_comp_unit R B M) |
| 95 | have hz := LinearMap.congr_fun h y |
| 96 | simpa only [LinearMap.lTensor_comp_apply, LinearMap.lTensor_zero, LinearMap.zero_apply] using hz |
| 97 | |
| 98 | theorem amitsur_unit_injective [Module.FaithfullyFlat R B] : |
| 99 | Function.Injective (TensorProduct.mk R B M 1) := |
| 100 | Module.FaithfullyFlat.tensorProduct_mk_injective M |
| 101 | |
| 102 | end |
| 103 | |
| 104 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.AmitsurDegreeOne.Construction |