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.Tower |
| 2 | |
| 3 | /-! # Semilinear Tensor -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.SemilinearTensor.SemilinearTensorExtension |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Extending an actual semilinear equivalence along compatible coefficient-ring equivalences. -/ |
| 10 | |
| 11 | open scoped TensorProduct |
| 12 | |
| 13 | variable {R S F G : Type*} [CommRing R] [CommRing S] [CommRing F] [CommRing G] |
| 14 | [Algebra R F] [Algebra S G] |
| 15 | (e : R ≃+* S) (φ : F ≃+* G) |
| 16 | (h : ∀ r : R, φ (algebraMap R F r) = algebraMap S G (e r)) |
| 17 | |
| 18 | local instance baseInvPair : RingHomInvPair e.toRingHom e.symm.toRingHom := |
| 19 | RingHomInvPair.of_ringEquiv e |
| 20 | local instance baseInvPairSymm : RingHomInvPair e.symm.toRingHom e.toRingHom := |
| 21 | RingHomInvPair.of_ringEquiv_symm e |
| 22 | local instance fieldInvPair : RingHomInvPair φ.toRingHom φ.symm.toRingHom := |
| 23 | RingHomInvPair.of_ringEquiv φ |
| 24 | local instance fieldInvPairSymm : RingHomInvPair φ.symm.toRingHom φ.toRingHom := |
| 25 | RingHomInvPair.of_ringEquiv_symm φ |
| 26 | |
| 27 | def scalarEquiv : F ≃ₛₗ[e.toRingHom] G where |
| 28 | __ := φ.toAddEquiv |
| 29 | map_smul' r x := by |
| 30 | change φ (r • x) = e r • φ x |
| 31 | rw [Algebra.smul_def, Algebra.smul_def, map_mul, h] |
| 32 | |
| 33 | variable {M N : Type*} [AddCommGroup M] [AddCommGroup N] [Module R M] [Module S N] |
| 34 | (f : M ≃ₛₗ[e.toRingHom] N) |
| 35 | |
| 36 | def equiv : (F ⊗[R] M) ≃ₛₗ[φ.toRingHom] (G ⊗[S] N) where |
| 37 | __ := (TensorProduct.congr (scalarEquiv e φ h) f).toAddEquiv |
| 38 | map_smul' a x := by |
| 39 | change TensorProduct.congr (scalarEquiv e φ h) f (a • x) = |
| 40 | φ a • TensorProduct.congr (scalarEquiv e φ h) f x |
| 41 | induction x using TensorProduct.inductionOn with |
| 42 | | tmul b m => |
| 43 | simp only [TensorProduct.smul_tmul', TensorProduct.congr_tmul] |
| 44 | exact congrArg (fun c : G => c ⊗ₜ[S] f m) (φ.map_mul a b) |
| 45 | | add x y hx hy => simp only [smul_add, map_add, hx, hy] |
| 46 | |
| 47 | theorem equiv_tmul (a : F) (m : M) : equiv e φ h f (a ⊗ₜ[R] m) = φ a ⊗ₜ[S] f m := rfl |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.NumberTheory.PadicHodge.GeometricComparison.SemilinearTensor.SemilinearTensorExtension |