Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Independent-event decomposition of Markov reconstruction

Open
QAlgorithms.Papers.Independent.Intakenext100.P14.markov_independent_event

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

prove2quantum

Let X,YX,YX,Y be finite classical registers and EEE a finite quantum register in a normalized classical–quantum state. Let AAA be an event independent of the joint pair (X,Y)(X,Y)(X,Y). Markov reconstruction replaces the conditional quantum state at (x,y)(x,y)(x,y) by the actual state conditioned only on yyy, retaining the classical joint distribution. Then

ρX↔Y↔E=Pr⁡[A] ρX↔Y↔E∣A+Pr⁡[Aˉ] ρX↔Y↔E∣Aˉ.\rho_{X\leftrightarrow Y\leftrightarrow E}=\Pr[A]\,\rho_{X\leftrightarrow Y\leftrightarrow E\mid A}+\Pr[\bar A]\,\rho_{X\leftrightarrow Y\leftrightarrow E\mid\bar A}.ρX↔Y↔E​=Pr[A]ρX↔Y↔E∣A​+Pr[Aˉ]ρX↔Y↔E∣Aˉ​.

The identity includes events of probability zero or one: each right-hand term is represented by its weighted, unnormalized blocks, so a zero-weight branch contributes zero. This is precisely the independent-event clause of Lemma 2.1, and does not assert its invalid general clause.

Preamble
import Definitions.Def_QAlgorithms_Papers_Independent_Intakenext100_P14
Formal statement
noncomputable section

namespace QAlgorithms.Papers.Independent.Intakenext100.P14

open scoped Matrix ComplexConjugate

open QAlgorithms.Papers.Independent.Dependency50.P47 (Law)

open QAlgorithms.Papers.Independent.Gap48.P11 (blockMatrix cqDistance)

open QAlgorithms.Papers.Independent.Claimed50.P31 (bb84Vector)

open QAlgorithms.Papers.Independent.Advance50.P05 (RectangularInstrument)

attribute [local instance] Classical.propDecidable

attribute [local instance] Classical.decEq

/-- PDF p.6, Lemma 2.1 independent-event clause (Appendix A.1, p.21).
Event independence is with the joint pair (X,Y). The two right-hand terms are
weighted unnormalized reconstructions, preserving probability-zero/one events. -/
theorem markov_independent_event
    {X Y E : Type*} [Fintype X] [Fintype Y] [Fintype E]
    (r : ((X × Y) × Bool) → Matrix E E ℂ)
    (hstate : QAlgorithms.IsDensityMatrix (blockMatrix r))
    (hindependent : ∀ xy,
      blockMass r (xy, true) =
        (∑ xy, blockMass r (xy, true)) * blockMass (cqPush r Prod.fst) xy) :
    markov (cqPush r Prod.fst) =
      markov (fun xy => r (xy, true)) + markov (fun xy => r (xy, false)) := by sorry

end QAlgorithms.Papers.Independent.Intakenext100.P14

end
Source
Secure Identification and QKD in the Bounded-Quantum-Storage Model, arXiv:0708.2557v3, PDF p. 6, Lemma2.1, valid independent-event clause
Read-back

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

For any finite types X,Y,EX,Y,EX,Y,E, let r:((X×Y)×{false,true})→Mat⁡E(C)r:((X\times Y)\times\{\mathrm{false},\mathrm{true}\})\to\operatorname{Mat}_{E}(\mathbb C)r:((X×Y)×{false,true})→MatE​(C). Assume that the block diagonal matrix whose block at classical label ((x,y),b)((x,y),b)((x,y),b) is r((x,y),b)r((x,y),b)r((x,y),b) is positive semidefinite and has trace 111. Write rb(x,y)=r((x,y),b)r_b(x,y)=r((x,y),b)rb​(x,y)=r((x,y),b), R(x,y)=rtrue(x,y)+rfalse(x,y)R(x,y)=r_{\mathrm{true}}(x,y)+r_{\mathrm{false}}(x,y)R(x,y)=rtrue​(x,y)+rfalse​(x,y), and ptrue=∑x,yRe⁡tr⁡(rtrue(x,y))p_{\mathrm{true}}=\sum_{x,y}\operatorname{Re}\operatorname{tr}(r_{\mathrm{true}}(x,y))ptrue​=∑x,y​Retr(rtrue​(x,y)). Assume, for every (x,y)(x,y)(x,y), that

Re⁡tr⁡(rtrue(x,y))=ptrueRe⁡tr⁡(R(x,y)).\operatorname{Re}\operatorname{tr}(r_{\mathrm{true}}(x,y)) =p_{\mathrm{true}}\operatorname{Re}\operatorname{tr}(R(x,y)).Retr(rtrue​(x,y))=ptrue​Retr(R(x,y)).

Then

M(R)=M(rtrue)+M(rfalse),M(t)(x,y)=Re⁡tr⁡(t(x,y))Re⁡tr⁡(∑x′t(x′,y))∑x′t(x′,y),\mathcal M(R)=\mathcal M(r_{\mathrm{true}})+\mathcal M(r_{\mathrm{false}}), \qquad \mathcal M(t)(x,y)= \frac{\operatorname{Re}\operatorname{tr}(t(x,y))} {\operatorname{Re}\operatorname{tr}(\sum_{x'}t(x',y))} \sum_{x'}t(x',y),M(R)=M(rtrue​)+M(rfalse​),M(t)(x,y)=Retr(∑x′​t(x′,y))Retr(t(x,y))​x′∑​t(x′,y),

with division by zero giving zero. The two branch families are used without normalization, and their total masses may be zero. No nonemptiness assumptions are stated; if XXX, YYY, or EEE is empty, the trace-one hypothesis cannot hold.

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

    Confirmed by the moderator at approval.

  • Endorsed by Gohan · Oct 31, 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