Documentation

MIPRE.Foundations.Introspection.AdaptiveSelectedMeasurement

The actual selected measurement before an adaptive replacement #

The local updating decoder recovers the old option-valued measurement on each prefix branch. Reassembly therefore recovers the full ambient option measurement. Canonicalization turns this into exactly the raw selected measurement required by the quantitative replacement theorem. No malformed effect is assumed to vanish.

Stated in a bipartite model (Phase 4 of planning/mipco-track.md): the residual measurements are POVMs of block matrices over the remaining coordinates of each prefix with entries in an ordered ⋆-algebra 𝒜, and the old joint measurement adaptiveOldJointPOVM and the selected measurement are POVMs in Matrix (Îč → F) (Îč → F) 𝒜, the first player's algebra of the register model Ξ.reg (Îč → F). The product form is an identity of operators .op. The old joint measurement no longer carries a projectivity proof, so the recovery identities hold for any residual POVMs and take no projectivity hypothesis (the matrix versions needed one only to build that proof). The replacement R is a POVM in Matrix T T (Matrix (Îč → F) (Îč → F) 𝒜), as in registeredReplacement.

theorem MIPRE.Introspection.adaptiveOldJointPOVM_map_mats {F : Type u_1} {Îč : Type u_2} {B : Type u_4} {C : Type u_5} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] [Fintype Îč] [DecidableEq Îč] [Fintype B] [Fintype C] [DecidableEq C] {ℓ : ℕ} {𝒜 : Type u_6} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [StarProper 𝒜] (P : CL.CLFun F Îč ℓ) (hP : P.SupportedOn Finset.univ) (k : ℕ) (M : (y : Îč → F) → POVMIn ((Fin (Fintype.card ↄ(P.factorOfPrefix k y)) → F) × B) (Matrix (ↄ(stageRemaining P k y) → F) (ↄ(stageRemaining P k y) → F) 𝒜)) (f : AdaptiveStageAnswer P k B → C) (c : C) :
(POVMIn.map f (adaptiveOldJointPOVM P hP k M)).op c = ∑ y : Îč → F, prefixResidualOp P k y ((POVMIn.map (fun (p : (Fin (Fintype.card ↄ(P.factorOfPrefix k y)) → F) × B) => f ⟹y, p⟩) (M y)).op c)

A dependent answer decoder commutes with the concrete prefix assembly.

theorem MIPRE.Introspection.adaptiveRefinedJoint_decode {F : Type u_1} {Îč : Type u_2} {A : Type u_3} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] [Fintype Îč] [DecidableEq Îč] [Fintype A] {ℓ : ℕ} {𝒜 : Type u_6} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [StarProper 𝒜] (P : CL.CLFun F Îč ℓ) (hP : P.SupportedOn Finset.univ) (k : ℕ) (M : (y : Îč → F) → POVMIn (Option ((Îč → F) × A)) (Matrix (ↄ(stageRemaining P k y) → F) (ↄ(stageRemaining P k y) → F) 𝒜)) (N : POVMIn (Option ((Îč → F) × A)) (Matrix (Îč → F) (Îč → F) 𝒜)) (hform : ∀ (a : Option ((Îč → F) × A)), N.op a = ∑ y : Îč → F, prefixResidualOp P k y ((M y).op a)) (hsupport : ∀ (y x : Îč → F) (a : A), P.outputPrefix k x ≠ y → (M y).op (some (x, a)) = 0) :
POVMIn.map (fun (p : AdaptiveStageAnswer P k (Option ((Îč → F) × A))) => stageAnswerDecode P k p.fst p.snd.1 p.snd.2) (adaptiveOldJointPOVM P hP k fun (y : Îč → F) => stageAnswerRefinementPOVM P k y (M y)) = N

Decoding the refined actual joint measurement recovers the complete old option-valued POVM, including its malformed effect.

