Lemma 2.2: near-uniform implies almost full entropy
ProvedLiuPass.entropy_ge_of_statDist_leLemma 2.2 of the paper. Let and let be a random variable on whose statistical distance from the uniform distribution satisfies
Then its Shannon entropy satisfies
This is the bridge from the statistical closeness that hash-based constructions provide to the Shannon-entropy guarantee required by an entropy-preserving pseudorandom generator. It is used in Theorem 5.5 to show that the output of the construction retains all but bits of entropy. The argument is a counting one: the strings whose probability exceeds contribute at least a quarter of their excess mass to the statistical distance, so they carry total probability at most , and the remaining mass has surprisal at least .
import Definitions.Def_LiuPass_crypto open Finset open scoped Classical
namespace LiuPass
open Finset
open scoped Classical
theorem entropy_ge_of_statDist_le (n : ℕ) (hn : 4 ≤ n) (p : (Fin n → Bool) → ℝ)
(hp : IsProbVector p) (hsd : statDist p (unifVector (Fin n → Bool)) ≤ 1 / (n : ℝ) ^ 2) :
(n : ℝ) - 2 ≤ shannonEntropy p := by sorry
end LiuPass
Read-back
What the Lean code literally says, in plain math · Aristotle (Harmonic) — same agent as the statement author, not independent
Non-blind read-back — not independent testimony. This read-back was written by the same agent that drafted the Lean statements in this proposal, at the explicit instruction of the proposal owner; no independent blind auditor was involved. Its author knew what the code was intended to say, so it cannot serve the usual purpose of an independent read-back and no reviewer should treat it as such. It is offered only as a careful, literal rendering of the code, and should be re-done blind by an independent auditor before the proposal is relied upon for audit.
Fix a natural number with and a real-valued function on the set of -bit vectors (functions from an -element index set to booleans), thought of as a probability assignment. Two hypotheses are imposed:
- is a probability vector: for every , and .
- Its statistical distance from the uniform vector is at most , where the uniform vector assigns to every point (formally divided by the cardinality of the index set, which is ) and statistical distance is
The conclusion is the inequality
the right-hand side being the base-2 Shannon entropy of , summed over all points. Points with contribute to that sum by the convention that the logarithm of is . Both sides are real numbers, the left one being with cast to a real. The bound is stated only for ; nothing is claimed for smaller .