Papers
Topics
Authors
Recent
Search
2000 character limit reached

J-Do-Calculus Overview

Updated 5 July 2026
  • J-Do-Calculus is an intuitionistic extension of Pearl’s do-calculus that uses sheaf theory to decompose causal claims into locally valid statements across different regimes.
  • It integrates regime-specific structural causal models with a Lawvere–Tierney modality to glue local inferences into stable global conclusions.
  • The framework supports decentralized causal discovery with j-stable interventions, enhancing recovery of heterogeneous causal structures.

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 jj specifies which regimes are relevant, and jj-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 (Mahadevan, 27 Oct 2025, Mahadevan, 20 Oct 2025).

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 “XX causes YY” 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 (Mahadevan, 27 Oct 2025).

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 “x.Φ(x)\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 (Mahadevan, 27 Oct 2025, Mahadevan, 20 Oct 2025).

A common misconception is to read the prefix jj as merely a notational embellishment of Pearl’s calculus. The formal role of jj is stronger: it determines which covers count as admissible, which subobjects are jj0-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 jj1-stability inside a topos of sheaves, so the regime-wise decomposition is semantic rather than only procedural (Mahadevan, 20 Oct 2025).

2. Sheaf-theoretic and intuitionistic semantics

The formal setting begins with a small category jj2 of regimes or contexts, whose objects are regimes and whose arrows are restrictions or refinements. A Grothendieck topology jj3 on jj4 specifies admissible covers, and the ambient category is the topos of sheaves

jj5

Its internal logic is intuitionistic and supports a subobject classifier jj6 together with a Lawvere–Tierney modal operator jj7 (Mahadevan, 27 Oct 2025, Mahadevan, 20 Oct 2025).

In this setting, jj8 is a nucleus on jj9 satisfying

XX0

The papers also state monotonicity: if XX1, then XX2. These axioms make XX3 a closure operator in the internal logic and induce the corresponding notion of XX4-sheafification (Mahadevan, 27 Oct 2025, Mahadevan, 20 Oct 2025).

Local truth is expressed through Kripke–Joyal semantics. Writing XX5 for forcing at stage XX6, the boxed modality associated with the topology is

XX7

Thus a proposition is true at XX8 if it holds on a XX9-cover of YY0. The corresponding gluing principle is the ordinary sheaf condition: if local sections are compatible on overlaps, they uniquely amalgamate into a global section,

YY1

This is the formal basis for certifying causal premises chartwise and then promoting them to ambient truth by gluing (Mahadevan, 27 Oct 2025).

Several derived notions are central. A mono YY2 is YY3-dense iff

YY4

equivalently YY5. An object is a YY6-sheaf iff it admits unique amalgamations along YY7-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 (Mahadevan, 20 Oct 2025).

3. Regime-indexed structural causal models and YY8-interventions

J-Do-Calculus works with regime-indexed structural causal models. For variables YY9 and regime φψ\varphi \vee \psi0, the structural equation for a variable φψ\varphi \vee \psi1 is written

φψ\varphi \vee \psi2

where φψ\varphi \vee \psi3 are parents and φψ\varphi \vee \psi4 are exogenous noises. Each regime supplies a fiberwise model, and arrows in φψ\varphi \vee \psi5 induce restrictions between fibers (Mahadevan, 27 Oct 2025).

Interventions are then defined relative to the φψ\varphi \vee \psi6-selected family of regimes. Given a regime-indexed interventional distribution φψ\varphi \vee \psi7, the φψ\varphi \vee \psi8-stable intervention is

φψ\varphi \vee \psi9

If a measure φ\varphi0 on φ\varphi1 is available and the φ\varphi2-selected subspace is measurable, the paper gives the concrete form

φ\varphi3

In practice, monotone aggregators φ\varphi4 such as Fisher pooling, Stouffer pooling, and trimmed means are used (Mahadevan, 27 Oct 2025).

Conditional independence and d-separation are defined fiberwise. For each regime φ\varphi5, one works with the local graph φ\varphi6. Sheaf morphisms transport conditional-independence judgments along restrictions, and φ\varphi7-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,

φ\varphi8

where φ\varphi9 and ψ\psi0 (Mahadevan, 27 Oct 2025, Mahadevan, 20 Oct 2025).

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 ψ\psi1-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 (Mahadevan, 20 Oct 2025).

Rule ψ\psi2-local premise Conclusion
J1 ψ\psi3 ψ\psi4
J2 ψ\psi5 ψ\psi6
J3 ψ\psi7 ψ\psi8

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 ψ\psi9, x.Φ(x)\exists x.\Phi(x)0 fiberwise and compatibly, then

x.Φ(x)\exists x.\Phi(x)1

Its j-Action/Observation exchange states that if, on x.Φ(x)\exists x.\Phi(x)2, x.Φ(x)\exists x.\Phi(x)3, then

