“The prophecies of what the courts will do in fact, and nothing more pretentious, are what I mean by the law”. Penning in disarmingly simple terms, Oliver Wendell Holmes drew a parallel between law and a working prediction system; for him, and for the legal realists who followed him, law was a forecast of how a future judge would rule, based on how past judges had ruled before.
By asking how a present dispute resembles past ones, the common law relies on an elaborate form of pattern-matching to fill in gaps. Judges decide cases by looking to what has been done before, identifying relevant similarities, and treating like cases alike.
Past decisions supply the information on which present judgments are based. Because future outcomes are inferred from an accumulated record of prior ones, and predictions are trained on this data, the doctrine of precedent functions, in a straightforward sense, as a predictive system. In that view, the common law is the oldest continuously operating predictive technology humanity has built.
And so, the doctrine of binding precedent rests on the assumption that the past is a reliable guide to the future. Machine-learning systems, including large language models, rest on the same assumption. Both rely on prior data to predict what comes next. But they also share a problem. The concern central to artificial intelligence, that the data a system is trained on carries forward the prejudices of those who produced it, is the one common law has lived with for centuries.
A body of law assembled from the judgments of an earlier age inherits the assumptions of that age. This is perhaps why much of Pakistani jurisprudence still rests on pre-independence decisions reflecting the assumptions of a colonial order the country has formally repudiated.
There is a further similarity. Pattern-matching, whether performed by a human mind grounded in precedent or by a machine trained on data, produces decisions that resist easy challenge. The litigant told that the case resembles a previous one cannot simply argue with resemblance itself. One can contest its edges, distinguish the facts, press for an exception, or urge that the earlier case was wrongly decided.
The person told an algorithm has flagged him as a credit risk, a poor candidate, or a security threat faces a sharper version of the same problem. One cannot easily argue that the resemblance the machine has found is a coincidence rather than a cause. In both worlds, the verdict arrives with the authority of accumulated experience and the opacity of a judgment whose reasoning lies somewhere inside the data itself.
So, if AI and judges are doing the same kind of work with the same kind of patterns, what justifies trusting the judge over the machine?
Although both are susceptible to the perils of bias, a judge, by virtue of possessing a human mind, has the capacity to confront and correct that bias. One does so by employing reasoning each time precedent is relied upon. That reasoning must explain why the precedent applies, why the facts fall where they do, and why the earlier case governs or can be distinguished. Where a machine will identify the same pattern a judge does and produce a determinate output on that basis, the judge is empowered by reason, which allows them to look beyond the pattern itself. It is the judge who, after all, takes the oath to “do right to all people”, a duty that ultimately derives its force from the obligation to reason.
Section 124-A of the Pakistan Penal Code is a useful example. The offence of sedition was a colonial inheritance, enacted during British rule and retained after independence. It survived for decades within a constitutional order formally committed to speech, representation, and democratic accountability. In 2023, in Haroon Farooq v Federation of Pakistan, the Lahore High Court held that Section 124-A was unconstitutional, inconsistent with Articles 19 and 19A of the constitution, void as a whole, and struck it down.
In this capacity to challenge and overturn the pattern where necessary, the judge retains an authority that technology cannot displace: machine systems cannot bear or exercise human reason in the way judicial decision-making requires.
However, standing at the current stage of human development, it is deceptively reductive to treat AI and judges as binary opposites. The Supreme Court of Pakistan, in Ishfaq Ahmed v Mushtaq Ahmed, has already recognised AI, in landmark terms, as a valuable tool for reducing caseloads and enhancing judicial efficiency. Increasingly, courts are leveraging AI to refine procedural workflows, expedite case disposal, and improve case management. To operate at a world-class standard, the judiciary has little choice but to integrate AI into its functioning.
This naturally raises an important concern: if the authority of judicial decision-making is grounded in human reason, does increasing reliance on AI undermine that authority? The answer is no, so long as judges remain vigilant not to allow AI-generated predictions to substitute for the judicial duty to reason.
This intricate balance is reflected in The National Guidelines for the Use of Artificial Intelligence in Judicial Institutions of Pakistan (2026), formulated by the National Judicial Automation Committee and approved by the National Judicial (Policy Making) Committee. The guidelines clearly articulate, in the Preamble, that “AI is intended to augment – not supplant – humanly reasoned decision-making.” To safeguard this principle, the use of AI is confined to four domains of judicial functioning: (i) administrative functions; (ii) legal research; (iii) predictive analytics; and (iv) judicial assistance, including the preparation of preliminary case summaries, drafting templates and organisation of evidentiary material.
The guidelines also establish key safeguards. First, all AI-assisted processes must incorporate human validation checkpoints to ensure that independent judicial reasoning is not displaced by machine-generated outputs. Second, all AI systems employed within the judiciary must be transparent and free from algorithmic and data-driven bias. Third, strict protections are mandated to ensure that confidential legal information and personal data of litigants, witnesses, and other parties are not compromised in the course of AI deployment. This reflects a deliberate effort to ensure that the use of AI remains firmly subordinated to human judgment as an assistive tool.
To judge, then, is to reason. As long as this remains the linchpin of our judicial system, AI cannot replace judicial authority; it may assist in prediction and procedure, but it cannot displace the duty to justify, distinguish and, where necessary, depart from the patterns of the past.
Usama Fiaz Bhatti is a lawyer.
Maha Jamal is a lawyer.