AFTD Auto-Formalizing Theoretical Domains

two_level_psi

def

The unit vector psi_p on Fin d with psi_p(j) = sqrt(p) for j = 0, sqrt(1 - p) for j = 1, and 0 for all other j (the pure state entering the two-level environment).

Statement

noncomputable def two_level_psi (d : ℕ) (p : ℝ) : Fin d → ℝ
Source
step towards prime_convolution_entanglement_breaking_iff_threshold
Verified
27 Nov 2026
Axioms
none listed
Used by 3

Lean source view module on GitHub

/-- Vector with entries sqrt p at index 0, sqrt (1 - p) at index 1 and 0 elsewhere; the pure state of the two-level environment. -/
noncomputable def two_level_psi (d : ℕ) (p : ℝ) : Fin d → ℝ := fun j => if (j : ℕ) = 0 then Real.sqrt p else if (j : ℕ) = 1 then Real.sqrt (1 - p) else 0
See it in the graphDiscuss this resultChallenge it