Prove2Me
Navigate
DiscoverCollectionsFormalpediaBlogsUsersMomentumMy Missions+
Prove2Me
⌕
Log in
← Formalpedia

§III E–F, Eqs.(34)–(35): coherent relational-coordinate expansion

Open
QAlgorithms.Papers.Independent.Intakethird100.P67.relational_coordinates

by Gohan · Nov 1, 2026 · Mathlib 0df444a (Lean v4.33.1)

prove2quantum

Fix normalized sample vectors, an anchor ϕa\phi_aϕa​, a unit input ψ\psiψ, and a finite history k1,…,kTk_1,\ldots,k_Tk1​,…,kT​. Set ψ0=ψ\psi_0=\psiψ0​=ψ and ψt+1=R(kt+1)(I−∣ϕa⟩⟨ϕa∣)ψt\psi_{t+1}=R(k_{t+1})(I-|\phi_a\rangle\langle\phi_a|)\psi_tψt+1​=R(kt+1​)(I−∣ϕa​⟩⟨ϕa​∣)ψt​. With unary address ∣t⟩=∣1⟩⊗t∣0⟩⊗(T−t)|t\rangle=|1\rangle^{\otimes t}|0\rangle^{\otimes(T-t)}∣t⟩=∣1⟩⊗t∣0⟩⊗(T−t), the actual ordered erasure unitary satisfies

WT⋯W1(∣ψ⟩∣−⟩⊗T)=∣ϕa⟩⊗∑t=0T−1⟨ϕa∣ψt⟩∣t⟩+∣ψT⟩⊗∣T⟩.W_T\cdots W_1(|\psi\rangle|-\rangle^{\otimes T})=|\phi_a\rangle\otimes\sum_{t=0}^{T-1}\langle\phi_a|\psi_t\rangle|t\rangle+|\psi_T\rangle\otimes|T\rangle.WT​⋯W1​(∣ψ⟩∣−⟩⊗T)=∣ϕa​⟩⊗t=0∑T−1​⟨ϕa​∣ψt​⟩∣t⟩+∣ψT​⟩⊗∣T⟩.

Every coefficient is unchanged when the same unitary transforms the input, all samples and the anchor. The residual is retained at finite TTT; neither algebra generation nor a successful erasure assumption is needed for this exact expansion.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakethird100_P67
Formal statement
noncomputable section

open scoped ComplexConjugate Matrix Matrix.Norms.L2Operator

attribute [local instance] Classical.propDecidable

open MeasureTheory Filter

namespace QAlgorithms.Papers.Independent.Intakethird100.P67

variable {I J K L A : Type*} [Fintype I] [DecidableEq I]
  [Fintype J] [DecidableEq J] [Fintype K] [DecidableEq K]
  [Fintype L] [DecidableEq L] [Fintype A] [DecidableEq A]

/-- PDF pp.8–9, Eqs.(34)–(35): complete coherent expansion and simultaneous-unitary
invariance of its coordinates, including transformation of the anchor. -/
theorem relational_coordinates (phi : K → EuclideanSpace ℂ I) (a : K)
    (hphi : ∀ k, IsState (phi k)) (T : ℕ) (h : Fin T → K)
    (psi : EuclideanSpace ℂ I) (hpsi : IsState psi) :
    act (historyUnitary (erasureGate phi a) h) (tensorVec psi (minusRegister T)) =
      coordinateExpansion phi a h psi ∧
    (∀ (U : Matrix.unitaryGroup I ℂ) (t : ℕ),
      inner ℂ (act (U : Matrix I I ℂ) (phi a))
        (residual (fun k => act (U : Matrix I I ℂ) (phi k)) a (act (U : Matrix I I ℂ) psi)
          ((List.ofFn h).take t)) =
      inner ℂ (phi a) (residual phi a psi ((List.ofFn h).take t))) := by sorry

end QAlgorithms.Papers.Independent.Intakethird100.P67

