Aether Catalog definitions — Speculative_AutoResearch_NeuroSymbolicRLHFPinsker
DefinitionSpeculative_AutoResearch_NeuroSymbolicRLHFPinskeraether-catalogspeculative
Definition bundle for the Aether Catalog module Speculative.AutoResearch.NeuroSymbolicRLHFPinsker, transplanted by skeleton subtraction; supplies the types and constants the catalog's theorems import.
Definition code
-- Def bundle generated from Speculative/AutoResearch/NeuroSymbolicRLHFPinsker.lean by skeleton subtraction
import Mathlib
import Definitions.Def_Speculative_AutoResearch_NeuroSymbolicRLHFObjective
/-
Copyright (c) 2025. All rights reserved.
# Pinsker's Inequality for Finite Alphabets, and the Square-Root Alignment Drift Bound
Fifth research cycle. This file closes "Conjecture 1" of the previous cycle's
`FUTURE_DIRECTIONS.md`: the exponential drift bound `e^{Δ/β} - 1` proved in
`Catalog.Shared.NeuroSymbolicRLHFRobustness` is replaced by the correct
square-root rate.
The route is the classical Cauchy–Schwarz proof of Pinsker's inequality, built
here from scratch (Mathlib has no finite-alphabet Pinsker inequality at this
commit):
1. a sharp one-variable estimate `x log x - x + 1 ≥ 3(x-1)²/(2(x+2))` on
`[0, ∞)`, proved by a second-derivative argument (`(x+2)³ ≥ 27x`);
2. its homogeneous form `a log (a/b) - a + b ≥ 3(a-b)²/(2(a+2b))`;
3. Cauchy–Schwarz against the weights `w i = p i + 2 q i`, whose total mass is
exactly `3`.
The alignment corollary: the aligned policy satisfies
`‖π* - π_SFT‖₁ ≤ √(2(max r - min r)/β)`, which beats the exponential bound
whenever the reward range exceeds the KL coefficient — the regime of practical
RLHF.
No `sorry`, no `native_decide`.
-/
open Finset Real BigOperators Set
noncomputable section
namespace NeuroSymbolicRLHF
/-! ## Step 1: the one-variable estimate -/
/-- Auxiliary function `H x = x log x - x + 1 - 3(x-1)²/(2(x+2))`, written in a
form convenient for differentiation. -/
def pinskerH : ℝ → ℝ := fun x => x * Real.log x - (5/2) * x + 7 - (27/2) * (x+2)⁻¹
/-- The derivative of `pinskerH`. -/
def pinskerG : ℝ → ℝ := fun x => Real.log x + 1 - 5/2 + (27/2) * ((x+2)^2)⁻¹
/-! ## Step 2: Pinsker's inequality on a finite alphabet -/
variable {ι : Type*} [Fintype ι]
/-! ## Step 3: the square-root alignment drift bound -/
end NeuroSymbolicRLHF