A Normative Hierarchy Graph is a directed acyclic graph (DAG) that formally represents the precedence relationships among legal rules within a normative system. It encodes the meta-rules of conflict resolution—lex superior, lex specialis, and lex posterior—as directed edges, where an edge from Rule A to Rule B signifies that A defeats B in a collision. This structure provides the deterministic backbone for traversing a contradictory rule base and selecting the single prevailing norm.
Glossary
Normative Hierarchy Graph

What is Normative Hierarchy Graph?
A directed acyclic graph encoding the precedence relationships between legal rules to algorithmically resolve conflicts based on authority, specificity, and temporality.
By topologically sorting the graph, a reasoning engine can algorithmically resolve conflicts without exhaustive pairwise comparison. Each node represents a deontic rule with its applicability conditions, while edge weights may encode the specific conflict type—such as obligation-prohibition collisions—and the resolution rationale. The graph enables non-monotonic inference, allowing conclusions to be retracted when a higher-precedence node is activated, and serves as the foundational data structure for conflict-of-laws engines and coherent legal AI systems.
Core Properties of a Normative Hierarchy Graph
A Normative Hierarchy Graph is a directed acyclic graph (DAG) that encodes the precedence relationships between legal rules. Its structural properties determine the correctness and efficiency of algorithmic conflict resolution.
Directed Acyclic Structure
The graph must be a directed acyclic graph (DAG) to prevent circular precedence paradoxes. Each directed edge R1 → R2 asserts that Rule 1 strictly outranks Rule 2.
- No cycles allowed: A cycle (R1 > R2 > R1) represents a logical contradiction where no consistent resolution is possible
- Topological ordering: The DAG property guarantees at least one valid traversal order for conflict resolution
- Cycle detection: Algorithms like depth-first search (DFS) with back-edge detection validate graph integrity before reasoning begins
A cyclic graph indicates a drafting error or an unresolved normative antinomy that requires human intervention.
Multi-Dimensional Edge Typing
Edges in the graph are typed to encode the specific conflict resolution maxim being applied, enabling the system to justify its reasoning.
lexSuperior: Edge from a constitutional rule to a statutory rule, encoding hierarchical authoritylexSpecialis: Edge from a specific exception to a general rule, encoding specificity-based precedencelexPosterior: Edge from a later-enacted rule to an earlier one, encoding temporal precedencederogat: A generic override edge when the specific maxim is ambiguous or composite
Edge types are critical for explainability, allowing the system to output the legal basis for why one rule prevailed over another.
Transitive Closure for Reachability
The graph's transitive closure determines the full set of rules a given norm can defeat, not just its immediate neighbors. If Rule A overrides Rule B, and Rule B overrides Rule C, then Rule A transitively overrides Rule C.
- Precomputation: Transitive closure is often computed offline using the Floyd-Warshall algorithm for small graphs or via graph database queries for large corpora
- Conflict path tracing: When resolving a conflict, the system finds the shortest directed path between the two conflicting nodes
- Path existence check: If no directed path exists between conflicting rules, the graph is incomplete and requires a tie-breaking heuristic
This property ensures that deeply nested legal hierarchies are correctly traversed.
Node Weighting and Metadata
Each node carries metadata attributes that influence conflict resolution beyond simple topological precedence.
- Effective date range: Temporal bounds defining when a rule is active, enabling the graph to model historical legal states
- Jurisdictional scope: Tags limiting a rule's applicability to specific geographic or subject-matter domains
- Authority score: A quantitative weight (e.g., 1.0 for constitutional, 0.3 for administrative guidance) used when graph topology alone is insufficient
- Deontic modality: The node's normative force — obligation, prohibition, or permission — which determines the conflict type
Rich metadata transforms the graph from a simple ranking into a computationally complete normative model.
Partial Ordering and Incomparability
The graph typically represents a partial order, not a total order. Many pairs of rules may be incomparable — no directed path exists in either direction.
- Incomparability is valid: Two rules from different jurisdictional branches or subject domains may never interact
- Conflict detection scope: Incomparable rules that nonetheless produce contradictory obligations represent a genuine antinomy requiring external resolution
- Tie-breaking policies: When incomparable rules conflict, the system falls back on meta-policies like "prefer the more specific rule" or "flag for human review"
This property reflects the reality that legal systems are not perfectly hierarchical but contain independent, parallel authority structures.
Dynamic Update and Temporal Versioning
The graph is not static; it must support incremental updates as new statutes are enacted, old ones repealed, and judicial interpretations shift.
- Node insertion: Adding a new rule requires computing its edges to all existing nodes based on its authority level and specificity
- Node expiration: Rules past their effective end date are not deleted but marked as inactive, preserving the graph's ability to reason about historical legal states
- Edge reconfiguration: A landmark court decision may reweight or redirect edges, requiring efficient graph update algorithms
- Version snapshots: The full graph state at time
tis preserved for auditing and temporal reasoning queries
This property ensures the graph functions as a living model of the legal system, not a one-time artifact.
Frequently Asked Questions
Explore the foundational data structure used to algorithmically resolve conflicts between legal rules based on authority, specificity, and temporality.
A Normative Hierarchy Graph is a directed acyclic graph (DAG) that formally represents the precedence relationships between legal rules. It works by encoding three primary conflict-resolution principles as directed edges: lex superior (authority hierarchy), lex specialis (specificity), and lex posterior (temporality). When a deontic conflict detection algorithm identifies a collision between two rules, the system traverses the graph. The rule with a directed path of superiority over the conflicting rule is selected for application. This structure prevents circular reasoning and ensures a deterministic, auditable resolution pathway, making it a core component of a conflict-of-laws engine.
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.
Related Terms
Core concepts that form the algorithmic foundation for building and traversing a Normative Hierarchy Graph.
Lex Specialis Derogat Legi Generali
A conflict resolution maxim dictating that a specific rule overrides a general rule on the same subject matter. Within the graph, this is modeled as a specificity edge that takes precedence over standard hierarchical links. For example, a rule governing 'commercial drone flights at night' will override a general 'aviation regulation' when both are active. This principle is the algorithmic basis for normative exception handling, allowing the system to carve out precise exceptions without invalidating the general norm.
Lex Posterior Derogat Priori
The temporal precedence rule: a later-enacted statute takes precedence over an earlier one in irreconcilable conflict. The Normative Hierarchy Graph encodes this via temporal edges annotated with effective dates. During conflict resolution, the graph traversal algorithm compares the enactment_date metadata of conflicting nodes. This is critical for modeling dynamic legal systems where legislative updates must automatically supersede prior versions without manual rule-base reprogramming.
Defeasible Reasoning
A mode of non-monotonic inference where a legally sound conclusion can be retracted in the face of new, superior evidence or rules. The Normative Hierarchy Graph is the structural backbone that enables defeasibility. When a reasoning engine encounters a conflict, it does not crash; it traverses the graph to find a defeater—a higher-priority or more specific rule. This allows the system to model real-world legal logic where conclusions are always prima facie and subject to override by a superior norm.
Deontic Conflict Detection
The algorithmic process of identifying contradictory modalities within a normative corpus before resolution is attempted. This is the triggering event for a Normative Hierarchy Graph traversal. The system scans for direct collisions, such as:
- Obligation vs. Prohibition: Rule A mandates filing Form X; Rule B forbids it.
- Obligation vs. Permission: Rule A requires a license; Rule B explicitly waives the requirement. Once detected, the graph's edges are queried to determine which norm prevails based on authority, specificity, and temporality.
Maximal Consistent Subset (MCS)
A computational method for resolving global inconsistencies by identifying the largest subset of non-contradictory rules from an inconsistent rule base. The Normative Hierarchy Graph provides the preference ordering needed to select the correct MCS. Instead of a brute-force search, the graph's topology dictates which rules must be excluded. A rule lower in the hierarchy is pruned to preserve a conflicting superior rule, generating a conflict-free subgraph that can be used for coherent downstream reasoning.

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