Lemma 4: an optimal policy oracle identifies an expected-utility difference
ProvedRobustAgentsCausal.policy_oracle_identifies_queryLet the chance variables take values, let the decision set be finite and nonempty, and fix the decision parents and the chance parents of the utility. There is a procedure , which uses only the utility function and a policy oracle, with the following property. For every DAG and Lebesgue-almost every parameter with valid and satisfying domain dependence (Assumption 2), let be any optimal policy oracle for the mixtures of local interventions with masked inputs. Then for every masking with , every context and every mixture of local interventions, returns decisions and the number
This is the basic query from which the proof of Theorem 1 recovers the conditional distributions one at a time.
Formalization Note "We can identify" is stated as the existence of a decoder whose inputs are the known quantities only: (with the variable domains, and ) and the oracle. is chosen before the graph and the parameters. The proof's "for almost all " (via Lemma 3) is the almost-everywhere quantifier.
import Mathlib import Definitions.Def_RobustAgentsCausal_Basic open MeasureTheory
namespace RobustAgentsCausal
theorem policy_oracle_identifies_query {ι : Type*} [Fintype ι] [DecidableEq ι] (k : ι → ℕ)
(hk : ∀ i, 0 < k i) {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
(paD paU : Finset ι) :
∃ F : UParam k A paU → Oracle k A → Finset ι → Cfg k → (LocalInt k → ℝ) → A × A × ℝ,
∀ pa : ι → Finset ι, IsAcyclic pa →
∀ᵐ θ : CPDParam k pa × UParam k A paU, ValidParam pa θ.1 →
DomainDependent pa paD (utilOf paU θ.2) →
∀ O : Oracle k A, IsOptimalOracle paD (cpdOf pa θ.1) (utilOf paU θ.2) O →
∀ S ⊆ paD, Disjoint S paU → ∀ (c₀ : Cfg k) (w : LocalInt k → ℝ), IsMixture w →
(F θ.2 O S c₀ w).1 ≠ (F θ.2 O S c₀ w).2.1 ∧
(F θ.2 O S c₀ w).2.2 =
ctxUtil (mixJoint (cpdOf pa θ.1) w) (utilOf paU θ.2) S c₀ (F θ.2 O S c₀ w).1 -
ctxUtil (mixJoint (cpdOf pa θ.1) w) (utilOf paU θ.2) S c₀ (F θ.2 O S c₀ w).2.1 := by sorry
end RobustAgentsCausalRead-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Fix the following data:
- a finite index set of chance variables, with decidable equality;
- for each , a number of states with for every ;
- a finite, nonempty set of decisions, with decidable equality;
- two subsets , the chance parents of the decision and of the utility.
A configuration is a tuple with . For , write for the restriction of to .
Assertion. There exists a single function
It takes as input:
- a utility parameter ;
- an oracle ;
- a set ;
- a configuration ;
- a weight function on local interventions.
is chosen once, after are fixed but before the graph. It does not receive the graph or the probability parameters . The conditions it must satisfy are given below.
The graph and parameters. For every assignment of parent sets () whose graph is acyclic, the following holds. Acyclic means there is no with a directed path of length , where the edges are for .
The conclusion below holds for Lebesgue-almost every parameter pair in the finite-dimensional real space of all such pairs. That is, the set of where the following implication fails has Lebesgue measure zero. Parameters outside the valid region satisfy it trivially.
- assigns a real number to each variable , each parent configuration of , and each .
- assigns a real number to each and each configuration of .
These parameters determine the following objects:
- Conditional distributions:
When , the single state gets probability .
- Utility: , with no constraint on its values.
- Mixed-intervention joint distribution. A local intervention is a tuple of arbitrary maps . A mixture is a function on all such tuples with . For a mixture ,
- Policies. A policy with input is a function with for every , depending on only through .
- Expected utility:
- Optimality. A policy is optimal for if it is a policy with input and for every policy with input .
The implication. Suppose all three of the following hold:
- Validity. for all entries, and
- Domain dependence. There exist two families of conditional distributions for the graph. Each such family has nonnegative entries summing to over , and each depends on only through . Write for the unintervened joint. The requirement is that no policy optimal for under is also optimal for under . These are arbitrary and need not come from .
- Optimal oracle. is any map from (set of variables, weight function) to a function . It is an optimal oracle if, for every and every mixture , is optimal for . This condition is a hypothesis about , and the conclusion must hold for every such .
Then, for every with , every configuration , and every mixture , the output satisfies
Edge cases.
- The sums are unnormalised. They are not conditional expectations, and the context need not have positive probability. If assigns it total mass , both sums vanish and is required.
- Only matters. The coordinates of outside are irrelevant. If , both sums run over all configurations.
- A single decision. If has exactly one element, is impossible. In that case the assertion holds only if, for every acyclic graph and almost every , one of the hypotheses fails.
- Unrelated sets. Nothing requires or to be related to the graph .
- What may use. may evaluate at arbitrary inputs, including sets not contained in and weights that are not mixtures. Only , , , , (and the fixed ) are available to it.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.