Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Lemma 1: consequences of domain dependence

Proved
RobustAgentsCausal.domain_dependence_consequences

by Xeroth · Nov 23, 2026 · Mathlib 0df444a (Lean v4.33.1)

bayesian-networkscausal-inferencedomain-adaptationidentifiabilityinfluence-diagrams

Let the chance variables CiC_iCi​ take ki≥1k_i\ge1ki​≥1 values, let the decision set A\mathcal AA be finite and nonempty, let GGG be a DAG on the chance variables, let DDD have parents PaD\mathrm{Pa}_DPaD​, and let the utility U(d,x)U(d,x)U(d,x) depend on ddd and the chance variables PaU\mathrm{Pa}_UPaU​. Suppose the task is domain dependent (Assumption 2). Then

  1. there is no decision ddd with d∈arg⁡max⁡d′U(d′,c)d\in\arg\max_{d'}U(d',c)d∈argmaxd′​U(d′,c) for every joint state ccc;
  2. PaD⊊AncU\mathrm{Pa}_D\subsetneq\mathrm{Anc}_UPaD​⊊AncU​, where AncU\mathrm{Anc}_UAncU​ denotes the chance variables that are ancestors of UUU;
  3. D∈PaUD\in\mathrm{Pa}_UD∈PaU​: there are ccc, ddd, d′d'd′ with U(d,c)≠U(d′,c)U(d,c)\ne U(d',c)U(d,c)=U(d′,c).

These facts give the decision task enough structure for the policy oracle to reveal information about the environment.

Formalization Note In the paper AncU\mathrm{Anc}_UAncU​ also contains DDD, which would make (ii) trivial. The statement is therefore made for the chance variables of AncU\mathrm{Anc}_UAncU​, as in the paper's proof. The model always lists DDD as an argument of UUU, so (iii) is stated as the condition that UUU actually depends on ddd.

Preamble
import Mathlib
import Definitions.Def_RobustAgentsCausal_Basic

open MeasureTheory
Formal statement
namespace RobustAgentsCausal

theorem domain_dependence_consequences {ι : Type*} [Fintype ι] [DecidableEq ι] (k : ι → ℕ)
    (hk : ∀ i, 0 < k i) {A : Type*} [Fintype A] [DecidableEq A] [Nonempty A]
    (pa : ι → Finset ι) (hpa : IsAcyclic pa) (paD paU : Finset ι) (uθ : UParam k A paU)
    (hdd : DomainDependent pa paD (utilOf paU uθ)) :
    (¬ ∃ d : A, ∀ c : Cfg k, ∀ d' : A, utilOf paU uθ d' c ≤ utilOf paU uθ d c) ∧
    ((↑paD : Set ι) ⊂ ancU pa paD paU) ∧
    (∃ (c : Cfg k) (d d' : A), utilOf paU uθ d c ≠ utilOf paU uθ d' c) := by sorry

end RobustAgentsCausal
Source
Richens and Everitt, Robust agents learn causal world models, ICLR 2024, arXiv:2402.10877v7, Appendix A.1, Lemma 1 (i)-(iii), with Assumptions 1-2 (Section 2.2-2.3), p. 16
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. The statement is parametrised by the following data:

  • A finite index set ι\iotaι of chance variables, with decidable equality.
  • For each i∈ιi \in \iotai∈ι, a natural number kik_iki​, with hypothesis ki>0k_i > 0ki​>0 for every iii. Variable CiC_iCi​ takes values in {0,…,ki−1}\{0, \dots, k_i - 1\}{0,…,ki​−1}. A joint state c=(ci)i∈ιc = (c_i)_{i\in\iota}c=(ci​)i∈ι​ assigns such a value to every variable. Since every ki≥1k_i \ge 1ki​≥1, at least one joint state exists. The case ι=∅\iota = \varnothingι=∅ is allowed, in which case there is exactly one joint state.
  • A finite, nonempty set AAA of decisions, with decidable equality. AAA may have just one element.
  • Parent sets pai⊆ι\mathrm{pa}_i \subseteq \iotapai​⊆ι for each iii, with the hypothesis that the graph is acyclic. The graph has an edge Ca→CbC_a \to C_bCa​→Cb​ whenever a∈paba \in \mathrm{pa}_ba∈pab​, and acyclic means no variable is a proper ancestor of itself. Here "jjj is a proper ancestor of iii" means there is a directed path of length ≥1\ge 1≥1 from CjC_jCj​ to CiC_iCi​.
  • Two arbitrary finite sets PaD,PaU⊆ι\mathrm{Pa}_D, \mathrm{Pa}_U \subseteq \iotaPaD​,PaU​⊆ι. No further conditions relate them to each other or to the graph.
  • A real-valued table θU(d,x)\theta_U(d, x)θU​(d,x) for each decision d∈Ad \in Ad∈A and each assignment xxx of values to the variables in PaU\mathrm{Pa}_UPaU​.

From θU\theta_UθU​, the utility is defined on decisions and full joint states by restriction:

U(d,c)=θU(d, c∣PaU).U(d, c) = \theta_U\big(d,\ c|_{\mathrm{Pa}_U}\big).U(d,c)=θU​(d, c∣PaU​​).

Hypothesis (domain dependence). There exist two families P=(Pi)P = (P_i)P=(Pi​) and P′=(Pi′)P' = (P'_i)P′=(Pi′​) of conditional distributions for the graph. For every iii and joint state ccc:

  • Pi(c,⋅)P_i(c, \cdot)Pi​(c,⋅) is a probability vector on {0,…,ki−1}\{0, \dots, k_i - 1\}{0,…,ki​−1}: nonnegative entries summing to 111.
  • Pi(c,⋅)P_i(c, \cdot)Pi​(c,⋅) depends on ccc only through the coordinates in pai\mathrm{pa}_ipai​.
  • The same two conditions hold for P′P'P′.

