Skip to main content

Counterfactual Cause Ontology

Causality Concepts
Authors: MArk Anthony Higgins - Sky Recursive Ai
© Mark Anthony Higgins 11 October 2025
Revised Date: 03 December 2026
Audio Overview
KIRETH RESEARCH — AI SEMANTIC LIBRARY
COUNTERFACTUAL CAUSE ONTOLOGY — STANDARD FLOW ALGEBRA
Version: 1.0 | Encoding: UTF-8 | Date: 2026-12-03
Authors: Mark Anthony Higgins — Sky Recursive AI
Licence: Open Research Licence (project attribution; exact terms unverified)
Source: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/causality-concepts/counterfactual-cause-ontology.html
Integration: AI Core / Entity Graph / Abstract Concepts / Causality Concepts
Status: Proposed formalisation; not a verified transcription.

1. CANONICAL DEFINITION
A counterfactual cause is a candidate causal factor evaluated by comparing an actual outcome with the outcome under a specified alternative intervention in the same causal context. A but-for cause of an actual binary outcome Y=1 is an actual factor X=x for which Y under an admissible alternative X=x' would equal 0. This criterion is model-relative and does not exhaust actual causation: redundant sufficient causes, pre-emption and omissions require explicit additional criteria. A hypothetical outcome is not an observation. A population average effect is not proof of individual actual causation.

