Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

QPBT definitions: Observables / LineMeasurement / Expanded

Definition
QPBT_QPBT_Observables_LineMeasurement_Expanded

by Dengnifer · Oct 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

qpbt

This bundle defines expanded line and point measurements in the Pauli-register construction. It convolves strategy line effects with Pauli line projectors, handles evaluated and none classes, completes expanded point measurements, and records vanishing tensor placements for zero effects.

Principal definitions:

  • MIPStarRE.QPBT.ProjectiveSetting.expLineOp: the convolution of a strategy line effect with a Pauli line projector.
  • MIPStarRE.QPBT.ProjectiveSetting.lineMeasExp: the expanded line measurement.
  • MIPStarRE.QPBT.ProjectiveSetting.lineTauMeas: the fine product measurement underlying the convolution.
  • MIPStarRE.QPBT.ProjectiveSetting.lineEvalMeasExp: the evaluation classes including the none class.
  • MIPStarRE.QPBT.ProjectiveSetting.pointMeasExpOption: the completed expanded point measurement.
  • MIPStarRE.QPBT.ProjectiveSetting.expPointEffectAtLineAnswer: the point effect for a line answer.
  • MIPStarRE.QPBT.heteroKron_zero_left: vanishing when the left tensor factor is zero.
  • MIPStarRE.QPBT.heteroKron_zero_right: vanishing when the right tensor factor is zero.

Formalization Credit. This Lean declaration is part of the Quantum Pauli basis test formalization by Ruixuan Deng. The source code was generated by AI agents; Ruixuan Deng is the responsible maintainer.

Mathematical Source. The mathematical source is Ji, Natarajan, Vidick, Wright, and Yuen, MIP*=RE, arXiv:2001.04383v3.

Definition code
-- Generated from QPBT/Observables/LineMeasurement/Expanded.lean by skeleton subtraction.
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_AxisParallelLine
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_DiagonalLine
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_LinePolynomials
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_LowDegreePolynomial
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_OpFamily
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_ParametersBase
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_ParametersFiniteAnswers
import Definitions.Def_LIDT_MIPStarRE_LDT_Basic_QuantumState
import Definitions.Def_LIDT_MIPStarRE_LDT_CommutativityPoints_Defs
import Definitions.Def_LIDT_MIPStarRE_LDT_ExpansionHypercubeGraph_Defs_Core
import Definitions.Def_LIDT_MIPStarRE_LDT_GlobalVariance_Defs_Core
import Definitions.Def_LIDT_MIPStarRE_LDT_MakingMeasurementsProjective_Defs
import Definitions.Def_LIDT_MIPStarRE_LDT_Pasting_Defs_Families
import Definitions.Def_LIDT_MIPStarRE_LDT_Pasting_Defs_Interpolation
import Definitions.Def_LIDT_MIPStarRE_LDT_Tactic_AvgCongr
import Definitions.Def_LIDT_MIPStarRE_LDT_Test_StrategyCore
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteMatrix_Basic
import Definitions.Def_LIDT_MIPStarRE_Quantum_FiniteMatrix_Order
import Definitions.Def_LIDT_MIPStarRE_Quantum_Measurement
import Definitions.Def_QPBT_QPBT_Algebra_FieldBasis
import Definitions.Def_QPBT_QPBT_Algebra_LowDegreeCode
import Definitions.Def_QPBT_QPBT_Algebra_Pauli
import Definitions.Def_QPBT_QPBT_Games_Defs
import Definitions.Def_QPBT_QPBT_Games_DistanceTheorems_Support
import Definitions.Def_QPBT_QPBT_Games_Sandwich_Support
import Definitions.Def_QPBT_QPBT_Observables_Defs
import Definitions.Def_QPBT_QPBT_Observables_ExpandedDefs
import Definitions.Def_QPBT_QPBT_Observables_LineDefs
import Definitions.Def_QPBT_QPBT_Observables_LineMeasurement_Projector
import Definitions.Def_QPBT_QPBT_Test_LowDegreeGame
import Definitions.Def_QPBT_QPBT_Test_PauliBasisTest
import Mathlib

namespace LIDT.MIPStarRE.LDT
end LIDT.MIPStarRE.LDT
namespace LIDT.MIPStarRE.Quantum
end LIDT.MIPStarRE.Quantum
namespace MIPStarRE.QPBT
end MIPStarRE.QPBT
namespace MIPStarRE.QPBT.ProjectiveSetting
end MIPStarRE.QPBT.ProjectiveSetting

