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 Scalar Extension -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SemilinearScalarExtension.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Extending a scalar-compatible additive map to a linear map on a tensor product. -/ |
| 10 | |
| 11 | open scoped TensorProduct |
| 12 | |
| 13 | variable {R S M N : Type*} [CommRing R] [CommRing S] [Algebra R S] |
| 14 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module S N] |
| 15 | |
| 16 | def semilinearScalarExtension (f : M →+ N) |
| 17 | (hf : ∀ r m, f (r • m) = algebraMap R S r • f m) : S ⊗[R] M →ₗ[S] N := by |
| 18 | letI : Module R N := Module.compHom N (algebraMap R S) |
| 19 | letI : IsScalarTower R S N := { |
| 20 | smul_assoc := fun r s n => by |
| 21 | rw [Algebra.smul_def] |
| 22 | exact mul_smul _ _ _ } |
| 23 | refine TensorProduct.AlgebraTensorModule.lift { |
| 24 | toFun := fun a => { |
| 25 | toFun := fun m => a • f m |
| 26 | map_add' := fun m n => by rw [map_add, smul_add] |
| 27 | map_smul' := fun r m => by |
| 28 | change a • f (r • m) = algebraMap R S r • (a • f m) |
| 29 | rw [hf, smul_smul, smul_smul, mul_comm] } |
| 30 | map_add' := fun a b => by |
| 31 | apply LinearMap.ext |
| 32 | intro m |
| 33 | exact add_smul _ _ _ |
| 34 | map_smul' := fun a b => by |
| 35 | apply LinearMap.ext |
| 36 | intro m |
| 37 | exact mul_smul _ _ _ } |
| 38 | |
| 39 | theorem semilinearScalarExtension_tmul (f : M →+ N) |
| 40 | (hf : ∀ r m, f (r • m) = algebraMap R S r • f m) (a : S) (m : M) : |
| 41 | semilinearScalarExtension f hf (a ⊗ₜ[R] m) = a • f m := rfl |
| 42 | |
| 43 | end |
| 44 | |
| 45 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.SemilinearScalarExtension.Construction |