symmetric_boolean_degree_deficit_max
Let $\Delta(n)$ be the maximum degree deficit $n - \deg(q_F)$ over all nonconstant Boolean profiles $F: \{0, \dots, n\} \to \{0, 1\}$, where $q_F \in \mathbb{R}[X]$ is the degree-at-most-$n$ polynomial interpolating $F$.
Statement
noncomputable def symmetric_boolean_degree_deficit_max (n : ℕ) : ℕ
- Defined in
- arXiv:2611.26446, Sec. 1.1, Eq. (390)
- Verified
- 22 Nov 2026
- Axioms
- none listed
- Used by 1
- symmetric_boolean_degree_deficit_max_le_selfFor every natural number $n$, the maximum degree deficit of nonconstant symmetric Boolean functions on $n$ variables is at most $n$.
Read back from the Lean
A definition of symmetric_boolean_degree_deficit_max (n : ℕ) : ℕ, which computes the maximum (supremum) over all functions F : Fin (n + 1) → Bool of:
- if F is non-constant (i.e., there exist i, j : Fin (n + 1) such that F i ≠ F j): n minus the natural degree (natDegree) of the polynomial in ℝ[X] obtained by Lagrange interpolation on the nodes j : Fin (n + 1) (viewed as real numbers j.val : ℝ) with values 1 if F j = true and 0 if F j = false;
- otherwise (if F is constant): 0.
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 maximum degree deficit Δ(n) over all nonconstant Boolean profiles on {0, ..., n}. -/ noncomputable def symmetric_boolean_degree_deficit_max (n : ℕ) : ℕ := Finset.univ.sup (fun F : Fin (n + 1) → Bool => if ∃ i j : Fin (n + 1), F i ≠ F j then n - (Lagrange.interpolate Finset.univ (fun (j : Fin (n + 1)) => (j.val : ℝ)) (fun j => if F j then 1 else 0)).natDegree else 0)