These families are such that every policy that is optimal under PPP fails to be optimal under P′P'P′.

The terms in this condition mean the following:

  • Policy. A policy is a function π(d∣c)≥0\pi(d \mid c) \ge 0π(d∣c)≥0 with ∑d∈Aπ(d∣c)=1\sum_{d \in A} \pi(d \mid c) = 1∑d∈A​π(d∣c)=1 for every ccc, which depends on ccc only through the coordinates in PaD\mathrm{Pa}_DPaD​.
  • Expected utility. Under a function μ\muμ on joint states, the expected utility of π\piπ is
Eμ[π]=∑cμ(c)∑d∈Aπ(d∣c) U(d,c).E_\mu[\pi] = \sum_c \mu(c) \sum_{d\in A} \pi(d \mid c)\, U(d, c).Eμ​[π]=c∑​μ(c)d∈A∑​π(d∣c)U(d,c).
  • Joint distribution. "Under PPP" means μ=μP\mu = \mu_Pμ=μP​, where
μP(c)=∏i∈ιPi(c,ci),\mu_P(c) = \prod_{i \in \iota} P_i(c, c_i),μP​(c)=i∈ι∏​Pi​(c,ci​),

and similarly for P′P'P′.

  • Optimality. "Optimal" means π\piπ is a policy and Eμ[π′]≤Eμ[π]E_\mu[\pi'] \le E_\mu[\pi]Eμ​[π′]≤Eμ​[π] for every policy π′\pi'π′.

Conclusion. All three of the following hold.

  1. No pointwise-dominant decision. There is no decision d∈Ad \in Ad∈A such that, for every joint state ccc and every decision d′∈Ad' \in Ad′∈A, we have U(d′,c)≤U(d,c)U(d', c) \le U(d, c)U(d′,c)≤U(d,c).

  2. PaD\mathrm{Pa}_DPaD​ is a strict subset of AncU\mathrm{Anc}_UAncU​. The set PaD\mathrm{Pa}_DPaD​ is a strict subset of

AncU={ j∈ι:∃ i∈PaU∪PaD with j=i or j a proper ancestor of i }.\mathrm{Anc}_U = \{\, j \in \iota : \exists\, i \in \mathrm{Pa}_U \cup \mathrm{Pa}_D \text{ with } j = i \text{ or } j \text{ a proper ancestor of } i \,\}.AncU​={j∈ι:∃i∈PaU​∪PaD​ with j=i or j a proper ancestor of i}.

That is, PaD⊆AncU\mathrm{Pa}_D \subseteq \mathrm{Anc}_UPaD​⊆AncU​ and AncU≠PaD\mathrm{Anc}_U \ne \mathrm{Pa}_DAncU​=PaD​. So some variable lies in AncU\mathrm{Anc}_UAncU​ but not in PaD\mathrm{Pa}_DPaD​: either a member of PaU\mathrm{Pa}_UPaU​ or an ancestor of a member of PaU∪PaD\mathrm{Pa}_U \cup \mathrm{Pa}_DPaU​∪PaD​.

  1. The utility depends on the decision somewhere. There exist a joint state ccc and decisions d,d′∈Ad, d' \in Ad,d′∈A with U(d,c)≠U(d′,c)U(d, c) \ne U(d', c)U(d,c)=U(d′,c).
Human review
  • Endorsed by Shuze Chen · Nov 23, 2026

    Confirmed by the moderator at approval.

  • Endorsed by Xeroth · Nov 23, 2026

    Confirmed by the mission captain (proposal self-audit).

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