Stafford38/LocalizedWeylAction.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.LocalizedPolynomialDerivations
3 public import Stafford38.DifferentialOperators
4 public import Stafford38.Weyl.Universal
5 public import Stafford38.Weyl.IteratedEquivalence
6 
7 @[expose] public section
8 
9 /-!
10 # The Weyl action on a polynomial localization
11 
12 This file constructs the Weyl action on the genuine finite-order differential
13 operators of a localization of a polynomial ring.  No identification of the
14 resulting differential-operator algebra with another presentation is used.
15 -/
16 
17 namespace Stafford38.LocalizedWeylAction
18 
19 open Stafford
20 open Stafford38.DifferentialOperators
21 open Stafford38.LocalizedPolynomialDerivations
22 open Stafford38.WeylUniversal
23 open Stafford38.WeylIteratedEquivalence
24 
25 noncomputable section
26 
27 universe u
28 
29 variable {k : Type u} [Field k] {n : ℕ}
30 variable (S : Submonoid (MvPolynomial (Fin n) k))
31 variable (B : Type u) [CommRing B]
32 variable [Algebra (MvPolynomial (Fin n) k) B] [Algebra k B]
33 variable [IsScalarTower k (MvPolynomial (Fin n) k) B]
34 variable [IsLocalization S B]
35 
36 abbrev A := MvPolynomial (Fin n) k
37 abbrev D (B : Type u) [CommRing B] [Algebra k B] :=
38   algebra (k := k) (R := B)
39 
40 def coordinateEnd (i : Fin n) : End (k := k) (R := B) :=
41   multiplication (algebraMap (A (k := k) (n := n)) B (MvPolynomial.X i))
42 
43 def momentumEnd (i : Fin n) : End (k := k) (R := B) :=
44   (localizedPderiv S B i).toLinearMap
45 
46 theorem coordinateEnd_mem_order_zero (i : Fin n) :
47     coordinateEnd (B := B) i ∈ order (k := k) (R := B) 0 := by
48   rw [mem_order_zero_iff_eq_multiplication]
49   ext x
50   simp [coordinateEnd, multiplication_apply]
51 
52 theorem momentumEnd_mem_order_one (i : Fin n) :
53     momentumEnd S B i ∈ order (k := k) (R := B) 1 := by
54   rw [show 1 = 0 + 1 by rfl, mem_order_succ_iff]
55   intro a
56   rw [mem_order_zero_iff_eq_multiplication]
57   apply LinearMap.ext
58   intro x
59   change localizedPderiv S B i (a * x) - a * localizedPderiv S B i x = _
60   rw [(localizedPderiv S B i).leibniz]
61   simp [DifferentialOperators.commutator_apply, multiplication_apply,
62     momentumEnd, mul_comm, add_comm]
63 
64 def differentialGenerator : (Fin n ⊕ Fin n) → D (k := k) B
65   | .inl i => ⟨coordinateEnd (B := B) i, 0,
66       coordinateEnd_mem_order_zero (B := B) i⟩
67   | .inr i => ⟨momentumEnd S B i, 1, momentumEnd_mem_order_one S B i⟩
68 
69 theorem differentialGenerator_commutator (i j : Fin n ⊕ Fin n) :
70     Stafford.commutator (differentialGenerator S B i)
71         (differentialGenerator S B j) =
72       algebraMap k (D (k := k) B) (Matrix.J (Fin n) k i j) := by
73   apply Subtype.ext
74   apply LinearMap.ext
75   intro f
76   cases i with
77   | inl i =>
78       cases j with
79       | inl j => simp [Stafford.commutator, differentialGenerator,
80           coordinateEnd, Module.End.mul_apply, Matrix.J, mul_comm, mul_assoc,
81           mul_left_comm]
82       | inr j =>
83           by_cases h : i = j
84           · subst j
85             simp [Stafford.commutator, differentialGenerator, coordinateEnd,
86               momentumEnd, Module.End.mul_apply, Matrix.J,
87               localizedPderiv_apply_algebraMap_X]
88           · simp [Stafford.commutator, differentialGenerator, coordinateEnd,
89               momentumEnd, Module.End.mul_apply, Matrix.J, h,
90               Ne.symm h, localizedPderiv_apply_algebraMap_X]
91   | inr i =>
92       cases j with
93       | inl j =>
94           by_cases h : i = j
95           · subst j
96             simp [Stafford.commutator, differentialGenerator, coordinateEnd,
97               momentumEnd, Module.End.mul_apply, Matrix.J,
98               localizedPderiv_apply_algebraMap_X]
99           · simp [Stafford.commutator, differentialGenerator, coordinateEnd,
100               momentumEnd, differentialGenerator, coordinateEnd,
101               Matrix.J, h, localizedPderiv_apply_algebraMap_X]
102       | inr j =>
103           have hc := localizedPderiv_comm S B i j
104           have hcf := LinearMap.congr_fun hc f
105           simpa [Stafford.commutator, differentialGenerator, momentumEnd,
106             Module.End.mul_apply, Matrix.J] using (sub_eq_zero.mpr hcf)
107 
108 def localizedWeylAction :
109     PresentedWeyl k n →ₐ[k] D (k := k) B :=
110   freeWeylLift (Matrix.J (Fin n) k) (differentialGenerator S B)
111     (differentialGenerator_commutator S B)
112 
113 @[simp] theorem localizedWeylAction_generator (i : Fin n ⊕ Fin n) :
114     localizedWeylAction S B
115         (freeWeylGenerator (Matrix.J (Fin n) k) i) =
116       differentialGenerator S B i :=
117   freeWeylLift_generator _ _ _ i
118 
119 theorem localizedWeylAction_mem (a : PresentedWeyl k n) :
120     (localizedWeylAction S B a : End (k := k) (R := B)) ∈ D (k := k) B :=
121   (localizedWeylAction S B a).property
122 
123 include S
124 theorem multiplication_algebraMap_mem_range (f : A (k := k) (n := n)) :
125     ∃ P : D (k := k) B, (P : End (k := k) (R := B)) =
126       multiplication (algebraMap (A (k := k) (n := n)) B f) := by
127   induction f using MvPolynomial.induction_on with
128   | C c =>
129       refine ⟨algebraMap k (D (k := k) B) c, ?_⟩
130       ext x
131       have hc : algebraMap (A (k := k) (n := n)) B (MvPolynomial.C c) =
132           algebraMap k B c := by
133         calc
134           _ = algebraMap (A (k := k) (n := n)) B
135               (algebraMap k (A (k := k) (n := n)) c) := by
136                 rw [MvPolynomial.algebraMap_eq]
137           _ = algebraMap k B c := by
138             exact (IsScalarTower.algebraMap_apply k
139               (A (k := k) (n := n)) B c).symm
140       rw [hc]
141       simp [multiplication_apply, Algebra.smul_def]
142   | add f g hf hg =>
143       obtain ⟨P, hP⟩ := hf
144       obtain ⟨Q, hQ⟩ := hg
145       refine ⟨P + Q, ?_⟩
146       ext x
147       simp [hP, hQ, multiplication_apply, map_add, add_mul]
148   | mul_X f i hf =>
149       obtain ⟨P, hP⟩ := hf
150       refine ⟨(differentialGenerator S B (.inl i)) * P, ?_⟩
151       ext x
152       change algebraMap (A (k := k) (n := n)) B (MvPolynomial.X i) *
153           (P : End (k := k) (R := B)) x = _
154       rw [hP]
155       simp [multiplication_apply, map_mul, mul_assoc]
156       ring
157 
158 #print axioms localizedWeylAction
159 #print axioms differentialGenerator_commutator
160 #print axioms multiplication_algebraMap_mem_range
161 
162 end
163 end Stafford38.LocalizedWeylAction
164