Skip to main content

counterfactual_absent

Function counterfactual_absent 

Source
pub fn counterfactual_absent(
    edges: &[NQuin],
    roots: &[u64],
    intervene: u64,
    effect: u64,
) -> (bool, bool)
Expand description

Counterfactual “had intervene been absent, would effect still have occurred?” — the twin-network comparison of the factual world against the counterfactual do(intervene absent) world. Returns (factual, counterfactual); if they differ, intervene was counterfactually necessary for effect.