Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Balanced activation at the optimum.

Proved
HyperAwareness11D.balanced_activation_at_optimum

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

aether-catalogmachinelearning

Balanced activation at the optimum. An injective ReLU layer with exactly 2n units admits two percepts whose active sets are disjoint, of size exactly n each, and together exhaust all units.

theorem HyperAwareness11D.balanced_activation_at_optimum[Fintype ι] (W : ι → Fin n → ℝ) (b : ι → ℝ)
    (hinj : Function.Injective (reluLayer W b)) (hcard : Fintype.card ι = 2 * n) :
    ∃ x y : Fin n → ℝ,
      (ActiveRows W b x).card = n ∧ (ActiveRows W b y).card = n ∧
      Disjoint (ActiveRows W b x) (ActiveRows W b y) ∧
      ∀ i, i ∈ ActiveRows W b x ∨ i ∈ ActiveRows W b y := by sorry

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

Preamble
-- Thm stub generated from MachineLearning/HyperAwareness11D/BalancedFrame.lean
import Mathlib
import Definitions.Def_MachineLearning_HyperAwareness11D_Injectivity

/-!
# Hyper-Awareness IV: rigidity at the optimum — width-`22` layers are perfectly balanced

`Injectivity.lean` shows that a lossless ReLU perception layer on `ℝ¹¹` needs at least `22`
units and that `22` suffice.  This file shows that architectures *at* the optimum are
extremely rigid: no slack is left anywhere.

## Main results

* `HyperAwareness11D.balanced_activation_at_optimum` — if an injective ReLU layer on `ℝⁿ` has
  exactly `2n` units, then there are two percepts whose active unit sets **partition** the
  units into two blocks of size exactly `n`.
* `HyperAwareness11D.every_unit_essential` — consequently *every* unit of a width-optimal
  lossless layer has a nonzero weight row: there are no dead or constant units, no
  redundancy, and no unit can be deleted.
* `HyperAwareness11D.balanced_activation_11` / `every_unit_essential_11` — the statements in
  the mission's dimension: a `22`-unit lossless 11-dimensional perception layer splits, at
  suitable antipodal percepts, into two perfectly balanced halves of `11` active units.

Interpretation: at the information-theoretic optimum the layer behaves exactly like the
canonical positive/negative split — half the units carry the "positive half" of the percept
and half carry the "negative half" — even though no such structure was assumed.
-/

open HyperAwareness11D

open Finset

noncomputable section

open scoped Classical

variable {ι : Type*} {n : ℕ}
Formal statement
theorem HyperAwareness11D.balanced_activation_at_optimum[Fintype ι] (W : ι → Fin n → ℝ) (b : ι → ℝ)
    (hinj : Function.Injective (reluLayer W b)) (hcard : Fintype.card ι = 2 * n) :
    ∃ x y : Fin n → ℝ,
      (ActiveRows W b x).card = n ∧ (ActiveRows W b y).card = n ∧
      Disjoint (ActiveRows W b x) (ActiveRows W b y) ∧
      ∀ i, i ∈ ActiveRows W b x ∨ i ∈ ActiveRows W b y := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/MachineLearning/HyperAwareness11D/BalancedFrame.lean#L36

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