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.ExteriorAlgebra.Basic |
| 2 | import Mathlib.RingTheory.TensorProduct.Maps |
| 3 | |
| 4 | /-! # Exterior Algebra Base Change -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.ExteriorAlgebraBaseChange.IntegralExteriorBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Exterior algebra commutes with coefficient extension over every commutative ring. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | variable (R S M : Type*) [CommRing R] [CommRing S] [AddCommGroup M] |
| 15 | [Algebra R S] [Module R M] |
| 16 | |
| 17 | def ofBaseChangeAux : ExteriorAlgebra R M →ₐ[R] ExteriorAlgebra S (S ⊗[R] M) := |
| 18 | ExteriorAlgebra.lift R ⟨(ExteriorAlgebra.ι S).restrictScalars R ∘ₗ TensorProduct.mk R S M 1, |
| 19 | fun m => ExteriorAlgebra.ι_sq_zero (1 ⊗ₜ[R] m)⟩ |
| 20 | |
| 21 | theorem ofBaseChangeAux_ι (m : M) : |
| 22 | ofBaseChangeAux R S M (ExteriorAlgebra.ι R m) = ExteriorAlgebra.ι S (1 ⊗ₜ[R] m) := |
| 23 | ExteriorAlgebra.lift_ι_apply _ _ _ _ |
| 24 | |
| 25 | def ofBaseChange : S ⊗[R] ExteriorAlgebra R M →ₐ[S] ExteriorAlgebra S (S ⊗[R] M) := |
| 26 | Algebra.TensorProduct.lift (Algebra.ofId _ _) (ofBaseChangeAux R S M) |
| 27 | (fun _ _ => Algebra.commutes _ _) |
| 28 | |
| 29 | theorem ofBaseChange_tmul_ι (s : S) (m : M) : |
| 30 | ofBaseChange R S M (s ⊗ₜ[R] ExteriorAlgebra.ι R m) = ExteriorAlgebra.ι S (s ⊗ₜ[R] m) := by |
| 31 | change algebraMap _ _ s * ofBaseChangeAux R S M (ExteriorAlgebra.ι R m) = _ |
| 32 | rw [ofBaseChangeAux_ι, ← Algebra.smul_def, ← map_smul, TensorProduct.smul_tmul', smul_eq_mul, mul_one] |
| 33 | |
| 34 | def tensorIota : S ⊗[R] M →ₗ[S] S ⊗[R] ExteriorAlgebra R M := |
| 35 | TensorProduct.AlgebraTensorModule.map (LinearMap.id : S →ₗ[S] S) (ExteriorAlgebra.ι R) |
| 36 | |
| 37 | theorem tensorIota_tmul (s : S) (m : M) : |
| 38 | tensorIota R S M (s ⊗ₜ[R] m) = s ⊗ₜ[R] ExteriorAlgebra.ι R m := rfl |
| 39 | |
| 40 | theorem tensorIota_skew (x y : S ⊗[R] M) : |
| 41 | tensorIota R S M x * tensorIota R S M y + tensorIota R S M y * tensorIota R S M x = 0 := by |
| 42 | induction x using TensorProduct.inductionOn with |
| 43 | | add x z hx hz => |
| 44 | simp only [map_add, add_mul, mul_add] |
| 45 | calc |
| 46 | _ = (tensorIota R S M x * tensorIota R S M y + tensorIota R S M y * tensorIota R S M x) + |
| 47 | (tensorIota R S M z * tensorIota R S M y + tensorIota R S M y * tensorIota R S M z) := by abel |
| 48 | _ = 0 := by rw [hx, hz, add_zero] |
| 49 | | tmul s m => |
| 50 | induction y using TensorProduct.inductionOn with |
| 51 | | add y z hy hz => |
| 52 | simp only [map_add, add_mul, mul_add] |
| 53 | calc |
| 54 | _ = (tensorIota R S M (s ⊗ₜ[R] m) * tensorIota R S M y + |
| 55 | tensorIota R S M y * tensorIota R S M (s ⊗ₜ[R] m)) + |
| 56 | (tensorIota R S M (s ⊗ₜ[R] m) * tensorIota R S M z + |
| 57 | tensorIota R S M z * tensorIota R S M (s ⊗ₜ[R] m)) := by abel |
| 58 | _ = 0 := by rw [hy, hz, add_zero] |
| 59 | | tmul t n => |
| 60 | rw [tensorIota_tmul, tensorIota_tmul, Algebra.TensorProduct.tmul_mul_tmul, |
| 61 | Algebra.TensorProduct.tmul_mul_tmul, mul_comm t s, ← TensorProduct.tmul_add] |
| 62 | rw [show ExteriorAlgebra.ι R m * ExteriorAlgebra.ι R n + |
| 63 | ExteriorAlgebra.ι R n * ExteriorAlgebra.ι R m = 0 by |
| 64 | simp] |
| 65 | exact TensorProduct.tmul_zero _ _ |
| 66 | |
| 67 | theorem tensorIota_square (x : S ⊗[R] M) : tensorIota R S M x * tensorIota R S M x = 0 := by |
| 68 | induction x using TensorProduct.inductionOn with |
| 69 | | add x y hx hy => |
| 70 | simp only [map_add, add_mul, mul_add, hx, hy, zero_add, add_zero] |
| 71 | exact tensorIota_skew R S M y x |
| 72 | | tmul s m => |
| 73 | rw [tensorIota_tmul, Algebra.TensorProduct.tmul_mul_tmul, ExteriorAlgebra.ι_sq_zero, |
| 74 | TensorProduct.tmul_zero] |
| 75 | |
| 76 | def toBaseChange : ExteriorAlgebra S (S ⊗[R] M) →ₐ[S] S ⊗[R] ExteriorAlgebra R M := |
| 77 | ExteriorAlgebra.lift S ⟨tensorIota R S M, tensorIota_square R S M⟩ |
| 78 | |
| 79 | theorem toBaseChange_ι (x : S ⊗[R] M) : |
| 80 | toBaseChange R S M (ExteriorAlgebra.ι S x) = tensorIota R S M x := |
| 81 | ExteriorAlgebra.lift_ι_apply _ _ _ _ |
| 82 | |
| 83 | theorem toBaseChange_comp_ofBaseChange : |
| 84 | (toBaseChange R S M).comp (ofBaseChange R S M) = AlgHom.id _ _ := by |
| 85 | apply Algebra.TensorProduct.ext |
| 86 | · exact Subsingleton.elim _ _ |
| 87 | · apply ExteriorAlgebra.hom_ext |
| 88 | ext m |
| 89 | change toBaseChange R S M (ofBaseChange R S M (1 ⊗ₜ[R] ExteriorAlgebra.ι R m)) = |
| 90 | 1 ⊗ₜ[R] ExteriorAlgebra.ι R m |
| 91 | rw [ofBaseChange_tmul_ι, toBaseChange_ι, tensorIota_tmul] |
| 92 | |
| 93 | theorem ofBaseChange_comp_toBaseChange : |
| 94 | (ofBaseChange R S M).comp (toBaseChange R S M) = AlgHom.id _ _ := by |
| 95 | apply ExteriorAlgebra.hom_ext |
| 96 | apply TensorProduct.AlgebraTensorModule.ext |
| 97 | intro s m |
| 98 | change ofBaseChange R S M (toBaseChange R S M (ExteriorAlgebra.ι S (s ⊗ₜ[R] m))) = |
| 99 | ExteriorAlgebra.ι S (s ⊗ₜ[R] m) |
| 100 | rw [toBaseChange_ι, tensorIota_tmul, ofBaseChange_tmul_ι] |
| 101 | |
| 102 | def algebraEquiv : S ⊗[R] ExteriorAlgebra R M ≃ₐ[S] ExteriorAlgebra S (S ⊗[R] M) := |
| 103 | AlgEquiv.ofAlgHom (ofBaseChange R S M) (toBaseChange R S M) |
| 104 | (ofBaseChange_comp_toBaseChange R S M) (toBaseChange_comp_ofBaseChange R S M) |
| 105 | |
| 106 | theorem algebraEquiv_tmul_ι (s : S) (m : M) : |
| 107 | algebraEquiv R S M (s ⊗ₜ[R] ExteriorAlgebra.ι R m) = ExteriorAlgebra.ι S (s ⊗ₜ[R] m) := |
| 108 | ofBaseChange_tmul_ι R S M s m |
| 109 | |
| 110 | end |
| 111 | |
| 112 | end OAI.NumberTheory.PadicHodge.GeometricComparison.Integral.ExteriorAlgebraBaseChange.IntegralExteriorBaseChange |