Documentation

MIPRE.Background.LIDT.Co.Preliminaries.Triangles.Core

Triangle inequalities for state-dependent distance: core #

The main triangle-substitution estimates for approximate measurements: the counterpart of MIPRE/Background/LIDT/MIPStarRE/LDT/Preliminaries/Triangles/Core.lean in the port of planning/c6b-plan.md (milestone M3, section "Port conventions").

The same-space statements (qSDD_symm, sddRel_symm, triangleInequalityForVectorsSquared, subMeas_total_ev_gap_abs_le_sqrt_card_qSDD, right_match_gap_abs_le_sqrt_qSDD) take a vector state V : VecState K (a symmetric model is accepted through its coercion) and joint operators in K β†’L[β„‚] K. The substitution theorems triangleSub* are about the bipartite relation S.ConsRel, so they take the symmetric model S : SymModel 𝔓 K as an ordinary explicit argument in place of the vendored state, with local families in 𝔓, as in Co/Preliminaries/Defs.lean. Every statement drops the vendored normalization hypothesis hψ : ψ.IsNormalized, a theorem of the vector state (V.ev_one_of_isNormalized).

triangleSub_heterogeneous and triangleSub_right_heterogeneous are the vendored statements with both tensor factors fixed to 𝔓 (the vendored ones allow two carriers ΞΉA, ΞΉB); in the symmetric model the placements IdxSubMeas.placeLeft S, IdxSubMeas.placeRight S are the lifts IdxSubMeas.liftLeft S, IdxSubMeas.liftRight S by rfl (Co/Basic/SubMeasurementFamilies.lean), so they are the same-space theorems. Their vendored callers, on the two-space ProjStrat of Test/MainTheorem/SourceRoleRegister, are left to M13 and M14 (planning/c6b-plan.md, "Same-space and bipartite quantities").

The vendored file proves each of its four substitution theorems in full, with the same pointwise estimate on max 0 (total - match) and the same averaging. Here that argument is proved once, as consRel_of_matchGap, and each theorem supplies the match-mass gap (by question_easyApproxFromApproxDelta of Co/Preliminaries/CauchySchwarz.lean on the left, by right_match_gap_abs_le_sqrt_qSDD on the right) and the change of the total overlap (zero for measurements). triangleSub_right is triangleSub_right_subMeas_total_le, the totals of measurements being the identity.

New here #

Not ported #

References #

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

theorem MIPRE.LIDT.Co.Preliminaries.avgOver_abs_le_sqrt_of_pointwise_nonneg {Question : Type u_1} (π’Ÿ : MIPStarRE.LDT.Distribution Question) (hπ’Ÿ : βˆ‘ q ∈ π’Ÿ.support, π’Ÿ.weight q ≀ 1) (f g : Question β†’ ℝ) (hfg : βˆ€ (q : Question), |f q| ≀ √(g q)) (hg : βˆ€ (q : Question), 0 ≀ g q) :
(MIPStarRE.LDT.avgOver π’Ÿ fun (q : Question) => |f q|) ≀ √(MIPStarRE.LDT.avgOver π’Ÿ g)

Upstream keeps this helper private since its Lean-module port (LionSR/MIPStarRE at 5fc363b); the port carries its own copy, with upstream's proof.

theorem MIPRE.LIDT.Co.Preliminaries.qSDD_symm {K : Type u_1} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Outcome : Type u_2} [Fintype Outcome] (V : VecState K) (A B : SubMeas Outcome (K β†’L[β„‚] K)) :
V.qSDD A B = V.qSDD B A

Symmetry of the question-level state-dependent distance.

theorem MIPRE.LIDT.Co.Preliminaries.sddRel_symm {K : Type u_1} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Question : Type u_2} {Outcome : Type u_3} [Fintype Outcome] (V : VecState K) (π’Ÿ : MIPStarRE.LDT.Distribution Question) (A B : IdxSubMeas Question Outcome (K β†’L[β„‚] K)) (Ξ΄ : ℝ) :
V.SDDRel π’Ÿ A B Ξ΄ β†’ V.SDDRel π’Ÿ B A Ξ΄

