Papers
Topics
Authors
Recent
Search
2000 character limit reached

Kan-Do-Calculus (KDC): A Concise Overview

Updated 4 July 2026
  • Kan-Do-Calculus is a diverse family of formalisms that unifies causal intervention, identifiability, and transportability across different mathematical frameworks.
  • It employs universal constructions like Kan extensions and adjunctions to reinterpret do-calculus rules within categorical, Bayesian, and geometric settings.
  • KDC enables the translation of interventional queries into estimable observational expressions, facilitating meta-synthesis and error minimization in causal models.

Kan-Do-Calculus (KDC) is not a standardized term in the arXiv literature. In the causal-inference lineage associated with Pearl’s survey of do-calculus, the expression does not appear as a formal name; later works use or interpret it as a label for several related calculi centered on intervention, Kan extension, localization, and universal constructions. In one usage, KDC denotes the modern deployment of do-calculus in nonparametric structural causal models (SCMs), including identifiability, mediation, transportability, and meta-synthesis. In other usages, it denotes categorical semantics for intervention and conditioning, Bayesian reformulations of causal estimation, a Kan-extension view of learning, geometric algorithms for causal discovery under latent confounding, and even homotopical localization calculi (Pearl, 2012, Yin et al., 2022, Mahadevan, 17 Jun 2026, Riehl et al., 2015).

1. Terminological scope and major usages

The literature attaches the KDC label to several mathematically distinct programs. Some are directly causal; others are categorical or homotopical and use “Kan” and “calculus” in a different sense. The common thread is a calculus of universal transformations: rewriting causal queries, computing Kan extensions, or representing localized morphisms by short normal forms.

Source Sense of KDC Core formal objects
(Pearl, 2012) Umbrella for modern do-calculus SCMs, DAGs, interventions, identifiability
(Yin et al., 2022) Categorical do-calculus Free Markov categories, causal effects, t-separation
(Mahadevan, 17 Jun 2026) Kan/do bi-adjunction and geometric discovery Kan extensions, RN derivatives, Lie brackets, BRIDGE, SKFM
(Riehl et al., 2015) Calculus of modules for Kan extensions \infty-cosmos, modules, virtual equipment, exact squares
(Lattimore et al., 2019) Bayesian replacement of do-calculus Twin-network PGMs, mechanism invariance, posterior predictive
(Pugh et al., 19 Feb 2025) Learning as Kan extension Left Kan extensions, adjunctions, error minimization
(Thomas, 2010) Informal Kan–Dwyer or 3-arrow calculus Localization, denominators, double fractions
(Gu et al., 2024) Kan/Goodwillie comparison in retractive spaces Bousfield–Kan completions, Taylor towers

This multiplicity matters because the same acronym can refer either to Pearlian intervention logic or to category-theoretic and homotopical calculi with different primitives. A plausible implication is that KDC functions less as a single formalism than as a family-resemblance label spanning several research communities.

2. Structural-causal foundations and the three rules

In the classical causal setting, the core object is a nonparametric SCM. An SCM MM consists of exogenous variables UU with distribution P(u)P(u), endogenous variables V={V1,,Vn}V=\{V_1,\dots,V_n\}, structural functions Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i), and a causal diagram GG encoding parent-child relations. An intervention X:=xX:=x replaces the structural functions for nodes in XX with constants and yields the intervened model MxM_x, with post-intervention distribution

MM0

Graphically, interventions are represented by mutilations such as MM1 for incoming-edge deletion and MM2 for outgoing-edge deletion; d-separation in these mutilated graphs is the formal mechanism by which do-calculus relates interventional and observational quantities (Pearl, 2012).

The three rules of do-calculus are rewrite rules for expressions containing MM3. For disjoint node sets MM4 in a causal DAG MM5, they are:

  1. Insertion/deletion of observations

MM6

if MM7 in MM8.

  1. Action/observation exchange

MM9

if UU0 in UU1.

  1. Insertion/deletion of actions

UU2

if UU3 in UU4, where UU5 is the subset of UU6 that are not ancestors of any node in UU7 in UU8 (Pearl, 2012).

These rules formalize when conditioning can be inserted or removed, when intervention can be exchanged for observation, and when an intervention can be dropped altogether. Their importance lies not only in symbolic manipulation but in identifiability: a causal query is identifiable when it depends only on the observational distribution and can therefore be expressed in observed quantities.

3. Completeness, identifiability, and canonical adjustment formulas

A central result of the modern theory is that do-calculus is complete for nonparametric identification of causal effects. Huang and Valtorta and Shpitser and Pearl showed that whenever a causal effect is identifiable from observational data under a causal diagram, there exists a derivation using the three rules that removes all UU9 operators; conversely, if repeated application cannot eliminate all P(u)P(u)0 symbols, the effect is not identifiable. Parallel work by Tian and Pearl, and later Tian and Shpitser, provided graphical criteria and polynomial-time algorithms for deciding identifiability and synthesizing estimands, which Pearl described as having “closed the chapter” of nonparametric identification in DAGs (Pearl, 2012).

