Documentation

MIPRE.Background.LIDT.Co.Pasting.Bernoulli.FromHToG.PaperBounds.SandwichContext

Section 12 pasting: from-H-to-G S U S context-average bounds #

Sandwich-sum identities and the S U S context-average bound used in the second half-sandwich and final move-right Cauchy--Schwarz steps: the counterpart of MIPRE/Background/LIDT/MIPStarRE/LDT/Pasting/Bernoulli/FromHToG/PaperBounds/SandwichContext.lean in the port of planning/c6b-plan.md (milestone M11, section "Port conventions").

The slice family is an IdxPolyFamily params ๐”“, so the completed-slice outcomes, the half-products and the recurrence weights are local operators in ๐”“ (the vendored Op ฮน), and แดด is star. The vendored bipartite state ฯˆbi : QuantumState (ฮน ร— ฮน) both places and evaluates, so it is the symmetric model S : SymModel ๐”“ K, in the vendored argument position; leftTensor/rightTensor are S.L/S.R. The vendored weight operator, also named S (a let in fromHToG_SUS_context_avg_le_one, an explicit argument of the three sandwich-average lemmas), is renamed W. The vendored fromHToG_SUS_context_avg_le_one takes the normalization hypothesis hnorm : ฯˆbi.IsNormalized, used only for ev 1 = 1; it is dropped here (S.ev_one_of_isNormalized holds for every model), so vendored callers pass strategy.state where they passed ฯˆbi hnorm. No other lemma has a swap, density or normalization hypothesis.

Not ported #

Every declaration of the vendored file has a counterpart here.

References #

In LionSR/MIPStarRE at commit 507e8122, not in this repository:

theorem MIPRE.LIDT.Co.Pasting.fromHToG_gHatSandwichFamily_total_eq_one {๐”“ : Type u_1} [CStarAlgebra ๐”“] [PartialOrder ๐”“] [StarOrderedRing ๐”“] (params : MIPStarRE.LDT.Parameters) [MIPStarRE.LDT.FieldModel params.q] (family : IdxPolyFamily params ๐”“) (n : โ„•) (xs : MIPStarRE.LDT.PointTuple params n) :
(gHatSandwichFamily params family n xs).total = 1

The total mass of the tail sandwich family is the identity.

theorem MIPRE.LIDT.Co.Pasting.fromHToG_gHatSandwichFamily_sum_eq_one {๐”“ : Type u_1} [CStarAlgebra ๐”“] [PartialOrder ๐”“] [StarOrderedRing ๐”“] (params : MIPStarRE.LDT.Parameters) [MIPStarRE.LDT.FieldModel params.q] (family : IdxPolyFamily params ๐”“) (n : โ„•) (xs : MIPStarRE.LDT.PointTuple params n) :
โˆ‘ gs : MIPStarRE.LDT.Pasting.GHatTupleOutcome params n, (gHatSandwichFamily params family n xs).outcome gs = 1

The tail sandwich outcomes sum to the identity.

theorem MIPRE.LIDT.Co.Pasting.fromHToG_ev_sum_isSome_sandwich_weight {๐”“ : Type u_1} [CStarAlgebra ๐”“] [PartialOrder ๐”“] [StarOrderedRing ๐”“] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace โ„‚ K] [CompleteSpace K] (params : MIPStarRE.LDT.Parameters) [MIPStarRE.LDT.FieldModel params.q] (S : SymModel ๐”“ K) (family : IdxPolyFamily params ๐”“) (x : MIPStarRE.LDT.Fq params) (b : Bool) (A W : ๐”“) :
โˆ‘ g : MIPStarRE.LDT.Pasting.GHatOutcome params with Option.isSome g = b, S.ev (S.L A * S.R (W * (gHatIdxMeas params family x).outcome g * W)) = S.ev (S.L A * S.R ((W * if b = true then (completePartSubMeas params family x).total else (incompletePartSubMeas params family x).total) * W))

Expectation-level branch sum with an S ยท U ยท S sandwich.

theorem MIPRE.LIDT.Co.Pasting.fromHToG_avgOver_head_ev_sandwich {๐”“ : Type u_1} [CStarAlgebra ๐”“] [PartialOrder ๐”“] [StarOrderedRing ๐”“] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace โ„‚ K] [CompleteSpace K] (params : MIPStarRE.LDT.Parameters) [MIPStarRE.LDT.FieldModel params.q] (S : SymModel ๐”“ K) (A W : ๐”“) (F : MIPStarRE.LDT.Fq params โ†’ ๐”“) :

Fold a head-point scalar average with an S ยท F x ยท S sandwich into the right tensor factor.

