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.Module.Equiv.Basic |
| 2 | import Mathlib.Algebra.Algebra.Tower |
| 3 | |
| 4 | /-! # Surjective Scalar Hom -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SurjectiveScalarHom |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! For a surjective scalar map, linearity over the quotient is |
| 11 | equivalent to linearity over the original ring. -/ |
| 12 | |
| 13 | universe u |
| 14 | variable (R Q : Type u) [CommRing R] [CommRing Q] [Algebra R Q] |
| 15 | (hQ : Function.Surjective (algebraMap R Q)) |
| 16 | (M N : Type u) [AddCommGroup M] [AddCommGroup N] |
| 17 | [Module R M] [Module Q M] [IsScalarTower R Q M] |
| 18 | [Module R N] [Module Q N] [IsScalarTower R Q N] |
| 19 | |
| 20 | def lift (f : M →ₗ[R] N) : M →ₗ[Q] N where |
| 21 | toFun := f |
| 22 | map_add' := f.map_add |
| 23 | map_smul' q m := by |
| 24 | obtain ⟨r, rfl⟩ := hQ q |
| 25 | change f ((algebraMap R Q r) • m) = (algebraMap R Q r) • f m |
| 26 | rw [IsScalarTower.algebraMap_smul Q, IsScalarTower.algebraMap_smul Q] |
| 27 | exact f.map_smul r m |
| 28 | |
| 29 | def equiv : (M →ₗ[Q] N) ≃ₗ[R] (M →ₗ[R] N) where |
| 30 | toFun := LinearMap.restrictScalars R |
| 31 | invFun := lift R Q hQ M N |
| 32 | left_inv _ := rfl |
| 33 | right_inv _ := rfl |
| 34 | map_add' _ _ := rfl |
| 35 | map_smul' _ _ := rfl |
| 36 | |
| 37 | @[simp] theorem equiv_apply (f : M →ₗ[Q] N) (m : M) : equiv R Q hQ M N f m = f m := rfl |
| 38 | |
| 39 | end |
| 40 | |
| 41 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SurjectiveScalarHom |