Stafford38/Geometry/EtaleDerivationExtension.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Mathlib.RingTheory.Etale.Kaehler
3 public import Mathlib.LinearAlgebra.TensorProduct.Tower
4 
5 @[expose] public section
6 
7 set_option autoImplicit false
8 open scoped TensorProduct
9 
10 namespace Stafford38.Geometry.EtaleDerivationExtension
11 
12 noncomputable section
13 
14 variable {k A U L : Type*}
15 variable [CommRing k] [CommRing A] [CommRing U] [Field L]
16 variable [Algebra k A] [Algebra k U] [Algebra A U]
17 variable [IsScalarTower k A U]
18 variable [Algebra U L] [Algebra A L] [Algebra k L]
19 variable [IsScalarTower A U L] [IsScalarTower k A L] [IsScalarTower k U L]
20 variable [Algebra.FormallyEtale A U]
21 
22 /-- Extend a derivation across a formally étale algebra by transporting its
23 Kähler functional through the canonical cotangent base-change equivalence. -/
24 noncomputable def extendDerivation (D : Derivation k A L) : Derivation k U L := by
25   let d : Ω[A⁄k] →ₗ[A] L := D.liftKaehlerDifferential
26   let T : U ⊗[A] Ω[A⁄k] →ₗ[U] L := d.liftBaseChange U
27   let E : U ⊗[A] Ω[A⁄k] ≃ₗ[U] Ω[U⁄k] :=
28     KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale k A U
29   exact KaehlerDifferential.linearMapEquivDerivation k U (T.comp E.symm.toLinearMap)
30 
31 /-- The extended derivation restricts to the original derivation on `A`. -/
32 theorem extendDerivation_algebraMap (D : Derivation k A L) (a : A) :
33     extendDerivation (k := k) (A := A) (U := U) (L := L) D
34       (algebraMap A U a) = D a := by
35   simp [extendDerivation,
36     KaehlerDifferential.linearMapEquivDerivation_apply_apply,
37     KaehlerDifferential.tensorKaehlerEquivOfFormallyEtale_symm_D_algebraMap,
38     LinearMap.liftBaseChange_tmul,
39     Derivation.liftKaehlerDifferential_comp_D]
40 
41 
42 end
43 
44 end Stafford38.Geometry.EtaleDerivationExtension
45