Two canonical identification formulas illustrate the calculus. If P(u)P(u)1 satisfies the back-door criterion relative to P(u)P(u)2, then

P(u)P(u)3

If P(u)P(u)4 satisfies the front-door criterion relative to P(u)P(u)5, then

P(u)P(u)6

Both formulas are derivable from Rules 1–3, but their significance is broader: they exemplify how do-calculus moves from a causal query to an estimand expressible in observational terms (Pearl, 2012).

The same completeness results sharply delimit non-identifiability. Typical failure modes include unobserved confounding between P(u)P(u)7 and P(u)P(u)8 with no admissible back-door set and no front-door mediator meeting the front-door conditions, or mediation settings in which the required P(u)P(u)9-specific effects are not identifiable. In these cases, graphical criteria and associated algorithms detect failure and block unjustified estimation attempts (Pearl, 2012).

4. Mediation, transportability, and meta-synthesis

Pearl’s 2012 survey emphasized that do-calculus extends beyond plain effect identification into mediation analysis, transportability, and meta-synthesis (Pearl, 2012). In mediation, the controlled direct effect is

V={V1,,Vn}V=\{V_1,\dots,V_n\}0

For natural direct and indirect effects,

V={V1,,Vn}V=\{V_1,\dots,V_n\}1

and under Assumption Set A these admit the identification formulas

V={V1,,Vn}V=\{V_1,\dots,V_n\}2

V={V1,,Vn}V=\{V_1,\dots,V_n\}3

Assumption Set A requires a measured covariate set V={V1,,Vn}V=\{V_1,\dots,V_n\}4 such that no member of V={V1,,Vn}V=\{V_1,\dots,V_n\}5 is a descendant of V={V1,,Vn}V=\{V_1,\dots,V_n\}6, V={V1,,Vn}V=\{V_1,\dots,V_n\}7 blocks all back-door paths from V={V1,,Vn}V=\{V_1,\dots,V_n\}8 to V={V1,,Vn}V=\{V_1,\dots,V_n\}9 ignoring the one through Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)0, the Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)1-specific effect of Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)2 on Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)3 is identifiable using do-calculus, and the Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)4-specific joint effect of Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)5 on Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)6 is identifiable using do-calculus. Pearl contrasts this with stronger “sequential ignorability” assumptions requiring a single covariate set to deconfound both Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)7 and Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)8 (Pearl, 2012).

Transportability generalizes identification across domains. Pearl and Bareinboim introduced selection diagrams, which augment a shared DAG with selection variables Vi=fi(PAi,Ui)V_i=f_i(PA_i,U_i)9 wherever mechanisms differ across domains. A target relation such as GG0 is transportable if it is uniquely computable from source observational and interventional distributions together with target observational data. Pearl’s survey states a do-calculus criterion: transportability holds if GG1 is reducible to an expression in which selection variables appear only as conditioning variables in do-free terms (Pearl, 2012). Representative formulas include

GG2

when only the marginal of GG3 differs across domains, and

GG4

when GG5 lies on the GG6 path and differs structurally given GG7 (Pearl, 2012).

Meta-synthesis, a term coined in the same survey, is the principled fusion of heterogeneous observational and experimental results to estimate a target causal relation in a target environment. A target relation is meta-identifiable when it can be decomposed into subrelations transportable from individual studies, after which do-calculus-guided transport formulas synthesize an unbiased estimator. The workflow is explicitly graphical: encode each study by a selection diagram, decompose the target estimand into transportable pieces, and use do-calculus to separate selection variables from interventions (Pearl, 2012). This generalizes ordinary meta-analysis from effect aggregation to structure-sensitive causal synthesis.

5. Category-theoretic formulations

Several later works place KDC in explicitly categorical settings. One line, developed in free Markov categories, associates to a DAG GG8 a causal syntax category GG9 generated by comonoid maps and local mechanisms X:=xX:=x0. In this setting an intervention X:=xX:=x1 is a syntactic rewrite that removes the incoming mechanism for X:=xX:=x2 and substitutes a chosen state X:=xX:=x3. The paper gives syntactic analogues of conditional independence, decomposition, and irrelevance via t-separation, with rules such as

X:=xX:=x4

under t-separation. In causal Bayesian networks with positivity and acyclicity, these specialized categorical rules are as strong as Pearl’s full do-calculus (Yin et al., 2022).

A second line formulates the observation–intervention boundary as a bi-adjunction

X:=xX:=x5

Here X:=xX:=x6 embeds observational contexts into interventional states, X:=xX:=x7 models universal pushforward into intervention, and X:=xX:=x8 models universal pullback or conditioning. In the probabilistic semantics described for a Markov category, the Radon–Nikodym calibration identity

X:=xX:=x9

connects observational and interventional laws, and do-rules are interpreted as instances of push–pull compatibility, projection-formula behavior, and Frobenius reciprocity for Kan extensions (Mahadevan, 17 Jun 2026). This does not replace Pearl’s graphical rules; it reinterprets them as universal constructions.

