---
title: J-Do-Calculus Overview
url: https://www.emergentmind.com/topics/j-do-calculus
type: topic
---

# J-Do-Calculus Overview

Searching arXiv for the primary J-Do-Calculus papers and closely related foundational work.
J-Do-Calculus, colloquially called “judo calculus,” is an intuitionistic generalization of Pearl’s do-calculus in which causal claims are not required to hold globally in a single model, but instead hold as local truth over a cover of regimes and are then glued into a stable statement. In this framework, regimes such as age groups, countries, dose levels, genotypes, protocols, seasons, or laboratories are organized sheaf-theoretically; a Lawvere–Tierney modality $j$ specifies which regimes are relevant, and $j$-stability requires that intervention premises and conclusions hold constructively and compatibly across that selected family. Under the trivial topology, where the regime space is a single chart, J-Do-Calculus reduces to Pearl’s ordinary do-calculus [2510.23942][2510.17944].

## 1. Motivation and conceptual scope

The central motivation for J-Do-Calculus is that causal effects are often regime-dependent. In many applications, a single universal statement such as “$X$ causes $Y$” is too brittle because mechanisms vary across contexts. J-Do-Calculus replaces global truth by local truth on a cover of regimes: a causal claim is certified on each chart of a chosen family and then glued into a statement that is stable across that family. This makes regime dependence a formal part of identification rather than an afterthought [2510.23942].

This framework is explicitly intuitionistic. The internal logic does not assume the law of excluded middle. As formulated in the theory paper, disjunction and existence are local and gluable: “$\varphi \vee \psi$” at a stage means one can cover the stage by parts where either $\varphi$ or $\psi$ holds, and “$\exists x.\Phi(x)$” means there is a cover with witnesses on each part. The implementation-oriented paper treats this locality as algorithmically relevant because witnesses are constructive and must be compatible on overlaps [2510.23942][2510.17944].

A common misconception is to read the prefix $j$ as merely a notational embellishment of Pearl’s calculus. The formal role of $j$ is stronger: it determines which covers count as admissible, which subobjects are $j$-dense, and which claims may be promoted from chartwise validity to ambient truth. Another misconception is to equate J-Do-Calculus with ad hoc multi-environment averaging. The papers instead define local truth, gluing, and $j$-stability inside a topos of sheaves, so the regime-wise decomposition is semantic rather than only procedural [2510.17944].

## 2. Sheaf-theoretic and intuitionistic semantics

The formal setting begins with a small category $R$ of regimes or contexts, whose objects are regimes and whose arrows are restrictions or refinements. A Grothendieck topology $J$ on $R$ specifies admissible covers, and the ambient category is the topos of sheaves
$$
E := Sh(R,J).
$$
Its internal logic is intuitionistic and supports a subobject classifier $\Omega$ together with a Lawvere–Tierney modal operator $j:\Omega \to \Omega$ [2510.23942][2510.17944].

In this setting, $j$ is a nucleus on $\Omega$ satisfying
$$
j(\top)=\top,\quad j(\bot)=\bot,\quad j(\alpha\wedge\beta)=j(\alpha)\wedge j(\beta),\quad \alpha\le j(\alpha),\quad j\circ j=j.
$$
The papers also state monotonicity: if $\alpha \le \beta$, then $j(\alpha)\le j(\beta)$. These axioms make $j$ a closure operator in the internal logic and induce the corresponding notion of $j$-sheafification [2510.23942][2510.17944].

Local truth is expressed through Kripke–Joyal semantics. Writing $U \Vdash \varphi$ for forcing at stage $U$, the boxed modality associated with the topology is
$$
U \Vdash \square_J\,\varphi \iff \exists\ \{U_i \to U\} \in J(U)\ \text{s.t.}\ \forall i,\ U_i \Vdash \varphi.
$$
Thus a proposition is true at $U$ if it holds on a $J$-cover of $U$. The corresponding gluing principle is the ordinary sheaf condition: if local sections are compatible on overlaps, they uniquely amalgamate into a global section,
$$
\{U_i\to U\}\in J(U),\ s_i\in \Gamma(U_i,F),\ s_i|_{U_i\cap U_j}=s_j|_{U_i\cap U_j}\Rightarrow \exists! s\in\Gamma(U,F)\ \text{with}\ s|_{U_i}=s_i.
$$
This is the formal basis for certifying causal premises chartwise and then promoting them to ambient truth by gluing [2510.23942].

