Formagine

Smart contracts that are proven correct before they ever run.

Formagine is an algebraic compiler that verifies your contract's invariants at compile time and emits minimal WebAssembly ready for deployment. If your code compiles, it is correct for all possible executions, which means no audits, no runtime overhead, and no residual uncertainty about whether your contract does what you intended.

The problem
Smart contract audits cost tens of thousands of dollars, take weeks, and still miss critical bugs that lead to catastrophic losses on-chain.
What changes
You define a Form with the rules your contract must always satisfy, and the compiler proves those rules hold across every possible state transition before producing any output.
What you get
An optimized WASM binary where every invariant proven at compile time has been erased from the output, resulting in smaller, faster contracts with zero unnecessary runtime checks.
How you build
Select your contract type, define your state and rules through structured selections, and the compiler handles verification and deployment to your target chain.
form Token {
  state {
    balance : Nat per Address
    supply  : Nat
  }

  invariant conservation :
    sum(balance) == supply

  transition transfer(from, to, amount) {
    require balance[from] >= amount
    balance[from] -= amount
    balance[to]   += amount
  }
  -- conservation proven by arithmetic identity
}
Form Templates

Formagine is built for teams deploying real economic value on-chain that need formal correctness guarantees, not just test coverage.

Take the assessment