Musings

The Fragility of the Digital World

Support independent writing Donate via PayPal (opens in a new tab)

Editorial illustration of a fractured padlock over a networked globe, with functioning financial and digital infrastructure on one side and disrupted systems on the other.

P versus NP, artificial intelligence, and the possibility of a cryptographic collapse

I. The Question That Would Not Die

In January 1955, the American mathematician John Nash began corresponding with the National Security Agency about a proposed encryption system. Although the agency ultimately declined to adopt his invention, his letters contained an idea of extraordinary significance: that information could be protected not because deciphering it was mathematically impossible, but because doing so would require a practically impossible amount of computation.

Nash understood that there was an important distinction between the difficulty of constructing an encrypted message and the difficulty of deciphering it without the appropriate key. If a mathematical system could be devised in which encryption was relatively effortless but unauthorised decryption required an astronomical amount of work, information could be protected even from an adversary who understood precisely how the system operated.

His correspondence remained classified until 2012. By the time it became public, much of human civilisation had been reorganised around the very principle he had contemplated.

In 1956, another mathematician approached the question from an entirely different direction. Kurt Gödel wrote to John von Neumann, who was then suffering from terminal cancer, asking whether a computer might efficiently determine whether a mathematical statement possessed a proof of a specified length. Gödel recognised the extraordinary implications of such a discovery. If computers could efficiently find mathematical proofs, rather than merely verify them, much of the intellectual labour traditionally performed by mathematicians might become automated.

Nash was contemplating the advantages of mathematical problems remaining difficult. Gödel was contemplating the advantages of making them easy.

Neither could have anticipated the extent to which these two ambitions would eventually come into conflict.

In 1971, the American computer scientist Stephen Cook formally established the foundations of what would become known as the P versus NP problem. Working independently in the Soviet Union, Leonid Levin arrived at closely related conclusions, which were published in 1973. In 1972, Richard Karp demonstrated that twenty-one apparently unrelated computational problems shared the same fundamental classification.

A question that had previously existed in fragments throughout mathematics had acquired a formal identity.

In 2000, the Clay Mathematics Institute designated P versus NP as one of its seven Millennium Prize Problems, offering one million dollars to anyone capable of resolving it.

More than half a century after its formal introduction, the problem remains unsolved.

Its resolution, however, may eventually prove to have consequences extending considerably beyond mathematics.

II. The Difference Between Finding and Knowing

To understand P versus NP, imagine being presented with an exceptionally difficult Sudoku puzzle.

Finding the solution might require hours of concentration, experimentation and logical deduction. Yet if someone handed you a completed puzzle, determining whether their solution was correct would be comparatively straightforward.

There is a fundamental asymmetry between finding an answer and verifying one.

Consider another example. A delivery company must determine the shortest possible route between hundreds of locations. The number of possible routes becomes unimaginably large as additional destinations are introduced. Yet if someone proposes a route shorter than a specified distance, calculating its length and checking that it visits every required destination is relatively simple.

Similar problems appear throughout medicine, engineering, economics, logistics and mathematics itself.

Computer scientists classify problems according to how the computational effort required to solve them increases as they become larger.

The letter P denotes a class of problems that can be solved in what mathematicians call polynomial time. Broadly speaking, this means that the work required grows according to some fixed mathematical power of the problem's size.

The letters NP denote a class of problems for which a proposed solution can be verified in polynomial time.

The essential question is whether every problem whose solution can be efficiently verified can also be efficiently solved.

If P equals NP, the apparent distinction between these two categories disappears. Problems that have resisted efficient solutions for decades might possess algorithms that we simply have not discovered.

If P does not equal NP, there exist problems for which finding a solution is fundamentally more difficult than verifying one, in this precise computational sense.

Most computer scientists expect P and NP to be different. Yet expectation is not proof.

There is also a particularly important qualification. Even if P equals NP, it does not necessarily follow that finding solutions would become effortless. An algorithm could technically satisfy the mathematical definition of polynomial time while requiring vastly more computational power than humanity possesses.

Conversely, P could remain unequal to NP while particular problems become dramatically easier to solve. The distinction between the two classes could persist even if many previously intractable problems became manageable in practice.

This is crucial because modern civilisation does not depend upon P being unequal to NP in some abstract mathematical sense. It depends upon certain particular problems remaining sufficiently difficult that nobody can exploit their solutions.

And those problems do not necessarily have to remain difficult merely because P and NP are unequal.

III. The Mathematics Behind the Padlock

Every time someone purchases an item online, accesses their bank account, sends a private message or downloads a software update, they participate in a remarkably sophisticated system of mathematical trust.

Most people encounter this system only through the small security indicator displayed by their web browser. Behind that unremarkable symbol lies one of the most important technological achievements of the twentieth century: modern cryptography.

Encryption is the process of transforming readable information into something unintelligible without the appropriate key.

A rudimentary example would be replacing every letter in a message with another letter. Someone who understood the substitution could reconstruct the original message. Someone who did not would have to discover the substitution independently.

Modern encryption operates according to a vastly more sophisticated version of this principle.

One of the most widely used encryption systems is the Advanced Encryption Standard, or AES, adopted by the United States government in 2001. Its strongest standard key size, known as AES-256, permits an astronomical number of possible keys.

