Each expectation in plain English, the theorem that backs it, and the file it lives in. A promise is marked Proven only if the theorem is checked in Lean today. Anything unfinished is shown as In progress, and the things we have to trust are marked Trusted base.
ExpectationTheorem and fileStatus
Deposit and balanceYour deposit is backed one to one
Every unit of collateral in the exchange is matched by tokens in a vault controlled by the program, not by a person. If you deposit and sit idle, nobody can touch or shrink your balance.
Theoremdeposit_credited_and_vault_solventFilePercolator/Verify/Promises.lean
Proven
Deposit and balanceYou can always see exactly where your balance went
Every change to your total collateral breaks down into a list of typed, bounded events whose sum equals the change, to the last atom.
Theoremaccount_balance_ledger_exact_and_boundedFilePercolator/Verify/Promises.lean
Proven
WithdrawYou can withdraw in one transaction
Whenever your collateral minus the withdrawal still covers your initial margin, a single signed transaction withdraws it. Every withdrawal requires your signature.
Theoremwithdraw_above_im_in_one_txFilePercolator/Verify/Promises.lean
Proven
ControlNobody moves your funds or trades for you without your signature
Changes to your positions without your signature come only from a matcher you opted into, a below-maintenance liquidation, settlement in your own market, or a post-outage wind-down.
Theoremonly_you_or_your_opted_in_matcher_can_tradeFilePercolator/Verify/Promises.lean
Proven
TradingTrading cannot mint money
A trade cannot create value out of nothing.
Theoremnamed in USER_GUARANTEES.mdFileEidos round 1
Proven
TradingThe opening fee has a hard upper bound
The fee charged when you open a position has a proven upper bound.
Theoremnamed in USER_GUARANTEES.mdFileEidos round 1
Proven
Fees and fundingFees and funding are fixed, bounded, and fully routed
Trade fee, reward recipient and funding cap are frozen at market creation. All of every trade fee goes to the rewards account: nothing to insurance, nothing to an admin.
Theoremtrade_fee_and_funding_boundedFilePercolator/Verify/Promises.lean
Proven
Fees and fundingThe spread is zero-sum
Spread and funding move value between traders. They do not create or destroy it.
Theoremnamed in USER_GUARANTEES.mdFileEidos round 1
Proven
Holding a positionPrices can only move so fast
Each oracle update must advance the slot and is clamped to a maximum move. A position opened at initial margin survives clamped steps, including a four-slot blackout, without bad debt.
Theoremprice_speed_limit_and_survivalFilePercolator/Verify/Promises.lean
Proven
Cross-marginAnother market blowing up cannot hurt your healthy one
Even if a separate market wipes every shared free balance to zero, it cannot inject bad debt or auto-deleveraging into your market. Shortfalls are bounded by that market's own numbers.
Theoremcross_market_rug_isolationFilePercolator/Verify/Promises.lean
Proven
LiquidationA healthy position cannot be liquidated
You can be liquidated on a leg only when you are below maintenance margin or already bankrupt. Fees are capped, your other legs are untouched, and loss is bounded by free collateral plus that leg's locked margin.
Theoremliquidation_only_below_mm_with_capped_feeFilePercolator/Verify/Promises.lean
Proven
BankruptcyAuto-deleveraging only fires on real bankruptcy in the same market
Across the whole life of a market, ADL can trigger only on a step with an actual shortfall in that exact market, and the total haircut is bounded by that market's own pool and shortfall.
Theoremadl_only_on_own_market_bankruptcy_and_value_boundedFilePercolator/Verify/Promises.lean
Proven
WinningsWinnings are paid pro rata, with no queue jumping
If a market is in deficit, winner payouts are escrowed. Payouts round down pro rata, so early claimers cannot dilute later ones and the total never exceeds the pool.
Theoremwinnings_paid_prorata_no_queue_jumpingFilePercolator/Verify/Promises.lean
Proven
OutageIf the oracle goes stale, anyone can start a wind-down
Starting a wind-down on a stale oracle needs no permission. From there anyone can force-close, resolve, claim and withdraw within a bounded number of transactions.
Theoremop14_startWindDown_succeedsFilePercolator/Verify/Liveness.lean
Proven
OutageYou can exit a dead market in a bounded number of steps
Wind-down, forced close, resolution, claim and withdrawal complete in at most OIâ‚€ + 4 compiled transactions, and an unrelated dead market never blocks exits elsewhere.
Theoremoutage_exit_bounded_slots_and_txsFilePercolator/Verify/Promises.lean
Proven
Liquidity providersInsurance and LP shares cannot be diluted or drained
LP share counts are exact, per-share value never falls, and redemption never decreases across the whole trace. Insurance never absorbs bad debt.
Theoremlp_no_dilution_or_self_trade_drainFilePercolator/Verify/Promises.lean
Proven
RulesNo admin, and the rules never change
Market and exchange parameters are immutable once created, closed accounts cannot be revived, and every deleted admin instruction fails unconditionally.
Theoremmarket_rules_frozen_no_adminFilePercolator/Verify/Promises.lean
Proven
TransactionsEverything holds inside real Solana transactions
The promises are lifted from single instructions to atomic, signed, multi-instruction transactions.
Theoremsanitized_multiIx_preserves_promisesFilePercolator/Verify/Promises.lean
Proven
DeploymentFrozen program bytes carry the same promises
Once the upgrade authority is burned, the promises are linked to the exact frozen ELF bytes loaded by the BPF loader.
Theoremmainnet_frozen_loaderLinked_promisesFilePercolator/Verify/Composition.lean
Proven
TradingEach trade charges only that trader's own fee and collateral
The trade handler should be shown to debit exactly the fee and collateral of the trader involved, and nobody else.
Theoremper-trader fee and debit pinningFileEidos round 2
In progress
SettlementMark settlement is correct on the actual stored values
Mark settlement is proven at the math level. The remaining step is a postcondition on the stored kLong and kShort values themselves.
TheoremkLong / kShort settlement postconditionFileEidos round 2
In progress
ExitYou can close a position on your own
Today a position on a live, fresh market can need the other side to co-sign. The goal is a close you can always force unilaterally.
Theoremunilateral close livenessFileEidos round 2
In progress
CompilerLean compiles to the sBPF you run
The compiler from Lean to sBPF, and the equivalence of the produced ELF to the proved program, are trusted. Each binary is certified by a rewrite checker with no unverified rewrites.
Theoremlean-svm compiler and ELF equivalenceFilelean-svm
Trusted base
RuntimeSolana behaves as modelled
The proofs assume the Agave runtime and its syscalls behave as the verified world model says.
TheoremAgave runtime faithfulnessFileLeanSVM.Verify
Trusted base
Tokens and cryptoSPL Token and cryptography hold
SPL Token acts as specified, Ed25519 signatures cannot be forged, and SHA-256 second preimages cannot be found for the vault address.
TheoremSPL Token, Ed25519, SHA-256Fileassumption
Trusted base
OracleThe oracle is honest
The proofs enforce a speed limit on price moves. They do not prove that a price authority reports the true external price.
Theoremoracle honestyFileassumption
Trusted base