The two layers surrounding the majority threshold #
The largest binomial coefficient is at least 2^n/(n+1), and its upper
neighbor is at least half as large. This gives a logarithmic entropy
deficit for both boundary layers, for even as well as odd input sizes.
theorem
Complexity.BooleanAnalysis.majority_layers_deficit_internal
{n : ℕ}
(hn : 2 ≤ n)
:
((weightLayer n (n / 2)).Nonempty ∧ uniformDeficit (weightLayer n (n / 2)) ≤ majorityDeficitBound n) ∧ (weightLayer n (n / 2 + 1)).Nonempty ∧ uniformDeficit (weightLayer n (n / 2 + 1)) ≤ majorityDeficitBound n