Attempting to discover the correct key by testing every possibility is so computationally demanding that it is effectively inconceivable using known classical methods and realistic computing resources.

Yet there is an important distinction between the impossibility of testing every key and the impossibility of discovering a shortcut.

Imagine a combination lock with a trillion possible combinations. Testing every combination might require several lifetimes. But if someone discovered a mechanical defect that revealed the correct combination through some other means, the number of possible combinations would suddenly become irrelevant.

Cryptographers must therefore concern themselves not merely with the number of possible keys, but with the possibility that someone might discover a more intelligent way of recovering them.

AES belongs to a category known as symmetric cryptography, in which the communicating parties possess a shared secret key.

This introduces an obvious problem. How do two people who have never met, communicating over a network that anyone might be monitoring, establish a shared secret in the first place?

The answer lies in another extraordinary mathematical invention.

IV. The Art of Trusting Strangers

Public-key cryptography, developed publicly during the 1970s, transformed the possibilities of digital communication.

Rather than requiring two people to possess an identical secret key beforehand, public-key systems employ mathematically related public and private keys.

Imagine a padlock that anyone can close but that only its owner can open. The owner could distribute copies of the open padlock to everyone in the world without distributing the key required to unlock it.

A stranger could place a confidential letter inside a box, secure it with the padlock and send it to the owner. Even the stranger would no longer be able to open it without the appropriate key.

This analogy is imperfect, but it illustrates the remarkable principle behind public-key encryption.

One of the earliest widely adopted public-key systems was RSA, introduced in 1977 by Ron Rivest, Adi Shamir and Leonard Adleman.

RSA relies upon a curious asymmetry in arithmetic.

Multiplying two numbers together is straightforward. Multiplying two enormous prime numbers together is also relatively straightforward for a computer. Determining which enormous prime numbers were originally multiplied, given only their product, is an altogether different problem.

This reverse process is known as integer factorisation.

The security of RSA depends substantially upon the difficulty of factorising sufficiently large numbers. Nobody has proved that an efficient classical algorithm for doing so cannot exist. We simply have not discovered one capable of breaking properly implemented modern RSA keys at practical cost.

Another major family of systems, known as elliptic-curve cryptography, or ECC, emerged during the 1980s.

Despite its name, ECC does not primarily involve the familiar geometry of ellipses. It employs specialised mathematical structures in which performing a particular sequence of operations is comparatively easy, but determining the secret number of operations from the resulting value is extraordinarily difficult using known methods.

Imagine following a peculiar set of instructions that repeatedly moves you between points on a mathematical landscape. Someone who knows the number of steps can efficiently calculate the destination. Someone who knows only the starting point and destination cannot easily reconstruct the secret number.

This mathematical difficulty is known as the elliptic-curve discrete logarithm problem.

ECC permits sophisticated security with relatively small keys, making it particularly attractive for modern computing devices and internet infrastructure.

Both RSA and ECC support technologies that allow computers to establish secure communications and authenticate digital identities.

Modern HTTPS, the system protecting communications between web browsers and websites, commonly combines public-key mechanisms with symmetric encryption. Public-key cryptography helps establish identity and shared secrets, while algorithms such as AES or ChaCha20 protect the information subsequently exchanged.

These systems perform complementary functions.

Encryption ensures that an unauthorised party cannot easily read a message. Authentication helps establish that the message came from the person or organisation it claims to represent. Integrity mechanisms help determine whether the message has been altered.

Without authentication, one might have a perfectly encrypted conversation with someone impersonating one's bank.

The modern internet is therefore not protected by a single mathematical lock. It is protected by an elaborate architecture of interdependent mathematical assumptions.

The vulnerability of that architecture is that assumptions can be overturned.

V. The Civilisation Built on Computational Difficulty

There is something peculiar about the technological foundations of modern civilisation.

We ordinarily construct infrastructure around things we understand to be true. Bridges are designed according to established principles of physics. Electrical grids depend upon well-understood properties of electromagnetism. Aircraft remain airborne because aerodynamic relationships behave predictably.

Much of digital security, by contrast, depends upon our inability to solve particular mathematical problems efficiently.

We have constructed an international financial system, a global communications network and an increasingly digital administrative state on foundations that derive part of their strength from the limitations of human mathematical ingenuity.

This does not mean that cryptographers have been reckless. Modern encryption systems have undergone decades of extraordinary scrutiny. Some of the most intelligent mathematicians in history have attempted to discover weaknesses in them.

Their continued resistance to attack is meaningful evidence of their security.

But it is not proof of their permanent invulnerability.

In 1994, the mathematician Peter Shor demonstrated that a sufficiently powerful quantum computer could efficiently solve integer factorisation and discrete logarithm problems.

In principle, such a machine could compromise both RSA and ECC without resolving P versus NP.

The discovery was revolutionary, but its immediate practical consequences were limited. The construction of sufficiently capable quantum computers presents enormous physical and engineering challenges.

Governments and technology companies consequently began preparing for a gradual transition toward post-quantum cryptography: algorithms designed to resist known attacks that could be performed by quantum computers.

This transition was expected to take years, perhaps decades.

The emergence of increasingly capable artificial intelligence introduces a different possibility altogether.

What if the necessary breakthrough does not require a quantum computer?

What if it requires only a sufficiently intelligent mathematician?

