Inferensys

Glossary

Deontic Constraint Satisfaction Problem (CSP)

A formalization of normative reasoning as a set of variables and deontic constraints, solved by finding assignments that satisfy all applicable obligations and prohibitions without conflict.
Stylish WeWork-like workspace with hot desks and document wall, professional searching through enterprise knowledge base on a mounted ultrawide display, warm industrial pendants overhead.
NORMATIVE REASONING FORMALISM

What is Deontic Constraint Satisfaction Problem (CSP)?

A formalization of normative reasoning as a set of variables and deontic constraints, solved by finding assignments that satisfy all applicable obligations and prohibitions without conflict.

A Deontic Constraint Satisfaction Problem (CSP) is a computational framework that models normative reasoning as the search for variable assignments that simultaneously satisfy a set of deontic constraints—specifically obligations, permissions, and prohibitions. It translates legal or ethical rules into formal constraints over a finite domain, where a solution represents a compliant state of affairs free from normative conflict.

Unlike classical CSPs that seek any consistent assignment, a deontic CSP must resolve contrary-to-duty (CTD) obligations and prioritize constraints according to a normative hierarchy (e.g., lex superior). The solver identifies whether a compliant configuration exists and, if multiple solutions are possible, selects the optimal assignment that minimizes violation costs according to encoded preference rules.

ARCHITECTURAL PRIMITIVES

Core Components of a Deontic CSP

A Deontic Constraint Satisfaction Problem formalizes normative reasoning as a search for variable assignments that satisfy all applicable obligations, permissions, and prohibitions without conflict. The following components constitute its architectural backbone.

01

Deontic Variables

The atomic units of the problem representing normative propositions or action states that must be assigned a truth value or compliance status. In a legal domain, a variable might represent complies_with_gdpr_art_17 (right to erasure) or data_retention_period_exceeded. Each variable has a finite domain of possible deontic statuses—typically {obligatory, permitted, prohibited, violated, fulfilled}—rather than simple Boolean values. The selection and granularity of these variables directly determines the expressiveness of the normative model and the computational complexity of the solving process.

02

Deontic Constraints

Formal relations that restrict permissible combinations of variable assignments, encoding the normative force of legal rules. Constraints fall into three primary categories:

  • Obligation constraints: If condition A holds, then action B must be assigned fulfilled
  • Prohibition constraints: If condition C holds, then action D must not be assigned performed
  • Permission constraints: Explicitly carve out exceptions where a generally prohibited action is allowed Constraints are typically expressed as deontic conditionals using operators from Standard Deontic Logic or Input/Output Logic, and may include defeasibility markers indicating which constraints can be overridden by higher-priority norms.
03

Normative Hierarchy Resolver

The conflict resolution engine that applies meta-constraints to determine precedence when two applicable norms demand incompatible assignments. It implements the classical legal principles:

  • Lex superior: Higher authority norms override lower ones (constitution > statute > regulation)
  • Lex specialis: More specific rules override general ones
  • Lex posterior: Later-enacted norms override earlier ones In a Deontic CSP, the resolver dynamically weights constraints or partitions the constraint graph into ordered layers, ensuring the solver explores compliant assignments in the correct priority sequence before considering defeasible norms.
04

Contrary-to-Duty (CTD) Handler

A specialized sub-component that manages secondary obligations triggered when a primary duty is violated. CTD structures address Chisholm's Paradox—the classical failure of Standard Deontic Logic to consistently represent remedial norms. The handler maintains a violation state register that tracks which primary obligations have been breached and activates the corresponding compensatory constraint set. For example, if a contract requires delivery by March 1 (primary obligation) and the deadline is missed, the CTD handler activates the penalty clause constraint (secondary obligation to pay liquidated damages). This ensures the CSP remains logically consistent even when modeling non-ideal compliance scenarios.

05

Solution Space Validator

The verification module that checks whether a candidate assignment constitutes a valid deontic model—a complete, consistent mapping of all variables that satisfies every non-defeated constraint. The validator performs three critical checks:

  • Consistency: No variable is simultaneously assigned obligatory and prohibited
  • Completeness: Every triggered obligation has a corresponding fulfillment or violation status
  • Closure: All CTD chains are fully resolved with no dangling remedial obligations If the solution space is empty—meaning no assignment satisfies all constraints—the validator identifies the minimal unsatisfiable core, pinpointing the specific conflicting norms that require human legal review or legislative reconciliation.
06

Deontic Propagation Engine

The inference mechanism that derives implicit normative consequences from explicitly encoded constraints before the solver begins its search. Using techniques adapted from arc consistency algorithms (such as AC-3) and forward chaining, the engine propagates the effects of known assignments through the constraint graph. For instance, if a statute prohibits data processing without consent, and the variable user_consent_obtained is assigned false, the engine propagates prohibited to all processing action variables. This prunes the search space dramatically, reducing the computational complexity of solving large-scale regulatory compliance problems with thousands of interdependent norms.

DECODING DEONTIC CSPs

Frequently Asked Questions

Clear, technical answers to the most common questions about formalizing normative reasoning as constraint satisfaction problems.

A Deontic Constraint Satisfaction Problem (CSP) is a formal computational framework that models normative reasoning—obligations, permissions, and prohibitions—as a set of variables, domains, and constraints that must be simultaneously satisfied. It works by translating a legal or regulatory scenario into a structured problem where each variable represents a normative proposition (e.g., action_permitted, deadline_met), each domain defines the possible deontic states (e.g., {obligatory, permitted, prohibited}), and each constraint encodes a logical rule such as OBLIGATORY(φ) → PERMITTED(φ). A solver then searches for an assignment of values to all variables that satisfies every constraint without conflict. This approach is particularly powerful for detecting normative conflicts—situations where no consistent assignment exists—and for computing the set of compliant actions in complex regulatory environments where multiple, potentially contradictory rules apply simultaneously.

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.