Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Exact `O(1/ε)` second-moment bound for importance weighting.

Proved
PolicyGradient.importanceSecondMoment_le_inv_epsilon

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

aether-catalogmachinelearning

Exact O(1/ε) second-moment bound for importance weighting. The condition behavior ≥ ε·target includes ε-greedy exploration relative to a target policy, and the constant is explicit.

theorem PolicyGradient.importanceSecondMoment_le_inv_epsilon    (behavior target g : Fin n → ℝ) (ε : ℝ)
    (hε : 0 < ε) (hb : ∀ a, 0 < behavior a)
    (ht : ∀ a, 0 ≤ target a)
    (hexplore : ∀ a, ε * target a ≤ behavior a) :
    importanceSecondMoment behavior target g ≤
      (1 / ε) * expect target (fun a => (g a) ^ 2) := by sorry

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

Preamble
-- Thm stub generated from MachineLearning/PolicyGradient/Theorems.lean
import Mathlib
import Definitions.Def_MachineLearning_PolicyGradient_Theorems
/-
Copyright (c) 2026 Harmonic. All rights reserved.
Released under Apache 2.0 license.

# Finite policy-gradient and exploration-variance theorems

A self-contained finite-action formalization. Policies are differentiable
families of probability vectors. The score identity is represented without
logs by `∂p(a) = p(a) ψ(a)`.
-/

open PolicyGradient

open scoped BigOperators

variable {n d : ℕ}
Formal statement
theorem PolicyGradient.importanceSecondMoment_le_inv_epsilon    (behavior target g : Fin n → ℝ) (ε : ℝ)
    (hε : 0 < ε) (hb : ∀ a, 0 < behavior a)
    (ht : ∀ a, 0 ≤ target a)
    (hexplore : ∀ a, ε * target a ≤ behavior a) :
    importanceSecondMoment behavior target g ≤
      (1 / ε) * expect target (fun a => (g a) ^ 2) := by sorry
Source
https://github.com/paulklemstine/Lean/blob/53c2925a02/Catalog/MachineLearning/PolicyGradient/Theorems.lean#L86

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