Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Size succ le two pow depth

Proved
EMLKolmogorov.ETerm.size_succ_le_two_pow_depth

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

aether-catalogeml

Formal statement of EMLKolmogorov.ETerm.size_succ_le_two_pow_depth from the Aether Catalog (EML). The mathematical content is given by the Lean statement below; a human-readable write-up is pending.

theorem EMLKolmogorov.ETerm.size_succ_le_two_pow_depth(t : ETerm) : t.size + 1 ≤ 2 ^ (t.depth + 1) := by sorry

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

Preamble
-- Thm stub generated from EML/KolmogorovComplexityBound.lean
import Mathlib
import Definitions.Def_EML_KolmogorovComplexityBound
/-
Copyright (c) 2025 Harmonic. All rights reserved.
Released under Apache 2.0 license.

# EML Complexity is a Kolmogorov Measure: Finiteness and Incompressibility

This file is a research contribution to the **EML (Exponential–Multiplicative–Logarithmic)
universal approximation** programme. The density files
(`EML.ExponentialPolynomialDensity`, `EML.StoneWeierstrassApprox`) prove the *qualitative*
side — every continuous function on a compact set is uniformly approximable by EML terms.
The mission asks for the *quantitative* side: a complexity theory of EML representations
**connecting to Kolmogorov complexity**.

We make that connection rigorous. We introduce the **constant-free EML term algebra**
`ETerm` (`var`, `+`, `×`, `exp`, `log`). Because the alphabet is finite, this is a
*countable* syntactic class, so each constructor `size`/`depth` becomes a genuine
**description length**. We prove the two structural pillars of Kolmogorov complexity,
instantiated to EML:

* **Counting / finiteness** (`finite_computableLE`, `finite_computableDepthLE`): for every
  size budget `n` (resp. depth budget `d`) only *finitely many* functions `ℝ → ℝ` are
  *exactly* EML-representable within that budget. This is the EML form of the statement
  "there are at most `2^{n+1}` programs of length `n`".
* **Incompressibility** (`exists_incompressible`, `exists_incompressible_depth`): for every
  budget there exists a function that **no** EML term within that budget computes. Most
  functions are incompressible — exactly the Kolmogorov counting lower bound.

Two further Kolmogorov hallmarks are proved:

* **Subadditivity** (`K_add_le`, `K_mul_le`, `K_exp_le`, `K_log_le`): the EML complexity
  `K f` (minimal term size computing `f`) satisfies `K (f+g) ≤ K f + K g + 1`, etc. — the
  "concatenation of programs" inequalities.
* **Depth ≤ size tower** (`size_succ_le_two_pow_depth`): a depth-`d` term has size below
  `2^{d+1}`, so a depth budget is a (much coarser) description length, and depth
  incompressibility follows from size incompressibility.

-- !-- Lab Notes -- !--
HYPOTHESIS (K1). EML term `size` is a Kolmogorov description length: the number of
functions exactly representable below any fixed size is finite, hence "most" functions are
incompressible. HYPOTHESIS (K2, surprising). The same holds for *depth* even though a fixed
depth allows unboundedly wide (large-size) terms — because depth bounds size by a tower
`size < 2^{depth+1}`. HYPOTHESIS (K3). `K` is subadditive under all EML constructors.

EXPERIMENT. Defined `ETerm` with `eval`, `size`, `depth`. Proved `finite_termsLE n` by
strong induction via the constructor inclusion `{t | size ≤ n+1} ⊆ {var} ∪ image2 add S S ∪
image2 mul S S ∪ expOf '' S ∪ logOf '' S` with `S = {t | size ≤ n}`; pushed through `eval`
to get `finite_computableLE`. Incompressibility = a finite set cannot exhaust the infinite
type `ℝ → ℝ` (constants inject). Subadditivity = `Nat.sInf` is attained, then build the
compound term. Depth: `size + 1 ≤ 2^{depth+1}` by induction, giving `depthLE d ⊆ sizeLE 2^{d+1}`.

ANALYSIS. K1, K2, K3 all confirmed. The crux is that *constant-freeness* makes the alphabet
finite; with real constants the class is uncountable and counting collapses (see FAILURE).

INSIGHT. Density and incompressibility are not in tension: density needs the *union* over
all budgets (complexity → ∞), each budget being a finite island. This is precisely
"universal approximation with a complexity price", the quantitative half of the mission.

FAILURE ANALYSIS. A first draft kept a real-valued `const c` leaf. Then `{t | size ≤ 1}`
is already uncountable (`{const c}`), so `finite_termsLE` is *false*. Diagnosis: Kolmogorov
counting requires a finite description alphabet; we dropped `const` and recover all needed
expressivity through `var`, `add`, `exp`, `log` (e.g. `exp(x+⋯+x) = e^{kx}`).

CRITIQUE. Are the theorems vacuous? No: `computableLE n` is nonempty (`var ∈`) and strictly
grows, and the incompressible witness is a genuine function. `K_add_le` uses attainment of
`Nat.sInf`, not a definitional trick.
-/

noncomputable section
open Set

open EMLKolmogorov


open ETerm





/-
A depth-`d` term has size below `2^{d+1}`: depth bounds size by a tower.
-/
Formal statement
theorem EMLKolmogorov.ETerm.size_succ_le_two_pow_depth(t : ETerm) : t.size + 1 ≤ 2 ^ (t.depth + 1) := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/EML/KolmogorovComplexityBound.lean#L115

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