Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Binary entropy and witness exponential rate

Definition
KSATSingleFlip_Connect_WitnessRate

by wcysai · Nov 13, 2026 · Mathlib 0df444a (Lean v4.33.1)

The binary entropy is H(b)=−bln⁡b−(1−b)ln⁡(1−b)H(b)=-b\ln b-(1-b)\ln(1-b)H(b)=−blnb−(1−b)ln(1−b), with 0ln⁡0=00\ln0=00ln0=0. The witness exponential-rate function is

Ψβ(a,b)=a(1−ln⁡a)+H(b)−β2(a+b)2+aln⁡(ea+b−1)+(a+b)[ln⁡β+(β−1−1)ln⁡(1−β)].\Psi_\beta(a,b)=a(1-\ln a)+H(b)-\frac\beta2(a+b)^2+a\ln(e^{a+b}-1)+(a+b)[\ln\beta+(\beta^{-1}-1)\ln(1-\beta)].Ψβ​(a,b)=a(1−lna)+H(b)−2β​(a+b)2+aln(ea+b−1)+(a+b)[lnβ+(β−1−1)ln(1−β)].

These are the functions preceding Lemma 8.11 in the pinned paper.

Definition code
import Mathlib

noncomputable section
namespace KSATSingleFlip.Connect

/-- Binary entropy H, with the endpoint convention 0 log 0 = 0. -/
def witnessEntropy (b : ℝ) : ℝ :=
  - b * Real.log b - (1 - b) * Real.log (1 - b)

/-- Exponential-rate function Ψβ(a,b) in Section 8.2 of the pinned paper. -/
def witnessRate (β a b : ℝ) : ℝ :=
  a * (1 - Real.log a) + witnessEntropy b - β / 2 * (a + b)^2 +
    a * Real.log (Real.exp (a + b) - 1) +
    (a + b) * (Real.log β + (β⁻¹ - 1) * Real.log (1 - β))

end KSATSingleFlip.Connect
Source
Wang, Yin, Yu, Zhang, Single-Variable Connectivity in Random k-SAT, Section 8.2, printed p. 71 (PDF p. 73), https://github.com/sigact-stoc/stoc2027/releases/download/papers-1/737.pdf

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me