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 | /-! # Bilinear Scalar Extension -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.BilinearScalarExtension |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Scalar extension of a native bilinear map, with its pure-tensor, |
| 10 | naturality and unit formulas. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u v w x y z |
| 15 | |
| 16 | variable {R : Type u} [CommRing R] (S : Type v) [CommRing S] [Algebra R S] |
| 17 | {M : Type w} {N : Type x} {P : Type y} |
| 18 | [AddCommGroup M] [Module R M] [AddCommGroup N] [Module R N] |
| 19 | [AddCommGroup P] [Module R P] |
| 20 | |
| 21 | def map (μ : M →ₗ[R] N →ₗ[R] P) : |
| 22 | S ⊗[R] M →ₗ[S] S ⊗[R] N →ₗ[S] S ⊗[R] P := |
| 23 | TensorProduct.curry (((TensorProduct.lift μ).baseChange S).comp |
| 24 | (TensorProduct.AlgebraTensorModule.distribBaseChange R S M N).symm.toLinearMap) |
| 25 | |
| 26 | theorem map_tmul (μ : M →ₗ[R] N →ₗ[R] P) (a b : S) (x : M) (y : N) : |
| 27 | map S μ (a ⊗ₜ[R] x) (b ⊗ₜ[R] y) = (a * b) ⊗ₜ[R] μ x y := by |
| 28 | change (TensorProduct.lift μ).baseChange S |
| 29 | ((TensorProduct.AlgebraTensorModule.distribBaseChange R S M N).symm |
| 30 | ((a ⊗ₜ[R] x) ⊗ₜ[S] (b ⊗ₜ[R] y))) = _ |
| 31 | rw [TensorProduct.AlgebraTensorModule.distribBaseChange_symm_tmul, |
| 32 | LinearMap.baseChange_tmul, TensorProduct.lift.tmul] |
| 33 | |
| 34 | variable {M' : Type w} {N' : Type x} {P' : Type z} |
| 35 | [AddCommGroup M'] [Module R M'] [AddCommGroup N'] [Module R N'] |
| 36 | [AddCommGroup P'] [Module R P'] |
| 37 | |
| 38 | theorem map_natural (μ : M →ₗ[R] N →ₗ[R] P) (ν : M' →ₗ[R] N' →ₗ[R] P') |
| 39 | (f : M →ₗ[R] M') (g : N →ₗ[R] N') (h : P →ₗ[R] P') |
| 40 | (hμ : ∀ x y, h (μ x y) = ν (f x) (g y)) |
| 41 | (x : S ⊗[R] M) (y : S ⊗[R] N) : |
| 42 | h.baseChange S (map S μ x y) = map S ν (f.baseChange S x) (g.baseChange S y) := by |
| 43 | induction x using TensorProduct.inductionOn with |
| 44 | | add x z hx hz => simp only [map_add, LinearMap.add_apply, hx, hz] |
| 45 | | tmul a x => |
| 46 | induction y using TensorProduct.inductionOn with |
| 47 | | add y z hy hz => simp only [map_add, hy, hz] |
| 48 | | tmul b y => simp only [map_tmul, LinearMap.baseChange_tmul, hμ] |
| 49 | |
| 50 | theorem map_right_unit (μ : M →ₗ[R] N →ₗ[R] M) (e : N) |
| 51 | (he : ∀ x, μ x e = x) (x : S ⊗[R] M) : |
| 52 | map S μ x ((1 : S) ⊗ₜ[R] e) = x := by |
| 53 | induction x using TensorProduct.inductionOn with |
| 54 | | add x y hx hy => simp only [map_add, LinearMap.add_apply, hx, hy] |
| 55 | | tmul a x => rw [map_tmul, he, mul_one] |
| 56 | |
| 57 | theorem map_left_unit (μ : M →ₗ[R] N →ₗ[R] N) (e : M) |
| 58 | (he : ∀ y, μ e y = y) (y : S ⊗[R] N) : |
| 59 | map S μ ((1 : S) ⊗ₜ[R] e) y = y := by |
| 60 | induction y using TensorProduct.inductionOn with |
| 61 | | add x y hx hy => simp only [map_add, hx, hy] |
| 62 | | tmul b y => rw [map_tmul, he, one_mul] |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.NumberTheory.PadicHodge.IntegralComparison.BilinearScalarExtension |