VI. Artificial Intelligence and the Acceleration of Discovery

For most of history, mathematical discovery has been constrained by the extraordinary scarcity of individuals capable of producing genuinely original mathematics.

The combined intellectual output of humanity has depended upon a relatively small number of exceptional researchers, each limited by time, fatigue, education, mortality and the difficulties of communicating their discoveries to others.

Artificial intelligence threatens to alter these limitations.

An advanced mathematical AI could potentially investigate thousands of independent approaches to a problem, operate continuously, incorporate discoveries from other mathematical disciplines and coordinate its work with other artificial researchers.

A research programme that might previously have occupied generations of mathematicians could conceivably be compressed into a much shorter period.

This does not mean that every mathematical problem will inevitably become tractable. Some may be fundamentally resistant to efficient computation. Artificial intelligence might even help establish rigorous proofs of that resistance.

Nevertheless, we have begun to see evidence that AI can contribute directly to cryptanalysis, the discipline concerned with discovering weaknesses in cryptographic systems.

In July 2026, Anthropic reported that its Claude Mythos Preview model had discovered an improved mathematical attack against a simplified version of AES, alongside weaknesses in a proposed post-quantum digital signature system.

Neither discovery compromised modern production encryption systems. The significance lay instead in the demonstration that artificial intelligence could contribute original research to a discipline upon which digital security depends.

By November 2026, rumours of considerably more consequential discoveries inside frontier AI laboratories had begun circulating among computer scientists. On November 26, the scientific journal Nature examined reports that AI systems might have discovered algorithms threatening public-key cryptography.

These reports did not establish that RSA, ECC or AES had been practically broken. Nor did they establish that P equals NP.

But the possibility was no longer confined to science fiction.

The historical threat model for public-key cryptography assumed that the most likely transformative breakthrough would involve a new kind of physical machine. Quantum computers would have to be designed, manufactured, tested and scaled.

An AI-generated mathematical discovery might require none of those conspicuous developments.

It could occur inside an existing data centre. It might be represented by a relatively short mathematical proof or computer program. Once released, it could be reproduced internationally without the construction of specialised machinery.

The interval between discovery and widespread deployment could be extraordinarily brief.

VII. The Millennium Problem Need Not Be Solved

Public discussion of P versus NP often treats the question as though civilisation faces two possible futures.

In one, P does not equal NP, and cryptography remains secure.

In the other, P equals NP, and cryptography collapses.

Reality is considerably more complicated.

A proof that P does not equal NP would establish that some efficiently verifiable problems cannot be efficiently solved in the worst case. It would not establish that integer factorisation, elliptic-curve discrete logarithms or the mathematical problems underlying other encryption systems are among them.

Nor would it establish that those problems are sufficiently difficult in the particular circumstances in which they are used.

In 1995, the computer scientist Russell Impagliazzo described five hypothetical computational worlds, each possessing different relationships between mathematical difficulty and cryptographic security.

One of these worlds, which he called Pessiland, contains computationally difficult problems without providing the particular kinds of difficulty necessary for secure computational cryptography.

Another, Minicrypt, permits certain cryptographic mechanisms, including symmetric encryption, but not conventional public-key cryptography.

The world we generally assume ourselves to inhabit, Cryptomania, permits the construction of public-key cryptographic systems.

We have strong practical reasons to believe that our world resembles Cryptomania. We have not conclusively established that it does.

This introduces an unsettling possibility.

Artificial intelligence could discover efficient algorithms for integer factorisation, elliptic-curve discrete logarithms and other cryptographically important problems without resolving P versus NP.

It might dismantle much of modern cryptography while leaving the Millennium Prize Problem entirely untouched.

Likewise, a proof that P equals NP might initially have little practical significance if the algorithms involved were extraordinarily inefficient.

The most important question for civilisation is therefore not necessarily whether P equals NP. It is whether the computational problems upon which civilisation depends will remain sufficiently difficult to protect it.

Mathematics does not need to be completely conquered for its defensive foundations to begin crumbling.

VIII. The Day the Locks Stop Working

Imagine that a major artificial intelligence laboratory discovers a practical algorithm capable of breaking RSA and elliptic-curve cryptography using conventional computers.

Initially, the discovery might remain confined to a small number of researchers.

Governments could be privately informed. Intelligence agencies might classify related information. Technology companies could begin investigating emergency alternatives.

But the researchers would face a profound difficulty.

Unlike a conventional software vulnerability, a mathematical weakness cannot necessarily be repaired by correcting a programming error. If the mathematical problem underlying a cryptographic system becomes efficiently solvable, the system may need to be abandoned altogether.

Moreover, the researchers would have no reliable way of knowing whether another laboratory, government or intelligence organisation had independently made the same discovery.

The first known discovery would not necessarily be the first discovery.

Now imagine that the algorithm escapes into public circulation.

Banks could find themselves unable to rely upon some of the mechanisms used to authenticate transactions. Software companies might discover that previously trustworthy digital signatures could be forged. Intelligence agencies would have to reconsider the security of intercepted communications. Technology companies would face the possibility that attackers could impersonate legitimate services.

Cryptocurrency networks that rely upon compromised digital signature algorithms could become particularly vulnerable.

The internet itself would not physically disappear. Its fibre-optic cables, routers, satellites and data centres would continue to exist.

