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.Picard.PoincareBundle.DescentSwitch |
| 2 | |
| 3 | /-! # Cocycle Switch Next -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.CocycleSwitchNext |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # A gluing cocycle forces the coaction counit law |
| 11 | |
| 12 | Invertibility of the gluing makes the extracted coaction injective. Its |
| 13 | coassociativity then implies the counit equation, without a separate |
| 14 | diagonal or transposition hypothesis. |
| 15 | -/ |
| 16 | |
| 17 | open TensorProduct |
| 18 | open scoped TensorProduct |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.Picard.PoincareBundle.DescentSwitch |
| 23 | |
| 24 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 25 | (M : Type u) [AddCommGroup M] [Module S M] [Module R M] [IsScalarTower R S M] |
| 26 | |
| 27 | /-- The switch and cocycle supplied by an actual invertible Čech gluing map. -/ |
| 28 | structure CocycleSwitch where |
| 29 | switch : S ⊗[R] M ≃ₗ[R] S ⊗[R] M |
| 30 | second_smul : ∀ (s t : S) (m : M), switch (t ⊗ₜ[R] (s • m)) = s • switch (t ⊗ₜ[R] m) |
| 31 | cocycle : |
| 32 | DescentSwitch.nextSwitch R S M switch ∘ₗ (TensorProduct.leftComm R S S M).toLinearMap ∘ₗ |
| 33 | DescentSwitch.nextSwitch R S M switch = |
| 34 | (TensorProduct.leftComm R S S M).toLinearMap ∘ₗ DescentSwitch.nextSwitch R S M switch ∘ₗ |
| 35 | (TensorProduct.leftComm R S S M).toLinearMap |
| 36 | |
| 37 | variable {R S M} |
| 38 | |
| 39 | def CocycleSwitch.coaction (D : CocycleSwitch R S M) : M →ₗ[S] S ⊗[R] M where |
| 40 | toFun m := D.switch (1 ⊗ₜ[R] m) |
| 41 | map_add' x y := by rw [tmul_add, map_add] |
| 42 | map_smul' s m := D.second_smul s 1 m |
| 43 | |
| 44 | /-- Invertibility of the gluing implies injectivity of the extracted coaction. -/ |
| 45 | theorem CocycleSwitch.coaction_injective (D : CocycleSwitch R S M) : |
| 46 | Function.Injective D.coaction := by |
| 47 | intro x y h |
| 48 | have ht : (1 : S) ⊗ₜ[R] x = (1 : S) ⊗ₜ[R] y := D.switch.injective h |
| 49 | have hd := congrArg (DescentSwitch.diagonal R S M) ht |
| 50 | simpa only [DescentSwitch.diagonal_tmul, one_smul] using hd |
| 51 | |
| 52 | theorem CocycleSwitch.next_swap_unit (D : CocycleSwitch R S M) (z : S ⊗[R] M) : |
| 53 | DescentSwitch.nextSwitch R S M D.switch (TensorProduct.leftComm R S S M (1 ⊗ₜ[R] z)) = |
| 54 | TensorProduct.map (LinearMap.id : S →ₗ[R] S) (D.coaction.restrictScalars R) z := by |
| 55 | induction z using TensorProduct.inductionOn with |
| 56 | | add x y hx hy => simp only [tmul_add, map_add, hx, hy] |
| 57 | | tmul s m => rfl |
| 58 | |
| 59 | /-- The actual gluing cocycle gives coassociativity before any counit is assumed. -/ |
| 60 | theorem CocycleSwitch.coassoc (D : CocycleSwitch R S M) (m : M) : |
| 61 | TensorProduct.map (LinearMap.id : S →ₗ[R] S) (D.coaction.restrictScalars R) (D.coaction m) = |
| 62 | TensorProduct.map (LinearMap.id : S →ₗ[R] S) (DescentSwitch.unitMap R S M) (D.coaction m) := by |
| 63 | have h := LinearMap.congr_fun D.cocycle ((1 : S) ⊗ₜ[R] ((1 : S) ⊗ₜ[R] m)) |
| 64 | change DescentSwitch.nextSwitch R S M D.switch |
| 65 | (TensorProduct.leftComm R S S M (1 ⊗ₜ[R] D.coaction m)) = |
| 66 | TensorProduct.leftComm R S S M (1 ⊗ₜ[R] D.coaction m) at h |
| 67 | rw [D.next_swap_unit, DescentSwitch.swap_unit] at h |
| 68 | exact h |
| 69 | |
| 70 | /-- Multiplication is natural with respect to the extracted S-linear coaction. -/ |
| 71 | theorem CocycleSwitch.diagonal_map (D : CocycleSwitch R S M) (z : S ⊗[R] M) : |
| 72 | DescentSwitch.diagonal R S (S ⊗[R] M) |
| 73 | (TensorProduct.map (LinearMap.id : S →ₗ[R] S) (D.coaction.restrictScalars R) z) = |
| 74 | D.coaction (DescentSwitch.diagonal R S M z) := by |
| 75 | induction z using TensorProduct.inductionOn with |
| 76 | | add x y hx hy => simp only [map_add, hx, hy] |
| 77 | | tmul s m => |
| 78 | change s • D.coaction m = D.coaction (s • m) |
| 79 | exact (D.coaction.map_smul s m).symm |
| 80 | |
| 81 | omit [Module S M] [IsScalarTower R S M] in |
| 82 | theorem diagonal_insert (z : S ⊗[R] M) : |
| 83 | DescentSwitch.diagonal R S (S ⊗[R] M) |
| 84 | (TensorProduct.map (LinearMap.id : S →ₗ[R] S) (DescentSwitch.unitMap R S M) z) = z := by |
| 85 | induction z using TensorProduct.inductionOn with |
| 86 | | add x y hx hy => simp only [map_add, hx, hy] |
| 87 | | tmul s m => |
| 88 | change s • ((1 : S) ⊗ₜ[R] m) = s ⊗ₜ[R] m |
| 89 | rw [smul_tmul', smul_eq_mul, mul_one] |
| 90 | |
| 91 | /-- The counit law follows from the cocycle and invertibility of the gluing. -/ |
| 92 | theorem CocycleSwitch.counit (D : CocycleSwitch R S M) (m : M) : |
| 93 | DescentSwitch.diagonal R S M (D.coaction m) = m := by |
| 94 | apply D.coaction_injective |
| 95 | rw [← D.diagonal_map, D.coassoc, diagonal_insert] |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.CocycleSwitchNext |