Theorem 3: a (approximate) causal model identifies optimal (regret-bounded) policies
ProvedRobustAgentsCausal.causal_model_identifies_policiesLet the chance variables take values, let the decision set be finite and nonempty, and fix the decision parents . There is a procedure that maps a causal Bayesian network over the chance variables, a utility (so ) and a soft intervention to a policy, with the following properties.
- If is a soft intervention compatible with , then is an optimal policy in .
- For every such , and there are constants and such that the following holds for every . If is any causal Bayesian network with for all and all states, then the policy has regret at most in .
Together with Theorem 2, this says that an approximate causal model is necessary and sufficient for regret-bounded policies under local interventions.
Formalization Note "" and "regret grows linearly in " are read as a bound for in some interval , with and depending on , and . The policies have input . Conditional distributions of and are compared at every joint state of the chance variables.
import Mathlib import Definitions.Def_RobustAgentsCausal_Basic open MeasureTheory
namespace RobustAgentsCausal
theorem causal_model_identifies_policies {ι : Type*} [Fintype ι] [DecidableEq ι] (k : ι → ℕ)
(hk : ∀ i, 0 < k i) {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
(paD : Finset ι) :
∃ F : (ι → Finset ι) → ((i : ι) → Cfg k → Fin (k i) → ℝ) → (A → Cfg k → ℝ) → SoftInt k →
Cfg k → A → ℝ,
(∀ (pa : ι → Finset ι) (P : (i : ι) → Cfg k → Fin (k i) → ℝ), IsAcyclic pa → IsCPD pa P →
∀ (u : A → Cfg k → ℝ) (σ : SoftInt k), σ.IsCompatible pa →
IsOptimal paD (softJoint P σ) u (F pa P u σ)) ∧
(∀ (pa : ι → Finset ι) (P : (i : ι) → Cfg k → Fin (k i) → ℝ), IsAcyclic pa → IsCPD pa P →
∀ (u : A → Cfg k → ℝ) (σ : SoftInt k), σ.IsCompatible pa →
∃ C ε₀ : ℝ, 0 < ε₀ ∧ ∀ ε : ℝ, 0 ≤ ε → ε ≤ ε₀ →
∀ (pa' : ι → Finset ι) (P' : (i : ι) → Cfg k → Fin (k i) → ℝ),
IsAcyclic pa' → IsCPD pa' P' → (∀ i c v, |P' i c v - P i c v| ≤ ε) →
IsDeltaOptimal (C * ε) paD (softJoint P σ) u (F pa' P' u σ)) := 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 ;
- for each , a number of states , with the hypothesis for every , so variable takes values in ;
- a finite, nonempty set of decisions;
- an arbitrary subset , the decision's inputs.
A joint state assigns to every a value . Since every , there is at least one joint state. If , there is exactly one.
Terms used in the statement.
-
A graph is a choice of parent set for each . It is acyclic if no reaches itself by a nonempty chain with . This also excludes .
-
A family is a CPD family for if, for each , is a real number defined for every joint state and value of , and:
- ;
- for every ;
- depends on only through the coordinates , .
-
A soft intervention consists of three pieces of data:
- a set ;
- new parent sets ;
- new real-valued families .
-
is compatible with if both of the following hold:
- for each , is nonnegative, sums to over , and depends only on ;
- the modified graph is acyclic, where the modified graph uses for and for .
Nothing is required of or for .
-
The intervened joint is
-
A utility is an arbitrary real function of a decision and a joint state. It is not restricted to depend on any particular subset of variables.
-
A policy with input is a function such that:
- ;
- for every ;
- depends on only through .
If , policies are constant in .
-
For a real function on joint states, the expected utility is
- is -optimal for if is a policy with input and for every policy with input . Optimal means -optimal.
Assertion. There exists a single map with the following signature:
- inputs: a graph , a family , a utility , and a soft intervention , with no conditions imposed on these inputs by the type of ;
- output: a function of joint states and decisions.
This satisfies both of the following properties.
-
Exactness. Take any acyclic , any CPD family for , any utility , and any soft intervention compatible with . Then is an optimal policy with input for .
-
Stability. Take any acyclic , CPD family for , utility , and compatible with . There exist reals and with the following property. has no sign restriction, and both and may depend on . The property is: for every with , every acyclic graph , and every CPD family for satisfying
the output is a -optimal policy with input for .
Notes on the stability clause.
- Regret is measured against the unperturbed intervened joint , which is built from , not .
- The same and the same true utility are passed to .
- is not required to be compatible with .
- may differ arbitrarily from .
- The case is included. Then , but may be any other acyclic graph for which is also a CPD family, and the output must have regret at most .
Scope of the statement.
- is only asserted to exist. It may depend on its inputs in any way.
- No policy oracle, data, or other access mechanism appears in the statement.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.