But the systems that allow people to establish whether information transmitted through that infrastructure is authentic could become unreliable.

Major technology companies might temporarily restrict their services rather than expose themselves and their customers to uncontrolled damage. Banks could suspend certain transactions. Governments might isolate critical networks. Software distribution could be interrupted while alternative authentication mechanisms were established.

The resulting crisis would not resemble an ordinary internet outage.

An outage prevents people from accessing information. A cryptographic collapse could prevent them from trusting the information they access.

Restoring connectivity would consequently be insufficient. Institutions would have to restore confidence in digital identity, ownership, communication and authority.

IX. The Financial System and the Problem of Ownership

Consider what happens when an individual opens their banking application.

The number displayed on the screen represents an institutional claim. It is a record of what the bank owes that individual, supported by a complicated network of accounting systems, transactions, legal obligations and historical evidence.

The banking system functions because institutions can establish, with sufficient confidence, who owns what.

A cryptographic breakthrough would not automatically erase bank balances or invalidate debts. Financial institutions possess independent records, backups, reconciliation procedures and legal documentation.

However, a widespread compromise of financial infrastructure could make it increasingly difficult to distinguish legitimate transactions from fraudulent ones.

Imagine thousands of financial institutions simultaneously investigating whether their authentication mechanisms can still be trusted. Transfers might be delayed or suspended. Exchanges could restrict trading. Businesses might find themselves unable to receive payments, meet payroll or purchase supplies.

Even institutions whose internal records remained perfectly intact could be affected by the failure of systems operated by their business partners.

The economic consequences would extend far beyond the financial sector.

Supermarkets depend upon electronic payments and complex supply chains. Hospitals depend upon digital procurement and administrative infrastructure. Warehouses depend upon networked inventory systems. Energy companies, shipping firms and manufacturers rely upon interconnected financial and technological services.

A factory need not be physically destroyed to become economically paralysed. It may merely become incapable of paying for the materials required to operate.

Central banks possess mechanisms for responding to financial emergencies. They can provide liquidity, support distressed institutions and intervene in markets.

But the creation of additional money does not resolve a crisis in which the authenticity of financial records is itself in question.

A central bank can create liquidity with a keystroke. It cannot create trustworthy historical evidence with one.

This is what distinguishes a potential cryptographic crisis from many conventional financial crises.

The underlying problem would not necessarily be a shortage of money. It would be a shortage of reliable information about money.

X. When the Pace of Discovery Exceeds the Pace of Adaptation

Human civilisation has survived extraordinary technological transformations.

The printing press undermined established systems of intellectual authority. Industrialisation transformed labour, transportation and the organisation of cities. Nuclear weapons fundamentally altered international politics. The internet reorganised communication and commerce.

Yet even the most disruptive of these transformations generally unfolded over considerable periods of time.

Institutions had opportunities to adapt, however imperfectly.

Artificial intelligence introduces the possibility that the rate of technological transformation could begin to exceed the rate at which institutions can respond.

Consider the transition to post-quantum cryptography.

The United Kingdom's published migration roadmap calls for organisations to complete much of their initial planning by 2028, migrate high-priority systems by 2031 and complete their broader transition by 2035.

The Bank of England reiterated these dates in its November 2026 Financial Stability Report, while encouraging particularly important institutions to move ahead of them.

There are legitimate reasons for such lengthy timetables.

Modern financial infrastructure contains decades of accumulated software, hardware and organisational dependencies. Replacing its security mechanisms requires extensive testing and international coordination. A defective security migration could itself produce severe economic disruption.

Nevertheless, the timetable reveals a profound asymmetry.

A mathematical discovery could occur overnight. The infrastructure it invalidates might require years to replace.

What happens if further discoveries occur during that replacement process?

Imagine a world in which one cryptographic mechanism is compromised, followed several months later by another. Governments and corporations might expend enormous resources migrating to alternative technologies, only to discover that those alternatives also possess previously unknown weaknesses.

Even individually survivable disruptions could become collectively overwhelming.

The danger would not necessarily be the discovery of a single universally destructive algorithm.

It could instead be a succession of discoveries arriving faster than civilisation can recover from them.

Under such conditions, technological progress itself could become a source of systemic instability.

XI. The Prisoner's Dilemma of Artificial Intelligence

The apparent solution might be to halt the development of increasingly powerful artificial intelligence systems until their consequences are better understood.

Such a proposal encounters a formidable geopolitical problem.

Suppose the United States, Europe and China collectively agree to freeze frontier AI development. The models that already exist would not disappear. Researchers could continue improving how those models operate, developing more efficient algorithms and discovering new methods of coordinating artificial intelligence systems.

Clandestine research programmes could continue, particularly where governments believed that their adversaries might be doing the same.

A nation that genuinely suspended its research while another secretly continued could find itself at an enormous strategic disadvantage.

The ability to discover mathematical vulnerabilities, accelerate scientific research and compromise technological infrastructure could become a source of unprecedented geopolitical power.

Each participant would therefore have an incentive to continue developing increasingly capable systems, even if all participants recognised the collective danger of doing so.

This is a manifestation of the prisoner's dilemma: circumstances in which individually rational decisions produce collectively undesirable outcomes.

Artificial intelligence also introduces a further contradiction.

