Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

A statistic attaining exactly two readings has empirical entropy equal to

Proved
TraceBattery.H_two_values

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

aether-catalogspeculative

A statistic attaining exactly two readings has empirical entropy equal to the binary entropy of the fraction sitting in the first class.

theorem TraceBattery.H_two_values(f : Ω → α) {a b : α} (hab : a ≠ b) (himg : img f = {a, b}) :
    H f = Real.binEntropy ((cnt f a : ℝ) / (Fintype.card Ω : ℝ)) := by sorry

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

Preamble
-- Thm stub generated from Speculative/AutoResearch/TraceBatteryWall.lean
import Mathlib
import Definitions.Def_Speculative_AutoResearch_TraceBatteryEntropy
/-
# TRACE-BATTERY, part III: the which-factor wall is an imbalance meter

The round-30 experiment reports a *which-factor wall* at `0.4677` bits: the
binary "which factor?" statistic never carries more than that, a value the paper
attributes to sparse-table bias.  This file explains what such a number can and
cannot mean.

A binary statistic on a finite population is completely described, as far as
capacity is concerned, by the fraction `p` of the population in its smaller
class:

* `TraceBattery.H_two_values` — for a statistic attaining exactly the two
  readings `a ≠ b`, the empirical entropy equals Mathlib's binary entropy
  `Real.binEntropy` of the fraction of the `a`-class.  So the wall value is a
  *measurement of class imbalance*, nothing else.
* `TraceBattery.binary_capacity_lt_of_lt` — on the balanced side `[0, 1/2]` the
  capacity is strictly increasing in the minority fraction.
* `TraceBattery.wall_determines_imbalance` — hence a reported wall value pins
  the imbalance down uniquely: two binary statistics with equal capacity and
  minority fractions in `[0, 1/2]` have the *same* fraction.
* `TraceBattery.binary_capacity_le_one_bit` — and the wall can never exceed one
  bit, so any reported value below `1` is admissible; only the *inverted*
  fraction carries information.

All statements are sorry-free.
-/

open TraceBattery

open Finset


variable {Ω : Type*} [Fintype Ω] [Nonempty Ω] {α : Type*}

open Classical in
Formal statement
theorem TraceBattery.H_two_values(f : Ω → α) {a b : α} (hab : a ≠ b) (himg : img f = {a, b}) :
    H f = Real.binEntropy ((cnt f a : ℝ) / (Fintype.card Ω : ℝ)) := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Speculative/AutoResearch/TraceBatteryWall.lean#L39

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