QPBT definitions: Combining / Lines / SubLineConstruct
DefinitionQPBT_QPBT_Combining_Lines_SubLineConstructqpbt
This bundle defines the auxiliary randomness and decoded lines in one branch of the subline sampling procedure. It packages the extended sample, scalar seeds, line laws, and the resulting extended line, source lines, and sampled triple.
Principal definitions:
MIPStarRE.QPBT.SubLinePointDir: defines an extended point together with an extended direction.MIPStarRE.QPBT.SubLineSamplingData: defines the auxiliary randomness of one sampling branch, including an extended point, direction, and two source-line scalar seeds.MIPStarRE.QPBT.subLineSeedDist: defines the scalar-seed law at a coordinate index as uniform on that coordinate fiber.MIPStarRE.QPBT.subLineSamplingDist: defines the auxiliary randomness law of the sampling procedure.MIPStarRE.QPBT.subLineExtLineOfSample: defines the extended line of a branch from the canonical axis or diagonal line of the extended sample.MIPStarRE.QPBT.subLineExtLine: defines the extended line read from the auxiliary randomness.MIPStarRE.QPBT.subLineSourceLine: defines a source line from the point block, scalar seed, and direction block.MIPStarRE.QPBT.subLineTripleOf: defines the sampled triple consisting of the extended line and the two decoded source lines.
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/Combining/Lines/SubLineConstruct.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_Distribution
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_QPBT_QPBT_Algebra_FieldBasis
import Definitions.Def_QPBT_QPBT_Combining_Defs
import Definitions.Def_QPBT_QPBT_Combining_DirectLowDegree_Geometry
import Definitions.Def_QPBT_QPBT_Combining_Lines_SubLineBlocks
import Definitions.Def_QPBT_QPBT_Combining_Lines_SubLineBranch
import Definitions.Def_QPBT_QPBT_Combining_Lines_SubLineSeed
import Definitions.Def_QPBT_QPBT_Combining_Witnesses
import Definitions.Def_QPBT_QPBT_Games_DistributionAux
import Definitions.Def_QPBT_QPBT_Observables_LineDefs
import Definitions.Def_QPBT_QPBT_Test_LowDegreeGame
import Definitions.Def_QPBT_QPBT_Test_PauliBasisTest
import Mathlib
import Mathlib.Analysis.MeanInequalitiesPow
namespace LIDT.MIPStarRE.LDT
end LIDT.MIPStarRE.LDT
namespace MIPStarRE.QPBT
end MIPStarRE.QPBT
/-!
# The sampling procedure of the sub-line lemma
This module carries out the sampling procedure of `lem:qld-sublines`. A line
kind is drawn from the two kinds, an extended coordinate and an extended point
and direction are drawn uniformly, and two scalar seeds are drawn
independently in the coordinate-index fibers of the two coordinates that the
two source lines must carry. The sampled triple consists of the axis or
diagonal line of the extended sample together with the two source lines
decoded from the two coordinate blocks of the extended point and direction and
from the two seeds.
The module records the elementary evaluations of that triple, the description
of the support of the resulting law, the three pointwise properties of a
sampled triple -- incidence of the two source blocks, compatibility of the
affine data, and closure of the axis branch -- and the identification of its
extended-line marginal.
## References
The construction is the proof of `lem:qld-sublines` in
blueprint `lem:qld-sublines`, whose source is
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`.
The restricted laws are `def:ith-restricted-line`, blueprint lines
1209--1228, paper lines 1038--1048.
-/
@[expose] public section
open scoped BigOperators
namespace MIPStarRE.QPBT
open LIDT.MIPStarRE.LDT
noncomputable section
/-! ## The auxiliary randomness of one branch -/
/-- An extended point together with an extended direction. Blueprint
`lem:qld-sublines`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`. -/
abbrev SubLinePointDir (P : _root_.MIPStarRE.QPBT.AdmissibleParams) :=
(Fin P.extendedDirectLd.m → _root_.MIPStarRE.QPBT.DirectScalarQ P.extendedDirectLd) ×
(Fin P.extendedDirectLd.m → _root_.MIPStarRE.QPBT.DirectScalarQ P.extendedDirectLd)
/-- The auxiliary randomness of one branch of the sampling procedure: an
extended point, an extended direction, and the two scalar seeds of the two
source lines. Blueprint `lem:qld-sublines`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`. -/
abbrev SubLineSamplingData (P : _root_.MIPStarRE.QPBT.AdmissibleParams) :=
_root_.MIPStarRE.QPBT.SubLinePointDir P × (_root_.MIPStarRE.QPBT.ScalarQ P.toLdParams × _root_.MIPStarRE.QPBT.ScalarQ P.toLdParams)
/-- The law of the scalar seed carried by a source line at a given coordinate
index: uniform on the coordinate-index fiber of that index. Blueprint
`def:ith-restricted-line`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1038-1048`. -/
noncomputable def subLineSeedDist (P : _root_.MIPStarRE.QPBT.AdmissibleParams) (i : Fin P.m) :
_root_.LIDT.MIPStarRE.LDT.Distribution (_root_.MIPStarRE.QPBT.ScalarQ P.toLdParams) :=
_root_.MIPStarRE.QPBT.Distribution.restrict (_root_.LIDT.MIPStarRE.LDT.uniformDistribution (_root_.MIPStarRE.QPBT.ScalarQ P.toLdParams))
(_root_.MIPStarRE.QPBT.ldSeedIndexEvent P.toLdParams i) (_root_.MIPStarRE.QPBT.ldSeedIndexEvent_positive P.toLdParams i)
/-- The auxiliary randomness law of the sampling procedure: the extended
coordinate is uniform, the extended point and direction are uniform and
independent of it, and the two seeds are independent and uniform on the
coordinate-index fibers of the two coordinates carried by the two source
lines. Blueprint `lem:qld-sublines`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`. -/
noncomputable def subLineSamplingDist (P : _root_.MIPStarRE.QPBT.AdmissibleParams) :
_root_.LIDT.MIPStarRE.LDT.Distribution (Fin (2 * P.m + 2) × _root_.MIPStarRE.QPBT.SubLineSamplingData P) :=
_root_.MIPStarRE.QPBT.Distribution.bind (_root_.LIDT.MIPStarRE.LDT.uniformDistribution (Fin (2 * P.m + 2))) fun k =>
(_root_.MIPStarRE.QPBT.Distribution.prod (_root_.LIDT.MIPStarRE.LDT.uniformDistribution (_root_.MIPStarRE.QPBT.SubLinePointDir P))
(_root_.MIPStarRE.QPBT.Distribution.prod (_root_.MIPStarRE.QPBT.subLineSeedDist P (_root_.MIPStarRE.QPBT.subLineXIndex P k))
(_root_.MIPStarRE.QPBT.subLineSeedDist P (_root_.MIPStarRE.QPBT.subLineZIndex P k)))).map fun w => (k, w)
/-! ## The sampled triple -/
/-- The extended line of a branch: the canonical axis or diagonal line of an
extended sample. Blueprint `lem:qld-sublines`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`. -/
noncomputable def subLineExtLineOfSample (P : _root_.MIPStarRE.QPBT.AdmissibleParams)
(kind : _root_.MIPStarRE.QPBT.LineKind) (s : _root_.MIPStarRE.QPBT.DirectLdSpace P.extendedDirectLd) :
_root_.MIPStarRE.QPBT.DirectLineDesc P.extendedDirectLd :=
match kind with
| .axis => _root_.MIPStarRE.QPBT.directALineDescOf P.extendedDirectLd s
| .diagonal => _root_.MIPStarRE.QPBT.directDLineDescOf P.extendedDirectLd s
/-- The extended line of a branch, read off the auxiliary randomness.
Blueprint `lem:qld-sublines`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`. -/
noncomputable def subLineExtLine (P : _root_.MIPStarRE.QPBT.AdmissibleParams) (kind : _root_.MIPStarRE.QPBT.LineKind)
(k : Fin (2 * P.m + 2)) (w : _root_.MIPStarRE.QPBT.SubLineSamplingData P) :
_root_.MIPStarRE.QPBT.DirectLineDesc P.extendedDirectLd :=
_root_.MIPStarRE.QPBT.subLineExtLineOfSample P kind ⟨w.1.1, k, w.1.2⟩
/-- A source line of a branch: the canonical axis or diagonal line decoded
from a point block, a scalar seed and a direction block. Blueprint
`lem:qld-sublines`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`. -/
noncomputable def subLineSourceLine (P : _root_.MIPStarRE.QPBT.AdmissibleParams) (kind : _root_.MIPStarRE.QPBT.LineKind)
(b : Fin P.m → _root_.MIPStarRE.QPBT.PauliScalar P) (s : _root_.MIPStarRE.QPBT.ScalarQ P.toLdParams)
(d : Fin P.m → _root_.MIPStarRE.QPBT.PauliScalar P) : _root_.MIPStarRE.QPBT.LineDesc P.toLdParams :=
match kind with
| .axis => _root_.MIPStarRE.QPBT.aLineDescOfBlock P.toLdParams (b, (s, d))
| .diagonal => _root_.MIPStarRE.QPBT.dLineDescOfBlock P.toLdParams (b, (s, d))
/-- The triple sampled by one branch of the procedure: the extended line
together with the two source lines decoded from its two coordinate blocks and
from the two scalar seeds. Blueprint `lem:qld-sublines`,
paper `references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`.
-/
noncomputable def subLineTripleOf (P : _root_.MIPStarRE.QPBT.AdmissibleParams) (kind : _root_.MIPStarRE.QPBT.LineKind)
(k : Fin (2 * P.m + 2)) (w : _root_.MIPStarRE.QPBT.SubLineSamplingData P) : _root_.MIPStarRE.QPBT.SubLineTriple P :=
(_root_.MIPStarRE.QPBT.subLineExtLine P kind k w,
(_root_.MIPStarRE.QPBT.subLineSourceLine P kind (_root_.MIPStarRE.QPBT.projX (_root_.MIPStarRE.QPBT.directPointToPauli P w.1.1)) w.2.1
(_root_.MIPStarRE.QPBT.projX (_root_.MIPStarRE.QPBT.directPointToPauli P w.1.2)),
_root_.MIPStarRE.QPBT.subLineSourceLine P kind (_root_.MIPStarRE.QPBT.projZ (_root_.MIPStarRE.QPBT.directPointToPauli P w.1.1)) w.2.2
(_root_.MIPStarRE.QPBT.projZ (_root_.MIPStarRE.QPBT.directPointToPauli P w.1.2))))
/-- The law of the triples sampled by one branch. Blueprint
`lem:qld-sublines`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`. -/
noncomputable def subLineBranchDist (P : _root_.MIPStarRE.QPBT.AdmissibleParams) (kind : _root_.MIPStarRE.QPBT.LineKind) :
_root_.LIDT.MIPStarRE.LDT.Distribution (_root_.MIPStarRE.QPBT.SubLineTriple P) :=
(_root_.MIPStarRE.QPBT.subLineSamplingDist P).map fun w => _root_.MIPStarRE.QPBT.subLineTripleOf P kind w.1 w.2
/-- The sub-line law of `lem:qld-sublines`: the equal mixture of the two
branches of the sampling procedure. Blueprint
`lem:qld-sublines`, paper
`references/qpbt-paper/14_analysis_of_the_pauli_basis_test.tex:1063-1116`. -/
noncomputable def subLineDist (P : _root_.MIPStarRE.QPBT.AdmissibleParams) :
_root_.LIDT.MIPStarRE.LDT.Distribution (_root_.MIPStarRE.QPBT.SubLineTriple P) :=
_root_.MIPStarRE.QPBT.Distribution.bind (_root_.LIDT.MIPStarRE.LDT.uniformDistribution (Fin 2))
![_root_.MIPStarRE.QPBT.subLineBranchDist P .axis, _root_.MIPStarRE.QPBT.subLineBranchDist P .diagonal]
/-! ## Elementary evaluations of the sampled triple -/
/-! ## The support of the sub-line law -/
/-! ## Pointwise properties of a sampled triple -/
/-! ## Total mass and extended marginal -/
/-- The index-first decomposition of an extended direct sample, read at the
bare extended dimension. This is the decomposition
`directLdSpaceIndexEquiv` of `def:ld-question-distribution` with its stored
coordinate typed by the bare dimension `2 m + 2`. -/
def subLineSampleEquiv (P : _root_.MIPStarRE.QPBT.AdmissibleParams) :
_root_.MIPStarRE.QPBT.DirectLdSpace P.extendedDirectLd ≃
Fin (2 * P.m + 2) × _root_.MIPStarRE.QPBT.SubLinePointDir P where
toFun s := (s.index, s.point, s.direction)
invFun w := ⟨w.2.1, w.1, w.2.2⟩
left_inv s := by cases s; rfl
right_inv w := by cases w; rfl
end
end MIPStarRE.QPBT
Source