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.ArithmeticGeometry.OrdinaryLocus.Openness.CochainBaseChangeCycles |
| 2 | |
| 3 | /-! # Scalar Ring Tensor Equiv -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ScalarRingTensorEquiv.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Canonical tensor comparison when the coefficient rings are isomorphic over the base. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory |
| 12 | open scoped TensorProduct ChangeOfRings |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R A B : Type u} [CommRing R] [CommRing A] [CommRing B] |
| 17 | variable (r : R →+* A) (s : R →+* B) (e : A ≃+* B) (h : ∀ x, e (r x) = s x) |
| 18 | |
| 19 | def scalarRingLinearEquiv : |
| 20 | (ModuleCat.restrictScalars r).obj (ModuleCat.of A A) ≃ₗ[R] |
| 21 | (ModuleCat.restrictScalars s).obj (ModuleCat.of B B) := |
| 22 | { e.toAddEquiv with |
| 23 | map_smul' := by |
| 24 | intro x a |
| 25 | let a' : A := a |
| 26 | change e (r x * a') = s x * e a' |
| 27 | rw [e.map_mul, h] } |
| 28 | |
| 29 | def scalarRingTensorAddEquiv (M : ModuleCat.{u} R) : |
| 30 | (ModuleCat.extendScalars r).obj M ≃+ (ModuleCat.extendScalars s).obj M := |
| 31 | ((scalarRingLinearEquiv r s e h).rTensor M).toAddEquiv |
| 32 | |
| 33 | theorem scalarRingTensorAddEquiv_tmul (M : ModuleCat.{u} R) (a : A) (m : M) : |
| 34 | scalarRingTensorAddEquiv r s e h M (a ⊗ₜ[R,r] m) = e a ⊗ₜ[R,s] m := |
| 35 | rfl |
| 36 | |
| 37 | theorem scalarRingTensorAddEquiv_naturality {M N : ModuleCat.{u} R} (q : M ⟶ N) |
| 38 | (z : (ModuleCat.extendScalars r).obj M) : |
| 39 | scalarRingTensorAddEquiv r s e h N ((ModuleCat.extendScalars r).map q z) = |
| 40 | (ModuleCat.extendScalars s).map q (scalarRingTensorAddEquiv r s e h M z) := by |
| 41 | let f := (scalarRingTensorAddEquiv r s e h N).toAddMonoidHom.comp |
| 42 | ((ModuleCat.extendScalars r).map q).hom.toAddMonoidHom |
| 43 | let g := ((ModuleCat.extendScalars s).map q).hom.toAddMonoidHom.comp |
| 44 | (scalarRingTensorAddEquiv r s e h M).toAddMonoidHom |
| 45 | change f z = g z |
| 46 | induction z using TensorProduct.inductionOn with |
| 47 | | tmul a m => rfl |
| 48 | | add x y hx hy => |
| 49 | exact (map_add f x y).trans ((congrArg₂ (· + ·) hx hy).trans (map_add g x y).symm) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ScalarRingTensorEquiv.Construction |