A third categorical lineage appears in the calculus of modules for an XX0-cosmos. There, modules XX1 form a virtual equipment XX2 with cartesian restriction cells and cocartesian unit cells. Pointwise Kan extensions are defined as right extensions in this virtual equipment and are equivalent to 2-categorical Kan extensions stable under pasting with exact squares, especially comma squares. In cartesian closed XX3-cosmoi, limits and colimits arise as pointwise Kan extensions along XX4 (Riehl et al., 2015). Although this paper does not use the term KDC, later descriptions apply the label to precisely this calculus of modules, companions, conjoints, exact squares, and Beck–Chevalley base change.

6. Bayesian and learning-theoretic reformulations

A different KDC usage argues that causal estimation can be carried out entirely within the standard Bayesian paradigm, provided causal invariance assumptions are encoded explicitly. The key construction is a twin-network probabilistic graphical model containing both the observed world and the post-intervention world, with shared parameters for all non-intervened mechanisms. The joint factorization is

XX5

and the interventional query is computed by the posterior predictive

XX6

Under the modularity assumption that only the intervened mechanism changes, this reproduces Pearl’s truncated product, and standard Bayesian probability manipulations recover back-door and front-door formulas without invoking symbolic do-calculus rules (Lattimore et al., 2019). The same framework also clarifies non-identifiability: when observational data identify only a mixture such as XX7 but not the post-intervention quantity XX8, the posterior remains prior-sensitive even in the large-sample limit (Lattimore et al., 2019).

An even broader generalization appears in the claim that every error minimization algorithm can be presented as a left Kan extension. In the 2-categorical formulation of learning, a left Kan extension along XX9 is a global error minimizer, and Theorem 5.1 states that any set-theoretic error minimization problem can be represented in such a way. Adjunctions yield global minimizers independently of the choice of error functional, while left Kan extensions provide pointwise minimizers when they exist. The enriched formulas

MxM_x0

make explicit how learning is recast as weighted aggregation or weighted constraint satisfaction (Pugh et al., 19 Feb 2025). In this usage, KDC is no longer confined to causal identification; it becomes a general calculus for optimization, regularization, and representation of learning algorithms.

7. Geometric discovery, localization, and homotopical extensions

The most recent causal-discovery usage takes KDC into smooth statistical geometry. When interventional and observational measures are mutually absolutely continuous on a smooth statistical manifold, Radon–Nikodym derivatives induce local intervention vector fields MxM_x1, and their Lie brackets

MxM_x2

measure non-commutativity of infinitesimal interventions. Frobenius residuals such as

MxM_x3

or the experimental bracket norm

MxM_x4

detect failures of visible integrability and are interpreted as witnesses of latent or unmodeled structure. Two algorithms implement this program: BRIDGE uses RN-ratio estimation, geometric screening, latent-obstruction detection, and downstream score-based search; SKFM learns amortized intervention fields and factors latent curvature spectrally (Mahadevan, 17 Jun 2026). The reported experiments include an endpoint-confounded 7-node chain in which BRIDGE retains 21 of 42 arrows, reducing the acyclic candidate family to 107,121 graphs, an exact compression of 10,630.8×, and a 9-gene S9 setting in which 72 arrows are compressed to 18, reducing an approximately MxM_x5 labeled-DAG family to 119,216 acyclic candidates (Mahadevan, 17 Jun 2026).

Outside causal inference proper, one informal use of KDC refers to a Kan–Dwyer-style localization calculus. In a uni-fractionable category, every morphism in the localization is represented by a 3-arrow diagram

MxM_x6

with MxM_x7 denominators, and equality is characterized by embeddability into a commutative MxM_x8 diagram. The resulting fraction category MxM_x9 has the universal property of localization, applies to model categories and derived categories, and does not require functorial factorizations (Thomas, 2010). Here KDC denotes a practical short-zigzag calculus rather than intervention.

A further homotopical usage appears in the interaction between Bousfield–Kan completions and Goodwillie calculus in retractive spaces. For a 0-connected base MM00 and the endofunctors MM01, the Bousfield–Kan completion is

MM02

If MM03 is 1-connected relative to MM04, then the coaugmentation MM05 is a weak equivalence for all MM06; if MM07 is only 0-connected relative to MM08, then

MM09

for all MM10 (Gu et al., 2024). In this setting, “Kan” refers to Bousfield–Kan completion and “Do” to Goodwillie’s functor calculus, producing yet another mathematically precise but discipline-specific meaning of KDC.

Across these strands, KDC names a collection of calculi rather than a single universally accepted formalism. In the Pearlian sense it is the graph-based logic of intervention, identifiability, and transport across environments; in categorical versions it becomes a semantics of intervention and conditioning by Kan-like universal properties; in Bayesian and learning-theoretic versions it becomes a calculus of posterior prediction and minimization; and in geometric and homotopical versions it denotes algorithmic or localization frameworks that preserve the themes of universal rewriting, compositionality, and structural constraints (Pearl, 2012, Yin et al., 2022, Mahadevan, 17 Jun 2026, Lattimore et al., 2019, Pugh et al., 19 Feb 2025, Thomas, 2010, Gu et al., 2024).

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 Kan-Do-Calculus (KDC).