Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Feature in barron class

Proved
feature_in_barron_class

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

aether-catalogbridges

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

theorem feature_in_barron_class    {X : Type*} [TopologicalSpace X] [CompactSpace X]
    {n : ℕ} (hn : 0 < n)
    (Φ : TropicalFeatureFamily X n) (i : Fin n) :
    InTropicalBarronClass Φ (Φ.eval i) := by sorry

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

Preamble
-- Thm stub generated from Bridges/TropicalBarronDuality.lean
import Mathlib
import Definitions.Def_Bridges_TropicalBarronDuality
/-
Copyright (c) 2025 Harmonic. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
-/

/-!
# Tropical Barron Duality via Idempotent Choquet Features and Canonical Min-Plus Compression

This file establishes a new approximation theory for tropical neural observables,
analogous to classical Barron-space theory but genuinely idempotent: representation
by extreme tropical features, compression by sparse max-plus dictionaries, and
duality against witness/certificate functionals.

## Mathematical Overview

Classical Barron theory controls neural approximation by the variation of a representing
measure in Fourier space. In the tropical (max-plus) world, the correct analog replaces
Fourier mass with **extreme-feature idempotent variation**: the total weight needed to
represent a function as a max-plus combination of affine features.

Given a compact domain `X` and a family of "tropical features" `φ : Φ → X → ℝ`,
a tropical observable `f : X → ℝ` admits a max-plus representation:

  `f(x) ≈ sup_{φ ∈ Φ} (w(φ) + φ(x))`

The **tropical Barron norm** measures the minimal total variation of weights needed
for such representations.

## Main Results

### Theorem A: Finite-Feature Tropical Barron Representation
* `exists_fin_tropical_barron_approx` — Functions in the tropical Barron class admit
  finite max-plus approximation with variation control.

### Theorem B: Compact Choquet Envelope Approximation
* `compact_choquet_envelope_approx` — Continuous approximation by compact
  feature families with capacity variation bounds.

### Theorem C: Sparse Compression with Explicit Rate
* `sparse_tropical_compression` — Threshold-based compression with controlled error.

### Theorem D: Duality via Witness Certificates
* `witness_lower_bound_on_variation` — Witness functionals provide lower bounds
  on representation complexity.

## Cross-Domain Connections

- **Tropical geometry ↔ approximation theory**: Extreme-feature variation replaces
  Fourier mass as the complexity measure.
- **Choquet theory ↔ deep learning**: Extreme points of tropical feature hulls become
  atoms of neural layers.
- **Convex duality ↔ proof compression**: Witness certificates detecting irreducible
  feature mass certify lower bounds for both network and proof compression.
- **Idempotent analysis ↔ optimal control**: The representation
  `f(x) = sup_φ (μ(φ) + φ(x))` mirrors value-function envelopes in max-plus control.
-/

noncomputable section

open scoped NNReal Topology
open Set Filter Finset Real

/-! ## I. Core Structures: Tropical Features and Max-Plus Envelopes -/


open TropicalFeatureFamily

variable {X : Type*} [TopologicalSpace X] {n : ℕ}








/-! ## II. Fundamental Lemmas -/

/-
Tropical variation is nonneg
-/

/-
Tropical variation of the zero vector is zero
-/

/-
Tropical variation is subadditive
-/

/-
Tropical variation scales: `TV(c • a) = |c| * TV(a)`
-/

/-
Max-plus envelope with zero weights
-/

/-
Max-plus envelope is monotone in weights
-/

/-
Shifting all weights by `c` shifts the envelope by `c`
-/

/-
Max-plus envelope of a single feature
-/

/-
Max-plus envelope is 1-Lipschitz in weights (sup-norm)
-/

/-! ## III. Theorem A: Finite-Feature Tropical Barron Representation -/

/-
**Theorem A.** If `f` is in the tropical Barron class for feature family `Φ`,
    then for every `ε > 0`, there exists a weight vector achieving ε-approximation
    with controlled tropical variation.

    This is the finite tropical analog of atomic Barron representation.
-/

/-! ## IV. Sparse Compression -/


/-
The sparse approximation has controlled support size
-/

/-
Tropical variation of the sparse approximation ≤ original
-/

/-
The discarded weights have small total variation
-/

/-
**Theorem C (Sparse Tropical Compression).**
    Given an exact max-plus representation with `n` features, threshold-based
    compression produces a sparse representation with controlled error.

    The error is at most `n * threshold`, and the support size is at most `n`.
    Optimizing: choosing `threshold = V/N` gives error `n * V / N` where
    V = tropicalVariation(a).
-/

/-! ## V. Greedy Compression -/

/-
A greedy step: the feature with largest absolute weight
-/

/-! ## VI. Theorem D: Duality via Witness Certificates -/


/-
**Theorem D (Witness Lower Bound on Variation).**
    For any two test points, the oscillation of `f` between them is controlled
    by the max absolute weight times 2, plus the feature oscillation, plus 2ε.

    This gives a lower bound: any ε-approximation must have max weight at least
    `(|f(x₁) - f(x₂)| - maxFeatureOsc - 2ε) / 2`.
-/

/-
**Witness lower bound on total variation.**
    Any ε-approximation must have total variation at least as large as the
    best single-feature approximation error minus ε.
-/

/-! ## VII. Tropical Barron Norm Properties -/

/-
The Barron norm is nonincreasing in ε, provided the Barron class at ε₁ is nonempty.
    (When the infimum set is empty, `sInf ∅ = 0` by convention, which
    breaks monotonicity.)
-/

/-! ## VIII. Compact Feature Space: Choquet Envelope -/


variable {X Φ : Type*}
  [TopologicalSpace X] [CompactSpace X]
  [TopologicalSpace Φ] [CompactSpace Φ]

/-
Each feature in a compact system is continuous
-/

/-
The evaluation is bounded on the compact product
-/




/-
Total variation of an atomic capacity is nonneg
-/

/-
**Theorem B (Compact Choquet Envelope Approximation).**
    Given a finite ε-approximation by features from a compact system,
    there exists an atomic capacity achieving the same approximation
    with controlled total variation.
-/

/-! ## IX. Closure Properties of the Tropical Barron Class -/



/-
The Barron class is closed under `max`
-/

/-
The Barron class is closed under translation (requires at least one feature,
    since for `n = 0` the max-plus envelope is always `0` and cannot represent
    nonzero constants).
-/

/-
Every single feature is in the Barron class
-/
Formal statement
theorem feature_in_barron_class    {X : Type*} [TopologicalSpace X] [CompactSpace X]
    {n : ℕ} (hn : 0 < n)
    (Φ : TropicalFeatureFamily X n) (i : Fin n) :
    InTropicalBarronClass Φ (Φ.eval i) := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Bridges/TropicalBarronDuality.lean#L519

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