x.Φ(x)\exists x.\Phi(x)4

Its j-Truncation states that if, on x.Φ(x)\exists x.\Phi(x)5, x.Φ(x)\exists x.\Phi(x)6, then

x.Φ(x)\exists x.\Phi(x)7

Here x.Φ(x)\exists x.\Phi(x)8 denotes environments that change x.Φ(x)\exists x.\Phi(x)9’s mechanism (Mahadevan, 27 Oct 2025).

The standard adjustment criteria also acquire jj0-stable versions. For the j-back-door criterion, if jj1 blocks all back-door paths from jj2 to jj3 in each regime jj4 and the separator sections are compatible on overlaps, then

jj5

Operationally, the paper computes this per regime and aggregates:

jj6

For the j-front-door criterion, under the usual front-door premises in each regime together with gluing on overlaps,

jj7

A per-regime aggregated form is given as well (Mahadevan, 27 Oct 2025).

The core soundness statement is a jj8-soundness theorem: under jj9-Markov and jj0-faithfulness assumptions, the jj1-do rules preserve identifiability across the entire jj2-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 jj3 (Mahadevan, 27 Oct 2025). 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 jj4, 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 jj5-FCI-TCM, or gradient-based DCDI or DCDI-TCM (Mahadevan, 27 Oct 2025).

Compatibility is checked on overlaps jj6 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 (Mahadevan, 27 Oct 2025).

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 jj7, verifies j-back-door or j-front-door premises on the glued structure, and finally computes jj8 by aggregating per-chart formulas. For edge aggregation, the reducer keeps jj9 if

jj00

satisfies the stability threshold condition jj01 (Mahadevan, 27 Oct 2025).

The stated complexity is

jj02

for chartwise learning plus aggregation and overlap checks. Under parallel execution, wall-clock time becomes approximately

jj03

which is described as typically much less than jj04 for a monolithic global run (Mahadevan, 27 Oct 2025).

Three concretizations are singled out. TCES uses a local score equal to BIC minus a jj05-stability penalty, defined as variance of coefficients across regimes, minus a sheaf overlap penalty, defined as divergence on overlaps. jj06-FCI-TCM replaces the CI oracle by a sheaf-aggregated test

jj07

with an optional jj08-stability veto if a reference regime contradicts the aggregate. DCDI-TCM trains regime-specific heads with a jj09-stability penalty on edge logits and an optional sheaf penalty on local conditionals, then aggregates edges post hoc by frequency or stability jj10 (Mahadevan, 27 Oct 2025).

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, jj11-FCI, and DCDI, contrasted with jj12-stable variants using cover-wise aggregation (Mahadevan, 27 Oct 2025).

The quantitative summaries are explicit. For jj13-FCI on synthetic data at jj14,

jj15

For GES on the synthetic skeleton task,

jj16

For DCDI with linear perfect interventions, medians jj17 IQR over jj18–jj19 graphs are reported as

jj20

with the first number in each pair corresponding to vanilla DCDI and the second to the jj21-stable variant (Mahadevan, 27 Oct 2025).

The paper also gives a worked j-back-door example with two regimes jj22. In jj23, jj24 and jj25 create confounding; in jj26, the edge jj27 is absent, while jj28 remains. The aggregated formula is

jj29

With the numerical choices

jj30

in jj31, and jj32 in jj33, the regime-wise effect is jj34 in both cases, so the mean aggregator yields

jj35

The example is used to illustrate premise certification and gluing rather than merely numerical averaging (Mahadevan, 27 Oct 2025).

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” (Pearl, 2012, Huang et al., 2012). J-Do-Calculus retains the structure of these rules but shifts truth conditions from global validity to jj36-local validity plus gluing (Mahadevan, 20 Oct 2025).

This relation is exact in the trivial topology. When jj37, a sieve covers jj38 iff it contains jj39, so jj40 iff jj41. 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 (Mahadevan, 20 Oct 2025, Mahadevan, 27 Oct 2025).

The papers also place transportability inside this picture. The implementation paper states that transportability appears as a two-regime special case where jj42 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 (Pearl et al., 2015). 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 jj43-Markov and jj44-faithfulness, sufficient overlap between charts, reliable local estimation and CI testing, and constructive witnesses for intuitionistic claims. The listed limitations are equally direct: misspecified jj45-selection or covers can break compatibility, strong heterogeneity may preclude gluing, insufficient overlap weakens certification of jj46-stability, and aggregator choice trades off conservativeness against recall. The theory paper adds that conclusions are guaranteed only jj47-locally, and that some classical tautologies do not lift because the internal logic lacks excluded middle (Mahadevan, 27 Oct 2025, Mahadevan, 20 Oct 2025).

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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to J-Do-Calculus.