Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Relabelling the basis along a bijection preserves density operators

Proved
BosonicLearn.isDensity_reindex

by Senrui Chen · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

bosonic-gaussian-statesquantum-informationquantum-learning

A density operator remains a density operator when the basis is relabelled.

Let XXX be a density operator on ℓ2(A)\ell^2(A)ℓ2(A), given by its matrix, and let e ⁣:A→Be\colon A\to Be:A→B be a bijection of index sets. Then the matrix

X′(i,j)=X(e−1(i),e−1(j)),i,j∈B,X'(i,j)=X\big(e^{-1}(i),e^{-1}(j)\big),\qquad i,j\in B,X′(i,j)=X(e−1(i),e−1(j)),i,j∈B,

is a density operator on ℓ2(B)\ell^2(B)ℓ2(B).

Role. It allows the product basis of a multi-copy system to be indexed in whichever way is convenient, for instance by tuples or by nested pairs.

Formalization Note Density operators are IsDensity of Dependency50.P33. The index sets are arbitrary.

Related platform material The space ℓ2(A)\ell^2(A)ℓ2(A) used here (Hilbert A) is the same Lean type as OAI.TensorLp.H A, and ℓ2(Nn)\ell^2(\mathbb N^n)ℓ2(Nn) is the same type as OAI.EntropyPhotonNumber.Fock n. The published definitions OAI_Analysis_TensorLp (tensor products, slices and operator lifts on ℓ2(A×B)\ell^2(A\times B)ℓ2(A×B)) and OAI_MathematicalPhysics_Fock_Operators (OAI.CrossEnsemble.operator, the bounded operator ∑i∣ui⟩⟨vi∣\sum_i|u_i\rangle\langle v_i|∑i​∣ui​⟩⟨vi​∣ of a family, with hasSum_operator and entry_hasSum) are sorry-free and can be imported. Proved lemmas of this mission that can be imported: BosonicLearn.traceDist_le_one (nuclear expansions, truncation to finite index sets) BosonicLearn.effect_matrix_operator (effect matrices as bounded positive operators), BosonicLearn.effect_trace_pairing (Born sums along nuclear expansions), BosonicLearn.fockPOVM_form_measure (effects are weakly σ\sigmaσ-additive) and BosonicLearn.fockPOVM_postprocess.

Preamble
import Mathlib
import Definitions.Def_QAlgorithms_Papers_Independent_Dependency50_P33

open QAlgorithms.Papers.Independent.Dependency50.P33 (IsDensity)
Formal statement
namespace BosonicLearn

/-- **Relabelling the basis preserves density operators.**
Chen, Anna Mele, Anna Mele, Preskill, *When are bosonic Gaussian states classical to learn?*, arXiv:2609.26705, §1.1, p. 4: "A natural basis for H^{(n)} is the Fock basis {|m⟩ ≡ |m_1⟩ ⊗ ⋯ ⊗ |m_n⟩}_{m ∈ ℕⁿ}".

If `X` is a density operator on `ℓ²(A)` and `e : A ≃ B` is a bijection of index sets, then the relabelled matrix
`X'(i, j) = X(e⁻¹ i, e⁻¹ j)` is a density operator on `ℓ²(B)`.

**Formalization Note.** Density operators are `IsDensity` of `Dependency50.P33`. The index sets are arbitrary. -/
theorem isDensity_reindex {A B : Type} (e : A ≃ B) {X : Matrix A A ℂ} (hX : IsDensity X) :
    IsDensity (fun i j : B => X (e.symm i) (e.symm j)) := by sorry

end BosonicLearn
Source
Chen, Anna Mele, Anna Mele, Preskill, When are bosonic Gaussian states classical to learn?, arXiv:2609.26705, §1.1, p. 4 ("A natural basis for H^{(n)} is the Fock basis {|m⟩ ≡ |m_1⟩ ⊗ ⋯ ⊗ |m_n⟩}")

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