symmetric_boolean_degree_deficit_max_le_self
For every natural number $n$, the maximum degree deficit of nonconstant symmetric Boolean functions on $n$ variables is at most $n$.
Statement
theorem symmetric_boolean_degree_deficit_max_le_self (n : ℕ) : symmetric_boolean_degree_deficit_max n ≤ n- Source
- arXiv:2611.26446, Sec. 1.1
- Verified
- 23 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 1
- symmetric_boolean_degree_deficit_maxLet $\Delta(n)$ be the maximum degree deficit $n - \deg(q_F)$ over all nonconstant Boolean profiles $F: \{0, \dots, n\} \to \{0, 1\}$,…
Read back from the Lean
For every natural number $n$, the maximum degree deficit symmetric_boolean_degree_deficit_max n is less than or equal to $n$. That is, the supremum over all functions $F : \mathrm{Fin}(n + 1) \to \mathrm{Bool}$ of:
- $n - \deg(P_F)$ (using natural number subtraction), if $F$ is not constant (i.e., there exist $i, j \in \mathrm{Fin}(n + 1)$ with $F(i) \neq F(j)$), where $P_F$ is the real polynomial obtained by Lagrange interpolation at nodes $x_j = j$ with values $1$ (if $F(j) = \mathrm{true}$) or $0$ (if $F(j) = \mathrm{false}$) for $j \in \{0, \dots, n\}$;
- $0$, if $F$ is constant;
is at most $n$.
Written by a model that saw only the Lean, never the English above. If the two disagree, that is worth a challenge.
The proof, explained
The maximum degree deficit Δ(n) is defined as the supremum over all Boolean functions on {0, …, n} of a deficit term: n minus the degree of the Lagrange interpolating polynomial if the function is nonconstant, and 0 otherwise. To prove that Δ(n) ≤ n, it suffices by `Finset.sup_le` to show that every function's contribution is at most n. In the nonconstant case, the deficit is n - d ≤ n by basic properties of subtraction on ℕ; in the constant case, 0 ≤ n holds trivially.
To bound the maximum degree deficit by n, it suffices to show that each term in the supremum is at most n.
Unfolding the definition of `symmetric_boolean_degree_deficit_max`, we see that it is the supremum (over all Boolean functions on {0, …, n}) of a piecewise deficit term. By `Finset.sup_le`, showing that the supremum is at most n reduces to verifying that every individual term is bounded by n.
uses
Finset.sup_leunfold symmetric_boolean_degree_deficit_max apply Finset.sup_le
For an arbitrary Boolean function F, the bound reduces to two cases: nonconstant functions and constant functions.
We fix an arbitrary function F and split on the conditional expression in the definition—namely, whether there exist indices i and j with F(i) ≠ F(j). This yields two cases: when F is nonconstant, the value is n minus the degree of the interpolating polynomial; when F is constant, the value is 0.
intro F _ split_ifs
If F is nonconstant, the deficit n - deg(P) is at most n.
In this branch, the term is n minus the natural degree of the Lagrange interpolation polynomial for F. By `Nat.sub_le`, n - m ≤ n for all natural numbers m, so this deficit is at most n.
uses
Nat.sub_le· exact Nat.sub_le _ _If F is constant, the deficit value 0 is at most n.
In this branch, the term is 0 by definition, and 0 ≤ n holds by `Nat.zero_le`.
uses
Nat.zero_le· exact Nat.zero_le _
Finset.sup_le- The supremum of a function over a finite set is at most a given bound if the function's value at every element of the set is at most that bound.
Nat.sub_le- Subtracting a natural number from n yields at most n (that is, n - m ≤ n for all n, m).
Nat.zero_le- Zero is less than or equal to any natural number (0 ≤ n for all n).
Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.
Lean source view module on GitHub
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
/-- The maximum degree deficit satisfies Δ(n) ≤ n. -/theorem symmetric_boolean_degree_deficit_max_le_self (n : ℕ) : symmetric_boolean_degree_deficit_max n ≤ n := by unfold symmetric_boolean_degree_deficit_max apply Finset.sup_le intro F _ split_ifs · exact Nat.sub_le _ _ · exact Nat.zero_le _