The most effective means of defending against advanced artificial intelligence may itself be advanced artificial intelligence.

Discovering vulnerabilities before adversaries exploit them, developing replacement cryptographic systems, verifying mathematical proofs and monitoring critical infrastructure may increasingly require the very technology responsible for accelerating the threat.

We may consequently find ourselves obliged to continue developing the technology from which we are attempting to protect ourselves.

There is no simple resolution to this paradox.

But there is an important distinction between indiscriminate technological acceleration and deliberately prioritising defensive capabilities, institutional resilience and reliable recovery mechanisms.

The latter may buy civilisation the time it needs.

XII. Can Security Survive the Conquest of Mathematics?

Suppose artificial intelligence eventually becomes capable of efficiently solving nearly every computational problem relevant to conventional cryptography.

Would secure communication become impossible?

Not necessarily.

In 1949, Claude Shannon established the mathematical foundations of information theory and demonstrated that certain forms of encryption could provide perfect secrecy regardless of an adversary's computational power.

The simplest example is the one-time pad.

Imagine two individuals possessing identical copies of a long sequence of genuinely random numbers. One individual combines a message with those numbers before transmitting it. The other uses the identical sequence to reconstruct the message.

Provided the random sequence is sufficiently long, remains secret and is never reused, someone intercepting the encrypted message cannot determine its original contents from the encrypted data alone.

Every possible message of the same length remains compatible with some possible secret key.

The obstacle confronting an adversary is no longer computational difficulty. It is the absence of necessary information.

Even an arbitrarily powerful computer cannot deduce a genuinely random secret from information that provides no evidence of its value.

Unfortunately, this form of security introduces a formidable practical problem.

Communicating a large quantity of information requires an equally large quantity of previously shared secret key material. Distributing and replenishing that material securely across billions of people and devices would be extraordinarily cumbersome.

Quantum key distribution might alleviate some of these difficulties by exploiting the physical properties of quantum systems to establish shared secrets. However, it requires specialised equipment, has practical limitations and does not independently resolve every problem of authentication.

Physical distribution of secret keys could also become important. Governments, banks and industrial organisations might establish trusted communication channels through personally delivered cryptographic devices or other physically secured mechanisms.

The world could therefore retain secure digital communication even if conventional computational cryptography became unreliable.

But the resulting infrastructure might look radically different from the internet we currently inhabit.

One of the defining achievements of public-key cryptography is that strangers can establish secure, authenticated communications without having previously exchanged secrets in person.

Losing that capability could make digital communication more dependent upon physical institutions, trusted intermediaries and previously established relationships.

An internet composed of restricted networks, physically verified identities and centrally administered trust relationships would still be recognisable as a network of computers.

Whether it would retain the character of the internet we have known is another question.

XIII. Building a Civilisation That Can Survive Its Own Intelligence

The possibility of a cryptographic collapse does not require humanity to abandon digital technology.

It does require us to reconsider the degree to which essential institutions depend upon technological assumptions that could unexpectedly fail.

Financial institutions should maintain independently protected records capable of establishing legitimate ownership even when their production infrastructure has been compromised.

Governments should preserve mechanisms for distributing money, delivering essential services and conducting commerce during prolonged digital disruption.

Technology companies should design infrastructure around cryptographic agility: the ability to replace security algorithms without reconstructing entire technological systems.

Critical organisations should avoid excessive dependence upon identical technologies, suppliers and mathematical assumptions. A single vulnerability should not be capable of simultaneously compromising thousands of ostensibly independent institutions.

Artificial intelligence should be employed extensively in defensive research, mathematical verification and vulnerability discovery, while its authority over critical systems remains carefully controlled.

Physical infrastructure and offline alternatives should no longer be regarded merely as inefficient remnants of an earlier age.

Cash, independent archives, local computing systems, physically secured communications and redundant supply arrangements may acquire renewed strategic importance.

The objective should not be to construct a world in which technological failure becomes impossible.

Such a world has never existed.

The objective should be to construct a world in which technological failure does not become synonymous with institutional failure.

We have spent decades pursuing efficiency by eliminating redundancy, centralising services and connecting previously independent systems. These choices were economically rational within a relatively stable technological environment.

In an environment characterised by rapidly accelerating scientific discovery, some of that efficiency may reveal itself to have been fragility.

Civilisation may need to become deliberately less efficient in certain respects in order to remain sufficiently resilient.

XIV. The Paradox of the Golden Ticket

In 1955, John Nash contemplated the possibility of protecting information through mathematical difficulty.

One year later, Kurt Gödel contemplated the possibility of overcoming mathematical difficulty through computation.

Both men recognised something fundamental about the relationship between intelligence and the universe. Neither could have known that their ideas would eventually become entangled with the survival of the institutions upon which billions of people depend.

A practically useful solution to P versus NP could represent one of the greatest intellectual achievements in human history.

It could revolutionise medicine, engineering, logistics and mathematical discovery. It could allow humanity to solve problems that have resisted generations of effort. It could unlock extraordinary opportunities for material abundance and scientific understanding.

Yet those very capabilities could also undermine the mathematical architecture that makes modern digital civilisation possible.

The danger is not that knowledge is inherently destructive. It is that civilisation has arranged itself around particular limitations in its possession of knowledge.