Symmetry of the state-dependent distance relation.

theorem MIPRE.LIDT.Co.Preliminaries.triangleInequalityForVectorsSquared {K : Type u_1} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {ΞΊ : Type u_2} [Fintype ΞΊ] (V : VecState K) (D : ΞΊ β†’ K β†’L[β„‚] K) :
V.ev (star (βˆ‘ i : ΞΊ, D i) * βˆ‘ i : ΞΊ, D i) ≀ ↑(Fintype.card ΞΊ) * βˆ‘ i : ΞΊ, V.ev (star (D i) * D i)

prop:triangle-inequality-for-vectors-squared.

For a finite family of operators Dα΅’, the squared norm of the summed vector (βˆ‘α΅’ Dα΅’) ψ is controlled by the cardinality times the sum of the squared norms of the individual vectors Dα΅’ ψ.

The expectation of the difference of two submeasurement totals is controlled by the state-dependent distance between the two outcome families, with the finite-outcome Cauchy--Schwarz loss.

This is the total-operator analogue of the matching-mass estimates used in triangleSub. It is useful precisely when the right-register families are submeasurements rather than measurements, so that their total operators need not be the identity.

theorem MIPRE.LIDT.Co.Preliminaries.right_match_gap_abs_le_sqrt_qSDD {K : Type u_1} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Outcome : Type u_2} [Fintype Outcome] (V : VecState K) (A B D : SubMeas Outcome (K β†’L[β„‚] K)) :
|βˆ‘ a : Outcome, V.ev (A.outcome a * B.outcome a) - βˆ‘ a : Outcome, V.ev (A.outcome a * D.outcome a)| ≀ √(V.qSDD B D)

Right-register matching gap: |βˆ‘_a ev (A_a B_a) - βˆ‘_a ev (A_a D_a)| ≀ √(qSDD B D) for submeasurements A, B, D.

theorem MIPRE.LIDT.Co.Preliminaries.consRel_of_matchGap {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Question : Type u_3} {Outcome : Type u_4} [Fintype Outcome] (S : SymModel 𝔓 K) (π’Ÿ : MIPStarRE.LDT.Distribution Question) (hπ’Ÿ : βˆ‘ q ∈ π’Ÿ.support, π’Ÿ.weight q ≀ 1) (A B A' B' : IdxSubMeas Question Outcome 𝔓) (s e : Question β†’ ℝ) (Ξ΄ Ξ΅ Ξ· : ℝ) (hAB : S.ConsRel π’Ÿ A B Ξ΄) (hgap : βˆ€ (q : Question), |S.qBipartiteMatchMass (A q) (B q) - S.qBipartiteMatchMass (A' q) (B' q)| ≀ √(s q)) (hs : βˆ€ (q : Question), 0 ≀ s q) (hsΞ΅ : MIPStarRE.LDT.avgOver π’Ÿ s ≀ Ξ΅) (he : βˆ€ (q : Question), max 0 (S.ev (S.opTensor (A' q).total (B' q).total) - S.ev (S.opTensor (A q).total (B q).total)) ≀ e q) (heΞ· : MIPStarRE.LDT.avgOver π’Ÿ e ≀ Ξ·) :
S.ConsRel π’Ÿ A' B' (Ξ΄ + √Ρ + Ξ·)

The common substitution step of the triangleSub family. If S.ConsRel π’Ÿ A B Ξ΄, the matching masses of (A, B) and (A', B') differ by at most √(s q) at each question, and the total overlap of (A', B') exceeds that of (A, B) by at most e q, then S.ConsRel π’Ÿ A' B' (Ξ΄ + √Ρ + Ξ·) for 𝔼 s ≀ Ξ΅ and 𝔼 e ≀ Ξ·.

