AFTD Auto-Formalizing Theoretical Domains

p_amp_damping

def

The projection matrix P = |1⟩⟨1| onto the second standard basis state in dimension d ≥ 2.

Statement

def p_amp_damping (d : ℕ) (h : 2 ≤ d) : Matrix (Fin d) (Fin d) ℂ
Defined in
arXiv:2610.37187, Section 7, Eq. (7.1)
Verified
07 Nov 2026
Axioms
none listed
Used by 7

Read back from the Lean

Given a natural number $d$ and a proof $h : 2 \le d$, p_amp_damping d h is defined as the $d \times d$ complex matrix whose $(r, c)$-entry is $1$ if both $r$ and $c$ are equal to $1$ (as elements of Fin d, which is valid because $1 < 2 \le d$), and $0$ otherwise (i.e., the single-entry matrix with $1$ at index $(1, 1)$ and $0$ elsewhere).

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 projector P = |1⟩⟨1| for amplitude damping in dimension d ≥ 2. -/
def p_amp_damping (d : ℕ) (h : 2 ≤ d) : Matrix (Fin d) (Fin d) ℂ := fun r c => if r = ⟨1, by omega⟩ ∧ c = ⟨1, by omega⟩ then 1 else 0
See it in the graphDiscuss this resultChallenge it