We have built mechanisms of trust around problems we cannot efficiently solve, and we are now constructing machines whose purpose is to become increasingly proficient at solving problems.

There is something profoundly contradictory about this arrangement.

For centuries, humanity has pursued knowledge with the conviction that overcoming ignorance would increase its power over the world. That conviction has generally proved correct.

But in the coming decades, perhaps even the coming years, we may encounter an unprecedented inversion of that principle.

We may discover that some of the most important institutions we have constructed were made possible not by what we knew, but by what we did not know.

The question then becomes whether civilisation can acquire extraordinary intelligence without simultaneously destroying the conditions that allowed it to flourish.

We have spent much of our history attempting to make knowledge abundant.

Our next great challenge may be preventing that abundance from making trust scarce.

XV. Six Months Without Digital Trust

It is one thing to describe the collapse of modern cryptography in the abstract. It is another to imagine waking up on the morning it happens.

Suppose a frontier artificial intelligence laboratory discovers that P equals NP and, more importantly, produces a genuinely practical general-purpose algorithm that makes the computational problems protecting our digital infrastructure tractable on readily available computers. Suppose the result is independently verified, escapes into public circulation and cannot be contained.

The qualification is essential. A proof of P = NP need not yield an algorithm that is fast enough to threaten existing systems. Even a practical solution to an individual cryptographic problem need not compromise every other system. For the purposes of this thought experiment, however, let us assume something far more consequential: that attackers can defeat the conventional public-key and symmetric cryptographic mechanisms upon which much of the modern world depends, including the systems intended to replace them.

This is a hypothetical emergency, not a prediction of when one will occur. No publicly established result cited in this essay demonstrates that such a general collapse has already happened.

The first day: the world stops trusting its computers

The initial response would probably be disbelief. Cryptographers would urgently examine the discovery, while governments, intelligence agencies and technology companies attempted to determine which systems were affected. The internet would ensure that the answer, once understood, could circulate more quickly than any government could organise a response.

The most dangerous consequence would not simply be that private communications could be read. Digital signatures, which allow computers to verify the origin and integrity of instructions and documents, could also become unreliable. A computer that had spent its entire operational life distinguishing an authentic instruction from a fraudulent one might suddenly lose the mathematical means of making that distinction.

Banks would have to consider restricting transfers. Software vendors might suspend updates whose authenticity could no longer be guaranteed. Cloud providers might isolate administrative systems or take vulnerable services offline. Governments might disconnect certain sensitive networks rather than risk irreversible damage. Financial exchanges could temporarily suspend trading or settlement.

These would not necessarily be simultaneous or universal decisions. Some systems would retain independent safeguards, and others would be considerably more exposed. Nevertheless, the failure of a relatively small number of common service providers could make thousands of otherwise unaffected organisations temporarily inaccessible.

The electrical equipment, fibre-optic cables and data centres would still exist. The physical internet need not disappear. But a functioning network is not particularly useful for conducting business if its participants cannot establish with confidence who they are communicating with or whether the instructions they receive are genuine.

For the first time in decades, deliberately turning off substantial portions of the online world might become the prudent course of action.

The first week: money becomes difficult to move

Consider an ordinary household. Its members have bank accounts, mortgages, salaries, pension savings and bills to pay. Nearly all of these arrangements depend upon institutions being able to recognise legitimate instructions and maintain accurate records.

A cryptographic collapse would not automatically delete their money or cancel their debts. A financial obligation is a legal and economic relationship, not merely an entry in a database. Banks also maintain internal controls, archives, independent records and procedures for reconciling transactions.

The immediate problem would be access. A household could still possess money in a bank account while being unable to transfer it. Its employer could have sufficient funds to pay its wages while being unable to complete payroll. A shop could possess perfectly saleable merchandise while its payment processor was unable to authorise purchases.

If fraudulent transactions became widespread, institutions might have to distinguish legitimate changes to their records from changes made during the period of compromise. Restoring an earlier backup would not be a complete solution: genuine purchases, wages and transfers could have occurred since the backup was made. Reconciliation might require independently preserved evidence and considerable human effort.

Meanwhile, financial markets would have to contend with uncertainty over institutional losses, access to assets and the reliability of settlement. Central banks could provide emergency liquidity and guarantees, but those measures would be of limited immediate use where the machinery for safely transferring funds was itself unavailable.

Cash, physical bank branches and previously established relationships between businesses would become important fallbacks. Governments might organise emergency payment arrangements for essential purchases and public benefits. None of this would necessarily be sufficient to maintain the scale and speed of ordinary economic activity.

A person could remain solvent on paper and nevertheless struggle to purchase the necessities of life.

The first month: the digital emergency becomes a physical one

The modern economy depends upon a degree of coordination that is largely invisible to its participants.

A supermarket does not merely need food. It needs farmers, distributors, transport companies, warehouses, refrigeration, inventory systems, payment processors and suppliers capable of paying one another. A hospital needs medicines, maintenance contractors, laboratory services and reliable access to patient records. A factory needs raw materials to arrive on schedule and suppliers to trust that they will be paid.

Disrupting the coordination between these organisations could impair their operations even if the physical facilities remained completely intact.

