AFTD Auto-Formalizing Theoretical Domains

noon_realign_witness

def

For any natural number N, real balance parameter q, and real transmissivities x, y, the second-moment realignment witness W_N(q, x, y) is defined as the sum over k in Finset.range (N + 1) of (q * (Nat.choose N k : Real) * x^k * (1-x)^(N-k) + (1-q) * (Nat.choose N k : Real) * y^k * (1-y)^(N-k))^2 plus 4 * q * (1-q) * (x * y)^N.

Statement

def noon_realign_witness (N : ℕ) (q x y : ℝ) : ℝ
Defined in
arXiv:2611.17021
Verified
15 Nov 2026
Axioms
none listed
Used by 2

Read back from the Lean

Given a natural number $N$ and real numbers $q$, $x$, and $y$, noon_realign_witness N q x y is defined as the real number $$\sum_{k=0}^{N} \left( q \binom{N}{k} x^k (1 - x)^{N - k} + (1 - q) \binom{N}{k} y^k (1 - y)^{N - k} \right)^2 + 4 q (1 - q) (x y)^N.$$

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 second-moment realignment entanglement witness polynomial W_N(q, x, y) for a two-mode generalized NOON state. -/
def noon_realign_witness (N : ℕ) (q x y : ℝ) : ℝ :=
  (∑ k ∈ Finset.range (N + 1),
    (q * (Nat.choose N k : ℝ) * x ^ k * (1 - x) ^ (N - k) +
     (1 - q) * (Nat.choose N k : ℝ) * y ^ k * (1 - y) ^ (N - k)) ^ 2) +
  4 * q * (1 - q) * (x * y) ^ N
See it in the graphDiscuss this resultChallenge it