Skip to content

EValues: nulls and bets, Statlib's new pairing, designs; companion edits to Generalization, Identification and Bandits - #22

Merged
RemyDegenne merged 2 commits into
mainfrom
roadmaps/evalues-polarity-and-designs
Nov 20, 2026
Merged

RemyDegenne merged 2 commits into
mainfrom
roadmaps/evalues-polarity-and-designs

Conversation

@RemyDegenne

@RemyDegenne RemyDegenne commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Brings the EValues roadmap to Statlib's new IsEVar (stat-lib/statlib#94, at the pins since #21), and extends it with the material of the paper project RemyDegenne/evalues_research (notes 01 to 49): the polarity between nulls and bets, the operations on nulls as definitions, optimal e-processes for a distribution over times, and the Wald inequality with a design. Generalization gets the e-values refactor targets that these conventions imply; Identification and Bandits get the items that use the design inequality.

Why.

  • The pairing. Statlib now defines an e-variable by ∫⁻ X ∂μ ≤ 1 on every member, the pairing of the bipolar theorem [BS99]. The roadmap stated everything for nulls of probability measures and explained Statlib's old normalization by μ univ; it now says when a hypothesis on the members is needed, which is only where the constant 1 is a bet or a member is normalized. The effective null is a closure operator for every null (Statlib's effectiveSet_effectiveSet, isEVar_effectiveSet_iff), so the roadmap no longer asks for it.
  • Objects that the library writes out. Images, products, i.i.d. and independent sequences of nulls are written inline about 80 times in LMLExplore, quasi-sure statements about 50 times, "level-α test" in five shapes, and KL_inf three times under three names. They become definitions (EValues 0.1, 0.6, 1.1, 3.1–3.3, 4.5, 7.1), and Generalization 0.17–0.26 restates the merged code with them.
  • klInf with klIntegral. klInf Q S := ⨅ P ∈ S, klIntegral Q P, in EReal. On probability measures it is ⨅ P ∈ S, klDiv Q P, so the literature's KL_inf, the K^± of Identification 1.4 and the dInf of Bandits 4.4 are unchanged (klInf_eq_iInf_klDiv). On sub-probability measures klDiv adds the difference of the masses, and klIntegral is the divergence that the theory produces: Statlib's duality reads maxEPower Q S = klInf Q (effectiveSet S), maxEPower ≤ klInf holds for every null of masses at most one, and the rate on countable alphabets is klInf to a pointwise closure. With klDiv the first two fail (S = {δ₀ / 2}, Q = δ₀).
  • The clock. The canonical filtration of i.i.d. data becomes Filtration.piLT, the observations before n, so that the bounds of Layer 6 read E_Q[τ] ≥ log (1/α) / d instead of E_Q[τ + 1].
  • Designs (Layer 6.4). For data that an algorithm collects from several sources, the expected logarithm of every e-variable at a stopping time is at most D* E[τ], with D* the rate of the designs. This gives E[τ] ≥ kl(δ, 1-δ) / D* for every δ-correct identification algorithm on any observation space, with D* ≤ 1 / T*, equality on finite alphabets, and instances with strict inequality. Identification 5.4 is an algorithm that attains D* at every dominated model, and Bandits 4.4 gets the constants 1/d and 1/d_σ for consistency on any space.

Changes

  • LMLRoadmaps/EValues/README.md:
    • headline results, scope (Layer 6.4 as a tool of Identification and Bandits), the table of Statlib interfaces (the fields measurable and lintegral_le_one, isEVar_one_iff, the closure lemmas of effectiveSet);
    • Conventions: nulls, values (the pairing, tests, maps that preserve validity, maxEPower and klInf), time (piLT, sequential tests as stopping times), adaptively collected data, names;
    • Restatements of merged code: pointer to Generalization 0.17–0.26 and 1.26–1.37;
    • Layer 0.1 (tests, the super-uniform null), 0.2 (calibrators as e-variables of the super-uniform null), 0.5 (one notion of admissibility; notes 42, 45, 46), new 0.6 (operations on nulls, the polarity, the quasi-sure filter);
    • Layer 1.1 (the effective null from the polarity, klInf and maxEPower, the bipolar theorem on the side of functions, notes 11, 40, 48), 1.2 (notes 42, 48, the conditional numeraire), 1.3 (note 27), 1.4 (the bridge with polars), 1.5 (notes 26, 29);
    • Layer 2.1 (condNull), 3.1 (e-processes as e-variables on stopped paths), 3.2, 3.3 (time-uniform validity, sequential tests as stopping times), 3.6 (fork-convexity; note 31), 3.7 (notes 31, 46), new 3.8 (optimal e-processes for a distribution over times; note 40), 4.5 (sequential nulls that depend on the past, condEVarNull), 5.3 (exponential supermartingales for sub-ψ nulls on any space);
    • Layer 6 (introduction, the clock, the chain a 1 ≤ d ≤ KL_inf, finite and countable alphabets, notes 13, 32, 43, Bahadur slopes, τ + 1 → τ), new 6.4 (designs; notes 41, 49);
    • Layer 7.1, 7.2, 7.4 (merging functions as e-variables of mergingNull 𝒞), 8.2 (e-collections, notes 30, 33), 8.3 (note 34); completion checks; references [Del06], [GK16], [IWR26], [KCG16], [MD26], [Su18], [XR23], and [EVR26] extended to notes 01 to 49.
  • LMLRoadmaps/EValues/Suggested.lean: imports Statlib (Statlib.EValues.RIPr) in place of the stand-ins for IsEVar, effectiveSet and the expected logarithm; drops the hypotheses that the new pairing makes unnecessary; adds mapNull, sampleNull, iidNull, indepNull, polarNull, upperExp, quasiSure, IsTest, superUniformNull, klInf, maxEPower, condNull, optionalSigma, stoppedLaw, stoppedNull, IsLevelStoppingTime, sequentialNull, condEVarNull, piLT, designValue, designRate, mergingNull, with their main statements, and hasCondDistrib_id_iff (maxEPower_eq_klInf_effectiveSet and subset_setOf_isEVar_iff are proved, effectiveSet_eq_polarNull is rfl).
  • LMLRoadmaps/Generalization/README.md: scope, relation to the other roadmaps, the layers table, e-values targets 0.17–0.26 and 1.26–1.37, completion checks.
  • LMLRoadmaps/Identification/README.md: 2.3 (the bound with D*), new 5.4 (learning the design; note 49), new 8.5 (certified fixed-budget identification; note 39), the layers table, [EVR26].
  • LMLRoadmaps/Bandits/README.md: 4.4 (any observation space; notes 41, 44, 47), the layers table, [EVR26].