Food and fuel shortages could emerge in places where payment and distribution systems remained disrupted. Hospitals might postpone non-urgent procedures and revert to manual administrative processes. Businesses with limited reserves could become insolvent despite having previously been profitable. Employees could lose work because their employers could no longer conduct ordinary transactions.

Critical infrastructure would present its own difficulties. Electrical grids, water systems, telecommunications networks and industrial facilities contain equipment designed to operate for decades. Some could continue operating locally or in isolation; others depend upon remote supervision, networked suppliers and trustworthy software. Replacing vulnerable security mechanisms in such equipment would be considerably more complicated than updating a popular web browser.

Governments would have to prioritise the preservation of essential services, potentially diverting enormous resources away from ordinary economic activity. The response might resemble some aspects of the early COVID-19 pandemic, with emergency financial support, altered working arrangements and disrupted international supply chains. The difference would be that the crisis had struck the very systems used to coordinate the response.

Months two and three: the past becomes vulnerable

There is a particularly cruel characteristic of cryptographic failure: its consequences need not be confined to the future.

An intelligence agency, criminal organisation or other adversary that had previously collected encrypted material might suddenly acquire the ability to decipher it. Private conversations, commercial negotiations, medical records, confidential research and government communications that had been protected by the affected mechanisms could become exposed.

The scale of the exposure would depend on which algorithms had failed, what information had been retained by adversaries, and how individual systems had managed their keys. Not every historical communication would become readable. Nevertheless, replacing a compromised cipher cannot make information secret again once it has been recovered.

The consequences could be extraordinary. Businesses might lose intellectual property representing decades of research. Individuals might find that private information they had entrusted to digital services was no longer confidential. Governments might discover that sensitive historical communications had become accessible to foreign powers.

The authenticity of historical records would also become a subject of dispute wherever their credibility depended primarily upon compromised digital signatures. A signed document that could previously be verified by anyone might require corroboration from independent archives, witnesses or institutions. Years of commercial disputes could follow.

There would be no software update capable of reversing knowledge already acquired by an adversary. Some of the damage would be permanent.

Months four to six: the struggle to rebuild trust

If the original breakthrough compromised only a particular family of mathematical problems, engineers could concentrate on deploying alternatives. The world might endure an exceptionally disruptive migration before largely returning to normal.

But our more extreme hypothetical does not grant us that luxury. If the discovery undermined computational cryptography generally, replacing one difficult mathematical problem with another would no longer provide the same assurance.

We would need to reconstruct secure communications around different principles. Previously shared genuinely random secrets, information-theoretic authentication, quantum key distribution where appropriate, physically protected communications and isolated networks could all play a role. These mechanisms would still face difficult questions of implementation, identity verification and key distribution. They would not provide an immediate substitute for the flexibility of the modern web.

It is much easier to establish a physically secured communication channel between two central banks than to establish billions of such relationships between individuals, businesses and independent websites.

The economic implications of that distinction would be profound. Major institutions with existing physical infrastructure could acquire disproportionate influence over the distribution of secure access. Small organisations and independent developers might find it considerably harder to operate without relying upon such institutions.

In a prolonged crisis, governments might impose emergency restrictions on financial transfers, network access and the distribution of software. Different countries could adopt incompatible security arrangements. International trade and communication might become more fragmented. Some restrictions introduced as temporary precautions could prove difficult to reverse, raising a serious question about how much individual privacy and freedom would survive the reconstruction.

An internet rebuilt around pre-established relationships and physically distributed trust would still be an internet in the technical sense. But the defining feature of the modern web, the ability of strangers to establish secure relationships cheaply and almost instantaneously, would have been substantially diminished.

Two futures: the long blackout and the end of the modern world

There are two radically different ways in which this story might end. Between them lies an enormous spectrum of possible outcomes, but the distinction ultimately concerns whether civilisation can preserve its capacity for collective action while the technological foundations of that capacity are being dismantled.

The first timeline: civilisation survives the blackout

In the more fortunate of these futures, governments and technology companies recognise the magnitude of the discovery before widespread exploitation has irreparably damaged essential infrastructure.

Much of the public-facing internet is temporarily suspended. Banks restrict electronic transactions. Sensitive networks are isolated. Software distribution, online commerce and remote administration are curtailed wherever their security can no longer be guaranteed. The resulting blackout is uneven: some services survive, others return in stages, and entire sectors retreat from the digital world for months or perhaps years.

The economic damage is immense. Millions of people lose their livelihoods, businesses fail and governments are forced to intervene on a scale that makes their response to the financial crisis of 2008 appear modest. Yet the essential machinery of civilisation remains intact. Food continues to reach cities, hospitals remain operational, electricity and clean water remain available, and governments retain sufficient authority to coordinate recovery.

Cash, paper records, physical identification and local networks regain an importance they have not possessed for decades. Institutions reconstruct financial accounts from independently preserved records. Emergency communications are secured through physically distributed secrets and forms of cryptography whose security does not depend on computational difficulty.

Meanwhile, scientists and engineers begin constructing the foundations of a different digital civilisation. Where independent computationally secure algorithms remain viable, they are deployed. Where computational cryptography has failed more generally, quantum key distribution, information-theoretic encryption and physically secured systems of authentication become candidates for a new architecture of trust.

Quantum technology is not a miraculous replacement for the existing internet. It requires physical equipment, reliable endpoints and authenticated communications, and would have to be deployed alongside other mechanisms. The reconstruction could be arduous, expensive and extraordinarily slow compared with the speed of the original collapse.