theorem MIPRE.LIDT.Co.Preliminaries.triangleSub {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Question : Type u_3} {Outcome : Type u_4} [Fintype Outcome] (S : SymModel 𝔓 K) (π’Ÿ : MIPStarRE.LDT.Distribution Question) (hπ’Ÿ : βˆ‘ q ∈ π’Ÿ.support, π’Ÿ.weight q ≀ 1) (A B : IdxMeas Question Outcome 𝔓) (C : IdxSubMeas Question Outcome 𝔓) (Ξ΄ Ξ΅ : ℝ) (hAC : S.ConsRel π’Ÿ A.toIdxSubMeas C Ξ΄) (hAB : S.SDDRel π’Ÿ (IdxSubMeas.liftLeft S A.toIdxSubMeas) (IdxSubMeas.liftLeft S B.toIdxSubMeas) Ξ΅) :
S.ConsRel π’Ÿ B.toIdxSubMeas C (Ξ΄ + √Ρ)

prop:triangle-sub.

Both consistency errors are max 0 (ev (I βŠ— C.total) - Σₐ ev (...)); the overlap difference is bounded by Cauchy–Schwarz (question_easyApproxFromApproxDelta) and averaged (consRel_of_matchGap).

theorem MIPRE.LIDT.Co.Preliminaries.triangleSub_heterogeneous {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Question : Type u_3} {Outcome : Type u_4} [Fintype Outcome] (S : SymModel 𝔓 K) (π’Ÿ : MIPStarRE.LDT.Distribution Question) (hπ’Ÿ : βˆ‘ q ∈ π’Ÿ.support, π’Ÿ.weight q ≀ 1) (A B : IdxMeas Question Outcome 𝔓) (C : IdxSubMeas Question Outcome 𝔓) (Ξ΄ Ξ΅ : ℝ) (hAC : S.ConsRel π’Ÿ A.toIdxSubMeas C Ξ΄) (hAB : S.SDDRel π’Ÿ (IdxSubMeas.placeLeft S A.toIdxSubMeas) (IdxSubMeas.placeLeft S B.toIdxSubMeas) Ξ΅) :
S.ConsRel π’Ÿ B.toIdxSubMeas C (Ξ΄ + √Ρ)

Heterogeneous left-register substitution.

The vendored statement places the two left families on H_A and the right family on H_B; in the symmetric model these placements are the lifts, and this is triangleSub.

Right-register variants of triangleSub #

theorem MIPRE.LIDT.Co.Preliminaries.triangleSub_right_subMeas_total_le {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Question : Type u_3} {Outcome : Type u_4} [Fintype Outcome] (S : SymModel 𝔓 K) (π’Ÿ : MIPStarRE.LDT.Distribution Question) (hπ’Ÿ : βˆ‘ q ∈ π’Ÿ.support, π’Ÿ.weight q ≀ 1) (A B D : IdxSubMeas Question Outcome 𝔓) (Ξ΄ Ξ΅ : ℝ) (hAB : S.ConsRel π’Ÿ A B Ξ΄) (hBD : S.SDDRel π’Ÿ (IdxSubMeas.liftRight S B) (IdxSubMeas.liftRight S D) Ξ΅) (hTotalLe : βˆ€ (q : Question), S.ev (S.L (A q).total * S.R (D q).total) ≀ S.ev (S.L (A q).total * S.R (B q).total)) :
S.ConsRel π’Ÿ A D (Ξ΄ + √Ρ)

Right-register substitution for submeasurements when the right total overlap is monotone in the replacement direction.

The general submeasurement form triangleSub_right_subMeas_totalGap includes the absolute displacement of the total-overlap term. In the special case where the new right family has no larger total overlap with the fixed left family, this displacement is not needed: increasing the total is the only way in which the total term can worsen the consistency defect. The remaining contribution is exactly the usual matching-mass Cauchy--Schwarz term.