Several derived notions are central. A mono $m:A\hookrightarrow X$ is $j$-dense iff
$$
j(\chi_A)=\chi_X,
$$
equivalently $\mathrm{cl}_j(A)=X$. An object is a $j$-sheaf iff it admits unique amalgamations along $j$-covering sieves, or equivalently iff the unit of sheafification is an isomorphism. These notions encode the distinction between arbitrary local data and local data that can be certified as coherent across the chosen regime family [2510.17944].

## 3. Regime-indexed structural causal models and $j$-interventions

J-Do-Calculus works with regime-indexed structural causal models. For variables $V$ and regime $r\in R$, the structural equation for a variable $X$ is written
$$
X := f_X\big(PA_X,\ U_X,\ r\big),
$$
where $PA_X$ are parents and $U_X$ are exogenous noises. Each regime supplies a fiberwise model, and arrows in $R$ induce restrictions between fibers [2510.23942].

Interventions are then defined relative to the $j$-selected family of regimes. Given a regime-indexed interventional distribution $P(Y\mid do(X=x),r)$, the $j$-stable intervention is
$$
P_j\big(Y \mid \mathrm{do}(X=x)\big) := j\Big( r \mapsto P\big(Y \mid \mathrm{do}(X=x), r\big)\Big).
$$
If a measure $\mu$ on $R$ is available and the $j$-selected subspace is measurable, the paper gives the concrete form
$$
P_j\big(Y \mid \mathrm{do}(X=x)\big) = \int_{r \in J} P\big(Y \mid \mathrm{do}(X=x), r\big)\ d\mu(r).
$$
In practice, monotone aggregators $\mathrm{Agg}_j$ such as Fisher pooling, Stouffer pooling, and trimmed means are used [2510.23942].

Conditional independence and d-separation are defined fiberwise. For each regime $r$, one works with the local graph $G|_r$. Sheaf morphisms transport conditional-independence judgments along restrictions, and $j$-sheafification retains only those conditional-independence statements that are stable under restriction and glue over a cover. In the theory paper, conditional independence is expressed internally as factorization,
$$
Y \perp Z \mid \Gamma \iff k = k_0 \circ \pi_\Gamma : \Gamma\times Z \to Dist_E(Y),
$$
where $k(\gamma,z)=P(Y\mid \Gamma,Z)$ and $k_0(\gamma)=P(Y\mid \Gamma)$ [2510.23942][2510.17944].

This suggests that J-Do-Calculus does not merely annotate ordinary SCMs by regime labels. Rather, it turns regime variation into part of the semantics of truth, identifiability, and compatibility.

## 4. Inference rules and identification criteria

The formal rules mirror Pearl’s three rules, but their premises are required to hold $j$-locally on a cover and to be compatible on overlaps. In the internal-logic formulation, the rules are stated on mutilated graphs and interpreted as equalities of arrows in the sheaf topos [2510.17944].

| Rule | $j$-local premise | Conclusion |
|---|---|---|
| **J1** | $U \Vdash j\!\left(dsep_{G^{\overline{X}}}(Y;Z\mid X,W)\right)$ | $P_U(y\mid do(x),z,w)=P_U(y\mid do(x),w)$ |
| **J2** | $U \Vdash j\!\left(dsep_{G^{\overline{X},\underline{Z}}}(Y;Z\mid X,W)\right)$ | $P_U(y\mid do(x),do(z),w)=P_U(y\mid do(x),z,w)$ |
| **J3** | $U \Vdash j\!\left(dsep_{G^{\overline{X},\overline{Z(W)}}}(Y;Z\mid X,W)\right)$ | $P_U(y\mid do(x),do(z),w)=P_U(y\mid do(x),w)$ |

The implementation-oriented paper presents the same structure in regime-wise form. Its j-Insertion/Deletion of Observations states that if, on the selected family $J$, $Y \perp Z \mid X,W$ fiberwise and compatibly, then
$$
P_j(y \mid \mathrm{do}(x), z, w) = P_j(y \mid \mathrm{do}(x), w).
$$
Its j-Action/Observation exchange states that if, on $J$, $Y \perp E_X \mid X,Z,W$, then
$$
P_j(y \mid \mathrm{do}(x), z, w) = P_j(y \mid x, z, w).
$$
Its j-Truncation states that if, on $J$, $Y \perp E_X \mid Z,W$, then
$$
P_j(y \mid \mathrm{do}(x), z, w) = P_j(y \mid z, w).
$$
Here $E_X$ denotes environments that change $X$’s mechanism [2510.23942].

