Inferensys

Glossary

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.
Data scientist building training data pipeline on laptop, data preprocessing visible, technical workspace.
NEURAL-SYMBOLIC REPRESENTATION

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.

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.

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.

TENSOR ARCHITECTURE

Core Properties of Deontic Logic Tensors

The fundamental structural and functional characteristics that define how deontic logic tensors encode normative reasoning in vector space.

01

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.

02

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.

03

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.

04

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.

05

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.

06

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.
DEONTIC LOGIC TENSOR FAQ

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.

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.