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.AlgebraicGeometry.ComplexMultiplication.WeightOne |
| 2 | import OAI.AlgebraicGeometry.ComplexMultiplication.ScalarDescent |
| 3 | import Mathlib.LinearAlgebra.Contraction |
| 4 | |
| 5 | /-! # Hom Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexMultiplication.HomBaseChange.CM |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Scalar extension of rational linear maps |
| 13 | |
| 14 | The canonical map from scalar-extended rational homomorphisms to linear |
| 15 | maps of scalar-extended spaces is an isomorphism when the source is finite |
| 16 | dimensional. Its construction uses the actual base-change map, and scalar |
| 17 | Galois conjugation acts by conjugating its input and output coefficients. |
| 18 | -/ |
| 19 | |
| 20 | open scoped TensorProduct |
| 21 | |
| 22 | variable (K : Type*) [Field K] [Algebra ℚ K] |
| 23 | variable (U V : Type*) [AddCommGroup U] [Module ℚ U] [AddCommGroup V] [Module ℚ V] |
| 24 | |
| 25 | /-- The canonical scalar extension of the rational Hom space. -/ |
| 26 | def homBaseChange : K ⊗[ℚ] (U →ₗ[ℚ] V) →ₗ[K] (K ⊗[ℚ] U →ₗ[K] K ⊗[ℚ] V) := |
| 27 | (LinearMap.baseChangeHom ℚ K U V).liftBaseChange K |
| 28 | |
| 29 | @[simp] |
| 30 | theorem homBaseChange_tmul (a : K) (f : U →ₗ[ℚ] V) : |
| 31 | homBaseChange K U V (a ⊗ₜ[ℚ] f) = a • f.baseChange K := rfl |
| 32 | |
| 33 | @[simp] |
| 34 | theorem homBaseChange_tmul_apply (a b : K) (f : U →ₗ[ℚ] V) (u : U) : |
| 35 | homBaseChange K U V (a ⊗ₜ[ℚ] f) (b ⊗ₜ[ℚ] u) = (a * b) ⊗ₜ[ℚ] f u := by |
| 36 | simp [TensorProduct.smul_tmul', smul_eq_mul] |
| 37 | |
| 38 | section FiniteSource |
| 39 | |
| 40 | variable [FiniteDimensional ℚ U] |
| 41 | |
| 42 | /-- Evaluation on rational vectors agrees with the standard tensor-Hom equivalence. -/ |
| 43 | theorem homBaseChange_apply_one (x : K ⊗[ℚ] (U →ₗ[ℚ] V)) (u : U) : |
| 44 | homBaseChange K U V x ((1 : K) ⊗ₜ[ℚ] u) = lTensorHomEquivHomLTensor ℚ U K V x u := by |
| 45 | induction x using TensorProduct.inductionOn with |
| 46 | | add x y hx hy => simp only [map_add, LinearMap.add_apply, hx, hy] |
| 47 | | tmul a f => simp [TensorProduct.smul_tmul', smul_eq_mul] |
| 48 | |
| 49 | /-- Extending scalars commutes with Hom when the rational source is finite dimensional. -/ |
| 50 | theorem homBaseChange_bijective : Function.Bijective (homBaseChange K U V) := by |
| 51 | constructor |
| 52 | · intro x y h |
| 53 | apply (lTensorHomEquivHomLTensor ℚ U K V).injective |
| 54 | apply LinearMap.ext |
| 55 | intro u |
| 56 | simpa only [homBaseChange_apply_one] using |
| 57 | congrArg (fun f : K ⊗[ℚ] U →ₗ[K] K ⊗[ℚ] V => f ((1 : K) ⊗ₜ[ℚ] u)) h |
| 58 | · intro f |
| 59 | let f₀ : U →ₗ[ℚ] K ⊗[ℚ] V := |
| 60 | (f.restrictScalars ℚ).comp (TensorProduct.mk ℚ K U 1) |
| 61 | let x := (lTensorHomEquivHomLTensor ℚ U K V).symm f₀ |
| 62 | refine ⟨x, ?_⟩ |
| 63 | apply LinearMap.ext |
| 64 | intro y |
| 65 | induction y using TensorProduct.inductionOn with |
| 66 | | add y z hy hz => simp only [map_add, hy, hz] |
| 67 | | tmul a u => |
| 68 | have hu : homBaseChange K U V x ((1 : K) ⊗ₜ[ℚ] u) = f ((1 : K) ⊗ₜ[ℚ] u) := by |
| 69 | rw [homBaseChange_apply_one] |
| 70 | exact congrArg (fun l : U →ₗ[ℚ] K ⊗[ℚ] V => l u) |
| 71 | ((lTensorHomEquivHomLTensor ℚ U K V).apply_symm_apply f₀) |
| 72 | have ha := congrArg (fun z : K ⊗[ℚ] V => a • z) hu |
| 73 | simpa only [← map_smul, TensorProduct.smul_tmul', smul_eq_mul, mul_one] using ha |
| 74 | |
| 75 | /-- The canonical coefficient comparison for linear maps, with no choice of a Hom basis. -/ |
| 76 | def homBaseChangeEquiv : K ⊗[ℚ] (U →ₗ[ℚ] V) ≃ₗ[K] (K ⊗[ℚ] U →ₗ[K] K ⊗[ℚ] V) := |
| 77 | LinearEquiv.ofBijective (homBaseChange K U V) (homBaseChange_bijective K U V) |
| 78 | |
| 79 | @[simp] |
| 80 | theorem homBaseChangeEquiv_apply (x : K ⊗[ℚ] (U →ₗ[ℚ] V)) : |
| 81 | homBaseChangeEquiv K U V x = homBaseChange K U V x := rfl |
| 82 | |
| 83 | end FiniteSource |
| 84 | |
| 85 | /-- Scalar conjugation of a Hom tensor is conjugation on its argument and its value. -/ |
| 86 | theorem homBaseChange_scalarConjugate (g : K ≃ₐ[ℚ] K) |
| 87 | (x : K ⊗[ℚ] (U →ₗ[ℚ] V)) (u : K ⊗[ℚ] U) : |
| 88 | homBaseChange K U V (ScalarDescent.CM.scalarConjugate ℚ K (U →ₗ[ℚ] V) g x) |
| 89 | (ScalarDescent.CM.scalarConjugate ℚ K U g u) = |
| 90 | ScalarDescent.CM.scalarConjugate ℚ K V g (homBaseChange K U V x u) := by |
| 91 | induction x using TensorProduct.inductionOn with |
| 92 | | add x y hx hy => simp only [map_add, LinearMap.add_apply, hx, hy] |
| 93 | | tmul a f => |
| 94 | induction u using TensorProduct.inductionOn with |
| 95 | | add u v hu hv => simp only [map_add, hu, hv] |
| 96 | | tmul b u => simp [TensorProduct.smul_tmul', smul_eq_mul] |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.ComplexMultiplication.HomBaseChange.CM |