
What Bitcoin Users Need To Know About Formal Verification
Bitcoin and Math
Formal verification is one of the more theoretical areas of computer science. It relies on the tools of mathematical logic to verify whether statements are correct. This field historically has been obscure, but recent advances in AI may bring it front and center.
I spoke with Clark Barrett, a professor of computer science at Stanford, who tells of a software bug that once led to the explosion of a rocket. The software ran an instance that forced it to convert a floating-point number into an integer. This caused the program to crash and the rocket to explode. A formal verification of the code would have avoided that problem.
Compiling is the weakest form of verification. A stronger form would be to run a battery of test cases. To see this more clearly, consider a function that divides two numbers. Without doing any internal checks, that function could run on any numerical inputs. If your test cases excluded 0, your function would still compile. But the edge case of a 0 in the denominator would cause the program to crash. Only a formal verification would catch this because it's not sufficient just to evaluate the functions on the different inputs, but rather to assess the function on its underlying logic.
The bar for formal verification is high, and the tools are obscure and hard to use. Outside of the Mars rover, they have not had wide acceptance. But the one possible exception today is cloud services. Cloud providers allow customers to enter their own query logic when using their services. An error in the query logic, such as inadvertently typing 'or,' instead of 'and' can have existential consequences, giving everyone access instead of no one. As such, companies like AWS are now recruiting computer scientists in formal verification by the hundreds.
The big use case will be formally verifying code written by AI. As AI tools improve, more code will be written by AI, and we need fast and cheap ways to verify this code beyond simply compiling it. That's where formal verification could have its Super Bowl moment. There is now a big research effort underway to deploy these formal verification tools at scale to AI-generated code.
This could have an enormous impact, making software bugs a thing of the past. Not only would software be written faster with AI, but it would be better too.
Once these formal verification tools arrive, I'm eager to see how Bitcoin would fare. But the early answer here is that Bitcoin should fare well because it uses several strict forms of logic that give it its high security. For example, full nodes of the network check signatures (through SigOps) when verifying transactions. If the signature fails, the transaction will never enter the mempool, nor be included in a block. Similarly, miners win a block only if their hash of the block header lies below the difficulty target. And a transaction is valid only if the inputs exceeds its outputs.
In other words, the logic in Bitcoin is fully deterministic. There is no uncertainty about the rules of the protocol. And because of this, there is little room for software bugs, evidenced by the lack of hacks over the last 15 years.
That said, Bitcoin is still an example of social computing. You could say that it is technically vulnerable to collusion if, for example, every single miner in the world agreed to fork the chain. That could happen in theory. But that's where economics comes in: It would not be in the miner's interest to do so.
Hashtags

Try Our AI Features
Explore what Daily8 AI can do for you:
Comments
No comments yet...
Related Articles

