AFTD Auto-Formalizing Theoretical Domains

fermion_pair_dyadic_phase

def

For natural numbers s and m, let A = (2 : ℝ)^s, p = 1 / (1 + A), wm = 2 * Nat.floor ((m : ℝ) * p / 2), and Cm = Nat.choose m wm. Then fermion_pair_dyadic_phase s m is defined as ((2 : ℝ) ^ (Nat.clog 2 Cm)) / (Cm : ℝ).

Statement

noncomputable def fermion_pair_dyadic_phase (s : ℕ) (m : ℕ) : ℝ
Defined in
arXiv:2611.07003; OP-1787
Verified
17 Nov 2026
Axioms
none listed

Read back from the Lean

The function fermion_pair_dyadic_phase takes two natural numbers $s$ and $m$ and returns the real number $$\frac{2^{\lceil \log_2 C_m \rceil}}{C_m}$$ where: - $A = 2^s \in \mathbb{R}$, - $p = \frac{1}{1 + A} \in \mathbb{R}$, - $w_m = 2 \left\lfloor \frac{m \cdot p}{2} \right\rfloor \in \mathbb{N}$ (using Nat.floor), - $C_m = \binom{m}{w_m} \in \mathbb{N}$ (using Nat.choose), - and the exponent is computed using Nat.clog 2 C_m (the ceiling of the base-2 logarithm of $C_m$).

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 dyadic phase parameter t_m in [1, 2] associated to the central even binomial coefficient. -/
noncomputable def fermion_pair_dyadic_phase (s : ℕ) (m : ℕ) : ℝ :=
  let A : ℝ := (2 : ℝ) ^ s
  let p : ℝ := 1 / (1 + A)
  let wm : ℕ := 2 * Nat.floor ((m : ℝ) * p / 2)
  let Cm : ℕ := Nat.choose m wm
  ((2 : ℝ) ^ (Nat.clog 2 Cm)) / (Cm : ℝ)
See it in the graphDiscuss this resultChallenge it