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 | |
| 3 | /-! # Extension Twist -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Picard.PoincareBundle.ExtensionTwist |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # Changing the coefficient ring in scalar extension for PoincareBundle |
| 11 | |
| 12 | This keeps the actual extension-of-scalars objects and tracks the |
| 13 | semilinear action of a coefficient-ring isomorphism. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.ModuleCat TensorProduct |
| 17 | open scoped TensorProduct ChangeOfRings |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | variable {S U V : Type u} [CommRing S] [CommRing U] [CommRing V] |
| 22 | (f : S →+* U) (g : S →+* V) (e : U ≃+* V) (h : ∀ s, e (f s) = g s) |
| 23 | |
| 24 | /-- A coefficient isomorphism intertwining the two scalar structures. -/ |
| 25 | def coefficientEquiv : |
| 26 | (restrictScalars f).obj (of U U) ≃ₗ[S] (restrictScalars g).obj (of V V) where |
| 27 | __ := e.toAddEquiv |
| 28 | map_smul' s x := by |
| 29 | change e (f s * (show U from x)) = g s * e (show U from x) |
| 30 | rw [map_mul, h] |
| 31 | |
| 32 | /-- The induced additive equivalence on the actual scalar extensions. -/ |
| 33 | def extensionEquiv (M : ModuleCat.{u} S) : |
| 34 | (extendScalars f).obj M ≃+ (extendScalars g).obj M := |
| 35 | (TensorProduct.congr (coefficientEquiv f g e h) (LinearEquiv.refl S M)).toAddEquiv |
| 36 | |
| 37 | @[simp] |
| 38 | theorem extensionEquiv_tmul (M : ModuleCat.{u} S) (x : U) (m : M) : |
| 39 | extensionEquiv f g e h M (x ⊗ₜ[S,f] m) = e x ⊗ₜ[S,g] m := rfl |
| 40 | |
| 41 | /-- The induced equivalence is semilinear for the coefficient isomorphism. -/ |
| 42 | theorem extensionEquiv_smul (M : ModuleCat.{u} S) (x : U) |
| 43 | (z : (extendScalars f).obj M) : |
| 44 | extensionEquiv f g e h M (x • z) = e x • extensionEquiv f g e h M z := by |
| 45 | let : Module U ((extendScalars f).obj M) := ((extendScalars f).obj M).isModule |
| 46 | let : Module V ((extendScalars g).obj M) := ((extendScalars g).obj M).isModule |
| 47 | have hz : x • (0 : (extendScalars f).obj M) = 0 := smul_zero x |
| 48 | have hz' : e x • (0 : (extendScalars g).obj M) = 0 := smul_zero (e x) |
| 49 | induction z using TensorProduct.inductionOn with |
| 50 | | add a b ha hb => erw [smul_add, map_add, ha, hb, map_add, smul_add] |
| 51 | | tmul y m => |
| 52 | change extensionEquiv f g e h M ((x * (show U from y)) ⊗ₜ[S,f] m) = |
| 53 | (e x * e (show U from y)) ⊗ₜ[S,g] m |
| 54 | rw [extensionEquiv_tmul, map_mul] |
| 55 | |
| 56 | /-- Changing coefficients commutes with every original-module morphism. -/ |
| 57 | theorem extensionEquiv_naturality {M N : ModuleCat.{u} S} (a : M ⟶ N) |
| 58 | (z : (extendScalars f).obj M) : |
| 59 | extensionEquiv f g e h N ((extendScalars f).map a z) = |
| 60 | (extendScalars g).map a (extensionEquiv f g e h M z) := by |
| 61 | induction z using TensorProduct.inductionOn with |
| 62 | | add x y hx hy => erw [map_add, map_add, hx, hy, map_add, map_add] |
| 63 | | tmul x m => rfl |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.Picard.PoincareBundle.ExtensionTwist |