AI Can Write Code. Now Google DeepMind Is Using It to Prove the Code Is Safe

DeepMind's AlphaProof Code, working with human experts, mathematically verified key security properties of Signal's encryption code. The next AI coding contest may turn on how reliably code can be verified, not how fast it is written.

Engineer reviewing Google DeepMind AlphaProof Code verification of Signal code

The 20-second read

1
Google DeepMind's AlphaProof Code mathematically verified key security properties of real cryptographic implementation code.
2
In a test where two previously fixed vulnerabilities were put back in, it caught both problems.
3
As AI makes code cheap to produce, higher value may shift to the ability to define the conditions code must meet and to check that it meets them.

1. Can you really trust AI-written code?

Ask an AI to build a program and code appears in seconds. But the picture changes if the code runs a bank's payment system or a hospital's medical device. What matters is not how fast the code was produced. It is whether it works correctly when mistakes are not allowed.

Google DeepMind's AlphaProof Code offers a new answer to that question. A Gemini-based AI agent worked with human experts to prove mathematically that the real implementation code of the Signal encryption protocol meets its core security conditions.

The next stage of AI coding is not producing more code. It is building grounds for trusting that code.

2. How do testing and proof differ?

Think of building a bridge. Driving a few trucks across it to see whether anything goes wrong is close to ordinary testing. Formal verification is closer to expressing the design and its conditions in mathematics, then logically demonstrating that the structure meets its requirements within those conditions.

What it does
Testing: run it and seeRuns many scenarios to find errors. Untested situations remain.
Formal verification: work it out mathematicallyStates the conditions that must hold, then proves the code satisfies them.

The result is especially interesting because it verified the implementation of encryption code in actual use, not an abstract design. A design can be flawless and still pick up mistakes when it is turned into a program.

Testing finds errors. Formal verification builds evidence that the stated security conditions hold.

3. What was checked in four weeks?

In this work, the AI and the experts generated a vast body of proof code to examine Signal's core security properties. The proof code alone runs to more than 3 million lines, and the work took about four weeks.

  • 3 million+ lines: mathematical proof code generated
  • About 4 weeks: time the verification took

The team also ran an experiment to test the system's detection ability. They deliberately reintroduced two vulnerabilities that had been found and fixed in the past. AlphaProof Code caught both. The case suggests the AI did more than produce plausible explanations: it can help tell faulty implementations apart from correct ones.

Formal verification does not automatically cover risks that were never defined, or assumptions that were set up wrongly.

Checking an AI's answer with a separate mathematical system has begun to lower the bar for software reliability.

4. Why would companies pay for more certain code, not faster code?

As the cost of writing code falls, what companies value most changes. In finance, a wrong trade is costly. In healthcare, a malfunctioning device is. In telecoms and security, a data leak is. In these industries, the ability to prove that essential rules are kept may matter more than producing code an hour sooner.

Developers' roles may shift too. The weight could move from people who instruct AI to write code toward people who define the conditions a system must satisfy and review the proofs the AI produces.

For Alphabet (GOOGL) investors, the point is that Gemini's use could extend beyond developer productivity into high-value engineering verification. The basis of competition among AI coding services would widen from speed of writing to reliability.

As code becomes abundant, the reason to pay shifts from output to the certainty of fewer mistakes.

5. Signals investors can watch next

  1. Productization: whether Google builds the technology into its cloud or developer tools. That is the first gate for moving research into customers' actual workflows.
  2. Customer adoption: whether financial firms or security companies use formal verification in real work. It would show whether technical success turns into economic value.
  3. Competitor response: whether Microsoft, OpenAI and others strengthen code verification features. It would show whether the yardstick for AI coding is changing.

AI's speed at writing code is already striking. The more important question lies elsewhere: who can most convincingly prove that the code is correct?

What is AlphaProof Code?
  • It is an AI system for code verification announced by Google DeepMind.
  • A Gemini-based AI agent, working with human experts, mathematically proved the implementation code of the Signal encryption protocol.
How is formal verification different from testing?
  • Testing finds errors by actually running the code in many situations. Situations that were not tested remain.
  • Formal verification means writing down the conditions the code must satisfy and then showing mathematically that the code meets them.
How long did it take to verify the Signal code?
  • The work took about four weeks.
  • The generated proof code runs to more than 3 million lines.
Is code verified by AI completely safe?
  • That would be hard to say. Formal verification does not automatically cover risks that were not defined at the start, or assumptions that were set up wrongly.
  • It is better seen as building evidence that the stated security conditions hold.
