Documentation

CsdLean4.Mathlib.Analysis.CStarAlgebra.GroupCommutator

The group-commutator contraction: Solovay–Kitaev's shrinking lemma #

Category: 1-Mathlib (CSD-free; staged as a Mathlib-upstream candidate). BACKLOG #112, the first brick of #74's split.

Two gates near the identity have a group commutator quadratically nearer it. That quadratic gain is the entire engine of the Solovay–Kitaev recursion: one level of commutators turns an accuracy δ into an accuracy 2δ², and five words into one.

What is proved #

Honest scope #

⚠️ No gate counts, and no algorithm. This is the shrinking lemma alone. The recursion that consumes it (#115), the ε-net it starts from (#113) and the decomposition that produces the commutators in the first place (#114) are separate rows, and the O(log^c(1/ε)) bound is #116.

⚠️ Constants are the stated ones, not optimal. 2 in the contraction and 4 in the perturbation are what the telescoping gives; no attempt is made to sharpen either, and the Solovay–Kitaev exponent does not depend on them.

⚠️ The quadratic gain needs δ < 1/2. Above that the bound is weaker than the input and says nothing — which is why the algorithm needs a base accuracy from the net before it can recurse.

References: C. Dawson, M. Nielsen, The Solovay-Kitaev algorithm, Quantum Inf. Comput. 6 (2006) 81, Lemma 2 and §3; M. Nielsen, I. Chuang, Quantum Computation and Quantum Information, Appendix 3; Mathlib.Analysis.CStarAlgebra.Basic (CStarRing.norm_mem_unitary_mul, CStarRing.norm_mul_mem_unitary); specs/BACKLOG.md #112, #74, #113, #114, #115, #116.

The commutator sees only the distance to the identity #

theorem norm_mul_sub_mul_comm_le {E : Type u_1} [NormedRing E] (V W : E) :
‖V * W - W * V‖ ≤ 2 * ‖V - 1‖ * ‖W - 1‖

★ In any normed ring, the commutator is quadratic in the distance to the identity. VW − WV = (V − 1)(W − 1) − (W − 1)(V − 1), so two elements near 1 barely fail to commute.

The shrinking lemma #

theorem CStarRing.groupCommutator_sub_one_eq {E : Type u_1} [NormedRing E] [StarRing E] {V W : E} (hV : V ∈ unitary E) (hW : W ∈ unitary E) :
V * W * star V * star W - 1 = (V * W - W * V) * (star V * star W)

The group commutator of two unitaries, written out.

theorem CStarRing.norm_groupCommutator_sub_one_le {E : Type u_1} [NormedRing E] [StarRing E] [CStarRing E] {V W : E} (hV : V ∈ unitary E) (hW : W ∈ unitary E) :
‖V * W * star V * star W - 1‖ ≤ 2 * ‖V - 1‖ * ‖W - 1‖

★★ The shrinking lemma. Two unitaries within ‖V − 1‖ and ‖W − 1‖ of the identity have a group commutator within 2‖V − 1‖·‖W − 1‖ of it.

Unitarity is used exactly twice: VWV⋆W⋆ − 1 = (VW − WV)(V⋆W⋆), and the trailing unitary drops out of the norm.

theorem CStarRing.norm_groupCommutator_sub_one_le_two_mul_sq {E : Type u_1} [NormedRing E] [StarRing E] [CStarRing E] {V W : E} (hV : V ∈ unitary E) (hW : W ∈ unitary E) {δ : ℝ} (hV' : ‖V - 1‖ ≤ δ) (hW' : ‖W - 1‖ ≤ δ) :
‖V * W * star V * star W - 1‖ ≤ 2 * δ ^ 2

★★ The shrinking lemma as the recursion uses it: both factors within δ of the identity gives 2δ².

theorem CStarRing.norm_groupCommutator_sub_one_lt {E : Type u_1} [NormedRing E] [StarRing E] [CStarRing E] {V W : E} (hV : V ∈ unitary E) (hW : W ∈ unitary E) {δ : ℝ} (hpos : 0 < δ) (hhalf : δ < 1 / 2) (hV' : ‖V - 1‖ ≤ δ) (hW' : ‖W - 1‖ ≤ δ) :
‖V * W * star V * star W - 1‖ < δ

★★ The contraction. Below δ = 1/2 the commutator of two δ-close unitaries is strictly closer to the identity than its factors were — the step that makes the Solovay–Kitaev iteration converge, and the reason the algorithm needs a base accuracy before it can recurse.

Stability: the error budget the recursion needs #

theorem CStarRing.norm_mul_sub_mul_le {E : Type u_1} [NormedRing E] [StarRing E] [CStarRing E] {A B A' B' : E} (hB : B ∈ unitary E) (hA' : A' ∈ unitary E) :
‖A * B - A' * B'‖ ≤ ‖A - A'‖ + ‖B - B'‖

★ A product of unitaries is stable. Replacing each factor by an approximation moves the product by at most the sum of the two errors.

theorem CStarRing.norm_groupCommutator_sub_groupCommutator_le {E : Type u_1} [NormedRing E] [StarRing E] [CStarRing E] {V W V' W' : E} (hV : V ∈ unitary E) (hW : W ∈ unitary E) (hV' : V' ∈ unitary E) (hW' : W' ∈ unitary E) {ε : ℝ} (hVe : ‖V - V'‖ ≤ ε) (hWe : ‖W - W'‖ ≤ ε) :
‖V * W * star V * star W - V' * W' * star V' * star W'‖ ≤ 4 * ε

★★ The commutator of two ε-approximations is a 4ε-approximation of the commutator. The four factors each move by at most ε — the adjoints by norm_star — and the product is stable, so the error budget the Solovay–Kitaev recursion carries is linear in the input error.