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.NumberTheory.PadicHodge.IntegralComparison.Witt.LiftedBasis |
| 2 | import Mathlib.RingTheory.TensorProduct.Maps |
| 3 | |
| 4 | /-! # Base Change Naturality -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace NumberTheory.PadicHodge.IntegralComparison.Witt.BaseChangeNaturality.Finite |
| 11 | |
| 12 | /-! Actual Witt vectors commute with finite free perfect base change, through their canonical tensor map. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | attribute [local instance] PeriodInvariants.WittAlgebraFunctor.wittAlgebra |
| 17 | |
| 18 | variable (p : ℕ) [Fact p.Prime] |
| 19 | |
| 20 | abbrev tower (R S T : Type*) [CommRing R] [CommRing S] [CommRing T] |
| 21 | [Algebra R S] [Algebra S T] [Algebra R T] [IsScalarTower R S T] : |
| 22 | IsScalarTower (WittVector p R) (WittVector p S) (WittVector p T) := |
| 23 | IsScalarTower.of_algebraMap_eq (fun w => by |
| 24 | apply WittVector.ext |
| 25 | intro n |
| 26 | exact IsScalarTower.algebraMap_apply R S T (w.coeff n)) |
| 27 | |
| 28 | attribute [local instance] tower |
| 29 | |
| 30 | variable (R S A : Type*) [CommRing R] [CommRing S] [CommRing A] [Algebra R S] [Algebra R A] |
| 31 | |
| 32 | def map : (WittVector p S) ⊗[WittVector p R] (WittVector p A) →ₐ[WittVector p S] |
| 33 | WittVector p (S ⊗[R] A) := |
| 34 | Algebra.TensorProduct.lift (Algebra.ofId (WittVector p S) (WittVector p (S ⊗[R] A))) |
| 35 | (PeriodInvariants.WittAlgebraFunctor.map p R (Algebra.TensorProduct.includeRight : A →ₐ[R] S ⊗[R] A)) |
| 36 | (fun _ _ => Commute.all _ _) |
| 37 | |
| 38 | theorem map_tmul (s : WittVector p S) (w : WittVector p A) : |
| 39 | Finite.map p R S A (s ⊗ₜ[WittVector p R] w) = |
| 40 | WittVector.map (algebraMap S (S ⊗[R] A)) s * |
| 41 | WittVector.map (Algebra.TensorProduct.includeRight : A →ₐ[R] S ⊗[R] A).toRingHom w := rfl |
| 42 | |
| 43 | variable [CharP R p] [PerfectRing R p] [CharP S p] [PerfectRing S p] |
| 44 | [CharP A p] [PerfectRing A p] [CharP (S ⊗[R] A) p] [PerfectRing (S ⊗[R] A) p] |
| 45 | {ι : Type*} [Fintype ι] (b : Module.Basis ι R A) |
| 46 | |
| 47 | theorem map_basis (i : ι) : |
| 48 | Finite.map p R S A (((PeriodInvariants.WittFiniteBasis.basis p b).baseChange (WittVector p S)) i) = |
| 49 | PeriodInvariants.WittFiniteBasis.basis p (b.baseChange S) i := by |
| 50 | rw [Module.Basis.baseChange_apply, LiftedBasis.apply_basis, map_tmul, map_one, one_mul, |
| 51 | WittVector.map_teichmuller, LiftedBasis.apply_basis, Module.Basis.baseChange_apply] |
| 52 | rfl |
| 53 | |
| 54 | def linearEquiv : (WittVector p S) ⊗[WittVector p R] (WittVector p A) ≃ₗ[WittVector p S] |
| 55 | WittVector p (S ⊗[R] A) := |
| 56 | ((PeriodInvariants.WittFiniteBasis.basis p b).baseChange (WittVector p S)).equiv |
| 57 | (PeriodInvariants.WittFiniteBasis.basis p (b.baseChange S)) (Equiv.refl ι) |
| 58 | |
| 59 | theorem map_eq : (Finite.map p R S A).toLinearMap = (linearEquiv p R S A b).toLinearMap := by |
| 60 | apply ((PeriodInvariants.WittFiniteBasis.basis p b).baseChange (WittVector p S)).ext |
| 61 | intro i |
| 62 | exact (map_basis p R S A b i).trans |
| 63 | (((PeriodInvariants.WittFiniteBasis.basis p b).baseChange (WittVector p S)).equiv_apply |
| 64 | i (PeriodInvariants.WittFiniteBasis.basis p (b.baseChange S)) (Equiv.refl ι)).symm |
| 65 | |
| 66 | def equiv : (WittVector p S) ⊗[WittVector p R] (WittVector p A) ≃ₐ[WittVector p S] |
| 67 | WittVector p (S ⊗[R] A) := |
| 68 | AlgEquiv.ofBijective (Finite.map p R S A) (by |
| 69 | change Function.Bijective (Finite.map p R S A).toLinearMap |
| 70 | rw [map_eq p R S A b] |
| 71 | exact (linearEquiv p R S A b).bijective) |
| 72 | |
| 73 | end NumberTheory.PadicHodge.IntegralComparison.Witt.BaseChangeNaturality.Finite |
| 74 | |
| 75 | namespace NumberTheory.PadicHodge.IntegralComparison.Witt.BaseChangeNaturality |
| 76 | |
| 77 | /-! The canonical Witt tensor base-change map commutes with actual algebra endomorphisms. -/ |
| 78 | |
| 79 | open scoped TensorProduct |
| 80 | |
| 81 | attribute [local instance] PeriodInvariants.WittAlgebraFunctor.wittAlgebra Finite.tower |
| 82 | |
| 83 | variable (p : ℕ) [Fact p.Prime] (R S A : Type*) [CommRing R] [CommRing S] [CommRing A] |
| 84 | [Algebra R S] [Algebra R A] (f : A →ₐ[R] A) |
| 85 | |
| 86 | def tensorMap : S ⊗[R] A →ₐ[S] S ⊗[R] A := Algebra.TensorProduct.map (AlgHom.id S S) f |
| 87 | |
| 88 | theorem right (w : WittVector p A) : |
| 89 | PeriodInvariants.WittAlgebraFunctor.map p S (tensorMap R S A f) |
| 90 | (WittVector.map (Algebra.TensorProduct.includeRight : A →ₐ[R] S ⊗[R] A).toRingHom w) = |
| 91 | WittVector.map (Algebra.TensorProduct.includeRight : A →ₐ[R] S ⊗[R] A).toRingHom |
| 92 | (PeriodInvariants.WittAlgebraFunctor.map p R f w) := by |
| 93 | apply WittVector.ext |
| 94 | intro n |
| 95 | rfl |
| 96 | |
| 97 | theorem natural (z : (WittVector p S) ⊗[WittVector p R] (WittVector p A)) : |
| 98 | Finite.map p R S A ((PeriodInvariants.WittAlgebraFunctor.map p R f).toLinearMap.baseChange (WittVector p S) z) = |
| 99 | PeriodInvariants.WittAlgebraFunctor.map p S (tensorMap R S A f) (Finite.map p R S A z) := by |
| 100 | induction z using TensorProduct.inductionOn with |
| 101 | | tmul s w => |
| 102 | rw [LinearMap.baseChange_tmul, Finite.map_tmul, Finite.map_tmul, map_mul] |
| 103 | have hleft := (PeriodInvariants.WittAlgebraFunctor.map p S (tensorMap R S A f)).commutes s |
| 104 | change PeriodInvariants.WittAlgebraFunctor.map p S (tensorMap R S A f) |
| 105 | (WittVector.map (algebraMap S (S ⊗[R] A)) s) = WittVector.map (algebraMap S (S ⊗[R] A)) s at hleft |
| 106 | rw [hleft, right] |
| 107 | rfl |
| 108 | | add x y hx hy => simp only [map_add, hx, hy] |
| 109 | |
| 110 | end NumberTheory.PadicHodge.IntegralComparison.Witt.BaseChangeNaturality |
| 111 | |
| 112 | end |
| 113 | |
| 114 | end OAI |