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.LinearAlgebra.TensorProduct.Map |
| 2 | import Mathlib.LinearAlgebra.Basis.VectorSpace |
| 3 | |
| 4 | /-! # Cube Tensor Cocycles -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeTensorCocycles.Construction.CubeCech |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The mixed degree-one tensor cocycle calculation for augmented complexes. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u v w v' w' |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] |
| 17 | {C₀ : Type v} {C₁ : Type v'} {D₀ : Type w} {D₁ : Type w'} |
| 18 | [AddCommGroup C₀] [Module R C₀] [AddCommGroup C₁] [Module R C₁] |
| 19 | [AddCommGroup D₀] [Module R D₀] [AddCommGroup D₁] [Module R D₁] |
| 20 | |
| 21 | theorem tensor_map_sub_right (f : C₀ →ₗ[R] C₁) (g h : D₀ →ₗ[R] D₁) : |
| 22 | TensorProduct.map f (g - h) = TensorProduct.map f g - TensorProduct.map f h := by |
| 23 | apply TensorProduct.ext' |
| 24 | intro x y |
| 25 | simp [TensorProduct.tmul_sub] |
| 26 | |
| 27 | theorem tensor_map_sub_left (f g : C₀ →ₗ[R] C₁) (h : D₀ →ₗ[R] D₁) : |
| 28 | TensorProduct.map (f - g) h = TensorProduct.map f h - TensorProduct.map g h := by |
| 29 | apply TensorProduct.ext' |
| 30 | intro x y |
| 31 | simp [TensorProduct.sub_tmul] |
| 32 | |
| 33 | theorem mixed_tensor_cocycle_is_boundary |
| 34 | (dC : C₀ →ₗ[R] C₁) (dD : D₀ →ₗ[R] D₁) |
| 35 | (hC : C₁ →ₗ[R] C₀) (hD : D₁ →ₗ[R] D₀) |
| 36 | (uC : R →ₗ[R] C₀) (uD : R →ₗ[R] D₀) |
| 37 | (eC : C₀ →ₗ[R] R) (eD : D₀ →ₗ[R] R) |
| 38 | (hc : hC.comp dC = LinearMap.id - uC.comp eC) |
| 39 | (hd : hD.comp dD = LinearMap.id - uD.comp eD) |
| 40 | (dc : dC.comp uC = 0) |
| 41 | (a : C₁ ⊗[R] D₀) (b : C₀ ⊗[R] D₁) |
| 42 | (hmix : TensorProduct.map LinearMap.id dD a = TensorProduct.map dC LinearMap.id b) |
| 43 | (ha : TensorProduct.map LinearMap.id eD a = 0) |
| 44 | (hb : TensorProduct.map eC LinearMap.id b = 0) : |
| 45 | ∃ t : C₀ ⊗[R] D₀, |
| 46 | TensorProduct.map dC LinearMap.id t = a ∧ TensorProduct.map LinearMap.id dD t = b := by |
| 47 | have ha' : a = TensorProduct.map dC hD b := by |
| 48 | have h := congrArg (TensorProduct.map (LinearMap.id : C₁ →ₗ[R] C₁) hD) hmix |
| 49 | simp only [TensorProduct.map_map, LinearMap.id_comp, LinearMap.comp_id, hd] at h |
| 50 | rw [tensor_map_sub_right] at h |
| 51 | simp only [TensorProduct.map_id, LinearMap.sub_apply, LinearMap.id_apply] at h |
| 52 | have hz : TensorProduct.map (LinearMap.id : C₁ →ₗ[R] C₁) (uD.comp eD) a = 0 := by |
| 53 | have hmap := TensorProduct.map_map (LinearMap.id : C₁ →ₗ[R] C₁) uD LinearMap.id eD a |
| 54 | simp only [LinearMap.id_comp] at hmap |
| 55 | exact hmap.symm.trans (by rw [ha, map_zero]) |
| 56 | simpa only [hz, sub_zero] using h |
| 57 | have hb' : TensorProduct.map hC dD a = b := by |
| 58 | have h := congrArg (TensorProduct.map hC (LinearMap.id : D₁ →ₗ[R] D₁)) hmix |
| 59 | simp only [TensorProduct.map_map, LinearMap.id_comp, LinearMap.comp_id, hc] at h |
| 60 | rw [tensor_map_sub_left] at h |
| 61 | simp only [TensorProduct.map_id, LinearMap.sub_apply, LinearMap.id_apply] at h |
| 62 | have hz : TensorProduct.map (uC.comp eC) (LinearMap.id : D₁ →ₗ[R] D₁) b = 0 := by |
| 63 | have hmap := TensorProduct.map_map uC (LinearMap.id : D₁ →ₗ[R] D₁) eC LinearMap.id b |
| 64 | simp only [LinearMap.id_comp] at hmap |
| 65 | exact hmap.symm.trans (by rw [hb, map_zero]) |
| 66 | simpa only [hz, sub_zero] using h |
| 67 | refine ⟨TensorProduct.map hC LinearMap.id a, ?_, ?_⟩ |
| 68 | · rw [ha'] |
| 69 | simp only [TensorProduct.map_map, LinearMap.id_comp] |
| 70 | have hdc : dC.comp (hC.comp dC) = dC := by |
| 71 | rw [hc, LinearMap.comp_sub, LinearMap.comp_id, ← LinearMap.comp_assoc, dc, |
| 72 | LinearMap.zero_comp, sub_zero] |
| 73 | simp only [hdc] |
| 74 | · simpa only [TensorProduct.map_map, LinearMap.id_comp, LinearMap.comp_id] using hb' |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.CubeTensorCocycles.Construction.CubeCech |