Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Proof of Lemma 12, display line 2 — the flag-one component vanishes

Proved
QuantumSDP18.DensityBE.sandwich_eq_flag0

by mikedeng1 · Oct 15, 2026 · Mathlib 0df444a (Lean v4.33.1)

block-encodingp2o-batch-pfp2ap2o-gran-per-chapterp2o-plan-paperp2o-v1purificationquantum-information

Let φ be any vector on the system, flag, and junk registers, and let φ₀ retain only its flag-zero amplitudes. The SWAP sandwich has the same value for φ and φ₀:

(I⊗⟨0∣⟨φ∣)S(I⊗∣0⟩∣φ⟩)=(I⊗⟨0∣⟨φ0∣)S(I⊗∣0⟩∣φ0⟩).(I\otimes\langle0|\langle\varphi|)S(I\otimes|0\rangle|\varphi\rangle) =(I\otimes\langle0|\langle\varphi_0|)S(I\otimes|0\rangle|\varphi_0\rangle).(I⊗⟨0∣⟨φ∣)S(I⊗∣0⟩∣φ⟩)=(I⊗⟨0∣⟨φ0​∣)S(I⊗∣0⟩∣φ0​⟩).

Thus the flag-one part of the prepared state contributes no entry to this block. The identity applies before using purification or normalization.

Formalization Note The paper writes φ=α|ρ₀⟩+β|ρ₁⟩ with normalized components. Here φ₀ is the unnormalized vector α|ρ₀⟩, so the right-hand side incorporates the paper's α² factor.

Preamble
import Mathlib
import Definitions.Def_QAlgorithms_Defs_BlockEncoding
import Definitions.Def_QuantumSDP18_DensityBE_Setting
Formal statement
namespace QuantumSDP18.DensityBE

theorem sandwich_eq_flag0 {w c : ℕ} (φ : Reg w c → ℂ) :
    sandwich φ = sandwich (flag0 φ) := by sorry

end QuantumSDP18.DensityBE
Source
van Apeldoorn and Gilyén, Improvements in quantum SDP-solving with applications, arXiv:1804.05058v1, p. 16, proof of Lemma 12, opening sentence and display line 2
Human review
  • Endorsed by Shuze Chen · Oct 15, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Oct 15, 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