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.Basis |
| 2 | import Mathlib.RingTheory.IsTensorProduct |
| 3 | |
| 4 | /-! # Basis Base Change -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BasisBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # IntegralComparison: a map preserving two bases exhibits scalar extension |
| 12 | -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | universe u v w z t |
| 17 | |
| 18 | variable {R : Type u} {S : Type v} [CommSemiring R] [CommSemiring S] [Algebra R S] |
| 19 | {M : Type w} {N : Type z} [AddCommMonoid M] [AddCommMonoid N] |
| 20 | [Module R M] [Module R N] [Module S N] [IsScalarTower R S N] |
| 21 | {ι : Type t} (f : M →ₗ[R] N) (b : Module.Basis ι R M) (c : Module.Basis ι S N) |
| 22 | |
| 23 | theorem isBaseChange (hf : ∀ i, f (b i) = c i) : IsBaseChange S f := by |
| 24 | let e := (b.baseChange S).equiv c (Equiv.refl _) |
| 25 | have he : (e.toLinearMap.restrictScalars R).comp (TensorProduct.mk R S M 1) = f := by |
| 26 | apply b.ext |
| 27 | intro i |
| 28 | change e (1 ⊗ₜ[R] b i) = f (b i) |
| 29 | rw [← Module.Basis.baseChange_apply, Module.Basis.equiv_apply, Equiv.refl_apply, hf] |
| 30 | exact IsBaseChange.of_equiv e (fun x => LinearMap.congr_fun he x) |
| 31 | |
| 32 | end |
| 33 | |
| 34 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BasisBaseChange |