Points to check

  • One pull request for four directories, as in EValues: e-values, e-processes and anytime-valid inference #18, where CONTRIBUTING asks for one directory per pull request: the companion edits cite the new EValues items and would be dangling alone.
  • Every [EVR26] target rests on an unpublished argument written by AI agents. Each cited note was refereed once by another AI agent; no person has read them. Part of them is proved in Lean in the paper project; the others only in the notes. Notes 35 to 38 (the best constant bet in hindsight), which have no referee report, are not used.
  • Statements with no note behind them, proved only by a referee agent in the paper project's verification of the drafts: the characterization of the e-variables of the super-uniform null by the antitone envelope (0.2); the fork-convexity of the sequential null and its counterexample without the measurability of the observations (3.6); the identity of [KG22, Theorem 5] for dominated nulls with countable mixtures (3.8); on a finite type d = KL_inf, the null on ℕ with d ≤ log 2 and KL_inf = ∞, and the Bahadur slope 2 d (6.1); the counterexample to the conditional numeraire without P.map T ≪ Q.map T (1.2). D* = 1 / T* for best arm identification in exponential families (6.4) is a two-line consequence of the design inequality and Identification 5.2.
  • Decisions.
    • klInf with klIntegral, valued in EReal, above.
    • The clock piLT changes the formulas of Layer 6.3.
    • The sequential null of 4.5 is stated with Mathlib's HasCondDistrib (X k) id κ P, with id the identity of Ω into (Ω, ℱ k) and κ a kernel from (Ω, ℱ k); the Conventions define conditional laws given a σ-algebra this way. LMLExplore's present sequentialNull uses HasCondLaw, which asks no measurability of the conditional law: there the point mass at the observation itself always qualifies, so that for S₁ = {Ber(3/10), Ber(7/10)} the i.i.d. fair coins are in the null. Its validity theorems keep their proofs through the equivalence of HasCondDistrib and HasCondLaw for kernels (asked in 4.5), and fork-convexity needs the measurable form.
    • The definitions that the drafts placed in Generalization (operations on nulls, the polarity, tests, klInf, the sequential null, piLT) are EValues items, since Generalization restates merged code and adds no item; its targets cite them as prerequisites.
  • Counts in Generalization 0.17, 0.18 and 0.21 were made by searching LMLExplore 05afda8 for the inline forms; they are approximate.
  • Citations. [IWR26], [MD26], [Su18], [XR23] and [Del06] come from the paper project's bibliography, built from OpenAlex and the arXiv listings; theorem numbers of the papers were not rechecked for this pull request.
  • Left out: rates for nulls with a restart property, admissibility without domination, the best constant bet in hindsight, the effective null of the stopped laws, an explicit algorithm at D*, and the hardness of recognizing bets of two observations. Each needs a written proof or tools the roadmaps do not have.

Suggested.lean builds (lake build, also with -DautoImplicit=false).

Drafted with Claude Opus 5.5 at the request of the code owner.

🤖 Generated with Claude Code

https://claude.ai/code/session_0196ftMVbgjSJzPQEwdek3kM

RemyDegenne and others added 2 commits November 20, 2026 13:15
EValues: conventions for Statlib's new IsEVar (the integral against one),
named operations on nulls, the polarity, the quasi-sure filter, tests,
klInf (with klIntegral) and maxEPower, the clock piLT; a new item 0.6 on
nulls and bets, 3.8 on optimal e-processes for a distribution over
times, 6.4 on designs; additions to items 0.1-0.5, 1.1-1.5, 2.1, 3.1-3.7,
4.5, 5.3, 6.1, 6.3, 7.1-7.4, 8.2, 8.3. Generalization: e-values targets
0.17-0.26 and 1.26-1.37 restating the merged code. Identification: the
sharp lower bound in 2.3, new items 5.4 and 8.5. Bandits: 4.4 on any
observation space. Suggested.lean: Statlib's declarations in place of
the stand-ins, and prototypes of the new definitions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0196ftMVbgjSJzPQEwdek3kM
The sequential null of Layer 4.5 asks for Mathlib's HasCondDistrib of
each observation given the identity into (Ω, ℱ k), with a kernel from
(Ω, ℱ k), instead of a conditional law in set-integral form. The
Conventions define conditional laws given a σ-algebra this way, and say
why the measurability matters. Layer 4.5 asks for the equivalence with
LMLExplore's HasCondLaw for such kernels, and Generalization 0.23
follows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0196ftMVbgjSJzPQEwdek3kM
@RemyDegenne
RemyDegenne merged commit f58232d into main Nov 20, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant