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.RingTheory.Etale.Kaehler |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Smooth.ConormalRank |
| 3 | |
| 4 | /-! # Conormal Base Change -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.ConormalBaseChange |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual cotangent-sequence maps commute with formally étale |
| 11 | base change. The ambient equivalence is the native extension map on |
| 12 | differentials, with its exact pure-tensor formula. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | open _root_.Algebra.Extension KaehlerDifferential |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | universe u |
| 22 | variable {R S T : Type u} [CommRing R] [CommRing S] [CommRing T] |
| 23 | [Algebra R S] [Algebra R T] [Algebra S T] [IsScalarTower R S T] |
| 24 | (P : Algebra.Extension.{u} R S) (Q : Algebra.Extension.{u} R T) (f : P.Hom Q) |
| 25 | |
| 26 | def ambient (hf : f.toRingHom.FormallyEtale) : |
| 27 | T ⊗[S] P.CotangentSpace ≃ₗ[T] Q.CotangentSpace := |
| 28 | Algebra.Extension.tensorCotangentSpaceOfFormallyEtale f hf |
| 29 | |
| 30 | theorem ambient_tmul (hf : f.toRingHom.FormallyEtale) (t : T) (x : P.CotangentSpace) : |
| 31 | ambient P Q f hf (t ⊗ₜ[S] x) = t • CotangentSpace.map f x := by |
| 32 | exact LinearMap.liftBaseChange_tmul T (CotangentSpace.map f) t x |
| 33 | |
| 34 | theorem ambient_tmul_D (hf : f.toRingHom.FormallyEtale) (t : T) (s : S) (x : P.Ring) : |
| 35 | ambient P Q f hf (t ⊗ₜ[S] (s ⊗ₜ[P.Ring] D R P.Ring x)) = |
| 36 | (t * algebraMap S T s) ⊗ₜ[Q.Ring] D R Q.Ring (f.toRingHom x) := by |
| 37 | rw [ambient_tmul, CotangentSpace.map_tmul, TensorProduct.smul_tmul', smul_eq_mul] |
| 38 | rfl |
| 39 | |
| 40 | theorem ambient_cotangent (hf : f.toRingHom.FormallyEtale) (x : P.Cotangent) : |
| 41 | ambient P Q f hf (1 ⊗ₜ[S] P.cotangentComplex x) = |
| 42 | Q.cotangentComplex (Cotangent.map f x) := by |
| 43 | rw [ambient_tmul, one_smul, CotangentSpace.map_cotangentComplex] |
| 44 | |
| 45 | theorem toKaehler_map (x : P.CotangentSpace) : |
| 46 | Q.toKaehler (CotangentSpace.map f x) = |
| 47 | KaehlerDifferential.map R R S T (P.toKaehler x) := by |
| 48 | let : Algebra P.Ring T := ((algebraMap S T).comp (algebraMap P.Ring S)).toAlgebra |
| 49 | let : IsScalarTower P.Ring S T := IsScalarTower.of_algebraMap_eq' rfl |
| 50 | have he : (Q.toKaehler.restrictScalars S).comp (CotangentSpace.map f) = |
| 51 | (KaehlerDifferential.map R R S T).comp P.toKaehler := by |
| 52 | apply TensorProduct.AlgebraTensorModule.ext |
| 53 | intro s ω |
| 54 | have hω : ω ∈ Submodule.span P.Ring (Set.range (D R P.Ring)) := by |
| 55 | rw [span_range_derivation] |
| 56 | trivial |
| 57 | induction hω using Submodule.span_induction generalizing s with |
| 58 | | mem ω hω => |
| 59 | obtain ⟨a, rfl⟩ := hω |
| 60 | simp only [LinearMap.comp_apply, LinearMap.restrictScalars_apply, |
| 61 | CotangentSpace.map_tmul, Algebra.Extension.toKaehler, |
| 62 | KaehlerDifferential.mapBaseChange_tmul, KaehlerDifferential.map_D, |
| 63 | map_smul, Algebra.Extension.Hom.toAlgHom_apply, Algebra.Extension.Hom.algebraMap_toRingHom] |
| 64 | exact algebraMap_smul T s _ |
| 65 | | zero => simp only [TensorProduct.tmul_zero, map_zero] |
| 66 | | add x y hx hy ihx ihy => simp only [TensorProduct.tmul_add, map_add, ihx, ihy] |
| 67 | | smul a ω hω ih => simpa only [TensorProduct.smul_tmul] using ih (a • s) |
| 68 | exact LinearMap.congr_fun he x |
| 69 | |
| 70 | theorem ambient_toKaehler (hf : f.toRingHom.FormallyEtale) |
| 71 | [Algebra.FormallyEtale S T] (x : T ⊗[S] P.CotangentSpace) : |
| 72 | Q.toKaehler (ambient P Q f hf x) = |
| 73 | tensorKaehlerEquivOfFormallyEtale R S T (P.toKaehler.baseChange T x) := by |
| 74 | induction x using TensorProduct.inductionOn with |
| 75 | | add x y hx hy => simp only [map_add, hx, hy] |
| 76 | | tmul t x => |
| 77 | rw [ambient_tmul, map_smul, toKaehler_map, LinearMap.baseChange_tmul, |
| 78 | tensorKaehlerEquivOfFormallyEtale_apply, mapBaseChange_tmul] |
| 79 | |
| 80 | end |
| 81 | |
| 82 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Etale.ConormalBaseChange |