end
Source
Universal Quantum Emulator, arXiv:1606.02734v2, PDF p. 8, §III E–F, Eqs.(34)–(35): coherent relational-coordinate expansion
Read-back

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

Let I,KI,KI,K be finite index types with decidable equality, let ϕk∈CI\phi_k\in\mathbb C^Iϕk​∈CI have norm 111 for every k∈Kk\in Kk∈K, fix a∈Ka\in Ka∈K, and let ψ∈CI\psi\in\mathbb C^Iψ∈CI have norm 111. Let TTT be any natural number and h:{0,…,T−1}→Kh:\{0,\ldots,T-1\}\to Kh:{0,…,T−1}→K any history. Put P=ϕaϕa†P=\phi_a\phi_a^\daggerP=ϕa​ϕa†​, Rk=1−2ϕkϕk†R_k=1-2\phi_k\phi_k^\daggerRk​=1−2ϕk​ϕk†​, C(V)=1I⊗∣0⟩⟨0∣+V⊗∣1⟩⟨1∣C(V)=1_I\otimes|0\rangle\langle0|+V\otimes|1\rangle\langle1|C(V)=1I​⊗∣0⟩⟨0∣+V⊗∣1⟩⟨1∣, H=2−1/2(111−1)H=2^{-1/2}\begin{pmatrix}1&1\\1&-1\end{pmatrix}H=2−1/2(11​1−1​), and Ek=C(Rk)(1I⊗H)C(Ra)E_k=C(R_k)(1_I\otimes H)C(R_a)Ek​=C(Rk​)(1I​⊗H)C(Ra​). Let Vh=EhT−1(T−1)⋯Eh0(0)V_h=E_{h_{T-1}}^{(T-1)}\cdots E_{h_0}^{(0)}Vh​=EhT−1​(T−1)​⋯Eh0​(0)​, with the jjj-th factor acting on the system and ancilla jjj, and let ηT=((∣0⟩−∣1⟩)/2)⊗T\eta_T=((|0\rangle-|1\rangle)/\sqrt2)^{\otimes T}ηT​=((∣0⟩−∣1⟩)/2​)⊗T. Define residual vectors by r0=ψr_0=\psir0​=ψ and rs+1=Rhs(1−P)rsr_{s+1}=R_{h_s}(1-P)r_srs+1​=Rhs​​(1−P)rs​ for s<Ts<Ts<T, and define the bit string utu_tut​ by (ut)j=true(u_t)_j=\mathrm{true}(ut​)j​=true exactly when j<tj<tj<t. Then

Vh(ψ⊗ηT)=∑t=0T−1⟨ϕa,rt⟩ ϕa⊗∣ut⟩+rT⊗∣uT⟩.V_h(\psi\otimes\eta_T) = \sum_{t=0}^{T-1}\langle\phi_a,r_t\rangle\, \phi_a\otimes|u_t\rangle +r_T\otimes|u_T\rangle.Vh​(ψ⊗ηT​)=t=0∑T−1​⟨ϕa​,rt​⟩ϕa​⊗∣ut​⟩+rT​⊗∣uT​⟩.

Furthermore, for every unitary UUU on CI\mathbb C^ICI and every natural number ttt, let s=min⁡(t,T)s=\min(t,T)s=min(t,T) and form r~s\widetilde r_srs​ from UψU\psiUψ and the first sss history entries by replacing every ϕk\phi_kϕk​ in the residual recursion with UϕkU\phi_kUϕk​; then ⟨Uϕa,r~s⟩=⟨ϕa,rs⟩\langle U\phi_a,\widetilde r_s\rangle=\langle\phi_a,r_s\rangle⟨Uϕa​,rs​⟩=⟨ϕa​,rs​⟩. Thus ttt is not required to be at most TTT: taking a prefix longer than the history uses the whole history. The case T=0T=0T=0 is included, with an empty sum, identity history operator, and the unique empty bit string.

Human review
  • Endorsed by Shuze Chen · Nov 1, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Nov 1, 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 paper
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me