Offline · exact source
Exact Lean source

TensorLocalUnitaryCoordinates

formalization/Cloning/TensorLocalUnitaryCoordinates.lean

Source hash: b39068945a5b27b046410ea512116e7d40a5c8ad9c83a1b324d787f451a06fbe

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.TensorLocalUnitaryPhysical
2import Cloning.PCTTangentChartSamples
3 
4/-! Exact coefficient matching between the physical local spectral chart and
5the normalized collective-root displacement. -/
6noncomputable section
7open scoped BigOperators InnerProductSpace Matrix Topology Matrix.Norms.L2Operator
8open NormedSpace Filter
9namespace Cloning.TensorLocalUnitary
10open Cloning.TensorLie Cloning.PCTLocalChart
11set_option backward.isDefEq.respectTransparency false
12set_option maxHeartbeats 1400000
13variable {n d : ℕ}
14 
15/-- The arbitrary-matrix collective action is genuinely complex linear. -/
16def collectiveMatrixLM : Matrix (Fin d) (Fin d) ℂ →ₗ[ℂ]
17    (TensorRegister n (Fin d) →L[ℂ] TensorRegister n (Fin d)) where
18  toFun := collectiveMatrix
19  map_add' := by intro X Y; simp [collectiveMatrix, add_smul, Finset.sum_add_distrib]
20  map_smul' := by
21    intro c X
22    simp only [collectiveMatrix, Matrix.smul_apply, smul_eq_mul, RingHom.id_apply,
23      Finset.smul_sum, mul_smul]
24 
25@[simp] theorem collectiveMatrixLM_apply (Y : Matrix (Fin d) (Fin d) ℂ) :
26    collectiveMatrixLM (n := n) Y = collectiveMatrix Y := rfl
27 
28@[simp] theorem collectiveMatrix_single (a b : Fin d) (c : ℂ) :
29    collectiveMatrix (n := n) (Matrix.single a b c) = c • collectiveGenerator n a b := by
30  simp [collectiveMatrix, Matrix.single, Matrix.of_apply, ite_and, ite_smul]
31 
32/-- A positive-root sum in literal one-particle matrix units. -/
33def rootSkewMatrix (c : PositiveRoot d → ℂ) : Matrix (Fin d) (Fin d) ℂ :=
34  ∑ a, (c a • Matrix.single a.val.2 a.val.1 1 -
35    star (c a) • Matrix.single a.val.1 a.val.2 1)
36 
37private theorem upperRootSum (c : PositiveRoot d → ℂ) (i j : Fin d) :
38    (∑ a : PositiveRoot d, c a • Matrix.single a.val.1 a.val.2 (1 : ℂ)) i j =
39      if hij : i < j then c ⟨(i,j),hij⟩ else 0 := by
40  simp only [Matrix.sum_apply, Matrix.smul_apply, smul_eq_mul]
41  by_cases hij : i < j
42  · rw [dif_pos hij, Finset.sum_eq_single (⟨(i,j),hij⟩ : PositiveRoot d)]
43    · simp
44    · intro a _ ha
45      have hne : ¬ (a.val.1 = i ∧ a.val.2 = j) := by
46        rintro ⟨h1,h2⟩
47        apply ha
48        exact Subtype.ext (Prod.ext h1 h2)
49      simp [Matrix.single, Matrix.of_apply, hne]
50    · simp
51  · rw [dif_neg hij]
52    apply Finset.sum_eq_zero
53    intro a _
54    have hne : ¬ (a.val.1 = i ∧ a.val.2 = j) := by
55      rintro ⟨h1,h2⟩
56      apply hij
57      simpa only [← h1, ← h2] using a.property
58    simp [Matrix.single, Matrix.of_apply, hne]
59 
60private theorem lowerRootSum (c : PositiveRoot d → ℂ) (i j : Fin d) :
61    (∑ a : PositiveRoot d, c a • Matrix.single a.val.2 a.val.1 (1 : ℂ)) i j =
62      if hji : j < i then c ⟨(j,i),hji⟩ else 0 := by
63  have hh := upperRootSum c j i
64  convert hh using 1
65  simp only [Matrix.sum_apply, Matrix.smul_apply, smul_eq_mul]
66  apply Finset.sum_congr rfl
67  intro a _
68  simp [Matrix.single, Matrix.of_apply, and_comm]
69 
70/-- The manuscript orbital generator is exactly the positive-root matrix sum. -/
71theorem orbitalGenerator_eq_rootSkewMatrix (p : Fin d → ℝ) (z : PositiveRoot d → ℂ) :
72    orbitalGenerator p z = rootSkewMatrix
73      (fun a => z a / (Real.sqrt (p a.val.1 - p a.val.2) : ℂ)) := by
74  ext i j
75  simp only [rootSkewMatrix, Finset.sum_sub_distrib, Matrix.sub_apply,
76    upperRootSum, lowerRootSum, orbitalGenerator, star_div₀, Complex.star_def, Complex.conj_ofReal]
77  by_cases hij : i < j
78  · simp [hij, not_lt_of_gt hij, neg_div]
79  · by_cases hji : j < i
80    · simp [hij,hji]
81    · simp [hij,hji]
82 
83/-- The finite-partition root parameter needed at physical sample scale `t`. -/
84def scaledRootParameter (p : Fin d → ℝ) (mu : Fin d → ℕ) (t : ℝ)
85    (z : PositiveRoot d → ℂ) : PositiveRoot d → ℂ :=
86  fun a => ((t * Real.sqrt ((mu a.val.1 : ℝ)-mu a.val.2) /
87    Real.sqrt (p a.val.1-p a.val.2) : ℝ) : ℂ) * z a
88 
89/-- Exact local-chart coefficient matching on the full physical tensor space. -/
90theorem collectiveMatrix_orbitalGenerator (p : Fin d → ℝ) (mu : Fin d → ℕ)
91    (hmu : ∀ a : PositiveRoot d, 0 < (mu a.val.1 : ℝ)-mu a.val.2)
92    (t : ℝ) (z : PositiveRoot d → ℂ) :
93    collectiveMatrix (n := n) (t • orbitalGenerator p z) =
94      rootGenerator (n := n) mu (scaledRootParameter p mu t z) := by
95  rw [orbitalGenerator_eq_rootSkewMatrix]
96  change collectiveMatrixLM (n := n) (t • rootSkewMatrix _) = _
97  rw [RCLike.real_smul_eq_coe_smul (K := ℂ)]
98  simp only [map_smul, rootSkewMatrix, map_sum, map_sub, collectiveMatrixLM_apply,
99    collectiveMatrix_single, one_smul, Finset.smul_sum, rootGenerator]
100  apply Finset.sum_congr rfl
101  intro a _
102  have hs : (Real.sqrt ((mu a.val.1 : ℝ)-mu a.val.2) : ℂ) ≠ 0 := by
103    exact_mod_cast (ne_of_gt (Real.sqrt_pos.mpr (hmu a)))
104  simp only [smul_sub, normalizedCreator, normalizedAnnihilator,
105    RCLike.real_smul_eq_coe_smul (K := ℂ), smul_smul, scaledRootParameter,
106    Complex.ofReal_mul, Complex.ofReal_div, Complex.ofReal_inv,
107    star_mul, star_div₀, Complex.star_def, Complex.conj_ofReal]
108  congr 1 <;> congr 1 <;> push_cast <;> field_simp [hs] <;> ac_rfl
109 
110/-- The actual tensor power of the physical chart rotation is exactly the
111normalized-root unitary used in the bosonic limit. -/
112theorem tensorOperator_local_orbital (p : Fin d → ℝ) (mu : Fin d → ℕ)
113    (hmu : ∀ a : PositiveRoot d, 0 < (mu a.val.1 : ℝ)-mu a.val.2)
114    (t : ℝ) (z : PositiveRoot d → ℂ) :
115    tensorOperator n (exp (t • orbitalGenerator p z)) =
116      exp (rootGenerator (n := n) mu (scaledRootParameter p mu t z)) := by
117  rw [tensorOperator_exp, collectiveMatrix_orbitalGenerator p mu hmu]
118 
119/-- At the physical sample scale, the coefficient is the square root of the
120empirical spectral gap divided by the base spectral gap. -/
121theorem scaledRootParameter_sampleScale (p : Fin d → ℝ) (mu : Fin d → ℕ)
122    (hmu : Antitone mu) (L : ℕ) (z : PositiveRoot d → ℂ) (a : PositiveRoot d) :
123    scaledRootParameter p mu (sampleScale L) z a =
124      ((Real.sqrt (((mu a.val.1 : ℝ)-mu a.val.2) / (L : ℝ)) /
125        Real.sqrt (p a.val.1-p a.val.2) : ℝ) : ℂ) * z a := by
126  have hnonneg : 0 ≤ (mu a.val.1 : ℝ)-mu a.val.2 :=
127    sub_nonneg.mpr (Nat.cast_le.mpr (hmu (le_of_lt a.property)))
128  simp only [scaledRootParameter, sampleScale, Real.sqrt_div hnonneg]
129  congr 2
130  ring
131 
132/-- Convergence of the actual local-chart orbital coefficients. The partition
133size is the physical sample size `L`; no cloning-ratio factor is introduced. -/
134theorem scaledRootParameter_tendsto (p : Fin d → ℝ)
135    (hp : ∀ a : PositiveRoot d, 0 < p a.val.1-p a.val.2)
136    (mu : ℕ → Fin d → ℕ) (hmu : ∀ N, Antitone (mu N)) (L : ℕ → ℕ)
137    (hfreq : Tendsto (fun N => fun a => (mu N a : ℝ)/(L N : ℝ)) atTop (𝓝 p))
138    (z : ℕ → PositiveRoot d → ℂ) (z₀ : PositiveRoot d → ℂ)
139    (hz : Tendsto z atTop (𝓝 z₀)) :
140    Tendsto (fun N => scaledRootParameter p (mu N) (sampleScale (L N)) (z N))
141      atTop (𝓝 z₀) := by
142  apply tendsto_pi_nhds.mpr
143  intro a
144  have hf := (tendsto_pi_nhds.mp hfreq a.val.1).sub
145    (tendsto_pi_nhds.mp hfreq a.val.2)
146  simp only [← sub_div] at hf
147  have hcoef := (hf.sqrt).div_const (Real.sqrt (p a.val.1-p a.val.2))
148  rw [div_self (ne_of_gt (Real.sqrt_pos.mpr (hp a)))] at hcoef
149  have hc := (Complex.continuous_ofReal.tendsto 1).comp hcoef
150  have h := hc.mul (tendsto_pi_nhds.mp hz a)
151  simpa only [Complex.ofReal_one, one_mul, scaledRootParameter_sampleScale p _ (hmu _) ] using h
152 
153end Cloning.TensorLocalUnitary