Stafford38/Characteristic/SpecializedNoncharacteristicEquality.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.Characteristic.CanonicalAxisMonicInitialTop
3 public import Stafford38.Characteristic.CanonicalUnitPreimageFromInitialTop
4 public import Stafford38.Characteristic.TransposedFilteredModuleSupport
5 
6 @[expose] public section
7 
8 /-!
9 # Transposed noncharacteristic interfaces for the canonical quotient
10 
11 This file proves coordinate-action and support-transport equivalences for the
12 transposed filtered quotient, including ordinary coordinate surjectivity
13 from PBW monicity. The stronger graded-surjectivity route is conditional
14 here. The unconditional support exclusion consumed by `FoundationClosure` is
15 supplied separately by `CanonicalKoszulContradiction.canonical_support_avoidance`.
16 -/
17 
18 namespace Stafford38.SpecializedNoncharacteristicEquality
19 
20 open Stafford38.CanonicalAxisMonicInitialTop
21 open Stafford38.CanonicalUnitPreimageFromInitialTop
22 open Stafford38.Characteristic
23 open Stafford38.CharacteristicAssociatedGradedModule
24 open Stafford38.CharacteristicInitialIdeal
25 open Stafford38.CharacteristicTransposedFilteredModuleSupport
26 open Stafford38.EulerSurjectivity
27 open Stafford38.WeylIteratedEquivalence
28 open Stafford38.WeylPBWMonicBridge
29 open Stafford38.WeylQuotientTransport
30 open Stafford38.WeylTransposition
31 open Stafford38.WeylTranspositionFiltration
32 
33 noncomputable section
34 
35 universe u
36 
37 variable (k : Type u) [Field k]
38 
39 abbrev CanonicalIdeal (n N : ℕ)
40     (d : PresentedWeyl k (n + 1)) :=
41   presentedCanonicalRightIdeal (k := k) n N d
42 
43 abbrev AxisCoordinate (n : ℕ) : SymbolRing k (n + 1) :=
44   MvPolynomial.X (.inl (0 : Fin (n + 1)))
45 
46 abbrev AxisZeroLocus (n : ℕ) :
47     Set (PrimeSpectrum (SymbolRing k (n + 1))) :=
48   PrimeSpectrum.zeroLocus ({AxisCoordinate k n} :
49     Set (SymbolRing k (n + 1)))
50 
51 /-! ## Ordinary transposed restriction -/
52 
53 /-- In the transposed left canonical quotient, left multiplication by the
54 distinguished coordinate is the original right-coordinate action. -/
55 theorem transposedCanonical_coordinate_smul_eq_rightMul
56     (n N : ℕ) (d : PresentedWeyl k (n + 1))
57     (q : TransposedFilteredRightQuotient k (CanonicalIdeal k n N d)) :
58     (presentedCoordinate k n • q).toRightQuotient =
59       rightMul (CanonicalIdeal k n N d) (presentedCoordinate k n)
60         q.toRightQuotient := by
61   rcases q with ⟨q⟩
62   change rightMul (CanonicalIdeal k n N d)
63       (transpose k (n + 1) (presentedCoordinate k n)) q = _
64   rw [show presentedCoordinate k n = coordinate k (n + 1) 0 from rfl,
65     transpose_coordinate]
66 
67 /-- PBW monicity already kills ordinary degree-zero restriction of the
68 transposed left module: coordinate multiplication is onto. -/
69 theorem transposedCanonical_coordinate_smul_surjective
70     [Algebra ℚ k] (n N : ℕ) {d : PresentedWeyl k (n + 1)}
71     (hd : IsPBWMonicAt k (.inr (0 : Fin (n + 1))) N d) :
72     Function.Surjective
73       (fun q : TransposedFilteredRightQuotient k (CanonicalIdeal k n N d) ↦
74         presentedCoordinate k n • q) := by
75   intro q
76   obtain ⟨r, hr⟩ :=
77     presentedCanonicalRightQuotient_rightMul_coordinate_surjective
78       (k := k) n N hd q.toRightQuotient
79   refine ⟨TransposedFilteredRightQuotient.mk r, ?_⟩
80   apply (transposedFilteredRightQuotientEquiv k
81     (CanonicalIdeal k n N d)).injective
82   change (presentedCoordinate k n •
83       TransposedFilteredRightQuotient.mk r).toRightQuotient =
84     q.toRightQuotient
85   rw [transposedCanonical_coordinate_smul_eq_rightMul]
86   exact hr
87 
88 /-! ## Symbol-space invariance -/
89 
90 @[simp] theorem symbolTransposition_axisCoordinate (n : ℕ) :
91     symbolTransposition k (AxisCoordinate k n) = AxisCoordinate k n := by
92   simp [AxisCoordinate]
93 
94 /-- The induced involution on the prime spectrum is literally involutive. -/
95 theorem primeComap_symbolTransposition_involutive
96     {n : ℕ} (p : PrimeSpectrum (SymbolRing k n)) :
97     PrimeSpectrum.comap
98         (symbolTranspositionEquiv k).toRingEquiv.toRingHom
99         (PrimeSpectrum.comap
100           (symbolTranspositionEquiv k).toRingEquiv.toRingHom p) = p := by
101   rw [← PrimeSpectrum.comap_comp_apply]
102   have hcomp :
103       (symbolTranspositionEquiv k).toRingEquiv.toRingHom.comp
104           (symbolTranspositionEquiv k).toRingEquiv.toRingHom =
105         RingHom.id (SymbolRing k n) := by
106     apply RingHom.ext
107     intro P
108     change symbolTransposition k (symbolTransposition k P) = P
109     exact AlgHom.congr_fun (symbolTransposition_comp_self k) P
110   rw [hcomp]
111   rfl
112 
113 /-- Momentum-sign substitution fixes the coordinate hyperplane. -/
114 theorem axisZeroLocus_preimage_symbolTransposition (n : ℕ) :
115     PrimeSpectrum.comap
116         (symbolTranspositionEquiv k).toRingEquiv.toRingHom ⁻¹'
117         AxisZeroLocus k n =
118       AxisZeroLocus k n := by
119   ext p
120   simp only [Set.mem_preimage, AxisZeroLocus,
121     PrimeSpectrum.mem_zeroLocus, Set.singleton_subset_iff]
122   change (symbolTranspositionEquiv k).toRingEquiv.toRingHom
123       (AxisCoordinate k n) ∈ p.asIdeal ↔
124     AxisCoordinate k n ∈ p.asIdeal
125   change symbolTransposition k (AxisCoordinate k n) ∈ p.asIdeal ↔
126     AxisCoordinate k n ∈ p.asIdeal
127   rw [symbolTransposition_axisCoordinate]
128 
129 private theorem disjoint_preimage_iff_of_involution_of_invariant
130     {X : Type*} (f : X → X) (hf : ∀ x, f (f x) = x)
131     (A B : Set X) (hB : f ⁻¹' B = B) :
132     Disjoint (f ⁻¹' A) B ↔ Disjoint A B := by
133   rw [Set.disjoint_left, Set.disjoint_left]
134   constructor
135   · intro h x hxA hxB
136     have hxpre : f x ∈ f ⁻¹' A := by
137       change f (f x) ∈ A
138       rwa [hf]
139     have hxfb : f x ∈ B := by
140       have := Set.ext_iff.mp hB x
141       exact this.mpr hxB
142     exact h hxpre hxfb
143   · intro h x hxpre hxB
144     have hfxB : f x ∈ B := by
145       have := Set.ext_iff.mp hB x
146       exact this.mpr hxB
147     exact h hxpre hfxB
148 
149 /-- Consequently, support exclusion from the coordinate hyperplane is
150 unchanged by the right-to-left symbol transposition. -/
151 theorem transposedSupport_disjoint_axis_iff
152     (n N : ℕ) (d : PresentedWeyl k (n + 1)) :
153     Disjoint
154         (transposedOrderAssociatedGradedSupport k (CanonicalIdeal k n N d))
155         (AxisZeroLocus k n) ↔
156       Disjoint
157         (Module.support (SymbolRing k (n + 1))
158           (OrderAssociatedGradedModule k (CanonicalIdeal k n N d)))
159         (AxisZeroLocus k n) := by
160   rw [transposedOrderAssociatedGradedSupport_eq_preimage]
161   apply disjoint_preimage_iff_of_involution_of_invariant
162   · exact primeComap_symbolTransposition_involutive k
163   · exact axisZeroLocus_preimage_symbolTransposition k n
164 
165 /-! ## Exact remaining strictness boundary -/
166 
167 private theorem disjoint_zeroLocus_singleton_iff_sup_eq_top
168     {R : Type*} [CommRing R] (I : Ideal R) (x : R) :
169     Disjoint (PrimeSpectrum.zeroLocus I)
170         (PrimeSpectrum.zeroLocus ({x} : Set R)) ↔
171       I ⊔ Ideal.span {x} = ⊤ := by
172   rw [Set.disjoint_iff_inter_eq_empty,
173     ← PrimeSpectrum.zeroLocus_span ({x} : Set R),
174     ← PrimeSpectrum.zeroLocus_sup,
175     PrimeSpectrum.zeroLocus_empty_iff_eq_top]
176 
177 /-- Since symbol transposition fixes the base coordinate, coordinate
178 surjectivity on the transposed associated graded module is equivalent to the
179 same statement on the original associated graded module. -/
180 theorem transposedGradedCoordinate_surjective_iff
181     (n N : ℕ) (d : PresentedWeyl k (n + 1)) :
182     Function.Surjective
183         (fun q : TransposedOrderAssociatedGradedModule k
184             (CanonicalIdeal k n N d) ↦ AxisCoordinate k n • q) ↔
185       Function.Surjective
186         (fun q : OrderAssociatedGradedModule k (CanonicalIdeal k n N d) ↦
187           AxisCoordinate k n • q) := by
188   constructor
189   · intro h q
190     obtain ⟨r, hr⟩ := h (TransposedOrderAssociatedGradedModule.mk q)
191     refine ⟨r.toOrderAssociatedGradedModule, ?_⟩
192     have hr' := congrArg
193       TransposedOrderAssociatedGradedModule.toOrderAssociatedGradedModule hr
194     simpa only [transposedSymbol_smul, symbolTransposition_axisCoordinate]
195       using hr'
196   · intro h q
197     obtain ⟨r, hr⟩ := h q.toOrderAssociatedGradedModule
198     refine ⟨TransposedOrderAssociatedGradedModule.mk r, ?_⟩
199     apply (transposedOrderAssociatedGradedEquiv k
200       (CanonicalIdeal k n N d)).injective
201     change TransposedOrderAssociatedGradedModule.toOrderAssociatedGradedModule
202         (AxisCoordinate k n •
203           TransposedOrderAssociatedGradedModule.mk r) =
204       q.toOrderAssociatedGradedModule
205     simpa only [transposedSymbol_smul, symbolTransposition_axisCoordinate]
206       using hr
207 
208 /-- For the canonical quotient, hyperplane support exclusion is exactly
209 surjectivity of the coordinate on the actual associated graded module. -/
210 theorem canonicalSupport_disjoint_axis_iff_gradedCoordinate_surjective
211     [Algebra ℚ k] (n N : ℕ) (d : PresentedWeyl k (n + 1)) :
212     Disjoint
213         (Module.support (SymbolRing k (n + 1))
214           (OrderAssociatedGradedModule k (CanonicalIdeal k n N d)))
215         (AxisZeroLocus k n) ↔
216       Function.Surjective
217         (fun q : OrderAssociatedGradedModule k (CanonicalIdeal k n N d) ↦
218           AxisCoordinate k n • q) := by
219   have hsupp :
220       Module.support (SymbolRing k (n + 1))
221           (OrderAssociatedGradedModule k (CanonicalIdeal k n N d)) =
222         PrimeSpectrum.zeroLocus
223           (orderInitialIdeal k (CanonicalIdeal k n N d)) := by
224     rw [Module.support_eq_zeroLocus,
225       annihilator_orderAssociatedGradedModule]
226   rw [hsupp]
227   exact (disjoint_zeroLocus_singleton_iff_sup_eq_top
228     (orderInitialIdeal k (CanonicalIdeal k n N d))
229     (AxisCoordinate k n)).trans
230       (canonical_orderInitialIdeal_sup_coordinate_eq_top_iff_graded_surjective
231         k n N d)
232 
233 /-- Fully transposed form of the exact boundary.  This is the strongest
234 specialized equality obtainable from the current local and Mathlib APIs:
235 the desired support exclusion is equivalent to strict associated-graded
236 coordinate surjectivity, while ordinary coordinate surjectivity was proved
237 above from monicity. -/
238 theorem transposedSupport_disjoint_axis_iff_gradedCoordinate_surjective
239     [Algebra ℚ k] (n N : ℕ) (d : PresentedWeyl k (n + 1)) :
240     Disjoint
241         (transposedOrderAssociatedGradedSupport k (CanonicalIdeal k n N d))
242         (AxisZeroLocus k n) ↔
243       Function.Surjective
244         (fun q : OrderAssociatedGradedModule k (CanonicalIdeal k n N d) ↦
245           AxisCoordinate k n • q) := by
246   rw [transposedSupport_disjoint_axis_iff]
247   exact canonicalSupport_disjoint_axis_iff_gradedCoordinate_surjective
248     k n N d
249 
250 /-- Left-module form consumed directly by the missing specialized
251 noncharacteristic theorem. -/
252 theorem transposedSupport_disjoint_axis_iff_transposedGradedCoordinate_surjective
253     [Algebra ℚ k] (n N : ℕ) (d : PresentedWeyl k (n + 1)) :
254     Disjoint
255         (transposedOrderAssociatedGradedSupport k (CanonicalIdeal k n N d))
256         (AxisZeroLocus k n) ↔
257       Function.Surjective
258         (fun q : TransposedOrderAssociatedGradedModule k
259             (CanonicalIdeal k n N d) ↦ AxisCoordinate k n • q) :=
260   (transposedSupport_disjoint_axis_iff_gradedCoordinate_surjective
261     k n N d).trans (transposedGradedCoordinate_surjective_iff k n N d).symm
262 
263 /-- The project-specific algebraic suffix after the noncharacteristic theorem:
264 transposed support avoidance produces the canonical order-zero predecessor of
265 the quotient unit.  No D-module theorem is used in this conversion. -/
266 theorem strictUnitCoordinatePreimage_of_transposedSupport_disjoint_axis
267     [Algebra ℚ k] (n N : ℕ) (d : PresentedWeyl k (n + 1))
268     (havoid : Disjoint
269       (transposedOrderAssociatedGradedSupport k (CanonicalIdeal k n N d))
270       (AxisZeroLocus k n)) :
271     Stafford38.CanonicalUnitCoordinatePreimage.StrictUnitCoordinatePreimage
272       k n N d := by
273   have horiginal :=
274     (transposedSupport_disjoint_axis_iff k n N d).mp havoid
275   have hzero : Disjoint
276       (PrimeSpectrum.zeroLocus
277         (orderInitialIdeal k (CanonicalIdeal k n N d)))
278       (AxisZeroLocus k n) := by
279     rw [Module.support_eq_zeroLocus,
280       annihilator_orderAssociatedGradedModule] at horiginal
281     exact horiginal
282   have htop : orderInitialIdeal k (CanonicalIdeal k n N d) ⊔
283       Ideal.span {AxisCoordinate k n} = ⊤ :=
284     (disjoint_zeroLocus_singleton_iff_sup_eq_top
285       (orderInitialIdeal k (CanonicalIdeal k n N d))
286       (AxisCoordinate k n)).mp hzero
287   exact strictUnitCoordinatePreimage_of_orderInitialIdeal_sup_coordinate_eq_top
288     k n N htop
289 
290 #print axioms transposedCanonical_coordinate_smul_eq_rightMul
291 #print axioms transposedCanonical_coordinate_smul_surjective
292 #print axioms primeComap_symbolTransposition_involutive
293 #print axioms axisZeroLocus_preimage_symbolTransposition
294 #print axioms transposedSupport_disjoint_axis_iff
295 #print axioms transposedGradedCoordinate_surjective_iff
296 #print axioms canonicalSupport_disjoint_axis_iff_gradedCoordinate_surjective
297 #print axioms transposedSupport_disjoint_axis_iff_gradedCoordinate_surjective
298 #print axioms transposedSupport_disjoint_axis_iff_transposedGradedCoordinate_surjective
299 #print axioms strictUnitCoordinatePreimage_of_transposedSupport_disjoint_axis
300 
301 end
302 
303 end Stafford38.SpecializedNoncharacteristicEquality
304