/-!
# Expanded line measurements

This module constructs the expanded line measurements by convolving a strategy
line measurement with the Pauli-register line projectors, and records that the
result is a projective measurement whose effects vanish, on an axis-parallel
line, outside the embedded degree-`d` outcome space. It also introduces the
fine strategy--Pauli product measurement of which the expanded line
measurement is the addition postprocessing, and the evaluation-class and
point-effect families used by the consistency estimates.

## References

The declarations formalize `def:expanded-line-measurement`, whose paper
source is
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:552-556`.
-/

@[expose] public section

open scoped BigOperators Matrix MatrixOrder ComplexOrder

namespace MIPStarRE.QPBT

open LIDT.MIPStarRE.LDT hiding Measurement
open LIDT.MIPStarRE.Quantum

noncomputable section

/-- The Kronecker product of two finite sums is the double sum of the pairwise
Kronecker products. This bilinearity identity proves completeness of the
convolution in `def:expanded-line-measurement`, from the construction in the
proof of the paper's `lem:qld-comm-line-cons`. -/
private theorem heteroKron_sum_sum {α β ι κ : Type*}
    [Fintype α] [Fintype β] (A : α → _root_.LIDT.MIPStarRE.Quantum.Op ι) (B : β → _root_.LIDT.MIPStarRE.Quantum.Op κ) :
    _root_.MIPStarRE.QPBT.heteroKron (∑ x, A x) (∑ y, B y) =
      ∑ x, ∑ y, _root_.MIPStarRE.QPBT.heteroKron (A x) (B y) := by
  rw [_root_.MIPStarRE.QPBT.DistanceCalculus.heteroKron_finset_sum_left]
  simp only [_root_.MIPStarRE.QPBT.DistanceCalculus.heteroKron_finset_sum_right]

/-- The tensor placement of a zero left factor vanishes. -/
theorem heteroKron_zero_left {ι κ : Type*} (B : _root_.LIDT.MIPStarRE.Quantum.Op κ) :
    _root_.MIPStarRE.QPBT.heteroKron (0 : _root_.LIDT.MIPStarRE.Quantum.Op ι) B = 0 := by
  unfold _root_.MIPStarRE.QPBT.heteroKron
  exact Matrix.zero_kronecker B

/-- The tensor placement of a zero right factor vanishes. -/
theorem heteroKron_zero_right {ι κ : Type*} (A : _root_.LIDT.MIPStarRE.Quantum.Op ι) :
    _root_.MIPStarRE.QPBT.heteroKron A (0 : _root_.LIDT.MIPStarRE.Quantum.Op κ) = 0 := by
  unfold _root_.MIPStarRE.QPBT.heteroKron
  exact Matrix.kronecker_zero A

namespace ProjectiveSetting

variable {P : _root_.MIPStarRE.QPBT.AdmissibleParams} {ε : ℝ}

/-- The line measurement of a projective strategy is again projective: folding
the answers of a line question into a coefficient list is a postprocessing, and
postprocessing preserves projectivity. This is the line analogue of the point
measurement projectivity; both follow because postprocessing preserves
projectivity. The line form is what the projectivity assertion of
`def:expanded-line-measurement` needs, paper
`14_analysis_of_the_pauli_basis_test.tex:552-556`. -/
theorem lineMeas_isProjective (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε) (side : _root_.MIPStarRE.QPBT.PlayerSide)
    (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams) :
    _root_.MIPStarRE.QPBT.Measurement.IsProjective (S.lineMeas side W line) := by
  apply _root_.MIPStarRE.QPBT.SandwichProduct.postprocess_isProjective
  cases side with
  | alice => exact S.isProjective.1 _
  | bob => exact S.isProjective.2 _



/-- The convolution of a strategy line effect with the corresponding
Pauli-register line projector. This is the displayed definition of
`hat M^(Line,W),line_f`, paper
`14_analysis_of_the_pauli_basis_test.tex:552-556`, blueprint
`def:expanded-line-measurement`. -/
noncomputable def expLineOp (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε) (side : _root_.MIPStarRE.QPBT.PlayerSide)
    (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams)
    (f : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d)) : _root_.LIDT.MIPStarRE.Quantum.Op (S.ExpandedLocalSpace side) :=
  ∑ pair ∈ Finset.univ.filter
      (fun pair : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) ×
          _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) => pair.1 + pair.2 = f),
    _root_.MIPStarRE.QPBT.heteroKron ((S.lineMeas side W line).effect pair.1)
      (_root_.MIPStarRE.QPBT.tauLineProj P W line pair.2)

/-- Expanded line effects are positive semidefinite. This is the positivity
obligation of `def:expanded-line-measurement`, paper
`14_analysis_of_the_pauli_basis_test.tex:552-556`. -/
theorem expLineOp_nonneg (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε) (side : _root_.MIPStarRE.QPBT.PlayerSide)
    (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams)
    (f : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d)) :
    0 ≤ S.expLineOp side W line f := by
  unfold _root_.MIPStarRE.QPBT.ProjectiveSetting.expLineOp
  exact Finset.sum_nonneg fun pair _ => _root_.LIDT.MIPStarRE.Quantum.kronecker_nonneg
    ((S.lineMeas side W line).pos pair.1) (_root_.MIPStarRE.QPBT.tauLineProj_nonneg P W line pair.2)

/-- Expanded line effects sum to the identity. This is the completeness
obligation of `def:expanded-line-measurement`, paper
`14_analysis_of_the_pauli_basis_test.tex:552-556`. -/
theorem expLineOp_sum_eq_one (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε) (side : _root_.MIPStarRE.QPBT.PlayerSide)
    (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams) :
    ∑ f, S.expLineOp side W line f = 1 := by
  let A : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) × _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) →
      _root_.LIDT.MIPStarRE.Quantum.Op (S.ExpandedLocalSpace side) := fun pair =>
    _root_.MIPStarRE.QPBT.heteroKron ((S.lineMeas side W line).effect pair.1)
      (_root_.MIPStarRE.QPBT.tauLineProj P W line pair.2)
  let g : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) × _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) →
      _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) := fun pair => pair.1 + pair.2
  calc
    (∑ f, S.expLineOp side W line f) =
        ∑ f, ∑ pair ∈ Finset.univ.filter (fun pair => g pair = f), A pair := rfl
    _ = ∑ pair, A pair := Finset.sum_fiberwise Finset.univ g A
    _ = _root_.MIPStarRE.QPBT.heteroKron (∑ x, (S.lineMeas side W line).effect x)
        (∑ y, _root_.MIPStarRE.QPBT.tauLineProj P W line y) := by
      rw [Fintype.sum_prod_type]
      exact (heteroKron_sum_sum _ _).symm
    _ = 1 := by
      rw [(S.lineMeas side W line).sum_eq_one, _root_.MIPStarRE.QPBT.sum_tauLineProj_eq_one]
      exact _root_.MIPStarRE.QPBT.heteroKron_one_one

/-- The concrete expanded line measurement exhibited in the proof of
`lem:qld-comm-line-cons`. Paper
`14_analysis_of_the_pauli_basis_test.tex:552-556`, blueprint
`def:expanded-line-measurement`. -/
noncomputable def lineMeasExp (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε) (side : _root_.MIPStarRE.QPBT.PlayerSide)
    (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams) :
    _root_.LIDT.MIPStarRE.Quantum.Measurement (_root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d))
      (S.ExpandedLocalSpace side) :=
  _root_.LIDT.MIPStarRE.Quantum.Measurement.ofSumEqOne (S.expLineOp side W line)
    (S.expLineOp_nonneg side W line) (S.expLineOp_sum_eq_one side W line)

/-- The effects of the expanded line measurement are the convolution
operators. -/
@[simp] theorem lineMeasExp_effect (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε)
    (side : _root_.MIPStarRE.QPBT.PlayerSide) (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams)
    (f : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d)) :
    (S.lineMeasExp side W line).effect f = S.expLineOp side W line f := rfl

/-- The fine product measurement underlying the convolution definition of an
expanded line measurement. Its outcome records the strategy and Pauli line
polynomials separately. Blueprint `def:line-tau-product-measurement`, paper
`14_analysis_of_the_pauli_basis_test.tex:552-558`. -/
noncomputable def lineTauMeas (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε) (side : _root_.MIPStarRE.QPBT.PlayerSide)
    (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams) :
    _root_.LIDT.MIPStarRE.Quantum.Measurement (_root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) ×
      _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d)) (S.ExpandedLocalSpace side) :=
  _root_.LIDT.MIPStarRE.Quantum.Measurement.ofSumEqOne
    (fun p => _root_.MIPStarRE.QPBT.heteroKron ((S.lineMeas side W line).effect p.1)
      ((_root_.MIPStarRE.QPBT.tauLineMeas P W line).effect p.2))
    (fun p => _root_.LIDT.MIPStarRE.Quantum.kronecker_nonneg
      ((S.lineMeas side W line).pos p.1) ((_root_.MIPStarRE.QPBT.tauLineMeas P W line).pos p.2))
    (by
      change ∑ p : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) ×
          _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d),
          _root_.MIPStarRE.QPBT.heteroKron ((S.lineMeas side W line).effect p.1)
            (_root_.MIPStarRE.QPBT.tauLineProj P W line p.2) = 1
      rw [Fintype.sum_prod_type]
      calc
        (∑ x, ∑ y, _root_.MIPStarRE.QPBT.heteroKron ((S.lineMeas side W line).effect x)
            (_root_.MIPStarRE.QPBT.tauLineProj P W line y)) =
            _root_.MIPStarRE.QPBT.heteroKron (∑ x, (S.lineMeas side W line).effect x)
              (∑ y, _root_.MIPStarRE.QPBT.tauLineProj P W line y) := (heteroKron_sum_sum _ _).symm
        _ = 1 := by
          rw [(S.lineMeas side W line).sum_eq_one, _root_.MIPStarRE.QPBT.sum_tauLineProj_eq_one]
          exact _root_.MIPStarRE.QPBT.heteroKron_one_one)

/-- Effects of the fine product measurement are the corresponding Kronecker
products of strategy and Pauli line effects. -/
@[simp] theorem lineTauMeas_effect (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε)
    (side : _root_.MIPStarRE.QPBT.PlayerSide) (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams)
    (p : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) × _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d)) :
    (S.lineTauMeas side W line).effect p =
      _root_.MIPStarRE.QPBT.heteroKron ((S.lineMeas side W line).effect p.1)
        (_root_.MIPStarRE.QPBT.tauLineProj P W line p.2) := rfl



/-- An expanded line effect is idempotent: the strategy line projectors and
the Pauli line projectors are both orthogonal families, so distinct
convolution terms annihilate one another. This is the projectivity
calculation of `def:expanded-line-measurement`, paper
`14_analysis_of_the_pauli_basis_test.tex:552-556`. -/
private theorem expLineOp_mul_self (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε)
    (side : _root_.MIPStarRE.QPBT.PlayerSide) (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams)
    (f : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d)) :
    S.expLineOp side W line f * S.expLineOp side W line f =
      S.expLineOp side W line f := by
  have hM := S.lineMeas_isProjective side W line
  unfold _root_.MIPStarRE.QPBT.ProjectiveSetting.expLineOp
  set s := Finset.univ.filter
    (fun pair : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) ×
        _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) => pair.1 + pair.2 = f) with hs
  let K : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) ×
      _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d) → _root_.LIDT.MIPStarRE.Quantum.Op (S.ExpandedLocalSpace side) :=
    fun p => _root_.MIPStarRE.QPBT.heteroKron ((S.lineMeas side W line).effect p.1)
      (_root_.MIPStarRE.QPBT.tauLineProj P W line p.2)
  change (∑ p ∈ s, K p) * (∑ q ∈ s, K q) = ∑ p ∈ s, K p
  calc
    (∑ p ∈ s, K p) * (∑ q ∈ s, K q) = ∑ p ∈ s, ∑ q ∈ s, K p * K q := by
      rw [Finset.sum_mul]
      simp_rw [Finset.mul_sum]
    _ = ∑ p ∈ s, ∑ q ∈ s, if q = p then K p else 0 := by
      refine Finset.sum_congr rfl fun p _ => Finset.sum_congr rfl fun q _ => ?_
      simp only [K]
      rw [_root_.MIPStarRE.QPBT.heteroKron_mul]
      by_cases hqp : q = p
      · subst hqp
        rw [if_pos rfl, (hM q.1).isIdempotentElem.eq,
          _root_.MIPStarRE.QPBT.tauLineProj_mul_tauLineProj, if_pos rfl]
      · rw [if_neg hqp]
        by_cases h1 : p.1 = q.1
        · have h2 : p.2 ≠ q.2 := fun h2 => hqp (Prod.ext h1.symm h2.symm)
          rw [_root_.MIPStarRE.QPBT.tauLineProj_mul_tauLineProj, if_neg h2, _root_.MIPStarRE.QPBT.heteroKron_zero_right]
        · rw [_root_.MIPStarRE.QPBT.DistanceCalculus.projective_effect_mul_effect_eq_zero _ hM h1,
            _root_.MIPStarRE.QPBT.heteroKron_zero_left]
    _ = ∑ p ∈ s, K p := by
      refine Finset.sum_congr rfl fun p hp => ?_
      simp [hp]

/-- The expanded line measurement is projective. This is the projectivity
assertion in `def:expanded-line-measurement`, paper
`14_analysis_of_the_pauli_basis_test.tex:552-556`. -/
theorem lineMeasExp_isProjective (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε)
    (side : _root_.MIPStarRE.QPBT.PlayerSide) (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams) :
    _root_.MIPStarRE.QPBT.Measurement.IsProjective (S.lineMeasExp side W line) := by
  intro f
  refine ⟨?_, ?_⟩
  · change S.expLineOp side W line f * S.expLineOp side W line f =
      S.expLineOp side W line f
    exact expLineOp_mul_self S side W line f
  · change star (S.expLineOp side W line f) = S.expLineOp side W line f
    rw [Matrix.star_eq_conjTranspose]
    exact (Matrix.nonneg_iff_posSemidef.mp
      (S.expLineOp_nonneg side W line f)).isHermitian.eq



/-- Evaluation classes of the expanded line measurement, including the
explicit `none` class for a non-evaluating canonical line. This is the
completed bracket family used in item 3 of `lem:qld-comm-line-cons`, blueprint
`eq:qld-comm-line-pt-cons2`. -/
noncomputable def lineEvalMeasExp (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε)
    (side : _root_.MIPStarRE.QPBT.PlayerSide) (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams)
    (u : Fin P.m → _root_.MIPStarRE.QPBT.PauliScalar P) :
    _root_.LIDT.MIPStarRE.Quantum.Measurement (Option (_root_.MIPStarRE.QPBT.PauliScalar P)) (S.ExpandedLocalSpace side) :=
  (S.lineMeasExp side W line).postprocess (_root_.MIPStarRE.QPBT.evalOpt line u)

/-- Complete an expanded point measurement with a zero `none` outcome. This
is the right-hand family in the corrected item 3 of
`lem:qld-comm-line-cons`, blueprint
`eq:qld-comm-line-pt-cons2`. -/
noncomputable def pointMeasExpOption (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε)
    (side : _root_.MIPStarRE.QPBT.PlayerSide) (W : _root_.MIPStarRE.QPBT.PauliKind) (u : Fin P.m → _root_.MIPStarRE.QPBT.PauliScalar P) :
    _root_.LIDT.MIPStarRE.Quantum.Measurement (Option (_root_.MIPStarRE.QPBT.PauliScalar P)) (S.ExpandedLocalSpace side) :=
  (S.pointMeasExp side W u).postprocess some

/-- The point effect indexed by a line answer, with zero assigned when the
answer has no evaluation at the sampled point. This is the zero-direction
completion used in item 2 of `lem:qld-comm-line-cons`, blueprint
`eq:qld-comm-line-pt-cons`. -/
noncomputable def expPointEffectAtLineAnswer (S : _root_.MIPStarRE.QPBT.ProjectiveSetting P ε)
    (side : _root_.MIPStarRE.QPBT.PlayerSide) (W : _root_.MIPStarRE.QPBT.PauliKind) (line : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams)
    (u : Fin P.m → _root_.MIPStarRE.QPBT.PauliScalar P) (f : _root_.MIPStarRE.QPBT.DegPoly P.toLdParams (P.m * P.d)) :
    _root_.LIDT.MIPStarRE.Quantum.Op (S.ExpandedLocalSpace side) :=
  match _root_.MIPStarRE.QPBT.evalOpt line u f with
  | some a => (S.pointMeasExp side W u).effect a
  | none => 0

end ProjectiveSetting

end

end MIPStarRE.QPBT
Source
https://github.com/Dengnifer/MIPStarRE-QPBT/blob/8f4118aeea7be16912adbaee3df6dce1741a2c26/QPBT/Observables/LineMeasurement/Expanded.lean#L34-L330

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