Documentation

MIPRE.Background.LIDT.Co.Commutativity.ScalarApproximation.ProcessedG.PhaseTwo

Phase 2 stability defect infrastructure #

Internal helper definitions and lemmas for the Phase 2 scalar bridge in ProcessedG: the counterpart of Commutativity/ScalarApproximation/ProcessedG/PhaseTwo.lean under MIPRE/Background/LIDT/MIPStarRE/LDT/ in the port of planning/c6b-plan.md (milestone M7, section "Port conventions"). These definitions extract and bound the one-dimensional stability defect controlled by gCommStability_scalar (the paper's clm:g-comm-stability), reindex the question-level defect into the stability defect via finite marginalization, and perform the subtraction algebra that rewrites the phase-2 insertion/removal difference as the negative defect.

The defects are real expectations strategy.state.ev (strategy.state.L … * strategy.state.R …) on the symmetric model of the strategy, with the vendored arguments unchanged. avgOver_avgOver_phaseTwo_linear takes the symmetric model S where the vendored lemma takes the state ψ, in the same position, with F, P and R in the local algebra 𝔓. postprocess_sandwichByOuter_prod_snd_outcome is state-free and holds in 𝔓.

The vendored hypothesis hnorm : strategy.state.IsNormalized of evaluatedSlice_phaseTwo_stability_defect_bound is dropped, as the port conventions drop hψ : ψ.IsNormalized: the ported gCommStability_scalar takes none. Callers omit that argument, which stood between zeta and family.

The proofs are shorter than the vendored ones. The pointwise subtraction of evaluatedSlice_phaseTwo_term_diff is mul_sub, the keystone's leftTensor_mul_leftTensor, leftTensor_sub and ev_sub, and ring on the scalars, in place of the Kronecker calc with Matrix.smul_kronecker. avgOver_avgOver_phaseTwo_linear pulls the two averages through the placements with ev_opTensor_averageOperatorOverDistribution_left/_right. The fiber collapse is Finset.sum_fiberwise after ev_leftTensor_mul_middle_finset_sum, and the question average is split by avgOver_uniform_prod_swap directly, without the vendored Equiv.prodComm reindex.

Not ported #

Every declaration of the vendored file has a counterpart here.

References #

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

noncomputable def MIPRE.LIDT.Co.Commutativity.evaluatedSlicePhaseTwoStabilityDefect {𝔓 : 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] (strategy : SymStrat params.next 𝔓 K) (family : IdxPolyFamily params 𝔓) (G : MIPStarRE.LDT.Fq params β†’ SubMeas (MIPStarRE.LDT.Polynomial params) 𝔓) (y : MIPStarRE.LDT.Fq params) :

The scalar defect controlled by gCommStability_scalar after averaging out all evaluated-slice variables except the second slice height y.

This is the paper's boundedness witness term for clm:g-comm-stability: for a fixed y, gCommStabilityR params family y averages the left-register sandwich G^{u,x}_a G^y_g G^{u,x}_a, while IdxPolyFamily.averagedSlicePointEvaluationOperator strategy y g averages the right-register point answer A^{v,y}_{g(v)} over the tail point v.

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    theorem MIPRE.LIDT.Co.Commutativity.evaluatedSlice_phaseTwo_stability_defect_bound {𝔓 : 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] (strategy : SymStrat params.next 𝔓 K) (zeta : ℝ) (family : IdxPolyFamily params 𝔓) (G : MIPStarRE.LDT.Fq params β†’ SubMeas (MIPStarRE.LDT.Polynomial params) 𝔓) (hG : βˆ€ (x : MIPStarRE.LDT.Fq params), G x = (family.meas x).toSubMeas) (hbound : IdxPolyFamily.SliceBoundednessInput strategy family zeta) :

    Direct √΢ control of the phase-2 stability defect.

    The remaining bridge from the explicit evaluated-slice difference to this one-dimensional defect is pure finite reindexing and averaging: expand totalSandwichFamily, decompose the sampled second point as (v,y), collect the postprocessing fiber βˆ‘_b βˆ‘_{g : g(v)=b} into βˆ‘_g, and average the first sampled point into gCommStabilityR. The vendored lemma asks for a normalized state.

    noncomputable def MIPRE.LIDT.Co.Commutativity.evaluatedSlicePhaseTwoQuestionDefect {𝔓 : 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] (strategy : SymStrat params.next 𝔓 K) (family : IdxPolyFamily params 𝔓) (G : MIPStarRE.LDT.Fq params β†’ SubMeas (MIPStarRE.LDT.Polynomial params) 𝔓) (q : MIPStarRE.LDT.Commutativity.EvaluatedSliceQuestion params) :

    The still-unmarginalized phase-2 defect at a sampled evaluated-slice question.

    This is the exact question-level term obtained after expanding totalSandwichFamily and using S * G^y.total - S = -S * (1 - G^y.total) for the left-register sandwich S. The remaining reindexing residual averages this term to evaluatedSlicePhaseTwoStabilityDefect.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances For
      theorem MIPRE.LIDT.Co.Commutativity.postprocess_sandwichByOuter_prod_snd_outcome {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {Ξ± : Type u_3} {Ξ² : Type u_4} [Fintype Ξ±] [Fintype Ξ²] (A : SubMeas Ξ± 𝔓) (B : SubMeas Ξ² 𝔓) (b : Ξ²) :
      (postprocess (sandwichByOuterSubMeas A B) Prod.snd).outcome b = βˆ‘ a : Ξ±, A.outcome a * B.outcome b * A.outcome a

      Postprocessing a sandwiched product by its second coordinate sums over the outer outcome.

      For the sandwiched submeasurement with outcomes (a, b) and effect A_a B_b A_a, the Prod.snd postprocessing has outcome b equal to βˆ‘ a, A_a B_b A_a. This is the finite-fiber identity used to recognize the gCommStabilityR averaged sandwich.

      theorem MIPRE.LIDT.Co.Commutativity.avgOver_avgOver_phaseTwo_linear {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Q : Type u_3} {V : Type u_4} {Ξ“ : Type u_5} {Aidx : Type u_6} [Fintype Ξ“] [Fintype Aidx] (π’ŸQ : MIPStarRE.LDT.Distribution Q) (π’ŸV : MIPStarRE.LDT.Distribution V) (S : SymModel 𝔓 K) (F : Q β†’ Ξ“ β†’ Aidx β†’ 𝔓) (P : Ξ“ β†’ V β†’ 𝔓) (R : 𝔓) :
      (MIPStarRE.LDT.avgOver π’ŸV fun (v : V) => MIPStarRE.LDT.avgOver π’ŸQ fun (q : Q) => βˆ‘ g : Ξ“, βˆ‘ a : Aidx, S.ev (S.L (F q g a * R) * S.R (P g v))) = βˆ‘ g : Ξ“, S.ev (S.L ((averageOperatorOverDistribution π’ŸQ fun (q : Q) => βˆ‘ a : Aidx, F q g a) * R) * S.R (averageOperatorOverDistribution π’ŸV fun (v : V) => P g v))

      Pull two finite averages into a bipartite expectation with averaged operators.

      For a fixed polynomial outcome g, the left register is averaged over π’ŸQ while the right register is averaged over π’ŸV. The identity rewrites the nested scalar average of S.ev (S.L (F q g a * R) * S.R (P g v)) into the expectation of S.L ((E_q βˆ‘_a F q g a) * R) * S.R (E_v P g v), preserving the outer sum over g.

      theorem MIPRE.LIDT.Co.Commutativity.evaluatedSlicePhaseTwoQuestionDefect_append_eq_sum_poly {𝔓 : 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] (strategy : SymStrat params.next 𝔓 K) (family : IdxPolyFamily params 𝔓) (G : MIPStarRE.LDT.Fq params β†’ SubMeas (MIPStarRE.LDT.Polynomial params) 𝔓) (q1 : MIPStarRE.LDT.Point params.next) (v : MIPStarRE.LDT.Point params) (y : MIPStarRE.LDT.Fq params) :
      evaluatedSlicePhaseTwoQuestionDefect params strategy family G (q1, MIPStarRE.LDT.appendPoint params v y) = βˆ‘ g : MIPStarRE.LDT.Polynomial params, βˆ‘ a : MIPStarRE.LDT.Fq params, strategy.state.ev (strategy.state.L ((evaluatedPointFamily params family q1).outcome a * (family.meas y).outcome g * (evaluatedPointFamily params family q1).outcome a * (1 - (G y).total)) * strategy.state.R ((strategy.pointMeasurement (MIPStarRE.LDT.appendPoint params v y)).outcome (g.toFun v)))

      Reindex the pointwise phase-2 question defect by polynomial outcomes.

      When the sampled second point is appendPoint v y, the postprocessed slice outcome (evaluatedSliceSecondFactor ...).outcome b is the sum of G^y_g over the fiber g v = b. Expanding this fiber inside the sandwiched left-register expression and summing over b collapses the defect to a polynomial-indexed sum whose right-register outcome is A^{v,y}_{g(v)}.

      theorem MIPRE.LIDT.Co.Commutativity.evaluatedSlice_phaseTwo_term_diff {𝔓 : 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] (strategy : SymStrat params.next 𝔓 K) (family : IdxPolyFamily params 𝔓) (G : MIPStarRE.LDT.Fq params β†’ SubMeas (MIPStarRE.LDT.Polynomial params) 𝔓) (hG : βˆ€ (x : MIPStarRE.LDT.Fq params), G x = (family.meas x).toSubMeas) (q : MIPStarRE.LDT.Commutativity.EvaluatedSliceQuestion params) (a b : MIPStarRE.LDT.Fq params) :
      strategy.state.ev (strategy.state.L ((evaluatedSliceFirstFactor params family q).outcome a * (evaluatedSliceSecondFactor params family q).outcome b * (evaluatedSliceFirstFactor params family q).outcome a) * (Preliminaries.totalSandwichFamily strategy.state (evaluatedPointFamily params family) (evaluatedSlicePointMeas params strategy) q.2).outcome b) - strategy.state.ev (strategy.state.L ((evaluatedSliceFirstFactor params family q).outcome a * (evaluatedSliceSecondFactor params family q).outcome b * (evaluatedSliceFirstFactor params family q).outcome a) * strategy.state.R ((evaluatedSlicePointMeas params strategy q.2).outcome b)) = -strategy.state.ev (strategy.state.L ((evaluatedSliceFirstFactor params family q).outcome a * (evaluatedSliceSecondFactor params family q).outcome b * (evaluatedSliceFirstFactor params family q).outcome a * (1 - (G (MIPStarRE.LDT.pointHeight params q.2)).total)) * strategy.state.R ((evaluatedSlicePointMeas params strategy q.2).outcome b))

      Pointwise algebra for the phase-2 subtraction.

      After expanding totalSandwichFamily, the inserted summand has the extra factor G^y.total on the left register. This lemma rewrites the difference with the removed summand as the negative defect, using the noncommutative identity S * T - S = -(S * (1 - T)).

      theorem MIPRE.LIDT.Co.Commutativity.evaluatedSlice_phaseTwo_avg_diff_eq_neg_questionDefect {𝔓 : 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] (strategy : SymStrat params.next 𝔓 K) (family : IdxPolyFamily params 𝔓) (G : MIPStarRE.LDT.Fq params β†’ SubMeas (MIPStarRE.LDT.Polynomial params) 𝔓) (hG : βˆ€ (x : MIPStarRE.LDT.Fq params), G x = (family.meas x).toSubMeas) :
      have π’Ÿ := MIPStarRE.LDT.uniformDistribution (MIPStarRE.LDT.Commutativity.EvaluatedSliceQuestion params); have inserted := fun (q : MIPStarRE.LDT.Commutativity.EvaluatedSliceQuestion params) => βˆ‘ b : MIPStarRE.LDT.Fq params, βˆ‘ a : MIPStarRE.LDT.Fq params, strategy.state.ev (strategy.state.L ((evaluatedSliceFirstFactor params family q).outcome a * (evaluatedSliceSecondFactor params family q).outcome b * (evaluatedSliceFirstFactor params family q).outcome a) * (Preliminaries.totalSandwichFamily strategy.state (evaluatedPointFamily params family) (evaluatedSlicePointMeas params strategy) q.2).outcome b); have removed := fun (q : MIPStarRE.LDT.Commutativity.EvaluatedSliceQuestion params) => βˆ‘ b : MIPStarRE.LDT.Fq params, βˆ‘ a : MIPStarRE.LDT.Fq params, strategy.state.ev (strategy.state.L ((evaluatedSliceFirstFactor params family q).outcome a * (evaluatedSliceSecondFactor params family q).outcome b * (evaluatedSliceFirstFactor params family q).outcome a) * strategy.state.R ((evaluatedSlicePointMeas params strategy q.2).outcome b)); MIPStarRE.LDT.avgOver π’Ÿ inserted - MIPStarRE.LDT.avgOver π’Ÿ removed = -MIPStarRE.LDT.avgOver π’Ÿ (evaluatedSlicePhaseTwoQuestionDefect params strategy family G)

      Average the pointwise phase-2 algebra over evaluated-slice questions.

      This proves the advertised sign rewrite avgOver π’Ÿ phase1Inserted - avgOver π’Ÿ phase2Removed = -avgOver π’Ÿ questionDefect. It leaves only the finite marginalization from the question-level defect to the one-dimensional evaluatedSlicePhaseTwoStabilityDefect.

      Exact finite reindexing identity for the phase-2 scalar bridge.

      Paper origin: references/ldt-paper/commutativity-G.tex:60-83 (upstream), the finite averaging and reindexing step leading to the scalar eq:add-an-a bridge.

      This statement contains no analytic estimate. It says that the question-level phase-2 defect averages to the one-dimensional scalar defect bounded by gCommStability_scalar. The proof is only finite marginalization and fiber bookkeeping: decompose the second sampled point as (v,y), collapse the postprocessing fibers, and average the first sampled point into gCommStabilityR.