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.TensorProduct.Basic |
| 2 | import Mathlib.LinearAlgebra.TensorProduct.Associator |
| 3 | |
| 4 | /-! # Descent Switch -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.DescentSwitch |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # Extracting a coaction from an algebraic descent switch for PoincareBundle |
| 12 | |
| 13 | A descent switch exchanges the two S-actions on `S ⊗[R] M`. |
| 14 | The diagonal identity and the three-factor cocycle imply the counit |
| 15 | and coassociativity equations for `m ↦ switch (1 ⊗ m)`. |
| 16 | -/ |
| 17 | |
| 18 | open TensorProduct |
| 19 | open scoped TensorProduct |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | variable (R S : Type u) [CommRing R] [CommRing S] [Algebra R S] |
| 24 | (M : Type u) [AddCommGroup M] [Module S M] [Module R M] [IsScalarTower R S M] |
| 25 | |
| 26 | /-- Restrict an extended module to the diagonal. -/ |
| 27 | def diagonal : S ⊗[R] M →ₗ[R] M := |
| 28 | TensorProduct.lift (Algebra.lsmul R R M).toLinearMap |
| 29 | |
| 30 | @[simp] |
| 31 | theorem diagonal_tmul (s : S) (m : M) : diagonal R S M (s ⊗ₜ[R] m) = s • m := rfl |
| 32 | |
| 33 | /-- Insert a unit scalar into the scalar extension. -/ |
| 34 | def unitMap : M →ₗ[R] S ⊗[R] M := TensorProduct.mk R S M 1 |
| 35 | |
| 36 | /-- Extend a switch to the last two factors of a three-factor tensor product. -/ |
| 37 | def nextSwitch (τ : S ⊗[R] M ≃ₗ[R] S ⊗[R] M) : |
| 38 | S ⊗[R] (S ⊗[R] M) →ₗ[R] S ⊗[R] (S ⊗[R] M) := |
| 39 | TensorProduct.map LinearMap.id τ.toLinearMap |
| 40 | |
| 41 | /-- The ordinary descent identities, expressed by exchanging tensor factors. -/ |
| 42 | structure SwitchDatum where |
| 43 | switch : S ⊗[R] M ≃ₗ[R] S ⊗[R] M |
| 44 | second_smul : ∀ (s t : S) (m : M), |
| 45 | switch (t ⊗ₜ[R] (s • m)) = s • switch (t ⊗ₜ[R] m) |
| 46 | diagonal_switch : ∀ z, diagonal R S M (switch z) = diagonal R S M z |
| 47 | involutive : ∀ z, switch (switch z) = z |
| 48 | cocycle : |
| 49 | nextSwitch R S M switch ∘ₗ (TensorProduct.leftComm R S S M).toLinearMap ∘ₗ |
| 50 | nextSwitch R S M switch = |
| 51 | (TensorProduct.leftComm R S S M).toLinearMap ∘ₗ nextSwitch R S M switch ∘ₗ |
| 52 | (TensorProduct.leftComm R S S M).toLinearMap |
| 53 | |
| 54 | variable {R S M} |
| 55 | |
| 56 | /-- The coaction is obtained by applying the switch to the unit tensor. -/ |
| 57 | def SwitchDatum.coaction (D : SwitchDatum R S M) : M →ₗ[S] S ⊗[R] M where |
| 58 | toFun m := D.switch (1 ⊗ₜ[R] m) |
| 59 | map_add' x y := by rw [tmul_add, map_add] |
| 60 | map_smul' s m := D.second_smul s 1 m |
| 61 | |
| 62 | @[simp] |
| 63 | theorem SwitchDatum.coaction_apply (D : SwitchDatum R S M) (m : M) : |
| 64 | D.coaction m = D.switch (1 ⊗ₜ[R] m) := rfl |
| 65 | |
| 66 | /-- The diagonal identity is the coaction counit equation. -/ |
| 67 | theorem SwitchDatum.counit (D : SwitchDatum R S M) (m : M) : |
| 68 | diagonal R S M (D.coaction m) = m := by |
| 69 | rw [SwitchDatum.coaction_apply, D.diagonal_switch, diagonal_tmul, one_smul] |
| 70 | |
| 71 | omit [Module S M] [IsScalarTower R S M] in |
| 72 | /-- Swapping a leading unit inserts the unit in the middle tensor factor. -/ |
| 73 | theorem swap_unit (z : S ⊗[R] M) : |
| 74 | TensorProduct.leftComm R S S M (1 ⊗ₜ[R] z) = |
| 75 | TensorProduct.map (LinearMap.id : S →ₗ[R] S) (unitMap R S M) z := by |
| 76 | induction z using TensorProduct.inductionOn with |
| 77 | | add x y hx hy => simp only [tmul_add, map_add, hx, hy] |
| 78 | | tmul s m => rfl |
| 79 | |
| 80 | /-- Switching after that insertion applies the extracted coaction to the module factor. -/ |
| 81 | theorem SwitchDatum.next_swap_unit (D : SwitchDatum R S M) (z : S ⊗[R] M) : |
| 82 | nextSwitch R S M D.switch (TensorProduct.leftComm R S S M (1 ⊗ₜ[R] z)) = |
| 83 | TensorProduct.map (LinearMap.id : S →ₗ[R] S) (D.coaction.restrictScalars R) z := by |
| 84 | induction z using TensorProduct.inductionOn with |
| 85 | | add x y hx hy => simp only [tmul_add, map_add, hx, hy] |
| 86 | | tmul s m => rfl |
| 87 | |
| 88 | /-- The three-factor descent cocycle gives coassociativity. -/ |
| 89 | theorem SwitchDatum.coassoc (D : SwitchDatum R S M) (m : M) : |
| 90 | TensorProduct.map (LinearMap.id : S →ₗ[R] S) (D.coaction.restrictScalars R) (D.coaction m) = |
| 91 | TensorProduct.map (LinearMap.id : S →ₗ[R] S) (unitMap R S M) (D.coaction m) := by |
| 92 | have h := LinearMap.congr_fun D.cocycle ((1 : S) ⊗ₜ[R] ((1 : S) ⊗ₜ[R] m)) |
| 93 | change nextSwitch R S M D.switch |
| 94 | (TensorProduct.leftComm R S S M (1 ⊗ₜ[R] D.coaction m)) = |
| 95 | TensorProduct.leftComm R S S M (1 ⊗ₜ[R] D.coaction m) at h |
| 96 | rw [D.next_swap_unit, swap_unit] at h |
| 97 | exact h |
| 98 | |
| 99 | /-- Scalar multiplication on the module factor of the tensor product. -/ |
| 100 | def secondScalar (s : S) : S ⊗[R] M →ₗ[R] S ⊗[R] M := |
| 101 | TensorProduct.map LinearMap.id (Algebra.lsmul R R M s) |
| 102 | |
| 103 | /-- The switch exchanges the module-factor and coefficient-factor scalar actions. -/ |
| 104 | theorem SwitchDatum.switch_secondScalar (D : SwitchDatum R S M) (s : S) |
| 105 | (z : S ⊗[R] M) : |
| 106 | D.switch (secondScalar (R := R) (M := M) s z) = s • D.switch z := by |
| 107 | induction z using TensorProduct.inductionOn with |
| 108 | | add x y hx hy => simp only [map_add, hx, hy, smul_add] |
| 109 | | tmul t m => exact D.second_smul s t m |
| 110 | |
| 111 | /-- The original switch is recovered on pure tensors from its extracted coaction. -/ |
| 112 | theorem SwitchDatum.switch_tmul (D : SwitchDatum R S M) (s : S) (m : M) : |
| 113 | D.switch (s ⊗ₜ[R] m) = secondScalar (R := R) (M := M) s (D.coaction m) := by |
| 114 | apply D.switch.injective |
| 115 | rw [D.involutive, D.switch_secondScalar, SwitchDatum.coaction_apply, D.involutive] |
| 116 | rw [smul_tmul', smul_eq_mul, mul_one] |
| 117 | |
| 118 | /-- Passing to the extracted coaction loses no descent-switch information. -/ |
| 119 | theorem SwitchDatum.switch_eq_of_coaction_eq (D E : SwitchDatum R S M) |
| 120 | (h : D.coaction = E.coaction) : D.switch = E.switch := by |
| 121 | apply LinearEquiv.toLinearMap_injective |
| 122 | apply TensorProduct.ext |
| 123 | ext s m |
| 124 | change D.switch (s ⊗ₜ[R] m) = E.switch (s ⊗ₜ[R] m) |
| 125 | rw [D.switch_tmul, E.switch_tmul, h] |
| 126 | |
| 127 | end |
| 128 | |
| 129 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.DescentSwitch |