Convexity of the free energy in the reward — a consequence of the
ProvedNeuroSymbolicRLHF.freeEnergy_convexaether-catalogspeculative
Convexity of the free energy in the reward — a consequence of the variational principle: the free energy is a supremum of affine functionals of the reward.
theorem NeuroSymbolicRLHF.freeEnergy_convex{β lam : ℝ} (hβ : 0 < β) {ref r s : ι → ℝ} [Nonempty ι]
(href : IsPosProb ref) (h0 : 0 ≤ lam) (h1 : lam ≤ 1) :
freeEnergy β ref (fun i => lam * r i + (1 - lam) * s i)
≤ lam * freeEnergy β ref r + (1 - lam) * freeEnergy β ref s := by sorry
Formalization Note Transplanted verbatim from the Aether Catalog source Speculative/AutoResearch/NeuroSymbolicRLHFRobustness.lean; the statement is byte-identical to the source declaration, elaborated with autoImplicit disabled in the platform environment.
Preamble
-- Thm stub generated from Speculative/AutoResearch/NeuroSymbolicRLHFRobustness.lean
import Mathlib
import Definitions.Def_Speculative_AutoResearch_NeuroSymbolicRLHFObjective
import Definitions.Def_Speculative_AutoResearch_NeuroSymbolicRLHFRobustness
/-
Copyright (c) 2025. All rights reserved.
# Robustness, Preference Identifiability and Convex Duality for the RLHF Objective
Second research cycle, building directly on
`Catalog.Shared.NeuroSymbolicRLHFObjective` (variational principle, three-point
identity, torsor structure of exponential tilting).
Contents:
* **Preference identifiability (logistic ⋈ order theory).** Bradley–Terry
preference probabilities determine the reward *exactly up to an additive
constant*, hence they determine the RLHF optimum uniquely: RLHF on preference
data is a well-posed problem.
* **DPO reparametrisation.** The map `reward ↦ optimal policy` is a bijection
between rewards modulo constants and full-support policies; the inverse is the
implicit reward `β log(π/π_SFT)`.
* **Convex duality.** The free energy is convex, monotone and `1`-Lipschitz for
the sup-norm in the reward, all obtained from the variational principle
(a supremum of affine functionals).
* **Reward-model misspecification ("reward hacking") bound.** If the learned
reward is uniformly `ε`-close to the true reward, the policy it produces loses
at most `2ε` of true regularised value. The factor `2` is structural.
* **No policy collapse.** Pointwise two-sided bounds
`π_SFT(i) e^{-(M-m)/β} ≤ π*(i) ≤ π_SFT(i) e^{(M-m)/β)}`, an `L¹` drift bound
`‖π* - π_SFT‖₁ ≤ e^{(M-m)/β} - 1`, and the limit `π* → π_SFT` as `β → ∞`.
Every theorem is proved; no `sorry`, no `native_decide`.
-/
open Finset Real BigOperators Filter Topology
noncomputable section
open NeuroSymbolicRLHF
variable {ι : Type*} [Fintype ι]
/-! ## Preference identifiability: Bradley–Terry data pins the reward down to a
constant -/
/-! ## DPO reparametrisation -/
/-! ## Convex duality for the free energy -/Formal statement
theorem NeuroSymbolicRLHF.freeEnergy_convex{β lam : ℝ} (hβ : 0 < β) {ref r s : ι → ℝ} [Nonempty ι]
(href : IsPosProb ref) (h0 : 0 ≤ lam) (h1 : lam ≤ 1) :
freeEnergy β ref (fun i => lam * r i + (1 - lam) * s i)
≤ lam * freeEnergy β ref r + (1 - lam) * freeEnergy β ref s := by sorrySource