Offline · exact source
Exact Lean source

TensorLocalUnitaryTail

formalization/Cloning/TensorLocalUnitaryTail.lean

Source hash: 27fe13e9128fc8babc9f50794df61f84608a1df97f7aec71bb04b6334db5eb9e

Full source copied without mathematical changes from the snapshot whose input hash matches the passing audit. Select a line number for a stable source pointer.

The declarations belong to the compiled inventory covered by the project’s shared axiom audit. That audit records an aggregate union, without attributing axioms to individual declarations.

Declarations in this module
1import Cloning.TensorLocalUnitaryGenerator
2import Mathlib.Topology.Algebra.Order.Floor
3 
4/-! Uniform decay of the physical finite-cutoff Taylor remainder. -/
5noncomputable section
6open scoped BigOperators Topology
7open Filter NormedSpace
8open Cloning.TensorLie
9namespace Cloning.TensorLocalUnitary
10set_option maxHeartbeats 1200000
11set_option backward.isDefEq.respectTransparency false
12 
13private theorem tendsto_succ_mul_pow_div_factorial (c : ℝ) :
14    Tendsto (fun m : ℕ => ((m : ℝ)+1)*c^m/(m.factorial : ℝ)) atTop (𝓝 0) := by
15  have h0 := FloorSemiring.tendsto_pow_div_factorial_atTop c
16  have h1 := FloorSemiring.tendsto_mul_pow_div_factorial_sub_atTop (1 : ℝ) c 1
17  have h := h0.add h1
18  simp only [one_mul, zero_add] at h
19  apply h.congr'
20  filter_upwards [eventually_ge_atTop (1 : ℕ)] with m hm
21  have he : m = (m-1)+1 := by omega
22  have hf : (m.factorial : ℝ) = (m : ℝ)*((m-1).factorial : ℝ) := by
23    conv_lhs => rw [he, Nat.factorial_succ]
24    push_cast
25    rw [← Nat.cast_add_one, ← he]
26  have hf0 : ((m-1).factorial : ℝ) ≠ 0 := by positivity
27  have hm0 : (m : ℝ) ≠ 0 := by exact_mod_cast (by omega : m ≠ 0)
28  rw [hf]
29  field_simp
30  <;> ring
31 
32/-- The square-root growth per generator step is dominated by the factorial
33Taylor denominator. This is the analytic-vector estimate used uniformly in a
34bounded displacement window. -/
35theorem tendsto_sqrt_growth_div_factorial (B : ℝ) (hB : 0 ≤ B) :
36    Tendsto (fun m : ℕ => (B * Real.sqrt ((m : ℝ)+1))^(m+1) / (m.factorial : ℝ))
37      atTop (𝓝 0) := by
38  let q := B^2 * Real.exp 1
39  have hq : 0 ≤ q := by dsimp [q]; positivity
40  have hlim : Tendsto (fun m : ℕ => q * (((m : ℝ)+1)*q^m/(m.factorial : ℝ)))
41      atTop (𝓝 0) := by
42    simpa using (tendsto_succ_mul_pow_div_factorial q).const_mul q
43  have hsq (m : ℕ) :
44      ((B * Real.sqrt ((m : ℝ)+1))^(m+1) / (m.factorial : ℝ))^2 ≤
45        q * (((m : ℝ)+1)*q^m/(m.factorial : ℝ)) := by
46    have hm : 0 ≤ (m : ℝ)+1 := by positivity
47    have hf : (0 : ℝ) < m.factorial := by positivity
48    have he := Real.pow_div_factorial_le_exp ((m : ℝ)+1) hm m
49    have heq : Real.exp ((m : ℝ)+1) = (Real.exp 1)^(m+1) := by
50      simpa using Real.exp_nat_mul 1 (m+1)
51    rw [heq] at he
52    calc
53      _ = (B^2)^m * B^2 * ((m : ℝ)+1) /
54          (m.factorial : ℝ) * (((m : ℝ)+1)^m/(m.factorial : ℝ)) := by
55        rw [div_pow, ← pow_mul, mul_comm (m+1) 2, pow_mul, mul_pow,
56          Real.sq_sqrt hm, mul_pow, pow_succ, pow_succ]
57        ring
58      _ ≤ (B^2)^m * B^2 * ((m : ℝ)+1) /
59          (m.factorial : ℝ) * (Real.exp 1)^(m+1) :=
60        mul_le_mul_of_nonneg_left he (by positivity)
61      _ = _ := by dsimp [q]; rw [mul_pow, pow_succ]; ring
62  have hs : Tendsto (fun m : ℕ =>
63      ((B * Real.sqrt ((m : ℝ)+1))^(m+1) / (m.factorial : ℝ))^2) atTop (𝓝 0) :=
64    squeeze_zero (fun _ => sq_nonneg _) hsq hlim
65  have h := hs.sqrt
66  have heq : (fun m : ℕ => Real.sqrt
67      (((B * Real.sqrt ((m : ℝ)+1))^(m+1) / (m.factorial : ℝ))^2)) =
68      (fun m : ℕ => (B * Real.sqrt ((m : ℝ)+1))^(m+1) / (m.factorial : ℝ)) := by
69    funext m
70    exact Real.sqrt_sq (by positivity)
71  rw [heq, Real.sqrt_zero] at h
72  exact h
73 
74/-- A single scalar envelope for every displacement in a fixed sum-norm ball. -/
75def uniformTaylorBound (B : ℝ) (R d m : ℕ) : ℝ :=
76  ((2*B) * Real.sqrt ((((R+(m+1)*d : ℕ) : ℝ)+1)*2))^(m+1) / (m.factorial : ℝ)
77 
78theorem uniformTaylorBound_nonneg (B : ℝ) (hB : 0 ≤ B) (R d m : ℕ) :
79    0 ≤ uniformTaylorBound B R d m := by unfold uniformTaylorBound; positivity
80 
81theorem uniformTaylorBound_tendsto (B : ℝ) (hB : 0 ≤ B) (R d : ℕ) :
82    Tendsto (uniformTaylorBound B R d) atTop (𝓝 0) := by
83  let C := 2*B*Real.sqrt (2*((R : ℝ)+(d : ℝ)+1))
84  have hC : 0 ≤ C := by dsimp [C]; positivity
85  apply squeeze_zero (uniformTaylorBound_nonneg B hB R d)
86    (fun m => ?_) (tendsto_sqrt_growth_div_factorial C hC)
87  unfold uniformTaylorBound
88  apply div_le_div_of_nonneg_right _ (Nat.cast_nonneg _)
89  apply pow_le_pow_left₀ (by positivity)
90  calc
91    _ ≤ (2*B) * Real.sqrt (2*((R : ℝ)+(d : ℝ)+1)*((m : ℝ)+1)) := by
92      apply mul_le_mul_of_nonneg_left (Real.sqrt_le_sqrt _) (by positivity)
93      push_cast
94      nlinarith [mul_nonneg (Nat.cast_nonneg (α := ℝ) R) (Nat.cast_nonneg (α := ℝ) m)]
95    _ = C * Real.sqrt ((m : ℝ)+1) := by
96      rw [Real.sqrt_mul (by positivity)]
97      dsimp [C]
98      ring
99 
100/-- Uniform approximation of the actual physical unitary on the complete unit
101ball of a fixed cyclic cutoff, simultaneously over every bounded displacement.
102The Taylor order is chosen before the partition size. -/
103theorem exists_uniform_physical_taylor_order {d : ℕ}
104    (mu : ℕ → Fin d → ℕ) (hmu : ∀ N, Antitone (mu N))
105    (δ : ℕ → ℝ) (hδ : Tendsto δ atTop atTop)
106    (hgap : ∀ᶠ N in atTop, ∀ a : PositiveRoot d,
107      δ N ≤ (mu N a.val.1 : ℝ) - mu N a.val.2)
108    (B : ℝ) (hB : 0 ≤ B) (R : ℕ) (ε : ℝ) (hε : 0 < ε) :
109    ∃ m : ℕ, ∀ᶠ N in atTop, ∀ (z : PositiveRoot d → ℂ)
110      (x : TensorRegister (∑ j, mu N j) (Fin d)),
111      (∑ a, ‖z a‖) ≤ B →
112      x ∈ cyclicCutoff (partitionHighestTensor (mu N) (hmu N)) (R : ℤ) →
113      ‖x‖ ≤ 1 →
114      ‖exp (rootGenerator (n := ∑ j, mu N j) (mu N) z) x -
115        ∑ j ∈ Finset.range (m+1), ((j.factorial : ℝ)⁻¹) •
116          ((rootGenerator (n := ∑ j, mu N j) (mu N) z ^ j) x)‖ < ε := by
117  obtain ⟨m, hm⟩ := ((uniformTaylorBound_tendsto B hB R d).eventually_lt_const hε).exists
118  refine ⟨m, ?_⟩
119  have hlarge := hδ.eventually (eventually_ge_atTop
120    (2 * (((R+(m+1)*d : ℕ) : ℝ)+1)))
121  filter_upwards [hgap, hlarge] with N hg hL
122  intro z x hz hx hn
123  apply lt_of_le_of_lt _ hm
124  have hg' (a : PositiveRoot d) := hL.trans (hg a)
125  apply (exp_rootGenerator_taylor_remainder
126    (partitionHighestTensor (mu N) (hmu N)) (mu N)
127    (partitionHighestTensor_cartan (mu N) (hmu N))
128    (partitionHighestTensor_raising_zero (mu N) (hmu N)) z R m hg' hx).trans
129  unfold uniformTaylorBound
130  apply div_le_div_of_nonneg_right _ (Nat.cast_nonneg _)
131  apply (mul_le_mul_of_nonneg_left hn (by positivity)).trans
132  rw [mul_one]
133  apply pow_le_pow_left₀ (by positivity)
134  exact mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hz (by norm_num))
135    (Real.sqrt_nonneg _)
136 
137end Cloning.TensorLocalUnitary