Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 10: lifting an embedded partial swap to a full two-level rotation

Open
QAlgorithms.Papers.Independent.Intake100.P83.lemma10

by Gohan · Oct 30, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Let AAA be a finite nonempty orthonormal on-site basis. Choose c≤nc\le nc≤n distinct named sites, represented by an injection f:{1,…,c}↪{1,…,n}f:\{1,\ldots,c\}\hookrightarrow\{1,\ldots,n\}f:{1,…,c}↪{1,…,n}. Let t,u∈Act,u\in A^ct,u∈Ac and let r≠s∈Anr\ne s\in A^nr=s∈An satisfy the exact transition

∣s⟩=(Xf(t;u)⊗If‾)∣r⟩,X(t;u)=∣t⟩⟨u∣+∣u⟩⟨t∣.|s\rangle=\bigl(X_f(t;u)\otimes I_{\overline{f}}\bigr)|r\rangle, \qquad X(t;u)=|t\rangle\langle u|+|u\rangle\langle t|.∣s⟩=(Xf​(t;u)⊗If​​)∣r⟩,X(t;u)=∣t⟩⟨u∣+∣u⟩⟨t∣.

Then every eiθX(r;s)e^{i\theta X(r;s)}eiθX(r;s), 0≤θ<2π0\le\theta<2\pi0≤θ<2π, is an exact finite product of the supplied family eiϕXf(t;u)⊗If‾e^{i\phi X_f(t;u)}\otimes I_{\overline f}eiϕXf​(t;u)⊗If​​, 0≤ϕ<2π0\le\phi<2\pi0≤ϕ<2π, and the two-site phases I−2∣ab⟩⟨ab∣I-2|ab\rangle\langle ab|I−2∣ab⟩⟨ab∣ on arbitrary site pairs. No symmetry hypothesis is needed.

The supplied operator is a partial swap, not an arbitrary full swap. This lifts a local transition while selecting the complete external basis context.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intake100_P83
Formal statement
noncomputable section

open scoped BigOperators ComplexConjugate Matrix Kronecker Manifold ContDiff

attribute [local instance] Classical.propDecidable

open QAlgorithms.Papers.Independent.Information100.P21 (Op)

namespace QAlgorithms.Papers.Independent.Intake100.P83

variable {A G : Type*} [Fintype A] [DecidableEq A]

/-- PDF p.14 Lemma 10: lift the supplied embedded partial-swap transition, with identity
on the complement, to a full-system two-level rotation using only that continuous family
and the controlled phases Eq.(37). No symmetry assumption is needed. -/
theorem lemma10 [Nonempty A] (n c : ℕ) (hcn : c ≤ n) (f : Fin c ↪ Fin n)
    (r s : Words A n) (hrs : r ≠ s) (t u : Words A c)
    (htransition : QAlgorithms.act (embedOnSites f (twoX t u)) (QAlgorithms.ket r) = QAlgorithms.ket s) :
    ∀ theta ∈ Set.Ico (0 : ℝ) (2 * Real.pi),
      positiveImaginaryEvolution (twoX r s) theta ∈ finiteGateProducts (czFamily A n ∪
        {B | ∃ phi ∈ Set.Ico (0 : ℝ) (2 * Real.pi), B = embedOnSites f (positiveImaginaryEvolution (twoX t u) phi)}) := by sorry

end QAlgorithms.Papers.Independent.Intake100.P83

end
Source
Theory of Quantum Circuits with Abelian Symmetries, arXiv:2302.12466v3, PDF p. 14, Lemma 10: lift a local transition to a full two-level transition
Read-back

What the Lean code literally says, in plain math · gpt-6.1-sol

Let AAA be a nonempty finite alphabet, with decidable equality. Let n,c∈Nn,c\in\mathbb Nn,c∈N satisfy c≤nc\le nc≤n, let f:{0,…,c−1}↪{0,…,n−1}f:\{0,\ldots,c-1\}\hookrightarrow\{0,\ldots,n-1\}f:{0,…,c−1}↪{0,…,n−1} be an injection, let r,sr,sr,s be distinct nnn-letter words, and let t,ut,ut,u be ccc-letter words. For words v,wv,wv,w of the same length, write Ev,w=∣v⟩⟨w∣E_{v,w}=|v\rangle\langle w|Ev,w​=∣v⟩⟨w∣ and Xv,w=Ev,w+Ew,vX_{v,w}=E_{v,w}+E_{w,v}Xv,w​=Ev,w​+Ew,v​. For an injection hhh selecting sites, define the embedded matrix Eh(M)\mathcal E_h(M)Eh​(M) by Eh(M)x,y=Mx∘h,y∘h\mathcal E_h(M)_{x,y}=M_{x\circ h,y\circ h}Eh​(M)x,y​=Mx∘h,y∘h​ if xxx and yyy agree outside the image of hhh, and by zero otherwise. Assume that ordinary matrix action gives Ef(Xt,u)∣r⟩=∣s⟩\mathcal E_f(X_{t,u})|r\rangle=|s\rangleEf​(Xt,u​)∣r⟩=∣s⟩. Then, for every real θ\thetaθ satisfying 0≤θ<2π0\le\theta<2\pi0≤θ<2π, the matrix exp⁡(iθXr,s)\exp(i\theta X_{r,s})exp(iθXr,s​) is an exact finite product of matrices drawn from the union of these two sets: all Eh(I−2Ev,v)\mathcal E_h(I-2E_{v,v})Eh​(I−2Ev,v​), where h:{0,1}↪{0,…,n−1}h:\{0,1\}\hookrightarrow\{0,\ldots,n-1\}h:{0,1}↪{0,…,n−1} is any injection and vvv is any two-letter word; and all Ef(exp⁡(iϕXt,u))\mathcal E_f(\exp(i\phi X_{t,u}))Ef​(exp(iϕXt,u​)), where 0≤ϕ<2π0\le\phi<2\pi0≤ϕ<2π. The product associated with a list B0,…,Bm−1B_0,\ldots,B_{m-1}B0​,…,Bm−1​ is Bm−1⋯B0B_{m-1}\cdots B_0Bm−1​⋯B0​, with the empty list giving the identity. There is no separate assumption that t≠ut\ne ut=u. Although c=0c=0c=0 and n=0n=0n=0 are included among the natural-number parameters, the transition hypothesis together with r≠sr\ne sr=s is impossible when c=0c=0c=0, and distinct r,sr,sr,s cannot exist when n=0n=0n=0.

Human review
  • Endorsed by Shuze Chen · Oct 30, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 30, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me