theorem MIPRE.LIDT.Co.Pasting.fromHToG_avgOver_head_branch_ev_sandwich {๐”“ : Type u_1} [CStarAlgebra ๐”“] [PartialOrder ๐”“] [StarOrderedRing ๐”“] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace โ„‚ K] [CompleteSpace K] (params : MIPStarRE.LDT.Parameters) [MIPStarRE.LDT.FieldModel params.q] (S : SymModel ๐”“ K) (family : IdxPolyFamily params ๐”“) (hcomplete : (averageOperatorOverDistribution (MIPStarRE.LDT.uniformDistribution (MIPStarRE.LDT.Fq params)) fun (x : MIPStarRE.LDT.Fq params) => (completePartSubMeas params family x).total) = family.averagedSubMeas.total) (hincomplete : (averageOperatorOverDistribution (MIPStarRE.LDT.uniformDistribution (MIPStarRE.LDT.Fq params)) fun (x : MIPStarRE.LDT.Fq params) => (incompletePartSubMeas params family x).total) = 1 - family.averagedSubMeas.total) (b : Bool) (A W : ๐”“) :
(MIPStarRE.LDT.avgOver (MIPStarRE.LDT.uniformDistribution (MIPStarRE.LDT.Fq params)) fun (x : MIPStarRE.LDT.Fq params) => have B := if b = true then (completePartSubMeas params family x).total else (incompletePartSubMeas params family x).total; S.ev (S.L A * S.R (W * B * W))) = S.ev (S.L A * S.R ((W * if b = true then family.averagedSubMeas.total else 1 - family.averagedSubMeas.total) * W))

Fold the complete/incomplete head branch average with an S ยท B ยท S sandwich into the stored exact branch averages.

theorem MIPRE.LIDT.Co.Pasting.fromHToG_sum_averagedSandwichByType_total_eq_one {๐”“ : Type u_1} [CStarAlgebra ๐”“] [PartialOrder ๐”“] [StarOrderedRing ๐”“] (params : MIPStarRE.LDT.Parameters) [MIPStarRE.LDT.FieldModel params.q] (family : IdxPolyFamily params ๐”“) (n : โ„•) :
โˆ‘ ฯ„ : MIPStarRE.LDT.Pasting.GHatType n, (averagedSandwichByTypeSubMeas params family n ฯ„).total = 1

Summing the per-type averaged sandwich totals gives the full tail sandwich total, hence the identity.

theorem MIPRE.LIDT.Co.Pasting.fromHToG_SUS_context_avg_le_one {๐”“ : Type u_1} [CStarAlgebra ๐”“] [PartialOrder ๐”“] [StarOrderedRing ๐”“] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace โ„‚ K] [CompleteSpace K] (params : MIPStarRE.LDT.Parameters) [MIPStarRE.LDT.FieldModel params.q] (S : SymModel ๐”“ K) (family : IdxPolyFamily params ๐”“) (hcomplete : (averageOperatorOverDistribution (MIPStarRE.LDT.uniformDistribution (MIPStarRE.LDT.Fq params)) fun (x : MIPStarRE.LDT.Fq params) => (completePartSubMeas params family x).total) = family.averagedSubMeas.total) (hincomplete : (averageOperatorOverDistribution (MIPStarRE.LDT.uniformDistribution (MIPStarRE.LDT.Fq params)) fun (x : MIPStarRE.LDT.Fq params) => (incompletePartSubMeas params family x).total) = 1 - family.averagedSubMeas.total) (โ„“ n : โ„•) :
(MIPStarRE.LDT.avgOver (MIPStarRE.LDT.uniformDistribution (MIPStarRE.LDT.Fq params ร— MIPStarRE.LDT.PointTuple params n)) fun (q : MIPStarRE.LDT.Fq params ร— MIPStarRE.LDT.PointTuple params n) => โˆ‘ ogs : MIPStarRE.LDT.Pasting.GHatOutcome params ร— MIPStarRE.LDT.Pasting.GHatTupleOutcome params n, have W := fromHToGRecurrenceWeight params family โ„“ (MIPStarRE.LDT.Pasting.prependTypeBit (Option.isSome ogs.1) (MIPStarRE.LDT.Pasting.gHatTupleType ogs.2)); have U := (gHatIdxMeas params family q.1).outcome ogs.1; have T := gHatHalfProductOutcomeOperator params family n q.2 ogs.2; S.ev (S.L T * S.R (W * U) * star (S.L T * S.R (W * U)))) โ‰ค 1

Averaged first-root context bound for the S U S sandwich used in the second half-sandwich and final move-right Cauchy--Schwarz steps.