Correctness Proofs
Correctness proofs are the formal documentation and mathematical verification that a piece of software performs exactly according to its design specification. In the context of smart contracts, this involves writing a formal specification in a machine-readable language and using a proof assistant to verify that the implementation code is a correct refinement of that specification.
This process is the gold standard of security, as it provides a machine-checked proof that the code is free of certain classes of errors. While it is the most resource-intensive form of verification, it is increasingly used for the core logic of critical infrastructure, such as stablecoin minting contracts or bridge protocols, where the cost of a single error is extremely high.