theorem MIPRE.Introspection.adaptiveRefinedJoint_next_decode {F : Type u_1} {Îč : Type u_2} {A : Type u_3} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] [Fintype Îč] [DecidableEq Îč] [Fintype A] {ℓ : ℕ} {𝒜 : Type u_6} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [StarProper 𝒜] (P : CL.CLFun F Îč ℓ) (hP : P.SupportedOn Finset.univ) (k : ℕ) (M : (y : Îč → F) → POVMIn (Option ((Îč → F) × A)) (Matrix (ↄ(stageRemaining P k y) → F) (ↄ(stageRemaining P k y) → F) 𝒜)) (N : POVMIn (Option ((Îč → F) × A)) (Matrix (Îč → F) (Îč → F) 𝒜)) (hform : ∀ (a : Option ((Îč → F) × A)), N.op a = ∑ y : Îč → F, prefixResidualOp P k y ((M y).op a)) (hsupport : ∀ (y x : Îč → F) (a : A), P.outputPrefix k x ≠ y → (M y).op (some (x, a)) = 0) :
POVMIn.map (fun (p : AdaptiveStageAnswer P k (Option ((Îč → F) × A))) => nextOptionDecoder P k (advanceStageAnswer P k p)) (adaptiveOldJointPOVM P hP k fun (y : Îč → F) => stageAnswerRefinementPOVM P k y (M y)) = N

The same exact recovery uses only the advanced prefix and the retained answer, which is the decoder interface of the next-strategy theorem.

theorem MIPRE.Introspection.canonicalizeIntro_adaptive_selected {F : Type u_1} {Îč : Type u_2} {A : Type u_3} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] [Fintype Îč] [DecidableEq Îč] [Fintype A] {ℓ : ℕ} {𝒜 : Type u_6} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [StarProper 𝒜] {PauliType : Type u_7} {PauliAnswer : Type u_8} {Îș : Type u_9} [Fintype PauliType] [DecidableEq PauliType] [Fintype PauliAnswer] [Fintype Îș] [DecidableEq Îș] (P : CL.CLFun F Îč ℓ) (hP : P.SupportedOn Finset.univ) (k : ℕ) (MA : CL.Detyping.Question (QuestionType PauliType ℓ) Îș → POVMIn (ParsedAnswer (Îč → F) A PauliAnswer) (Matrix (Îč → F) (Îč → F) 𝒜)) (w : Bool) (M : (y : Îč → F) → POVMIn (Option ((Îč → F) × A)) (Matrix (ↄ(stageRemaining P k y) → F) (ↄ(stageRemaining P k y) → F) 𝒜)) (hform : ∀ (a : Option ((Îč → F) × A)), (POVMIn.map TypedEstimates.introspectPair (MA (QuestionType.introspect w, 0))).op a = ∑ y : Îč → F, prefixResidualOp P k y ((M y).op a)) (hsupport : ∀ (y x : Îč → F) (a : A), P.outputPrefix k x ≠ y → (M y).op (some (x, a)) = 0) :
canonicalizeIntro MA w (QuestionType.introspect w, 0) = POVMIn.map (fun (p : AdaptiveStageAnswer P k (Option ((Îč → F) × A))) => restoreIntroAnswer (nextOptionDecoder P k (advanceStageAnswer P k p))) (adaptiveOldJointPOVM P hP k fun (y : Îč → F) => stageAnswerRefinementPOVM P k y (M y))

The raw normalized Introspect POVM is exactly the refined old joint PVM followed by the actual updating decoder and raw-answer restoration.

theorem MIPRE.Introspection.registeredReplacement_canonicalizeIntro {F : Type u_1} {Îč : Type u_2} {A : Type u_3} [Field F] [Fintype F] [DecidableEq F] [Algebra (ZMod 2) F] [Fintype Îč] [DecidableEq Îč] [Fintype A] {ℓ : ℕ} {𝒜 : Type u_6} [Ring 𝒜] [StarRing 𝒜] [Algebra ℂ 𝒜] [StarModule ℂ 𝒜] [PartialOrder 𝒜] [StarOrderedRing 𝒜] [StarProper 𝒜] {PauliType : Type u_7} {PauliAnswer : Type u_8} {Îș : Type u_9} {T : Type u_10} [Fintype PauliType] [DecidableEq PauliType] [Fintype PauliAnswer] [Fintype Îș] [DecidableEq Îș] [Fintype T] [DecidableEq T] (MA : CL.Detyping.Question (QuestionType PauliType ℓ) Îș → POVMIn (ParsedAnswer (Îč → F) A PauliAnswer) (Matrix (Îč → F) (Îč → F) 𝒜)) (w : Bool) (R : POVMIn (ParsedAnswer (Îč → F) A PauliAnswer) (Matrix T T (Matrix (Îč → F) (Îč → F) 𝒜))) :

Canonicalization at the selected question is overwritten by the actual replacement. All other old questions are retained identically.