Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Certified base-two entropy bounds from fixed-scale integer checks

Proved
mme_modern_entropyBits_fixed_scale_bounds

by raresbuhai · Sep 30, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)

entropyinterval-arithmeticmatrix-multiplication

Let S,dS,dS,d be positive integers, and let pi,kip_i,k_ipi​,ki​ be natural numbers indexed by a finite set of size mmm. For every nonzero count assume d≤pi2ki≤2dd\le p_i2^{k_i}\le2dd≤pi​2ki​≤2d. Write

H2=∑i−(pi/d)log⁡(pi/d)log⁡2,H_2=\frac{\sum_i -(p_i/d)\log(p_i/d)}{\log2},H2​=log2∑i​−(pi​/d)log(pi​/d)​,

with the zero-term convention. Let (EL,EU)(E_L,E_U)(EL​,EU​) be the computed integer entropy endpoints at scale SdSdSd, and let (BL,BU)(B_L,B_U)(BL​,BU​) be the computed endpoints for log⁡2\log2log2 at scale SSS.

Choose nonnegative integers qL,qUq_L,q_UqL​,qU​ and positive integers rL,rUr_L,r_UrL​,rU​. If the two exact integer checks hold,

qLdBU<rLEL,rUEU<qUdBL,q_LdB_U<r_LE_L,\qquad r_UE_U<q_UdB_L,qL​dBU​<rL​EL​,rU​EU​<qU​dBL​,

then

qLrL<H2<qUrU.\frac{q_L}{r_L}<H_2<\frac{q_U}{r_U}.rL​qL​​<H2​<rU​qU​​.

This provides strict bounds on the existing base-two entropy expression from finite integer checks. If ∑ipi=d\sum_i p_i=d∑i​pi​=d, it is the Shannon entropy of a rational probability distribution; normalization is not needed for the displayed entropy-sum inequality itself. No matrix-multiplication witness or exponent bound is asserted.

Preamble
import Definitions.Def_mme_dyadic_log_interval
import Definitions.Def_mme_modern_entropy_data
open MME.DyadicLog
set_option autoImplicit false
Formal statement
theorem mme_modern_entropyBits_fixed_scale_bounds {m S d n qL rL qU rU : ℕ}
    (hS : 0 < S) (hd : 0 < d) (hrL : 0 < rL) (hrU : 0 < rU)
    (counts shifts : Fin m → ℕ)
    (hcheck : rangeReductionCheck d (List.ofFn (fun i ↦ (counts i, shifts i))) = true)
    (hlower : (qL : ℤ) * d * (unitLog S 2 1 n).hi <
      (rL : ℤ) * (entropyInterval S d n
        (List.ofFn (fun i ↦ (counts i, shifts i)))).lo)
    (hupper : (rU : ℤ) * (entropyInterval S d n
        (List.ofFn (fun i ↦ (counts i, shifts i)))).hi <
      (qU : ℤ) * d * (unitLog S 2 1 n).lo) :
    (qL : ℝ) / (rL : ℝ) < mme_modern_entropyBits (fun i ↦ (counts i : ℝ) / d) ∧
      mme_modern_entropyBits (fun i ↦ (counts i : ℝ) / d) < (qU : ℝ) / (rU : ℝ) := by sorry
Source
Supporting numerical-verification construction for Dupont et al., Improving the matrix multiplication exponent with modern optimization and AlphaEvolve, arXiv:2608.16884v1, Section 4, https://arxiv.org/html/2608.16884v1#S4. The fixed-scale evaluator is an auxiliary construction, not a claim stated in that paper. Its analytic foundation is Mathlib 777aaa61dcd2a1258d2b4962dbe983ede4d23b2e, Analysis/SpecialFunctions/Log/Deriv.lean, Real.sum_range_le_log_div and Real.log_div_le_sum_range_add.

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