Contracts written in logic.
Enforced by proof.

zkFOL is a language and compiler for stating rules in first-order logic and proving that they hold. On a zkFOL chain the rule is the contract.

State moves only when a transaction carries a proof that the rule is satisfied. The network checks the proof in milliseconds and never runs the contract. There is no bytecode, no virtual machine and no execution layer.

11 ms to prove fib(10,000) mod 7919 by fast doubling
1.53 ms the floor, what a bounds check costs when there is nothing to compute
2,090 digits the exact Fibonacci integer, proved with no modular reduction
161,323 bytes a real proof, relayed through a mempool and mined into a block

The three prover figures were measured on 28 September 2026 on one desktop CPU, an 8 core AMD Ryzen 7 5700X. The relayed proof is from Modulus, the layer one demonstration.

Migration

Cult DAO is becoming zkFOL.

$CULT is being migrated to $ZKFOL, a new token launching on Ethereum mainnet. The maximum supply carries across, and so does everything already burned from $CULT.

Holders of $CULT are asked to follow the instructions on migrate.zkfol.com. The migration will be open until 30 November 2026.

Check the link

migrate.zkfol.com is the only site that runs the migration, and this page is where to confirm it. Any other address asking you to migrate $CULT is not ours.

The technology

Write the rule. Prove it holds.

A zkFOL program is a set of logical statements about numbers. Each statement says what must be true.

The compiler turns those statements directly into polynomial constraints. A prover then produces a short cryptographic certificate that the statements are true. Anyone can check that certificate in milliseconds without redoing the work.

The method comes from published research. Murdoch J. Gabbay set out a direct translation from first-order logic into polynomials in "Arithmetisation of computation via polynomial semantics for first-order logic" (IACR eprint 2024/954, also Journal of Applied Logics 12(6), pp. 1481 to 1548, October 2025).

The compiler is open source under the MIT license. It is written in Elixir and Rust.

Why it matters

One artifact where there used to be two.

Every smart contract platform in use today separates what a contract should do from the code that does it. The specification is a document. The implementation is a program. When the two disagree, users lose money. Audits, test suites and formal verification put a price on that gap. None of them close it, because there are still two things to compare.

On a zkFOL chain the specification is the contract. There is nothing else to compare it to.

  1. 01

    The rule and the contract are the same object.

    A predicate is a first-order logic statement about a proposed change: the state consumed, the state produced and the transaction presenting them. It evaluates to true or false. There is no method table, storage layout, entry point or execution order. Code cannot drift from the specification, because there is no separate code.

  2. 02

    Whole classes of contract bug have nothing to act on.

    A predicate does not run. It cannot be interrupted, re-entered or driven into a state its author never wrote down. Reentrancy, compiler-to-bytecode mismatches, proxy-upgrade swaps and out-of-gas half-states all depend on execution, and there is none here.

  3. 03

    A transition that cannot be proved does not happen.

    Failure happens on the author's machine, before anything is submitted. There are no failed transactions that still cost a fee and no half-applied state. This turns a class of safety failures into liveness failures. The rule still needs reading. A predicate that is too permissive can admit transactions its author did not intend.

  4. 04

    You write the rule. The compiler writes the circuit.

    Circuit languages such as Circom remove the machine too, but they put the author at the constraint level. A 2024 USENIX Security study of 141 real SNARK vulnerabilities found under-constrained circuits, which quietly accept what they should refuse, to be the most frequent flaw. zkFOL lets the author work at the level of the rule, and one compiler with published semantics produces the constraints, reviewed once for every application.

  5. 05

    The same rule checks and computes.

    zkFOL relations run in both directions. The predicate that checks a 9x9 sudoku also solves one from its clues. A predicate that validates a trade can also answer how much the trade returns, so the quote becomes a query against the contract itself.

  6. 06

    Review becomes reading.

    A market or a lending pool fits on one screen as a handful of inequalities. A reviewer reads the rule and checks it against intent. Everywhere else the review has to cover the contract, the compiler that produced its bytecode and the machine it runs on, once per application, every time.

Example

A constant-product market, written as its rule.

The pool holds two reserves, x and y. A trade pays in Δx of the first asset and takes out Δy of the second. This is the whole rule for a trade in that direction:

market.swap First-order notation
x > 0 ∧ y > 0 ∧ Δx > 0 ∧ Δy > 0
x′ = x + Δx ∧ y′ = y − Δy
(1000·x + 997·Δx) · (y − Δy) ≥ 1000·x·y

After a fee of three parts per thousand on the input, the product of the reserves may only grow. This is the same check Uniswap V2 makes in its swap function. The first line stops a pool with an empty reserve from being drained. On an execution platform that guard sits in initialisation code. Here it is one line anyone can read.

The mirror trade is the same three lines with the assets swapped. Deposit and withdrawal add two lines each. The UniswapV2Pair.sol contract that enforces this design on Ethereum is 201 lines of Solidity.

Ask the same rule for the largest output it allows and it returns the quote. For a pool holding 5,000 and 3,000, a trader paying 700 is quoted 367. An output of 367 is admitted. An output of 368 is refused.

Sherlock's 2026 pricing reference puts most DeFi protocol audits at $25,000 to $100,000 per engagement. Most of that spend goes on checking that code does what its authors intended. With zkFOL, the rule is the thing being checked.

Real syntax

This is what zkFOL code looks like.

The example below is taken from the zkFOL repository. It defines the Fibonacci relation once. The same definition then runs forwards (given 10, find the answer) and backwards (given 55, find which term it is).