Did AlphaProof Code actually find vulnerabilities?
  • Researchers ran an experiment in which they deliberately reintroduced two vulnerabilities that had been found and fixed in the past.
  • AlphaProof Code found the problem in both cases.

What to watch

Whether Google turns it into a productWatch whether Google builds this technology into its cloud or developer tools. That is the first gate for moving a research result into customer work.
Adoption by finance and security customersWatch for cases where financial firms or security companies use formal verification in real work.
Verification features from rivalsWatch whether Microsoft, OpenAI and others release code verification features. That would show whether the yardstick in the AI coding race is changing.
Wider verification scopeWatch for proofs of the same kind on real code other than Signal.
The next contest in AI coding is likely to be less about how fast code gets written and more about how well it can be trusted.

Insight Times Editorial Desk

More by topic

Starting with this story's topics, then what readers are following now

Investor psychology, decision-making and books on investing

GOOGL

This story's topic27 storiesSee all →

Google Catches Up, and Rivals Run Ahead Again

The real test for Gemini 4 Argon is not AI performance. It is whether Google can win customers and keep them.

Tech

Same cloud, three different ways to earn the money back

Microsoft, Alphabet and Amazon are all spending enormous sums on AI infrastructure. The route each one takes to recover that capital is not the same, and that is what decides the winner.

Investing

Nvidia and Google Want AI to Take a Break When the Grid Runs Short

The power problem for AI data centers has looked like a question of how many new plants to build. Nvidia and Google are offering a second answer: delay the AI work that can wait until the grid's worst hours pass.

Tech

Big Tech's Cash Is Draining. Its AI Business Is Earning More

Nomura's J-curve points to a timing gap between falling free cash flow and the payback on AI spending. For investors, the two are not the same thing.

Tech

Dark navy cover. Horizontal bar chart of Reddit Q3 2026: revenue +53%, ad revenue +54%, global DAU +12%, US DAU -2%, stock about -29% on Oct 30. Title: Google AI Is Taking Reddit's Visitors.

Google's AI Search Is Cutting Reddit's Traffic. Are the Web's Economics Changing?

Reddit's revenue grew fast, but search visits fell. The shock points to a shifting relationship between companies that produce content and platforms that answer with AI.

Tech

Google Cloud Grew 103%. Alphabet Fell 10% Anyway. Here Is What Wall Street Fears

AI demand is showing up in the numbers, but search ads missed and AI spending is not yet returning enough cash. Alphabet's results ask not how fast it is growing, but how profitably.

Investing

Why Oracle Is Buying More Nvidia GPUs and Adding Google TPUs Too

Oracle will expand Nvidia's next-generation AI systems to multi-gigawatt scale while becoming the first big outside cloud to offer Google's TPUs. The move shows competition shifting from single-chip speed to the running cost of whole systems.

Tech

HBM

77 storiesSee all →

Memory stacked next to the GPU.

Memory Is Still Short, but Less Short: Checking for the Peak This Week

Citi trimmed its 2027 DRAM and NAND shortage forecasts together. Server pricing remains strong, while consumer markets show weakness. This week's numbers show where the memory boom may peak.

Investing

The Real ASML Number Isn't the 3% Pop, It's the 30% Capacity Hike

ASML's rally isn't just an AI trade. Customers are already locking in 2027 tool slots, and ASML is raising Low-NA EUV capacity by roughly 30% to keep up.

Investing

A 3x P/E is not a discount. It is a verdict on how long memory profits last

Nomura's buy case on Samsung Electronics and SK Hynix does not stop at higher memory prices. It argues that if AI has turned memory from a cyclical component into strategic infrastructure, the formula the market uses to value both companies has to change too.

Investing

2027 Isn't the End: Citi's Case for a Memory Supercycle Running to 2031

Citi says the memory shortage timeline is stretching again. If AI shifts from "train once" models to continual learning, HBM, server DRAM and enterprise SSDs could all fall short at the same time.

Tech

AI ran out of memory before it ran out of GPUs

The HBM bottleneck is spreading into DRAM prices, server costs and the price of the next laptop or phone.

Tech

Has Memory Peaked? Prices Are Cooling, but the Shortage Looks Set to Run to 2028

Price growth has slowed and consumer demand is already breaking. Server and HBM supply remains short, and Micron says more than 75% of its 2027 volume is already committed to customers.

Tech