Humanity might spend a considerable period living without many of the online services it has come to regard as indispensable. Children born during the blackout might have their first experience of the internet through a system fundamentally different from the one their parents remember.

Nevertheless, civilisation survives. The same intellectual breakthrough that necessitated the reconstruction eventually helps to accelerate it. Previously intractable problems in engineering, medicine, manufacturing and logistics become more manageable. Human society emerges from the crisis poorer in some respects, technologically transformed in others, and perhaps ultimately capable of extraordinary prosperity.

In this timeline, the loss of the old internet is a historical trauma rather than the end of history.

The second timeline: the collapse becomes self-sustaining

In the darker future, the institutions responsible for managing the emergency lose the ability to coordinate their response before they can establish a replacement.

Cryptographic failures arrive in succession. Attempts to restore vulnerable services are interrupted by further discoveries. Financial institutions cannot reliably reconstruct compromised records. Governments cannot sufficiently reassure their populations that deposits, payments and ownership claims will be honoured. Businesses that depend upon one another become paralysed, not because the physical resources necessary for production have vanished, but because the systems that allow those resources to be exchanged have ceased to function reliably.

At first, the symptoms resemble an exceptionally severe economic crisis. Then the distinction between economic and physical survival begins to disappear.

A contemporary city is not a self-sufficient settlement. Its population depends on food, fuel, medicine and other necessities arriving continuously from elsewhere. Its water treatment facilities require chemicals, electricity, maintenance and trained personnel. Its hospitals require supply chains extending across continents. Its inhabitants possess neither the land nor, in most cases, the skills and equipment necessary to provide independently for themselves.

The supermarket shelf is the final visible link in an immense chain of human cooperation. If enough of the links fail for long enough, the shelf remains empty.

Prolonged disruption to energy, transport, agriculture and public health could turn a financial emergency into a humanitarian catastrophe. Shortages could force large populations to migrate. Malnutrition, preventable disease and the loss of ordinary medical care could claim lives on a scale that has little to do with the immediate technological event.

Governments would face growing demands at precisely the moment their administrative capacity and economic resources were diminishing. Emergency rationing and restrictions might initially preserve essential supplies, but their effectiveness would depend upon institutions retaining the public's confidence and the practical ability to enforce and administer them.

In countries where these conditions failed, the consequences could extend beyond recession and political instability to the fragmentation of state authority. International cooperation could deteriorate as governments prioritised domestic survival. Disputes over energy, food and territory could escalate into conflict, further damaging the infrastructure upon which recovery depended.

At its worst, the catastrophe would become self-reinforcing. The loss of reliable infrastructure would impede the production and distribution of its replacements. The loss of skilled workers would make essential machinery harder to maintain. The breakdown of education, research and manufacturing would diminish the capacity to reconstruct the technological systems that had previously sustained billions of people.

Imagine possessing the mathematical knowledge required to build a more advanced civilisation, yet no longer possessing the functioning factories, institutions, supply chains or stable electrical grids required to give that knowledge physical form.

The discoveries themselves would not have become less valuable. The civilisation capable of exploiting them would have disintegrated.

Under sufficiently extreme and prolonged conditions, the result could be the collapse of modern industrial society across large regions of the world, accompanied by catastrophic loss of human life. The most severe compounding scenarios, involving widespread famine, disease, warfare and ecological damage, could even extend into mass-extinction-scale consequences. That is the far end of a chain of contingencies, not a direct or established consequence of P equalling NP. Human extinction, or a mass extinction in the biological sense, would require additional catastrophes of extraordinary severity; neither follows from the mathematics alone.

The horror of this possibility lies in the fact that the original discovery need not destroy a single physical object. Its danger would arise from the degree to which humanity has made its physical survival dependent upon abstract systems of coordination and trust.

The interval between discovery and survival

Neither of these futures is a forecast. No reliable probability can presently be assigned to a general cryptographic collapse, much less to the extraordinary succession of failures required to produce the second scenario.

But the difference between the two futures is worth contemplating.

We tend to imagine technological progress as a process in which discoveries accumulate and the benefits of those discoveries gradually become available to society. We rarely contemplate the possibility that a discovery could undermine the conditions necessary for society to enjoy its benefits at all.

A practical solution to P versus NP could grant humanity capabilities beyond the aspirations of generations of mathematicians. Yet the ability to solve an optimisation problem does not instantly manufacture medicine, transport food or repair a power station. Intelligence is not a substitute for physical resources, functioning institutions, cooperation or time.

The same discovery could therefore stand at the beginning of an unprecedented age of abundance or at the beginning of an unprecedented collapse. The critical question is not merely what humanity will be capable of doing once the mathematical barriers have fallen. It is whether the machinery of civilisation will remain intact long enough for humanity to do it.

We have spent thousands of years overcoming the limitations of human intelligence. It would be a terrible irony if, upon finally overcoming one of its greatest limitations, we discovered that those limitations had been helping to hold our civilisation together.

The most consequential discovery in the history of mathematics might also be the last great discovery made by the civilisation that produced it.

Sources and further reading

Support independent writing Donate via PayPal (opens in a new tab)

Thanks for reading.

More musings →