Quantum states and tensor placement for the low individual degree test #
Core quantum-state definitions together with tensor-placement operators.
A PSD density matrix indexed by ι.
There is intentionally no global Inhabited instance: the zero matrix is PSD but
not a physical state of unit trace, so an ambient default would silently
trivialize later statements. Use IsNormalized to additionally require
τ(ρ) = 1.
This remains the ambient state space for the current LDT development: strategy
packages in LDT/Test/StrategyCore.lean, the SWAP-symmetry API PermInvState,
and the expectation-value lemmas in LDT/Basic/OperatorExpectations.lean are all
stated for arbitrary density matrices, not only pure states.
- density : Quantum.Op ι
Instances For
Unit normalized trace for the concrete matrix carried by a state.
Equations
Instances For
A normalized state has a nonempty carrier: if the carrier were empty, the
trace would vanish and normalizedTrace = 0 / 0 = 0, contradicting = 1.
The scaled rank-one density matrix attached to a state vector.
Because this development uses the normalized trace τ(A) = tr(A) / dim, the
quantum state represented by a unit vector ψ is dim · |ψ⟩⟨ψ| rather than the
raw projector |ψ⟩⟨ψ|. This scaling makes τ(ρ) = 1 and keeps ev aligned
with the paper's bra-ket expectations.
Equations
- MIPStarRE.LDT.pureDensity ψ = ↑(Fintype.card ι) • Matrix.vecMulVec ψ (star ψ)
Instances For
A pure-state witness as a unit vector in the ambient finite Hilbert space.
The associated density matrix is pureDensity ψ.vector = dim · |ψ⟩⟨ψ|, so that
coercing to QuantumState preserves the paper's scalar ⟨ψ|X|ψ⟩ formulas
despite our use of the normalized trace.
- vector : ι → ℂ
Instances For
The coordinate-basis pure state at a distinguished basis vector.
Equations
Instances For
The density matrix represented by a pure-state witness.
Equations
Instances For
Equations
- ψ.toQuantumState = { density := ψ.density, density_psd := ⋯ }
Instances For
Vector-level SWAP invariance for a bipartite pure-state witness.
This is stronger than density-level SWAP invariance: it records the paper's honest vector symmetry and rules out antisymmetric vectors, even though those vectors define SWAP-invariant density matrices.
Equations
Instances For
The expectation Re τ(ψ X). Dimensions match by construction.
Equations
- MIPStarRE.LDT.ev ψ X = (MIPStarRE.Quantum.normalizedTrace (ψ.density * X)).re
Instances For
Tensor product of two operators via Kronecker product.
Equations
- MIPStarRE.LDT.opTensor A B = Matrix.kronecker A B
Instances For
Left placement A ⊗ I on a bipartite space ι₁ × ι₂.
Equations
Instances For
Right placement I ⊗ B on a bipartite space ι₁ × ι₂.
Equations
Instances For
Left placement of the identity is the identity on the product space.
Right placement of the identity is the identity on the product space.
Local tensor placements multiply to the full Kronecker product.
Positivity is preserved by opTensor.
The normalized trace of a tensor product is the product of the normalized traces.
Tensor product of two quantum states.
Instances For
Tensor products of normalized states are normalized.
If 0 ≤ A and B ≤ 1, then A ⊗ B ≤ A ⊗ I.
opTensor is monotone in the left factor against a PSD right factor.
Left tensor placement is monotone.
opTensor is monotone in the right factor against a PSD left factor.
Right tensor placement is monotone.
rightTensor B * leftTensor A = opTensor A B.
leftTensor A * leftTensor B = leftTensor (A * B).
Multiplying a left tensor into a full tensor only affects the left factor.
Multiplying a full tensor by a left tensor only affects the left factor.
Scalar multiplication commutes with left tensor placement.
Powers commute with left tensor placement.
rightTensor A * rightTensor B = rightTensor (A * B).
Multiplying a right tensor into a full tensor only affects the right factor.
Conjugate transpose distributes over opTensor.
Conjugate transpose commutes with left tensor placement.
Conjugate transpose commutes with right tensor placement.
opTensor distributes over multiplication.
opTensor is linear in the left factor: subtraction.
Left tensor placement commutes with subtraction.
Right tensor placement commutes with subtraction.
opTensor is linear in the left factor: real scalar multiplication.
opTensor is linear in the right factor: real scalar multiplication.
opTensor is additive in the left factor.
opTensor is additive in the right factor.
Pull a finite sum out of the left factor of opTensor.
Pull a finite sum out of the right factor of opTensor.
Pull an unindexed finite-type sum out of the left factor of opTensor.
Pull an unindexed finite-type sum out of the right factor of opTensor.