A Deontic Logic Tensor is a multi-dimensional array that encodes the truth values of deontic modalities—obligation, permission, and prohibition—as continuous vectors within a high-dimensional space, enabling neural networks to perform differentiable reasoning over normative rules. It maps legal statements into a geometric structure where semantic relationships between norms, such as conflict or entailment, are represented as spatial distances and transformations.
Glossary
Deontic Logic Tensor

What is Deontic Logic Tensor?
A multi-dimensional data structure used in neural-symbolic AI to represent the truth values and interactions of obligations, permissions, and prohibitions within a vector space for deep learning models.
By embedding deontic operators into a tensor framework, a model can learn to detect normative conflicts and resolve them through vector arithmetic, such as subtracting a prohibition vector from an obligation vector to identify a contradiction. This structure bridges formal deontic logic with deep learning, allowing gradient-based optimization to refine a system's understanding of legal rule hierarchies and exceptions directly from textual corpora.
Core Properties of Deontic Logic Tensors
The fundamental structural and functional characteristics that define how deontic logic tensors encode normative reasoning in vector space.
Multi-Dimensional Modality Encoding
Deontic logic tensors encode the three classical modalities—obligation, permission, and prohibition—as distinct, potentially orthogonal dimensions within the tensor structure. Each modality occupies its own axis or slice, allowing a single tensor to simultaneously represent the truth value of all three deontic statuses for a given proposition. This architecture enables vector operations that compute normative collisions directly, such as detecting when an obligation vector and a prohibition vector are both active for the same action, forming the basis for deontic conflict detection.
Rank-3 Tensor Structure for Normative Relations
The standard representation uses a rank-3 tensor with dimensions corresponding to:
- Subject (Agent): The legal person or entity bearing the obligation
- Action: The conduct being regulated
- Modality: The deontic status (obligation, permission, prohibition)
Each cell contains a truth value, often a continuous score between 0 and 1, representing the degree of normative force. This structure naturally supports normative entailment checks by performing tensor contractions that propagate obligations through chains of related actions and agents.
Continuous Truth Values for Defeasibility
Unlike classical deontic logic's binary true/false assignments, deontic logic tensors employ continuous truth values in the range [0,1]. This enables the modeling of defeasible reasoning where obligations have graded strength. A general rule may carry a normative force of 0.6, while a specific exception (lex specialis) carries a force of 0.95. During conflict resolution, the higher-weighted norm naturally dominates in vector operations, implementing rule preference ordering without explicit procedural code.
Temporal Indexing via Fourth Dimension
To model temporal reasoning in contracts and lex posterior principles, deontic logic tensors can be extended to a rank-4 tensor by adding a time dimension. This axis encodes the effective date, repeal date, or temporal scope of each norm. Tensor slicing along the time axis retrieves the normative landscape at any given point, enabling the system to algorithmically apply the lex posterior derogat priori rule by comparing the temporal indices of conflicting norms and selecting the later-enacted provision.
Hierarchical Embedding via Authority Dimension
A fifth dimension can encode normative hierarchy, representing the authority level of the issuing body (constitutional, statutory, regulatory, contractual). This enables the tensor to inherently model lex superior derogat inferiori by assigning higher-magnitude embedding vectors to superior norms. When a normative collision matrix is computed, the authority embeddings interact to automatically resolve conflicts in favor of higher-ranking sources, forming a normative hierarchy graph directly within the tensor's geometric structure.
Tensor Contraction for Conflict Resolution
The core computational operation for normative conflict resolution is tensor contraction along the modality dimension. When two norms with opposing deontic statuses (e.g., obligation vs. prohibition) apply to the same action-agent pair, their tensor product is contracted using a predefined normative collision matrix. This matrix defines the resolution outcome for each modality pair:
- Obligation ⊗ Prohibition → Prohibition (safety override)
- Permission ⊗ Prohibition → Prohibition (restrictive default)
- Obligation ⊗ Permission → Obligation (permissive strengthening) The result is a single, conflict-free deontic status.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Core questions about the multi-dimensional data structure used to represent obligations, permissions, and prohibitions within neural-symbolic AI systems.
A Deontic Logic Tensor is a multi-dimensional data structure that encodes the truth values and semantic interactions of normative modalities—obligation, permission, and prohibition—into a continuous vector space suitable for deep learning. It works by assigning each legal rule or normative proposition a tensor representation that captures not only its deontic force (e.g., mandatory, forbidden) but also its relationships to other norms, such as precedence, exception, and temporal scope. These tensors are processed through neural-symbolic architectures where logical constraints are embedded as differentiable loss functions, enabling gradient-based optimization while preserving formal deontic consistency. The tensor's dimensions typically encode:
- Deontic modality strength: A scalar or vector representing the binding force.
- Normative scope: The set of agents, actions, and contexts to which the norm applies.
- Conflict relations: Pairwise interaction weights with other norms in the rule base.
- Temporal validity: Time-bound activation windows for obligations and permissions.
This representation allows a model to perform normative entailment checks and conflict detection directly within the latent space, bypassing brittle symbolic rule engines.
Related Terms
Master the core principles and computational methods that govern how contradictory legal rules are detected, classified, and algorithmically resolved in neural-symbolic AI systems.
Lex Specialis Derogat Legi Generali
The foundational legal maxim that a specific rule overrides a general rule. In a Deontic Logic Tensor, this is encoded as a specificity weighting in the vector space. When two norms collide, the system computes a specificity score based on the number of applicability conditions—the rule with more precise factual predicates receives higher activation priority. This principle is the algorithmic backbone of normative exception handling.
Defeasible Reasoning
A mode of inference where conclusions are tentative and retractable. Unlike classical logic, defeasible reasoning allows a Deontic Logic Tensor to model prima facie obligations—duties that hold until a superior norm or exception defeats them. This is implemented via non-monotonic logic, where adding new premises (e.g., a contrary-to-duty obligation) can invalidate previously valid conclusions without causing system-wide contradiction.
Normative Hierarchy Graph
A directed acyclic graph (DAG) that encodes precedence relationships between legal rules. Each node represents a norm, and edges define superiority based on three axes:
- Lex Superior: Authority level (constitution > statute > regulation)
- Lex Specialis: Specificity of the rule's scope
- Lex Posterior: Temporal enactment order
The Deontic Logic Tensor traverses this graph during conflict resolution to determine which norm's deontic vector dominates.
Contrary-to-Duty Obligation
A deontic construct specifying what an agent must do after violating a primary obligation. For example: 'You ought not to breach a contract; but if you do breach, you ought to pay damages.' This creates a temporal chain of secondary norms that the Deontic Logic Tensor must model without contradiction. It is a classic stress test for any normative reasoning system, requiring the tensor to maintain coherent obligation states across time steps.
Maximal Consistent Subset (MCS)
A computational method for resolving normative conflicts by identifying the largest subset of non-contradictory rules from an inconsistent rule base. When a Deontic Logic Tensor detects an obligation-prohibition collision, the MCS algorithm selects the subset that maximizes rule retention while eliminating inconsistency. This is often guided by rule preference ordering, where higher-priority norms are preferentially retained in the conflict-free output set.
Normative Collision Matrix
A structured two-dimensional array that maps all possible pairwise interactions between deontic modalities to their predefined resolution outcomes. For example:
- Obligation vs. Prohibition: Unresolvable deadlock requiring external precedence
- Permission vs. Prohibition: Prohibition typically overrides
- Obligation vs. Permission: Obligation takes precedence
This matrix serves as a lookup table for the Deontic Logic Tensor's conflict resolution layer, enabling deterministic handling of modal collisions.

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.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us