Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

The domain shift, reproduced inside the model.

Proved
Catalog.NET73.geometric_domain_shift_at_equal_density

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

aether-catalogapplications

The domain shift, reproduced inside the model. Two domains with the same tokens-per-word d but decay rates 1/2 and 9/10 have knees 2 and 14 at the same tolerance 3/4: a sevenfold gap generated purely by attention decay, mirroring code (k* = 12) versus French (k* > 32) at nearly equal token density.

theorem Catalog.NET73.geometric_domain_shift_at_equal_density(d : ℚ) :
    (geometricProfile d (1/2) (by norm_num) (by norm_num)).kneeAt (3/4) = 2 ∧
    (geometricProfile d (9/10) (by norm_num) (by norm_num)).kneeAt (3/4) = 14 ∧
    (geometricProfile d (1/2) (by norm_num) (by norm_num)).tpw =
      (geometricProfile d (9/10) (by norm_num) (by norm_num)).tpw := by sorry

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

Preamble
-- Thm stub generated from Applications/NET73ConcentrationSpectrum.lean
import Mathlib
import Definitions.Def_Applications_NET73ConcentrationSpectrum
import Definitions.Def_Applications_NET73KneeDecoupling
/-
# NET-73, cycle 2: the concentration spectrum of a domain

`Applications/NET73KneeDecoupling.lean` shows that the knee `k*` is a functional
of the attention capture curve and is decoupled from tokens-per-word.  This file
asks the follow-up question the NET-73 verdict poses — *what relational
statistic does control the knee?* — and answers it with two independent bounds
and one exactly solvable family.

* **Participation bound** (`kneeAt_ge_sq_div_collision`).  For a domain whose
  attention mass vector is `p` with collision index `S = ∑ p i ^ 2` (the
  Rényi-2 / inverse-participation statistic), the knee obeys
  `k* ≥ τ² / S`.  The proof is Cauchy–Schwarz on the top-`k` block, so the
  bound is information-theoretic: the effective number of participating keys
  `1/S` lower-bounds (up to `τ²`) how many keys must be kept.
* **Top-mass bound** (`kneeAt_ge_tol_div_top`).  For a sorted mass vector the
  knee is at least `τ / p 0`: a domain with a single dominant key has a small
  knee, no matter how many tokens its words cost.
* **Geometric family** (`kneeAt_geometric_le_iff`).  For the exactly solvable
  decay profile `cum k = 1 - r ^ k` the knee is characterised by
  `k* ≤ k ↔ r ^ k ≤ 1 - τ`, is monotone in the decay rate `r`, and produces
  `geometric_domain_shift_at_equal_density`: two domains with *identical*
  tokens-per-word whose knees are `2` and `14` at the same tolerance — the
  in-model analogue of code (`k* = 12`) versus French (`k* > 32`).

Together these say the domain shift lives on the decay-rate axis, exactly where
NET-73's refutation of tokenization density pushes it.
-/

open Catalog.NET73

open Finset AttentionProfile

/-! ## 1. Domains presented by a sorted attention mass vector -/


open MassVector

variable (M : MassVector)














/-! ## 2. A worked domain: four equally weighted keys -/






/-! ## 3. The exactly solvable decay family -/
Formal statement
theorem Catalog.NET73.geometric_domain_shift_at_equal_density(d : ℚ) :
    (geometricProfile d (1/2) (by norm_num) (by norm_num)).kneeAt (3/4) = 2 ∧
    (geometricProfile d (9/10) (by norm_num) (by norm_num)).kneeAt (3/4) = 14 ∧
    (geometricProfile d (1/2) (by norm_num) (by norm_num)).tpw =
      (geometricProfile d (9/10) (by norm_num) (by norm_num)).tpw := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/Applications/NET73ConcentrationSpectrum.lean#L243

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