Stafford38/EvolutionaryCorollary.lean

This project (Stafford38) · 1029fdb382eee06e7b59bcf32801f40931e2079a

1 module
2 public import Stafford38.EvolutionaryCertificate
3 public import Stafford38.EulerRootSeparation
4 public import Stafford38.Weyl.IteratedEquivalence
5 
6 @[expose] public section
7 
8 /-!
9 # Evolutionary Stafford corollary
10 
11 This file combines the algebraic certificate with Euler-root separation. It
12 contains only the unconditional ring-theoretic corollary needed by the paper.
13 -/
14 
15 namespace Stafford38.Evolution
16 
17 open scoped TensorProduct
18 open Stafford38.WeylIteratedEquivalence
19 
20 variable {D : Type*} [Ring D] {x p : D}
21 
22 /-- For a Weyl pair and a finite polynomial potential whose coefficients
23 commute separately with both generators, the two displayed right multiples
24 give a Stafford certificate with fixed left source `x ^ r`. -/
25 theorem evolution_stafford (k : Type*) [Field k] [CharZero k] [Algebra k D]
26     (hw : p * x = x * p + 1) {r : ℕ} (hr : 0 < r) (terms : List (D × ℕ))
27     (hx : ∀ t ∈ terms, t.1 * x = x * t.1)
28     (hp : ∀ t ∈ terms, t.1 * p = p * t.1) :
29     ∃ R S : D, (p ^ r - potentialSum x terms) * R
30         + x ^ r * (p ^ r - potentialSum x terms) * S = 1 := by
31   obtain ⟨α, β, hαβ⟩ := exists_bezout (k := k) (D := D) hr terms
32   exact evolution_stafford_certificate hw r terms hx hp α β hαβ
33 
34 /-- Exact paper-facing form. No commutativity among the coefficients is
35 assumed: each displayed coefficient need only commute with `x` and `p`. -/
36 theorem evolutionaryCorollary (k : Type*) [Field k] [CharZero k] [Algebra k D]
37     (hw : p * x = x * p + 1) {r : ℕ} (hr : 0 < r) (terms : List (D × ℕ))
38     (hx : ∀ t ∈ terms, t.1 * x = x * t.1)
39     (hp : ∀ t ∈ terms, t.1 * p = p * t.1)
40     {d : D} (hd : d = p ^ r - potentialSum x terms) :
41     ∃ R S : D, 1 = d * R + x ^ r * d * S := by
42   obtain ⟨R, S, h⟩ := evolution_stafford k hw hr terms hx hp
43   exact ⟨R, S, by simpa [hd] using h.symm⟩
44 
45 section TensorProduct
46 
47 variable (k B : Type*) [Field k] [CharZero k] [Ring B] [Algebra k B]
48 
49 local notation "W₁" => PresentedWeyl k 1
50 local notation "Dᵣ" => B ⊗[k] W₁
51 local notation "ιB" => (Algebra.TensorProduct.includeLeft : B →ₐ[k] Dᵣ)
52 local notation "ιW" => (Algebra.TensorProduct.includeRight : W₁ →ₐ[k] Dᵣ)
53 
54 /-- The evolutionary certificate in the literal tensor algebra
55 `B ⊗[k] A₁(k)`. This asserts no identification with a geometric ring of
56 differential operators. -/
57 theorem tensorEvolutionaryCorollary {r : ℕ} (hr : 0 < r)
58     (terms : List (B × ℕ)) {d : Dᵣ}
59     (hd : d = ιW (presentedMomentum k 0) ^ r -
60       potentialSum (ιW (presentedCoordinate k 0))
61         (terms.map fun t => (ιB t.1, t.2))) :
62     ∃ R S : Dᵣ, 1 = d * R + ιW (presentedCoordinate k 0) ^ r * d * S := by
63   let lifted : List (Dᵣ × ℕ) := terms.map fun t => (ιB t.1, t.2)
64   have hcomm : ∀ (b : B) (w : W₁), ιB b * ιW w = ιW w * ιB b := by
65     intro b w
66     simp [Algebra.TensorProduct.includeLeft_apply,
67       Algebra.TensorProduct.includeRight_apply,
68       Algebra.TensorProduct.tmul_mul_tmul]
69   have hx : ∀ t ∈ lifted,
70       t.1 * ιW (presentedCoordinate k 0) =
71         ιW (presentedCoordinate k 0) * t.1 := by
72     rintro t ht
73     rcases List.mem_map.mp ht with ⟨⟨b, n⟩, _, rfl⟩
74     exact hcomm b (presentedCoordinate k 0)
75   have hp : ∀ t ∈ lifted,
76       t.1 * ιW (presentedMomentum k 0) =
77         ιW (presentedMomentum k 0) * t.1 := by
78     rintro t ht
79     rcases List.mem_map.mp ht with ⟨⟨b, n⟩, _, rfl⟩
80     exact hcomm b (presentedMomentum k 0)
81   have hw : ιW (presentedMomentum k 0) * ιW (presentedCoordinate k 0) =
82       ιW (presentedCoordinate k 0) * ιW (presentedMomentum k 0) + 1 := by
83     calc
84       _ = ιW (presentedMomentum k 0 * presentedCoordinate k 0) :=
85         (map_mul ιW _ _).symm
86       _ = ιW (presentedCoordinate k 0 * presentedMomentum k 0 + 1) :=
87         congrArg ιW (presentedMomentum_mul_coordinate k 0)
88       _ = _ := by rw [map_add, map_mul, map_one]
89   exact evolutionaryCorollary
90     (D := Dᵣ) (x := ιW (presentedCoordinate k 0))
91     (p := ιW (presentedMomentum k 0)) k hw hr lifted hx hp hd
92 
93 end TensorProduct
94 
95 end Stafford38.Evolution
96 
97 #print axioms Stafford38.Evolution.evolutionaryCorollary
98 #print axioms Stafford38.Evolution.tensorEvolutionaryCorollary
99