2. ENTITY MODEL
CounterfactualCause := (id, X, x, x', Y, y, context, modelVersion, intervention, evidence, criterion, status, provenance)
Context := (unit, boundary, time, exogenousState, admissibleAlternatives)
Model := (endogenousVariables, exogenousVariables, structuralFunctions, exogenousDistribution, temporalScope)
Contrast := (actualOutcome, alternativeOutcome, difference, units, uncertainty)
Status ∈ {established_under_model, rejected_under_model, unknown, disputed, not_applicable}
The actual assignment and alternative assignment must share a variable domain. Record whether the actual outcome is observed or reconstructed. Store identification status separately from numerical estimation and actual-cause classification.

3. CLASSIFICATION
But-for cause: removing or changing the factor changes the specified actual outcome.
Joint counterfactual cause: a specified set of factors changes the outcome under a joint intervention; minimality requires testing proper subsets under the same criterion.
Preventive cause: the actual factor prevents an outcome that would occur under its alternative.
Omission cause: an absent action is contrasted with a feasible specified action; absence alone is insufficient evidence.
Contingent cause: dependence emerges under an explicitly justified contingency; the chosen actual-causation criterion must be named.
Probabilistic counterfactual: uncertainty over alternative outcomes is represented by a distribution, not a categorical assertion.
Path-specific counterfactual: selected mechanisms transmit the contrast; identification and cross-world assumptions must be recorded.

4. LOCAL FLOW ALGEBRA NOTATION
X →[F] Y denotes a typed transformation. g ∘ f applies f then g. These are proposed local operators, not a verified executable grammar.
F_scope : Query × Context → ScopedQuery
F_abduce : Model × Evidence → ContextDistribution
F_intervene : Model × Intervention → ModifiedModel
F_predict : ModifiedModel × ContextDistribution → OutcomeDistribution
F_contrast : ActualOutcome × OutcomeDistribution → Contrast
F_identify : Model × DataDesign × Estimand → IdentificationRecord
F_classify : Contrast × Criterion × IdentificationRecord → CauseAssessment
F_validate : CauseAssessment × Evidence × Constraints → ValidationRecord
F_commit : Graph × ValidatedAssessment → VersionedGraph
F_revise : VersionedGraph × EvidenceDelta → CandidateGraph
Undefined or inadmissible inputs produce an explicit diagnostic rather than a fabricated outcome.

5. COMPOSITE FLOWS
Abduction → Action → Prediction is the core counterfactual sequence.
Given evidence e, model M and alternative a:
q = F_abduce(M,e)
M_a = F_intervene(M,a)
Y_a = F_predict(M_a,q)
D = F_contrast(Y_actual,Y_a)
A = F_classify(D,criterion,identificationRecord)
Validate A before committing to the knowledge graph.
Parallel alternatives share the same posterior context distribution unless the query explicitly changes the unit or context. Preserve alternative identifiers and model versions when merging results. Never average incompatible estimands. Sequential interventions require explicit temporal order and policy semantics; they are not generally commutative.

6. MATHEMATICAL SEMANTICS
For an acyclic structural causal model M, V_i = f_i(Pa_i,U_i). A hard intervention do(X=x') replaces the structural equation for X by X=x', retaining other equations and the same exogenous context u.
Y_x'(u) denotes the resulting outcome. For actual X=x and Y_x(u)=1, the binary but-for test is Y_x'(u)=0.
For numerical outcomes, Δ(u)=Y_x(u)-Y_x'(u), with units and sign convention recorded. A nonzero contrast is not automatically a sufficient criterion for actual causation in every domain.
Under evidence e, P(Y_x'=y' | e) = integral 1[Y_x'(u)=y'] dP(u|e), assuming a well-defined model and posterior.
Probability of necessity for binary treatment and outcome: PN=P(Y_0=0 | X=1,Y=1). This quantity is not generally identified from observational data alone. Under random assignment, consistency, positivity and monotonicity Y_1≥Y_0, PN=(p1-p0)/p1 for p1>0, where p1=P(Y=1|do(X=1)) and p0=P(Y=1|do(X=0)).
Example: p1=0.8, p0=0.2 gives PN=0.75 under those assumptions, not a certain individual verdict.
Average treatment effect ATE=E[Y_1-Y_0] is a population estimand. Even ATE=0 can conceal opposing individual effects.
Consistency: if X=x, observed Y equals Y_x under the specified treatment version and interference assumptions.
For cyclic models, specify dynamics or equilibrium selection; absent a unique or explicitly selected solution, return ambiguity rather than an arbitrary prediction.

7. STRUCTURAL INVARIANTS
I01: Actual and alternative worlds have explicit identifiers.
I02: Counterfactual comparisons preserve the same unit and exogenous context.
I03: Interventions specify target, value, timing and admissibility.
I04: Observations are distinguished from interventions and predictions.
I05: Every assessment references a model version and criterion.
I06: Unknown identification is not converted into zero effect.
I07: Causal direction is not inferred from correlation alone.
I08: Joint cause minimality is checked only against the declared criterion.
I09: Alternative pathways and redundant causes remain representable.
I10: Probability values lie in [0,1]; numerical contrasts preserve units.
I11: Conflicting evidence and model assumptions remain traceable.
I12: Recursive updates preserve history and cannot promote hypotheses without validation.

8. RECURSIVE VALIDATION
At iteration k, receive evidence delta E_k and construct candidate model M_k+1. Re-evaluate admissibility, factual consistency, identification, alternative outcomes and criterion satisfaction. Compare against the previous assessment; retain changed assumptions and reasons. Commit only after policy checks; otherwise preserve the prior version and attach a disputed or unknown assessment. Stop when evidence is exhausted, a declared iteration budget is reached, or model and assessment stabilise under a specified tolerance. Detect repeated model states and flag oscillation. Convergence does not establish causal truth. Never execute real-world interventions solely because a simulated contrast suggests benefit.

9. EVIDENCE AND PROVENANCE
Record evidence identifiers, source, collection time, unit, measurement method, intervention design, missingness, selection mechanism and model assumptions. Distinguish experimental evidence, observational evidence, mechanistic evidence and expert hypotheses. Report sampling uncertainty separately from structural uncertainty and identification bounds. Confidence scores are not probabilities unless calibrated. Where competing models agree on observations but disagree on counterfactuals, preserve the disagreement and identify what evidence could discriminate between them. Do not treat generated scenarios as empirical evidence.

10. WORKED EXAMPLES
Engineering: Y=A AND B denotes a motor operating only when power A and enable signal B are present. Actual A=B=1 gives Y=1. Under do(A=0), Y=0; A satisfies the but-for criterion in this simplified model. B also satisfies it.
Redundancy: Y=A OR B with A=B=1. Removing A alone leaves Y=1; removing both gives Y=0. Neither alone passes the simple but-for test, while the joint contrast does. This does not settle other actual-causation criteria.
Computing: Y denotes a service outage, X a failed component, R a functioning failover. Y=X AND NOT R. Actual X=1,R=0 yields Y=1. Repairing X in the model prevents the outage; enabling R also prevents it. These predictions depend on the assumed mechanism.
Prevention: Y=H AND NOT P, where H is a hazard and P a protective condition. Actual H=P=1 yields Y=0. Under do(P=0), Y=1. P is a preventive but-for factor under this model.
Confounding: U causes both X and Y, with no X→Y mechanism. Association between X and Y does not imply a counterfactual contrast under do(X=x').

11. CROSS-ONTOLOGY INTEGRATION
Causality Ontology: supplies general causal semantics.
Cause and Effect Ontologies: identify candidate factors and target outcomes.
Causal Relationship, Chain and Network Ontologies: represent directed mechanisms and alternative paths.
Direct and Indirect Cause Ontologies: distinguish unmediated and mediated effects relative to model granularity.
Root and Contributing Cause Ontologies: support underlying and multifactorial explanations without equating them with but-for dependence.
Necessary and Sufficient Cause Ontologies: distinguish context-specific necessity from universal or joint sufficiency.
Causal Condition and Dependency Ontologies: represent enabling constraints and structural dependencies.
Causal Intervention Ontology: supplies intervention semantics.
Causal Inference Concept Ontology: supplies identification, estimation and evidence assessment.
Entity Provenance, Confidence and Validation Ontologies: support versioned, auditable assessments.

12. PROPOSED ACCEPTANCE TESTS (NOT EXECUTED)
T01: AND model, both inputs true, remove one → but-for dependence.
T02: OR model, both inputs true, remove one → no simple but-for dependence.
T03: OR model, remove both → joint dependence.
T04: Preventive model → classify preventive contrast with correct sign.
T05: Alternative outside variable domain → reject intervention.
T06: Missing factual evidence → unknown factual status.
T07: Confounded association with no identified causal model → unknown causal assessment.
T08: Competing observationally equivalent models with different predictions → preserve dispute.
T09: PN with p1=0.8,p0=0.2 and stated assumptions → 0.75.
T10: PN formula with p1=0 → undefined, not zero.
T11: Cyclic model with multiple equilibria and no selection rule → ambiguous prediction.
T12: New evidence invalidates mechanism → versioned revision, preserving prior assessment and provenance.

13. CITATION AND LICENCE
Suggested citation: Higgins, Mark Anthony; Sky Recursive AI (2026). Counterfactual Cause Ontology — Standard Flow Algebra, version 1.0. Kireth Research, AI Semantic Library.
Canonical reference URL: https://kirethresearch.org/booksai-core/entity-graph/abstract-concepts/causality-concepts/counterfactual-cause-ontology.html
Open Research Licence attribution follows project convention; consult the publisher for authoritative terms. This is an original proposed formalisation, not a verified transcription. The live page, exact licence terms and compatibility with the published Flow Algebra grammar have not been independently verified. Acceptance tests are proposed, not executed.
END OF SPECIFICATION
Kireth Research
38 Thorndale Croft, Wetwang, Driffield
East Riding of Yorkshire YO25 9XZ