Fib github.com/zkFOL/zkfol
defmodule Fib do
  use Zkfol.Lang

  defrel fib(1, 1)
  defrel fib(2, 1)

  defrel fib(x, v) do
    x > 2
    fib(x - 1, v1)
    fib(x - 2, v2)
    v = v1 + v2
  end
end

# Proving it backwards: finds fib(10, 55)
Zkfol.eval!(Fib.fib(), [:_, 55], [])
|> Zkfol.Query.statement()
|> Zkfol.compile()

# Proving it forwards, same witness
Zkfol.eval!(Fib.fib(), [10, :_], [])
|> Zkfol.Query.statement()
|> Zkfol.compile()

Most proof systems need the input to build the circuit. zkFOL treats inputs and outputs the same way, so either can be the unknown.

Polynomial semantics

Logic, mapped directly to arithmetic.

Most general-purpose proving systems prove a machine. They encode a program into an abstract machine whose behavior was turned into arithmetic by hand, so every step of the interpreter enters the proof. Gabbay's translation has no machine in the middle. Each logical connective maps directly to an operation on polynomials.

LogicPolynomial
True0
FalseAny strictly positive value
And, for allAddition
Or, there existsMultiplication

A statement is true when its polynomial evaluates to zero. This is why zkFOL is fast. zkVMs such as RISC Zero and SP1 pay to turn the machine into arithmetic. zkFOL has no machine to turn into arithmetic.

Performance

Two to four orders of magnitude, on one desktop CPU.

321x to 4,289x faster to prove than RISC Zero and SP1, on the same fib(10,000) claim
0.54 to 3.88 ms to verify, against 11.5 to 78.2 ms
2,090 digits of fib(10,000) proved exactly, over the integers, in 9.98 ms

Every system proves fib(10,000) mod 7919 by fast doubling, on the same AMD Ryzen 7 5700X, with CPU proving only.

SystemProve time
zkFOL11.48 ms
RISC Zero, composite3.69 s
RISC Zero, succinct14.73 s
SP1, core13.32 s
SP1, compressed49.24 s

The cheapest possible proof is a bounds check (10 ≤ x ≤ 100). zkFOL proves it in 1.53 ms. RISC Zero and SP1 take 3.70 s to 49.20 s, which is 2,418x to 32,157x longer.

zkFOL also proves the exact 2,090-digit value of fib(10,000) over the integers in 9.98 ms. RISC Zero and SP1 cannot express that claim. The same predicate that checks a 9x9 sudoku solves one from 17 clues in about 160 ms. RISC Zero and SP1 cannot express solving.

On these rows zkFOL's proofs are also smaller: 158.6 KB for doubled fib and 116.6 KB for 9x9 sudoku, against 209.6 to 223.9 KB for RISC Zero and 1.27 to 2.78 MB for SP1.

Every figure, caveat and line of benchmark code is public.

Benchmark record: github.com/mariari/zkvm-fib-bench, RESULTS.md. AMD Ryzen 7 5700X, CPU proving only. zkFOL proof sizes re-measured on zkFOL 0.6.1. Exact-integer proving is a current measured result on the present backend. It may not survive a change of proving backend, and that choice is still open.

Working demonstration

zkFOL running inside a layer one.

Modulus is a working demonstration chain. It is a fork of the Ergo reference client v6.0.5. Ergo uses an extended UTXO model, where spending conditions are already statements about state transitions and validation is already verification. That makes it a natural host for zkFOL.

On Modulus, a box can be locked by a 32-byte predicate commitment, a SHA-256 hash over the rule and its public columns, and spent with a zkFOL proof. Proofs travel in their own block section. A Rust verifier checks them deterministically, with no timeouts. ErgoScript still works alongside it.

64 commits 129 files, +12,368 / −175 lines
81 / 2 inherited consensus rules unchanged, and two new ones, rules 310 and 311
3 nodes reaching heights 838, 825 and 788

On the chain itself, a real 161,323-byte proof was relayed between nodes and mined into a block, and a node syncing from genesis then accepted it.

Away from the chain, two applications were written as predicates and checked: a constant-product market and an over-collateralized lending pool, each tested at its limits with the admitted case and the refused case one unit apart, and the trading rule checked against the exact output formula across 200,000 random cases. They were compiled and proved rather than deployed on Modulus.

Modulus shows that the stack works end to end. It is not the mainnet. Whether the final zkFOL Layer 1 is built from Modulus has not been decided.

About the "zk" in the name.

zkFOL is not private today. Proofs do not yet hide the data behind them. Privacy is being worked on, and this may change for the eventual mainnet.

Road to mainnet

A chain you can feel safe to hold assets on.

There will be a zkFOL mainnet. Its final architecture is still open. Four pieces of work stand between the demonstration and a chain that holds real value:

  1. 01

    Binding proofs to spends.

    Each proof must commit to the exact transaction it authorizes, by taking the signing message as a public input.

  2. 02

    Privacy.

    Proofs that hide the data behind them.

  3. 03

    Covenants.

    A rule that can govern the state that follows it.

  4. 04

    The proving backend.

    The current backend is a fork of Zinc, with six verifier soundness fixes applied. Other backends are under evaluation.

Developers

Run it yourself.

The compiler, the examples and the benchmark harness are public. Install Elixir and Rust, clone the repository and run the benchmark report. Reproduce every figure on this page on your own machine.