AI Chips Haven't Peaked. The Real Risk Sits in 2028 Supply

HBM and server DRAM shortages are now spreading into enterprise SSDs. The question isn't today's strength, it's how much new capacity these prices are pulling in and when it lands.

Investing

A building that houses servers and networking gear and supplies them with powe…

Nvidia and Palantir Put AI Inside the Supply Chain - The Real Shift Is That It's Learning Judgment

A single Vera Rubin rack holds 1.3 million parts. The real breakthrough in Nvidia and Palantir's new supply chain AI isn't automating that complexity, it's capturing the judgment calls that used to live only in planners' heads.

Tech

Is Space Cooler for AI? Why Musk Wants Data Centers in Orbit

The next limit on AI may be power and cooling, not GPUs. Elon Musk is looking to Earth orbit for an answer, but the test is cost per hour of compute.

Tech

Musk Sees the Next Phase of AI Infrastructure: Who Can Switch GPUs On, Fast

If neoclouds struggle under financial pressure, AI demand may not shrink. It may simply favor the few operators with the capital and execution to serve it, a shift that could matter for SpaceX and Tesla.

Tech

White House Swaps AI for "SI." The Real Investment Signal Is Infrastructure, Not the Name

An executive order renames artificial intelligence "Super Intelligence" and six frontier labs sign a voluntary safety accord. What investors should watch is the data center, power, nuclear and chip policy now gathered under one national-competitiveness frame.

Tech

The Cheaper Tokens Get, the Bigger Your AI Bill Gets

As AI shifts from training to inference, the token is becoming an industrial commodity. Falling prices are not cutting demand, because agents and automation consume tokens at a scale no human chat session ever did.

Investing

Marvell's $115 Billion Lumentum Deal: Is AI's Next Bottleneck Light, Not Chips?

Marvell's purchase of Lumentum points to a contest beyond GPU speed, in data transfer and power efficiency. Whether the price is right is not yet confirmed.

Tech

Workers in hard hats beside a communications equipment cabin, with a Starship rocket on its launch tower at dusk in the background

SpaceX Forecast at About $730 Billion in 2028 Revenue: The Bigger Opportunity Musk Sees

Sequoia Capital made a bold forecast, and Elon Musk replied, "I think we can do better." The future SpaceX is looking at is far bigger than the rocket launch business. The plan is to link satellite communications, AI data centers and orbital computing into one giant business.

TechEXPLAIN

NVDA

97 storiesSee all →

Who Hits $1 Trillion Next: Reading AMD and ASML by Different Rules

One company is chasing Nvidia's GPU empire. The other sells the machine that draws the chips for every advanced chipmaker, including Nvidia. Both get floated as 2028 trillion-dollar candidates, but the numbers investors need to watch are entirely different.

Investing

China's AI Labs Went Open Source Because They Had to, Not Because They Wanted To

A GPU shortfall pushed Chinese AI labs toward efficiency and open weights, and that constraint is now reshaping the global competition over who controls AI's basic infrastructure.

Tech

Box Shows AI Its Manuals, and the AI Starts Redesigning the Workflow

Box Architect, built with NVIDIA, moves AI from reading documents to designing how work gets done. It has not yet reached beta, so the real-world payoff remains to be seen.

Tech

Dark navy cover. Flow diagram: Nvidia to Nscale (credit guarantee, in talks) to Anthropic (~$45B compute lease signed in August plus a separate ~$45B, ~460MW deal in talks). Title: Why Would Nvidia Back a Customer's Loan?

Why Would Nvidia Guarantee Its Customers' Data Center Loans?

Nvidia is reportedly in talks to back financing for Nscale's West Virginia data center. Nothing is signed, and the terms are not public.

Tech

Before Robots Sell, Chips Sell First: Following the Money in the Humanoid Race

Billions of dollars are moving before humanoid robots reach mass sales. Compute suppliers may see revenue first, but that does not guarantee stock returns.

Tech

Tech Selloff: Is the Bull Market Over? Wall Street's Four-Year Chart Says Not Yet

The uptrend has survived five double-digit pullbacks in four years. This time, AI companies' debt and cash flow are the new variables.

Investing

The AI Bubble Question Has Changed: By Late 2026, It's ROIC Over GPUs

There is no sign yet that AI investment is slowing. If anything, hyperscaler spending forecasts keep climbing. But as the scale of that capital has grown, the market's question has shifted from "is AI growing" to "when, and how much, does this capital come back as cash."

Tech