AFTD Auto-Formalizing Theoretical Domains

two_level_environment

def

With d : ℕ and real numbers p, t, returns the complex d×d matrix (1 − t)·I/d + t·|ψ⟩⟨ψ|, where ψ : Fin d → ℝ has ψ j = √p when the natural-number value of j is 0, ψ j = √(1 − p) when it is 1, and ψ j = 0 otherwise; that is, entry (j, l) is (1 − t)/d if j = l and 0 otherwise, plus t·ψ j·ψ l. For p, t in [0, 1] and d ≥ 2 it is the state σ_{p,t} = (1 − t) I_d/d + t|ψ_p⟩⟨ψ_p| with |ψ_p⟩ = √p|0⟩ + √(1 − p)|1⟩.

Statement

noncomputable def two_level_environment (d : ℕ) (p t : ℝ) : Matrix (Fin d) (Fin d) ℂ
Defined in
OP-2466 (proposed here; it builds on the qutrit convolution channels of arXiv:2609.16200, whose Theorem 8 gives the exact PPT and entanglement-breaking threshold 2/5 on a balanced two-level qutrit slice, and on arXiv:2611.09594, which shows PPT and entanglement breaking differ for another convolution environment). The noisy two-level environment σ_{p,t} of the entry.
Verified
26 Nov 2026
Axioms
none listed
Used by 5

Read back from the Lean

The definition two_level_environment (d : ℕ) (p t : ℝ) is the d × d matrix with complex entries whose (j, l)-th entry (for j, l : Fin d) is: (if j = l then (1 - t) / d else 0) + t * v_j * v_l (all terms coerced from ℝ to ℂ), where for any k : Fin d: v_k = Real.sqrt p if (k : ℕ) = 0, = Real.sqrt (1 - p) if (k : ℕ) = 1, = 0 otherwise. Equivalently, it is the d × d matrix representing ((1 - t) / d) • I + t • (v vᵀ) where v is the vector (√p, √(1-p), 0, ..., 0)ᵀ ∈ ℝ^d cast to ℂ.

Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.

Lean source view module on GitHub

/-- The environment `(1 - t) I/d + t |ψ_p⟩⟨ψ_p|` with `ψ_p = √p |0⟩ + √(1-p) |1⟩`. -/
noncomputable def two_level_environment (d : ℕ) (p t : ℝ) : Matrix (Fin d) (Fin d) ℂ :=
  Matrix.of fun j l =>
    ((if j = l then (1 - t) / d else 0 : ℝ) : ℂ) +
      (t : ℂ) * ((if (j : ℕ) = 0 then Real.sqrt p else if (j : ℕ) = 1 then Real.sqrt (1 - p) else 0 : ℝ) : ℂ) *
        ((if (l : ℕ) = 0 then Real.sqrt p else if (l : ℕ) = 1 then Real.sqrt (1 - p) else 0 : ℝ) : ℂ)
See it in the graphDiscuss this resultChallenge it