The standard adjustment criteria also acquire $j$-stable versions. For the j-back-door criterion, if $Z$ blocks all back-door paths from $X$ to $Y$ in each regime $r\in J$ and the separator sections are compatible on overlaps, then
$$
P_{j}(Y \mid \mathrm{do}(X=x)) = \sum_{z} P_{j}\big(Y \mid X=x,\ Z=z\big)\, P_{j}(Z=z).
$$
Operationally, the paper computes this per regime and aggregates:
$$
P_{j}(Y \mid \mathrm{do}(X=x)) = \mathrm{Agg}_{r\in J}\ \sum_{z} P\big(Y \mid X=x, Z=z, r\big)\, P(Z=z\mid r).
$$
For the j-front-door criterion, under the usual front-door premises in each regime together with gluing on overlaps,
$$
P_{j}(Y \mid \mathrm{do}(X=x)) = \sum_{m} \Big( \sum_{x'} P_{j}(Y \mid m, x')\, P_{j}(x') \Big)\, P_{j}(m \mid \mathrm{do}(X=x)).
$$
A per-regime aggregated form is given as well [2510.23942].

The core soundness statement is a $j$-soundness theorem: under $j$-Markov and $j$-faithfulness assumptions, the $j$-do rules preserve identifiability across the entire $j$-selected family, and the identified expressions compute the intended interventional distributions in the topos. The proof sketch relies on Kripke–Joyal semantics, stability of geometric formulas under pullback and refinement, and the idempotence and meet preservation of $j$ [2510.23942]. A plausible implication is that identifiability is no longer an all-or-nothing global property; it can be certified locally and then elevated by gluing.

## 5. Decentralized causal discovery and algorithmic instantiation

The implementation paper describes J-Do-Calculus as a decentralized causal-discovery framework. The regime space is covered by charts $\{U_i\to R\}$, chosen either from metadata such as country, dose, or wind sector, or from clustering. Causal discovery is then run locally on each chart using a chosen base learner: score-based GES or TCES, constraint-based $\psi$-FCI-TCM, or gradient-based DCDI or DCDI-TCM [2510.23942].

Compatibility is checked on overlaps $U_i\cap U_j$ by aligning skeletons and local parameters. The paper mentions simple matching and consistency criteria such as equality of local conditionals via MMD or Fisher tests. Incompatible edges or parameters are flagged as unstable. Compatible local sections are then glued to a global section [2510.23942].

The high-level pipeline is explicitly given. One constructs the cover, runs the base learner on each chart, checks compatibility on overlaps, aggregates edges by support, aggregates parameters via $\mathrm{Agg}_j$, verifies j-back-door or j-front-door premises on the glued structure, and finally computes $P_j(Y\mid do(X=x))$ by aggregating per-chart formulas. For edge aggregation, the reducer keeps $(u\to v)$ if
$$
C_{uv} = \sum_i \mathbf{1}[(u\to v)\in G_i]
$$
satisfies the stability threshold condition $C_{uv}/|I|\ge \pi$ [2510.23942].

The stated complexity is
$$
O\!\left(\sum_i T(U_i)\right) + O(|I|\cdot p^2)
$$
for chartwise learning plus aggregation and overlap checks. Under parallel execution, wall-clock time becomes approximately
$$
\max_i T(U_i) + O(|I|\cdot p^2),
$$
which is described as typically much less than $O(T(R))$ for a monolithic global run [2510.23942].

Three concretizations are singled out. TCES uses a local score equal to BIC minus a $j$-stability penalty, defined as variance of coefficients across regimes, minus a sheaf overlap penalty, defined as divergence on overlaps. $\psi$-FCI-TCM replaces the CI oracle by a sheaf-aggregated test
$$
p_{\mathrm{sheaf}}(i \perp j \mid S)=\mathrm{Agg}_j(\{p_r\}),
$$
with an optional $j$-stability veto if a reference regime contradicts the aggregate. DCDI-TCM trains regime-specific heads with a $j$-stability penalty on edge logits and an optional sheaf penalty on local conditionals, then aggregates edges post hoc by frequency or stability $\pi$ [2510.23942].

## 6. Empirical behavior and illustrative examples

The reported experiments span synthetic SCMs, Sachs protein signaling, and OECD PISA ESCS trends. The metrics are Structural Hamming Distance, Precision, Recall, F1, stability indices, negative log-likelihood on held-out regimes, and runtime. Baselines are pooled GES, $\psi$-FCI, and DCDI, contrasted with $j$-stable variants using cover-wise aggregation [2510.23942].

The quantitative summaries are explicit. For $\psi$-FCI on synthetic data at $\alpha=0.005$,
$$
\text{Pooled: } \mathrm{F1}=0.167,\ \mathrm{SHD}=20;\quad j\text{-stable (intersection): } \mathrm{F1}=0.250,\ \mathrm{SHD}=6.
$$
For GES on the synthetic skeleton task,
$$
\text{Pooled GES: } \mathrm{SHD}=14;\quad j\text{-stable GES: } \mathrm{SHD}=0\ (\text{perfect skeleton}).
$$
For DCDI with linear perfect interventions, medians $\pm$ IQR over $10$–$20$ graphs are reported as
$$
\begin{aligned}
d{=}10,e{=}1:\ &22.5\pm6.75\ \text{vs } 6.0\pm1.75,\\
d{=}20,e{=}1:\ &100.5\pm7.0\ \text{vs } 13.5\pm5.25,\\
d{=}20,e{=}4:\ &106.0\pm8.25\ \text{vs } 76.0\pm7.0,
\end{aligned}
$$
with the first number in each pair corresponding to vanilla DCDI and the second to the $j$-stable variant [2510.23942].

The paper also gives a worked j-back-door example with two regimes $J=\{r_1,r_2\}$. In $r_1$, $Z\to X$ and $Z\to Y$ create confounding; in $r_2$, the edge $Z\to X$ is absent, while $X\to Y$ remains. The aggregated formula is
$$
P_{j}(Y \mid \mathrm{do}(X=x)) = \mathrm{Agg}_{r\in\{r_1,r_2\}}\ \sum_{z} P\big(Y \mid X=x,Z=z,r\big)\,P(Z=z\mid r).
$$
With the numerical choices
$$
P(Y=1|x=1,z=1)=0.8,\quad P(Y=1|1,0)=0.6,\quad P(Z=1)=0.5
$$
in $r_1$, and $P(Y=1|x=1)=0.7$ in $r_2$, the regime-wise effect is $0.7$ in both cases, so the mean aggregator yields
$$
P_j(Y=1\mid do(X{=}1))=0.7.
$$
The example is used to illustrate premise certification and gluing rather than merely numerical averaging [2510.23942].

These results do not prove universal superiority. They do show, in the paper’s reported domains, improved structure recovery and lower wall-clock time under decentralized map–reduce execution.

## 7. Relation to classical do-calculus, transportability, and limitations

J-Do-Calculus is presented as a conservative extension of Pearl’s calculus. In Pearl’s formulation, identifiability is established in a single global model using the three sound and complete rules of do-calculus; completeness for identifiable causal effects is surveyed in “The Do-Calculus Revisited” and proved in algorithmic form in “Pearl’s Calculus of Intervention Is Complete” [1210.4852][1206.6831]. J-Do-Calculus retains the structure of these rules but shifts truth conditions from global validity to $j$-local validity plus gluing [2510.17944].

This relation is exact in the trivial topology. When $j=\mathrm{id}_\Omega$, a sieve covers $U$ iff it contains $\mathrm{id}_U$, so $U\Vdash j(\varphi)$ iff $U\Vdash \varphi$. The premises then reduce to classical d-separation in the appropriate mutilated graph, and the conclusions become Pearl’s Rules 1–3. The implementation paper states the same point operationally: when the entire regime space is a single chart, J-Do-Calculus reduces to Pearl’s do-calculus [2510.17944][2510.23942].

The papers also place transportability inside this picture. The implementation paper states that transportability appears as a two-regime special case where $\mathrm{Agg}_j$ selects the target regime. That observation is consistent with Pearl and Bareinboim’s treatment of transportability via selection diagrams, where causal effects are transferred across populations by reducing expressions with do-calculus and separating source experimental information from target observational information [1503.01603]. This suggests that J-Do-Calculus can be read as a regime-indexed generalization of external-validity reasoning rather than a replacement for it.

The explicit assumptions are $j$-Markov and $j$-faithfulness, sufficient overlap between charts, reliable local estimation and CI testing, and constructive witnesses for intuitionistic claims. The listed limitations are equally direct: misspecified $j$-selection or covers can break compatibility, strong heterogeneity may preclude gluing, insufficient overlap weakens certification of $j$-stability, and aggregator choice trades off conservativeness against recall. The theory paper adds that conclusions are guaranteed only $j$-locally, and that some classical tautologies do not lift because the internal logic lacks excluded middle [2510.23942][2510.17944].

A final misconception is therefore worth dispelling. J-Do-Calculus does not assert that every heterogeneous causal system can be unified by sheafification. The framework instead states precise conditions under which local conditional independences, interventional equalities, and identified formulas can be certified on a cover and then glued. Where those compatibility conditions fail, the formalism records that failure rather than smoothing it away.

Source: https://www.emergentmind.com/topics/j-do-calculus