Mule Fahreau discusses formal verification best practices for Soroban smart contracts, covering code modularity, AI-assisted refactoring, and combining AI with formal verification tools to improve security and auditability.
At a Stellar ecosystem event, Mule Fahreau presents strategies for making smart contract code more amenable to formal verification and auditing. He emphasizes writing modular, understandable code with separated concerns rather than monolithic functions. The talk covers three main themes: helping developers write verification-friendly code, using AI to refactor and improve code quality, and combining AI with formal verification tools like Satora Prover for correctness preservation. Fahreau demonstrates how AI can transform poorly structured code into modular, auditable versions and discusses how formal verification and AI complement each other by thinking globally and locally respectively. He also addresses quantum computing's potential impact on SMT solvers and provides guidance for developers getting started with formal verification.