J-Do-Calculus Overview
- 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 specifies which regimes are relevant, and -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 “ causes ” 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: “” at a stage means one can cover the stage by parts where either or holds, and “” 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 as merely a notational embellishment of Pearl’s calculus. The formal role of is stronger: it determines which covers count as admissible, which subobjects are 0-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 1-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 2 of regimes or contexts, whose objects are regimes and whose arrows are restrictions or refinements. A Grothendieck topology 3 on 4 specifies admissible covers, and the ambient category is the topos of sheaves
5
Its internal logic is intuitionistic and supports a subobject classifier 6 together with a Lawvere–Tierney modal operator 7 (Mahadevan, 27 Oct 2025, Mahadevan, 20 Oct 2025).
In this setting, 8 is a nucleus on 9 satisfying
0
The papers also state monotonicity: if 1, then 2. These axioms make 3 a closure operator in the internal logic and induce the corresponding notion of 4-sheafification (Mahadevan, 27 Oct 2025, Mahadevan, 20 Oct 2025).
Local truth is expressed through Kripke–Joyal semantics. Writing 5 for forcing at stage 6, the boxed modality associated with the topology is
7
Thus a proposition is true at 8 if it holds on a 9-cover of 0. The corresponding gluing principle is the ordinary sheaf condition: if local sections are compatible on overlaps, they uniquely amalgamate into a global section,
1
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 2 is 3-dense iff
4
equivalently 5. An object is a 6-sheaf iff it admits unique amalgamations along 7-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 8-interventions
J-Do-Calculus works with regime-indexed structural causal models. For variables 9 and regime 0, the structural equation for a variable 1 is written
2
where 3 are parents and 4 are exogenous noises. Each regime supplies a fiberwise model, and arrows in 5 induce restrictions between fibers (Mahadevan, 27 Oct 2025).
Interventions are then defined relative to the 6-selected family of regimes. Given a regime-indexed interventional distribution 7, the 8-stable intervention is
9
If a measure 0 on 1 is available and the 2-selected subspace is measurable, the paper gives the concrete form
3
In practice, monotone aggregators 4 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 5, one works with the local graph 6. Sheaf morphisms transport conditional-independence judgments along restrictions, and 7-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,
8
where 9 and 0 (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 1-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 | 2-local premise | Conclusion |
|---|---|---|
| J1 | 3 | 4 |
| J2 | 5 | 6 |
| J3 | 7 | 8 |
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 9, 0 fiberwise and compatibly, then
1
Its j-Action/Observation exchange states that if, on 2, 3, then
4
Its j-Truncation states that if, on 5, 6, then
7
Here 8 denotes environments that change 9’s mechanism (Mahadevan, 27 Oct 2025).
The standard adjustment criteria also acquire 0-stable versions. For the j-back-door criterion, if 1 blocks all back-door paths from 2 to 3 in each regime 4 and the separator sections are compatible on overlaps, then
5
Operationally, the paper computes this per regime and aggregates:
6
For the j-front-door criterion, under the usual front-door premises in each regime together with gluing on overlaps,
7
A per-regime aggregated form is given as well (Mahadevan, 27 Oct 2025).
The core soundness statement is a 8-soundness theorem: under 9-Markov and 0-faithfulness assumptions, the 1-do rules preserve identifiability across the entire 2-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 3 (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 4, 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 5-FCI-TCM, or gradient-based DCDI or DCDI-TCM (Mahadevan, 27 Oct 2025).
Compatibility is checked on overlaps 6 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 7, verifies j-back-door or j-front-door premises on the glued structure, and finally computes 8 by aggregating per-chart formulas. For edge aggregation, the reducer keeps 9 if
00
satisfies the stability threshold condition 01 (Mahadevan, 27 Oct 2025).
The stated complexity is
02
for chartwise learning plus aggregation and overlap checks. Under parallel execution, wall-clock time becomes approximately
03
which is described as typically much less than 04 for a monolithic global run (Mahadevan, 27 Oct 2025).
Three concretizations are singled out. TCES uses a local score equal to BIC minus a 05-stability penalty, defined as variance of coefficients across regimes, minus a sheaf overlap penalty, defined as divergence on overlaps. 06-FCI-TCM replaces the CI oracle by a sheaf-aggregated test
07
with an optional 08-stability veto if a reference regime contradicts the aggregate. DCDI-TCM trains regime-specific heads with a 09-stability penalty on edge logits and an optional sheaf penalty on local conditionals, then aggregates edges post hoc by frequency or stability 10 (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, 11-FCI, and DCDI, contrasted with 12-stable variants using cover-wise aggregation (Mahadevan, 27 Oct 2025).
The quantitative summaries are explicit. For 13-FCI on synthetic data at 14,
15
For GES on the synthetic skeleton task,
16
For DCDI with linear perfect interventions, medians 17 IQR over 18–19 graphs are reported as
20
with the first number in each pair corresponding to vanilla DCDI and the second to the 21-stable variant (Mahadevan, 27 Oct 2025).
The paper also gives a worked j-back-door example with two regimes 22. In 23, 24 and 25 create confounding; in 26, the edge 27 is absent, while 28 remains. The aggregated formula is
29
With the numerical choices
30
in 31, and 32 in 33, the regime-wise effect is 34 in both cases, so the mean aggregator yields
35
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 36-local validity plus gluing (Mahadevan, 20 Oct 2025).
This relation is exact in the trivial topology. When 37, a sieve covers 38 iff it contains 39, so 40 iff 41. 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 42 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 43-Markov and 44-faithfulness, sufficient overlap between charts, reliable local estimation and CI testing, and constructive witnesses for intuitionistic claims. The listed limitations are equally direct: misspecified 45-selection or covers can break compatibility, strong heterogeneity may preclude gluing, insufficient overlap weakens certification of 46-stability, and aggregator choice trades off conservativeness against recall. The theory paper adds that conclusions are guaranteed only 47-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.