Wall Street Journal
26 minutes ago
- Wall Street Journal
Test Yourself Against These Teen Personal-Finance Whizzes, Round 2
We recently published a quiz using questions from a high school personal-finance competition. Readers gave us feedback loud and clear: More questions, please. Now, we are publishing the rest of the questions from the final round of the Council for Economic Education's National Personal Finance Challenge. The event brought together the top four-person teams among some 18,000 state-level competitors.
Yahoo
43 minutes ago
- Yahoo
Walmart Shareholders Fail Racial Equity Audit Proposal for a Third Time
The third time was not the charm for United for Respect Education Fund. The non-profit filed a shareholder proposal asking Walmart to undergo a third-party, independent racial equity audit focused on analyzing the company's impact on Black, Indigenous and People of Color (BIPOC) communities. Per the proposal, once completed, Walmart should share the results publicly on its website. More from Sourcing Journal Walmart to Bring Drone Delivery to Five Additional Cities Trump Lashes Out at Walmart, Says Retailer Should 'Eat the Tariffs' Walmart US Nearly Doubled Deliveries Made in Three Hours or Less 'Given its worker demographics and scale, we request Walmart assess its behavior through a racial equity lens to obtain a complete picture of how it contributes to, and could help dismantle, social and economic inequality,' the filers wrote in their proposal. 'A racial equity audit would help Walmart identify, remedy and avoid adverse impacts on nonwhite stakeholders, communities of color and long-term diversified shareholders. Failure to effectively address inequities in its operations exposes stakeholders, including employees, to unacceptable abuses and exposes Walmart to risks that may ultimately affect shareholder long-term value.' According to Walmart's 2024 Mid-Year Belonging Report, people of color make up 51 percent of its U.S. workforce. United for Respect Education Fund filed similar proposals in 2023 and 2024. But this time around, part of the importance for the group and its co-filers was the fact that Walmart, like several other major companies, announced late last year that it would roll back some of its diversity, equity and inclusion (DEI) efforts in favor of a theme of 'belonging.' Ultimately, the filers' argument proved unsuccessful in swaying shareholders' minds. In 2023, the proposal garnered 18.1 percent of shareholder votes; in 2024, that proportion declined to 15.4 percent. This year, the proposal received 6.9 percent of shareholder votes, according to a vote result announcement from Walmart's Thursday shareholder meeting. That's down 8.5 percentage points from last year. Like in previous years, Walmart recommended shareholders vote against the proposal. 'The Board recommends shareholders vote against these proposals because we already disclose substantial information on our people strategies, providing information about our business rationale, key metrics, progress, Board oversight and approach to continuous improvement based on stakeholder feedback and results,' the company published in its 2025 proxy statement. Ahead of the vote, Bianca Agustin, co-executive director of United for Respect, told Sourcing Journal that the organization had hoped to see at least the same percentage of shareholder votes headed their way as last year. She had also hoped that the proposal would garner one-fifth of all shareholder votes, since many proxy advisers recommend a company open formal dialogue with shareholders proposing a change if their proposition receives at least 20 percent of the total vote. Ultimately, the filers saw neither of those outcomes come to fruition this year. Nonetheless, Agustin said she hoped the proposal would bring attention to Walmart's DEI-related decisioning in recent months. 'We [wanted] to basically give a referendum on Walmart's really, really opaque decision to roll back the DEI initiatives,' she told Sourcing Journal. 'We [wanted] to send a strong message to the company that stakeholders do not agree with their decision, and that…they have a responsibility to lead in this moment of political turmoil and division. Given the demographic of their workforce and the communities they operate in, that responsibility is enhanced for Walmart.' TaNeka Hightower, a Tennessee resident who is currently on medical leave from her role at Walmart, supported the non-profit and its co-filers in re-filing the proposal this year. She said she believes a racial equity audit would help answer questions about pay equity and would provide insight into broader employee concerns about their ability to move up within the company, the treatment they receive from upper management and more. 'If we were to do a racial equity audit, it would really give an insight as to the disparity between Black and Brown workers in comparison to others,' Hightower told Sourcing Journal. 'The people up top that are the ones benefiting from all the profits, while the people that are actually doing the work to get the profits in the store aren't able to live.' Error in retrieving data Sign in to access your portfolio Error in retrieving data Error in retrieving data Error in retrieving data Error in retrieving data
Yahoo
43 minutes ago
- Yahoo
Why Centrus Energy Stock Soared Higher This Week
Meta Platforms signed a massive 20-year deal with a nuclear energy provider, leading to investor enthusiasm across the industry. Bank of America initiated coverage of Centrus with a buy rating. Centrus is in a strong position to capitalize on the growing demand for nuclear power. 10 stocks we like better than Centrus Energy › Shares of Centrus Energy (NYSE: CCJ) are moving higher this week. The company's stock was up 11.5% at 1:08 p.m. ET from last Friday's close. The S&P 500 index and the Nasdaq-100 index were up 1.2% and 1.8%, respectively, at the same time. Centrus, a provider of enriched uranium to fuel nuclear reactors, saw its stock rise after the announcement of a major deal between Meta Platforms and Constellation Energy and after receiving a buy rating from Bank of America. Meta, the parent company of Facebook and Instagram, signed a deal earlier this week that will grant it access to all the energy output from the Clinton Clean Energy Center nuclear reactor in Illinois. The 1.1 gigawatt output is enough to power 800,000 homes. Meta and other tech companies are finding it difficult to access enough power to meet the incredible demands of AI, especially if they are to try to meet their respective climate goals. Nuclear power offers relatively cheap, consistent, and abundant power without pumping greenhouse gases into the atmosphere. The announced deal helped shares of Centrus move higher, as it was a clear signal that the AI industry will actively pursue nuclear energy solutions. Centus is in a strong position to capitalize on this accelerating demand for nuclear power. It is one of only two licensed producers of enriched uranium in the U.S., giving it a substantial moat. If the marketwide trend holds, and I think it will, Centrus will no doubt benefit. And while its stock is not cheap, I think its future income justifies it. Before you buy stock in Centrus Energy, consider this: The Motley Fool Stock Advisor analyst team just identified what they believe are the for investors to buy now… and Centrus Energy wasn't one of them. The 10 stocks that made the cut could produce monster returns in the coming years. Consider when Netflix made this list on December 17, 2004... if you invested $1,000 at the time of our recommendation, you'd have $674,395!* Or when Nvidia made this list on April 15, 2005... if you invested $1,000 at the time of our recommendation, you'd have $858,011!* Now, it's worth noting Stock Advisor's total average return is 997% — a market-crushing outperformance compared to 172% for the S&P 500. Don't miss out on the latest top 10 list, available when you join . See the 10 stocks » *Stock Advisor returns as of June 2, 2025 Randi Zuckerberg, a former director of market development and spokeswoman for Facebook and sister to Meta Platforms CEO Mark Zuckerberg, is a member of The Motley Fool's board of directors. Bank of America is an advertising partner of Motley Fool Money. Johnny Rice has no position in any of the stocks mentioned. The Motley Fool has positions in and recommends Bank of America, Constellation Energy, and Meta Platforms. The Motley Fool has a disclosure policy. Why Centrus Energy Stock Soared Higher This Week was originally published by The Motley Fool Sign in to access your portfolio