Back to projects

From a provision
to a checkable rule.

Courts, lawyers and government bodies increasingly work with AI-assisted drafting. A source reference helps a reader locate the law, but it does not establish that a conclusion follows from the provision, its exceptions and the facts.

Hujja is our research project on closing that gap. It explores formalising statutory provisions, connecting each rule to its Arabic source and relevant edition, and checking a conclusion against the resulting rule set.

The author of a conclusion may be a person or an AI system. The research focuses on the reasoning rather than the model that produced it.

Taqnīn.
Rules in their
own language.

تقنين

As part of Hujja, we are developing Taqnīn, a language for expressing rules with Arabic keywords. Its research design makes legal sources, exceptions and periods of validity explicit.

The work connects formal rule evaluation with proof checking in Lean 4. A checked derivation can establish what follows from the rules as written; review by legal specialists is still needed to establish whether those rules faithfully express the law.

Taqnīn is in development. It is presented here as part of our research programme.

Clear outcomes.
Visible limits.

The aim is to distinguish a proved conclusion, a refuted one, and a conclusion that cannot be checked with the available rules or facts.

Gaps in the rules, conflicting rules and missing facts are different reasons to leave a question unresolved.

FROM RULE TO REASON

  1. 01 Source attached
  2. 02 Review recorded
  3. 03 Publication permitted

Proved

The conclusion follows from the stated rules and facts.

Illustrative workflow — not a live Hujja result. Here, publication requires a source and a recorded review.

A focused
research agenda.

Law in time

Bind formal rules to the relevant source edition and the date on which they apply.

Arabic source material

Keep the Arabic provision as the legal reference, with readable connections between a rule and its source.

Independent checking

Separate a system proposing a conclusion from the mechanism checking its derivation.

In-country deployment

Design for client-controlled infrastructure and deployment within the relevant jurisdiction.

Current status: in development at Devnull Research.
The initial research domain is inheritance. Review of formalised rules by legal specialists is a next milestone. This is a research project, not a production legal service.

Building legal technology, or researching formal methods?

Let’s compare questions