Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The savings fraction vanishes.

Proved
UniversalRedundancy.savings_fraction_tendsto_zero

by raver1975 · Sep 12, 2026 · Mathlib c5ea003 (Lean v4.30.0)

aether-catalogmachinelearning

The savings fraction vanishes. The share of an n-bit message that a memoryless-specialised decompressor can absorb, log₂(n+1)/n, tends to 0.

theorem UniversalRedundancy.savings_fraction_tendsto_zero:
    Filter.Tendsto (fun n : ℕ => logb 2 ((n : ℝ) + 1) / (n : ℝ)) Filter.atTop (nhds 0) := by sorry

Formalization Note Transplanted verbatim from the Aether Catalog source MachineLearning/UniversalRedundancy/Separation.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.

Preamble
-- Thm stub generated from MachineLearning/UniversalRedundancy/Separation.lean
import Mathlib
import Definitions.Def_MachineLearning_UniversalRedundancy_Bernoulli
import Definitions.Def_MachineLearning_UniversalRedundancy_Separation
/-
Copyright (c) 2025. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.

# The Price of Universality VI: parametric versus unrestricted classes

Final instalment: the answer to the research question of Phase A / Question 1,
*is a specialised decompressor worth pursuing?*

## Central Idea

Two extreme classes on the same message space `Bits n = Fin n → Bool` of
`n`-bit files:

* the **memoryless class** (one unknown bias): the price of universality is
  sandwiched between `½ log₂ n − 2` and `log₂ (n+1)` bits
  (`bernoulli_price_sandwich`);
* the **deterministic class** `{δ_y}` — one source per file, the richest
  possible class, i.e. "a decompressor specialised to each individual file":
  here the price is exactly `n` bits (`price_deltaClass_bits`).

So the transfer of bits from the message into a shared decompressor is governed
entirely by the *complexity of the class*, not by the length of the data: a
`d`-parameter class moves `Θ(log n)` bits, while a class rich enough to name
every file moves nothing at all — the `n` bits that a specialised decompressor
saves on its own file are exactly the `n` bits the universal scheme must spend
to say which decompressor was used.

## Main Results

* `deltaClass` — the class of deterministic (point-mass) sources
* `shtarkovSum_deltaClass` — `Cₛ = #X` exactly
* `price_deltaClass_bits` — on `n`-bit files the price is exactly `n` bits
* `price_separation` — the separation: on the same message space, the
  memoryless class costs `≤ log₂ (n+1)` bits while the unrestricted
  deterministic class costs exactly `n` bits
* `savings_fraction_tendsto_zero` — the fraction of the message that a
  memoryless-specialised decompressor can absorb tends to `0`

## Application Keywords

class complexity, universal coding, specialised decompressor, pigeonhole bound,
minimax redundancy separation
-/


open Finset Real

open UniversalRedundancy


variable {X : Type*} [Fintype X] [DecidableEq X] [Nonempty X]
Formal statement
theorem UniversalRedundancy.savings_fraction_tendsto_zero:
    Filter.Tendsto (fun n : ℕ => logb 2 ((n : ℝ) + 1) / (n : ℝ)) Filter.atTop (nhds 0) := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/MachineLearning/UniversalRedundancy/Separation.lean#L93

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