theorem MIPRE.LIDT.Co.Preliminaries.triangleSub_right {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Question : Type u_3} {Outcome : Type u_4} [Fintype Outcome] (S : SymModel 𝔓 K) (π’Ÿ : MIPStarRE.LDT.Distribution Question) (hπ’Ÿ : βˆ‘ q ∈ π’Ÿ.support, π’Ÿ.weight q ≀ 1) (A : IdxSubMeas Question Outcome 𝔓) (B D : IdxMeas Question Outcome 𝔓) (Ξ΄ Ξ΅ : ℝ) (hAB : S.ConsRel π’Ÿ A B.toIdxSubMeas Ξ΄) (hBD : S.SDDRel π’Ÿ (IdxSubMeas.liftRight S B.toIdxSubMeas) (IdxSubMeas.liftRight S D.toIdxSubMeas) Ξ΅) :
S.ConsRel π’Ÿ A D.toIdxSubMeas (Ξ΄ + √Ρ)

Right-register substitution: triangleSub with the measurement replaced on the second factor.

theorem MIPRE.LIDT.Co.Preliminaries.triangleSub_right_heterogeneous {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Question : Type u_3} {Outcome : Type u_4} [Fintype Outcome] (S : SymModel 𝔓 K) (π’Ÿ : MIPStarRE.LDT.Distribution Question) (hπ’Ÿ : βˆ‘ q ∈ π’Ÿ.support, π’Ÿ.weight q ≀ 1) (A : IdxSubMeas Question Outcome 𝔓) (B D : IdxMeas Question Outcome 𝔓) (Ξ΄ Ξ΅ : ℝ) (hAB : S.ConsRel π’Ÿ A B.toIdxSubMeas Ξ΄) (hBD : S.SDDRel π’Ÿ (IdxSubMeas.placeRight S B.toIdxSubMeas) (IdxSubMeas.placeRight S D.toIdxSubMeas) Ξ΅) :
S.ConsRel π’Ÿ A D.toIdxSubMeas (Ξ΄ + √Ρ)

Heterogeneous right-register substitution.

The vendored statement places the left family on H_A and the two right families on H_B; in the symmetric model these placements are the lifts, and this is triangleSub_right.

theorem MIPRE.LIDT.Co.Preliminaries.triangleSub_right_subMeas_totalGap {𝔓 : Type u_1} [CStarAlgebra 𝔓] [PartialOrder 𝔓] [StarOrderedRing 𝔓] {K : Type u_2} [NormedAddCommGroup K] [InnerProductSpace β„‚ K] [CompleteSpace K] {Question : Type u_3} {Outcome : Type u_4} [Fintype Outcome] (S : SymModel 𝔓 K) (π’Ÿ : MIPStarRE.LDT.Distribution Question) (hπ’Ÿ : βˆ‘ q ∈ π’Ÿ.support, π’Ÿ.weight q ≀ 1) (A B D : IdxSubMeas Question Outcome 𝔓) (Ξ΄ Ξ΅ Ξ· : ℝ) (hAB : S.ConsRel π’Ÿ A B Ξ΄) (hBD : S.SDDRel π’Ÿ (IdxSubMeas.liftRight S B) (IdxSubMeas.liftRight S D) Ξ΅) (hTotal : (MIPStarRE.LDT.avgOver π’Ÿ fun (q : Question) => |S.ev (S.L (A q).total * S.R (D q).total) - S.ev (S.L (A q).total * S.R (B q).total)|) ≀ Ξ·) :
S.ConsRel π’Ÿ A D (Ξ΄ + √Ρ + Ξ·)

Right-register substitution for submeasurements, with the total-overlap displacement stated explicitly.

For complete right-register measurements the total-overlap term ev ψ (A_total βŠ— B_total) is independent of the right family. For general submeasurements this term may change. The lemma therefore separates the usual state-dependent-distance contribution from the averaged displacement of the right total operator.