AFTD Auto-Formalizing Theoretical Domains

almost_quantum_box_star

def

The binary-outcome bipartite box p* on inputs x, y in {1, ..., N} defined by p(0,0|x,x) = 1/17, p(0,1|x,x) = p(1,0|x,x) = 2/17, p(1,1|x,x) = 12/17 for x = y, and p(0,0|x,y) = 0, p(0,1|x,y) = p(1,0|x,y) = 3/17, p(1,1|x,y) = 11/17 for x ≠ y.

Statement

noncomputable def almost_quantum_box_star (N : ℕ) (x y : Fin N) (a b : Fin 2) : ℝ
Defined in
arXiv:2610.41448 Table 2
Verified
02 Nov 2026
Axioms
none listed

Read back from the Lean

The definition almost_quantum_box_star assigns to any natural number N, inputs x, y : Fin N, and outputs a, b : Fin 2 a real number given by cases: - If x = y: - 1 / 17 when a = 0 and b = 0 - 2 / 17 when a = 0 and b = 1 - 2 / 17 when a = 1 and b = 0 - 12 / 17 otherwise (i.e., when a = 1 and b = 1) - If x ≠ y: - 0 when a = 0 and b = 0 - 3 / 17 when a = 0 and b = 1 - 3 / 17 when a = 1 and b = 0 - 11 / 17 otherwise (i.e., when a = 1 and b = 1)

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 binary-outcome bipartite box p* on N inputs defined in Table 2 of arXiv:2610.41448. -/
noncomputable def almost_quantum_box_star (N : ℕ) (x y : Fin N) (a b : Fin 2) : ℝ := if x = y then
    if a = 0 ∧ b = 0 then 1 / 17
    else if a = 0 ∧ b = 1 then 2 / 17
    else if a = 1 ∧ b = 0 then 2 / 17
    else 12 / 17
  else
    if a = 0 ∧ b = 0 then 0
    else if a = 0 ∧ b = 1 then 3 / 17
    else if a = 1 ∧ b = 0 then 3 / 17
    else 11 / 17
See it in the graphDiscuss this resultChallenge it