Stafford38/FixedSourceAssembly.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.FixedSourceStatement
3 
4 @[expose] public section
5 
6 namespace Stafford38.FixedSource
7 
8 open Stafford38
9 open Stafford38.UniversalAssembly
10 open Stafford38.CharacteristicCanonicalCertificate
11 open Stafford38.CharacteristicInitialIdeal
12 open Stafford38.WeylEulerResidue
13 open Stafford38.WeylIteratedEquivalence
14 open Stafford38.WeylMonicNormalization
15 open Stafford38.WeylPBWMonicBridge
16 open Stafford38.WeylSymplectic
17 open Stafford38.WeylLeadingSymbol
18 open Stafford38.WeylFiltration
19 open Stafford
20 
21 noncomputable section
22 universe u
23 
24 theorem universalFixedSourceStatement_of_canonicalSupportVanishing
25     (hvanish : CanonicalSupportVanishing.{u}) :
26     UniversalFixedSourceStatement.{u} := by
27   intro k _ _ n d hd
28   rcases exists_top_bernstein_piece k hd with ⟨N, hpiece, hprincipal⟩
29   have hdegree : bernsteinDegree k d = N :=
30     bernsteinDegree_eq_of_piece_of_principal_ne_zero k hpiece hprincipal
31   by_cases hNzero : N = 0
32   · have hpiece0 : d ∈ bernsteinPiece k (n + 1) 0 := by
33       simpa [hNzero] using hpiece
34     rcases eq_algebraMap_of_mem_bernsteinPiece_zero k hpiece0 with ⟨c, rfl⟩
35     have hc : c ≠ 0 := by
36       intro hc
37       subst c
38       simp at hd
39     let ell : PresentedWeyl k (n + 1) := presentedCoordinate k n
40     have hell : IsLinearWeylCoordinate k n ell := by
41       refine ⟨1, 1, ?_, ?_, ?_, ?_, ?_⟩
42       · simp
43       · simp
44       · simp
45       · simp
46       · change freeWeylGenerator (standardForm k (n + 1))
47             (.inl (0 : Fin (n + 1))) =
48           freeWeylLinearCombination 1
49             (freeWeylGenerator (standardForm k (n + 1)))
50             (.inl (0 : Fin (n + 1)))
51         exact (freeWeylLinearCombination_one (standardForm k (n + 1))
52           (.inl (0 : Fin (n + 1)))).symm
53 
54     refine ⟨ell, algebraMap k _ c⁻¹, 0, hell, ?_⟩
55     simp only [hdegree, hNzero, pow_zero]
56     rw [← map_mul, mul_inv_cancel₀ hc, map_one]
57     simp
58   · have hN : 0 < N := Nat.pos_of_ne_zero hNzero
59     rcases exists_normalized_symplectic_image k
60         (.inr ⟨0, Nat.succ_pos n⟩) hpiece (principal_isHomogeneous k d)
61         hprincipal hN with
62       ⟨M, Ninv, c, hM, hNinv, hMN, hNM, hc, hpiece', haxis⟩
63     let e := standardSymplecticAlgEquivOfInverse k M Ninv hM hNinv hMN hNM
64     let d' : PresentedWeyl k (n + 1) := normalizedSymplecticImage k M hM c d
65     have hd' : IsPBWMonicAt k (.inr (0 : Fin (n + 1))) N d' := by
66       refine ⟨hpiece', ?_⟩
67       rw [← coeff_principal_pure_eq_normalForm k]
68       rw [← coeff_axisPolynomial k]
69       exact haxis
70     have hsupp := hvanish k n N d' hN hd'
71     rcases exists_fixedSource_certificate_of_orderCharacteristicSupport_eq_empty
72       k n N d' hsupp with ⟨R, S, hcert⟩
73     let a : PresentedWeyl k (n + 1) := algebraMap k _ c⁻¹
74     have hd'eq : d' = a * e d := by
75       simp [d', a, e, normalizedSymplecticImage, Algebra.smul_def,
76         standardSymplecticAlgEquivOfInverse]
77       all_goals rfl
78     have ha_comm : ∀ z : PresentedWeyl k (n + 1), a * z = z * a := by
79       intro z
80       exact Algebra.commutes c⁻¹ z
81     have hchartCert :
82         (1 : PresentedWeyl k (n + 1)) = e d * (a * R) +
83           (presentedCoordinate k n) ^ N * e d * (a * S) := by
84       rw [hcert, hd'eq]
85       rw [ha_comm (e d)]
86       simp only [mul_assoc]
87     let ell : PresentedWeyl k (n + 1) := e.symm (presentedCoordinate k n)
88     have hell : IsLinearWeylCoordinate k n ell := by
89       refine ⟨M, Ninv, hM, hNinv, hMN, hNM, ?_⟩
90       change (standardSymplecticAlgEquivOfInverse k M Ninv hM hNinv hMN hNM).symm
91           (freeWeylGenerator (standardForm k (n + 1))
92             (.inl (0 : Fin (n + 1)))) =
93         freeWeylLinearCombination Ninv
94           (freeWeylGenerator (standardForm k (n + 1)))
95           (.inl (0 : Fin (n + 1)))
96       exact standardSymplecticAlgEquivOfInverse_symm_generator
97         k M Ninv hM hNinv hMN hNM (.inl (0 : Fin (n + 1)))
98     refine ⟨ell, e.symm (a * R), e.symm (a * S), hell, ?_⟩
99     have ht := congrArg e.symm hchartCert
100     simpa [ell, hdegree] using ht
101 
102 /-- Pointwise form of the exact-degree fixed-source theorem. -/
103 theorem fixedSource_positive
104     (hvanish : CanonicalSupportVanishing.{u})
105     (k : Type u) [Field k] [CharZero k] (n : ℕ)
106     (d : PresentedWeyl k (n + 1)) (hd : d ≠ 0) :
107     ∃ ell R S : PresentedWeyl k (n + 1),
108       IsLinearWeylCoordinate k n ell ∧
109         (1 : PresentedWeyl k (n + 1)) =
110           d * R + ell ^ bernsteinDegree k d * d * S :=
111   universalFixedSourceStatement_of_canonicalSupportVanishing hvanish k n d hd
112 
113 #print axioms universalFixedSourceStatement_of_canonicalSupportVanishing
114 #print axioms fixedSource_positive
115 
116 end
117 end Stafford38.FixedSource
118