Search by name or description, filter by tier or category. Core cards expand to the
full per-file theorem surface the directory verified.
@leansvm/agent-guard
0.3.0
core · verifiedAgentsMIT
Lean 4 money-math, rent-floor, slippage, lease, reconciliation, Solana wire-format and transaction-firewall proofs paired with a static JS/TS money-bug scanner, a pre-sign transaction firewall, and a 7-tool stdio MCP server for AI coding agents.
46 theorems46 checked0 sorry8 Lean files
toolchain leanprover/lean4:v4.36.0
8 files · 46 theorems — show the proof surface
AgentGuard/Firewall.lean 7 theoremsAgentGuard.Firewall.durable_nonce_with_admin_blockedAgentGuard.Firewall.unknown_discriminant_blockedAgentGuard.Firewall.unlisted_program_blockedAgentGuard.Firewall.authority_operations_blockedAgentGuard.Firewall.allowed_outflow_within_capAgentGuard.Firewall.allowed_debit_within_capAgentGuard.Firewall.adding_instructions_never_unblocks
AgentGuard/Lease.lean 5 theoremsAgentGuard.Lease.lease_lock_monotonicAgentGuard.Lease.lease_prevents_concurrent_acquireAgentGuard.Lease.lease_reacquirable_after_expiryAgentGuard.Lease.intent_before_sign_uniqueAgentGuard.Lease.intent_settle_preserves_settled
AgentGuard/MoneyMath.lean 12 theoremsAgentGuard.MoneyMath.floor_share_mul_leAgentGuard.MoneyMath.floor_share_le_poolAgentGuard.MoneyMath.sum_floor_shares_mul_leAgentGuard.MoneyMath.sum_floor_shares_le_poolAgentGuard.MoneyMath.lamport_split_conservedAgentGuard.MoneyMath.carry_bounded_by_poolAgentGuard.MoneyMath.bps_fee_boundedAgentGuard.MoneyMath.bps_fee_plus_netAgentGuard.MoneyMath.bps_fee_zeroAgentGuard.MoneyMath.bps_fee_fullAgentGuard.MoneyMath.reserve_floor_preservedAgentGuard.MoneyMath.reserve_withdrawal_conserved
AgentGuard/Reconciliation.lean 5 theoremsAgentGuard.Reconciliation.books_balance_exactAgentGuard.Reconciliation.payer_own_sol_preservedAgentGuard.Reconciliation.zero_paid_keeps_full_carryAgentGuard.Reconciliation.incremental_payout_preserves_booksAgentGuard.Reconciliation.derived_carry_le_distributable
AgentGuard/Slippage.lean 6 theoremsAgentGuard.Slippage.abs_diff_selfAgentGuard.Slippage.abs_diff_symmAgentGuard.Slippage.slippage_equal_prices_acceptedAgentGuard.Slippage.slippage_guard_soundAgentGuard.Slippage.slippage_guard_rejects_excessAgentGuard.Slippage.slippage_guard_rejects_zero_pool
AgentGuard/Transaction.lean 7 theoremsAgentGuard.Transaction.payout_meets_rent_floorAgentGuard.Transaction.tx_cap_enforcedAgentGuard.Transaction.allowlist_program_permittedAgentGuard.Transaction.withdraw_destination_lockedAgentGuard.Transaction.tx_policy_all_safeAgentGuard.Transaction.tx_policy_rejects_below_rentAgentGuard.Transaction.tx_policy_rejects_over_cap
AgentGuard/WireFormat.lean 4 theoremsAgentGuard.WireFormat.compact_u16_roundtripAgentGuard.WireFormat.compact_u16_canonicalAgentGuard.WireFormat.message_version_dispatch_soundAgentGuard.WireFormat.alt_index_bounds_sound
AgentGuard.lean 0 theorems
github.com/Solizardking/lean-directory/tree/main/packages/agent-guard ↗
@leansvm/amm-math
0.1.0
core · verifiedDeFi / AMMMIT
Lean 4 AMM maths pinned to Raydium CP-Swap and CLMM: k never decreases, swap, LP and CLMM step rounding favour the pool, checked arithmetic matches the spec, and tick prices are bounded with verbatim constants.
25 theorems25 checked0 sorry5 Lean files
toolchain leanprover/lean4:v4.36.0
5 files · 25 theorems — show the proof surface
AmmMath/ClmmStep.lean 4 theoremsAmmMath.ClmmStep.swap_step_amount_in_rounds_upAmmMath.ClmmStep.swap_step_amount_out_rounds_downAmmMath.ClmmStep.swap_step_next_sqrt_price_favors_poolAmmMath.ClmmStep.swap_step_input_within_budget
AmmMath/ConstantProduct.lean 14 theoremsAmmMath.ConstantProduct.swap_out_lt_reserveAmmMath.ConstantProduct.swap_out_rounds_downAmmMath.ConstantProduct.swap_k_nondecreasingAmmMath.ConstantProduct.swap_roundtrip_no_free_valueAmmMath.ConstantProduct.swap_exact_out_input_rounds_upAmmMath.ConstantProduct.swap_exact_out_k_nondecreasingAmmMath.ConstantProduct.swap_exact_out_covers_targetAmmMath.ConstantProduct.lp_deposit_rounds_upAmmMath.ConstantProduct.lp_withdraw_rounds_downAmmMath.ConstantProduct.lp_deposit_share_value_nondecreasingAmmMath.ConstantProduct.lp_withdraw_share_value_nondecreasingAmmMath.ConstantProduct.lp_deposit_then_withdraw_no_profitAmmMath.ConstantProduct.swap_out_checked_soundAmmMath.ConstantProduct.swap_out_checked_total
AmmMath/SqrtPrice.lean 4 theoremsAmmMath.SqrtPrice.amount0_delta_checked_exactAmmMath.SqrtPrice.amount1_delta_checked_exactAmmMath.SqrtPrice.add_then_remove_liquidity_no_profitAmmMath.SqrtPrice.split_range_payout_le_unsplit
AmmMath/TickMath.lean 3 theoremsAmmMath.TickMath.sqrt_price_at_extreme_ticksAmmMath.TickMath.sqrt_price_at_tick_well_definedAmmMath.TickMath.tick_factor_steps_monotone
AmmMath.lean 0 theorems
github.com/Solizardking/lean-directory/tree/main/packages/amm-math ↗
@leansvm/borsh-lean
0.2.0
core · verifiedSerializationMIT
Formal Borsh and Solana binary serialization library in Lean 4 proving little-endian integer roundtrips, 36-byte COption<Pubkey>, Anchor discriminators, and bounded BorshVec layouts.
25 theorems25 checked0 sorry3 Lean files
toolchain leanprover/lean4:v4.36.0
3 files · 25 theorems — show the proof surface
BorshLean/Primitives.lean 14 theoremsBorshLean.Primitives.u8_lenBorshLean.Primitives.u16_lenBorshLean.Primitives.u32_lenBorshLean.Primitives.u64_lenBorshLean.Primitives.bool_lenBorshLean.Primitives.u8_roundtripBorshLean.Primitives.u16_roundtripBorshLean.Primitives.u32_roundtripBorshLean.Primitives.u64_roundtripBorshLean.Primitives.bool_roundtripBorshLean.Primitives.bool_rejects_invalid_tagBorshLean.Primitives.u16_rejects_shortBorshLean.Primitives.u32_rejects_shortBorshLean.Primitives.u64_rejects_short
BorshLean/Solana.lean 11 theoremsBorshLean.Solana.coption_none_lenBorshLean.Solana.coption_some_lenBorshLean.Solana.coption_roundtripBorshLean.Solana.coption_rejects_bad_tagBorshLean.Solana.coption_rejects_shortBorshLean.Solana.discriminator_match_soundBorshLean.Solana.discriminator_match_prefixBorshLean.Solana.discriminator_rejects_shortBorshLean.Solana.borsh_vec_len_exactBorshLean.Solana.borsh_vec_roundtripBorshLean.Solana.borsh_vec_rejects_over_bound
BorshLean.lean 0 theorems
github.com/Solizardking/lean-directory/tree/main/packages/borsh-lean ↗
@leansvm/mint-proof
0.3.0
core · verifiedTokensMIT
Decodes SPL Token and Token-2022 mints (TLV extensions with payloads, transfer-fee schedules), pump.fun bonding curves and fee-sharing configs bound to their canonical PDA, and emits standalone Lean 4 certificates.
37 theorems37 checked0 sorry6 Lean files
toolchain leanprover/lean4:v4.36.0
6 files · 37 theorems — show the proof surface
MintProof/Curve.lean 6 theoremsMintProof.curve_complete_iffMintProof.curve_decoded_layout_validMintProof.curve_active_has_reservesMintProof.curve_supply_positive_validMintProof.curve_graduated_no_bonding_tradesMintProof.curve_safe_sound
MintProof/Extensions.lean 7 theoremsMintProof.no_dangerous_extensions_iffMintProof.permanent_delegate_unsafeMintProof.transfer_hook_flaggedMintProof.transfer_fee_unsafeMintProof.default_account_state_unsafeMintProof.unknown_extension_blocks_clean_classificationMintProof.strict_token2022_safety_sound
MintProof/Layout.lean 1 theoremsMintProof/Safety.lean 16 theoremsMintProof.mint_authority_revoked_iffMintProof.freeze_authority_revoked_iffMintProof.mint_authority_revokedMintProof.freeze_authority_revokedMintProof.mint_initialized_validMintProof.safe_mint_implies_fixed_supplyMintProof.fee_shares_valid_sumMintProof.shareholder_bps_le_totalMintProof.fee_shares_sum_valid_boundedMintProof.fee_admin_lockedMintProof.fee_admin_locked_immutableMintProof.empty_shares_sum_zeroMintProof.single_shareholder_full_bpsMintProof.mint_safety_soundMintProof.combined_launch_safetyMintProof.fee_config_binding_sound
MintProof/TransferFee.lean 7 theoremsMintProof.transfer_fee_config_payload_sizeMintProof.transfer_fee_boundedMintProof.transfer_net_plus_fee_exactMintProof.scheduled_fee_detectedMintProof.fee_authority_revoked_immutableMintProof.set_transfer_fee_delayed_two_epochsMintProof.transfer_fee_safe_sound
MintProof.lean 0 theorems
github.com/Solizardking/lean-directory/tree/main/packages/mint-proof ↗
@leansvm/share-math
0.1.0
core · verifiedVaultsMIT
Lean 4 vault share math with virtual offsets: rounding favours the vault on all four operations, share price never falls over any trace, zero-share deposits are rejected, and a single-victim first-depositor attack is unprofitable.
17 theorems17 checked0 sorry6 Lean files
toolchain leanprover/lean4:v4.36.0
6 files · 17 theorems — show the proof surface
ShareMath/Conversion.lean 9 theoremsShareMath.deposit_then_redeem_no_profitShareMath.mint_ceil_ge_deposit_assetsShareMath.withdraw_burns_at_least_redeem_sharesShareMath.zero_share_deposit_rejectedShareMath.deposit_share_price_nondecreasingShareMath.mint_share_price_nondecreasingShareMath.withdraw_share_price_nondecreasingShareMath.redeem_share_price_nondecreasingShareMath.deposit_loss_lt_one_share
ShareMath/Inflation.lean 3 theoremsShareMath.first_depositor_attack_no_profitShareMath.multi_victim_zero_share_rejected_no_profitShareMath.zero_offset_inflation_attack_witness
ShareMath/MulDiv.lean 2 theoremsShareMath.mulDivFloorChecked_soundShareMath.mulDivCeilChecked_sound
ShareMath/StakePool.lean 0 theorems
ShareMath/Traces.lean 3 theoremsShareMath.trace_preserves_share_priceShareMath.trace_preserves_ratio_invariantShareMath.redeem_le_total_assets_reachable
ShareMath.lean 0 theorems
github.com/Solizardking/lean-directory/tree/main/packages/share-math ↗
@leansvm/svm-model
0.2.0
core · verifiedSVM modelMIT
Formal Solana Virtual Machine (SVM) account, rent-exemption, owner-only debit/write, readonly/executable immutability, CPI privilege non-escalation, and multi-ix lamport conservation proofs.
24 theorems24 checked0 sorry4 Lean files
toolchain leanprover/lean4:v4.36.0
4 files · 24 theorems — show the proof surface
SvmModel/Account.lean 5 theoremsSvmModel.Account.rent_exempt_zero_bytes_exactSvmModel.Account.rent_exempt_spl_mint_exactSvmModel.Account.rent_exempt_spl_token_account_exactSvmModel.Account.rent_exempt_monotonicSvmModel.Account.rent_exempt_positive
SvmModel/Execution.lean 14 theoremsSvmModel.Execution.transfer_conserves_lamportsSvmModel.Execution.transfer_requires_ownerSvmModel.Execution.transfer_requires_signerSvmModel.Execution.transfer_requires_writableSvmModel.Execution.transfer_rejects_overdraftSvmModel.Execution.transfer_rejects_executableSvmModel.Execution.non_owner_cannot_mutate_dataSvmModel.Execution.readonly_account_immutableSvmModel.Execution.executable_account_immutableSvmModel.Execution.mutate_data_preserves_lamportsSvmModel.Execution.cpi_no_signer_escalationSvmModel.Execution.cpi_no_writable_escalationSvmModel.Execution.runIx_conserves_total_lamportsSvmModel.Execution.batch_conserves_total_lamports
SvmModel/Transfer.lean 5 theoremsSvmModel.Transfer.transferLamports_refinesSvmModel.Transfer.transferLamports_of_modelSvmModel.Transfer.transferLamports_conservesSvmModel.Transfer.transferLamports_rejects_selfSvmModel.Transfer.transferLamports_rejects_overflow
SvmModel.lean 0 theorems
github.com/Solizardking/lean-directory/tree/main/packages/svm-model ↗
@leansvm/vault-specs
0.2.0
core · verifiedVaultsMIT
Machine-checked Lean 4 specifications for Solana TokenVault, FeeSplitter, Escrow, TimeLockVault, and multi-step Traces with Anchor templates and 6 verified exploit rejections.
28 theorems28 checked0 sorry6 Lean files
toolchain leanprover/lean4:v4.36.0
6 files · 28 theorems — show the proof surface
VaultSpecs/Escrow.lean 6 theoremsVaultSpecs.Escrow.settle_conserves_valueVaultSpecs.Escrow.cancel_refunds_maker_onlyVaultSpecs.Escrow.cancel_conserves_valueVaultSpecs.Escrow.no_double_settleVaultSpecs.Escrow.no_settle_after_cancelVaultSpecs.Escrow.no_cancel_after_settle
VaultSpecs/FeeSplitter.lean 6 theoremsVaultSpecs.FeeSplitter.split_bps_sum_validVaultSpecs.FeeSplitter.split_never_overpaysVaultSpecs.FeeSplitter.split_conserves_lamportsVaultSpecs.FeeSplitter.zero_pool_noopVaultSpecs.FeeSplitter.split_empties_poolVaultSpecs.FeeSplitter.split_multi_round_conserves_lamports
VaultSpecs/TimeLockVault.lean 6 theoremsVaultSpecs.TimeLockVault.no_claim_before_cliffVaultSpecs.TimeLockVault.vested_bounded_by_totalVaultSpecs.TimeLockVault.claim_requires_beneficiaryVaultSpecs.TimeLockVault.claimed_never_exceeds_vestedVaultSpecs.TimeLockVault.full_vest_at_end_slotVaultSpecs.TimeLockVault.claim_preserves_schedule
VaultSpecs/TokenVault.lean 6 theoremsVaultSpecs.TokenVault.withdraw_requires_authorityVaultSpecs.TokenVault.withdraw_conserves_totalVaultSpecs.TokenVault.deposit_preserves_authorityVaultSpecs.TokenVault.locked_vault_blocks_withdrawVaultSpecs.TokenVault.withdraw_never_overdrawsVaultSpecs.TokenVault.deposit_then_withdraw_roundtrip
VaultSpecs/Traces.lean 4 theoremsVaultSpecs.Traces.vault_trace_preserves_authorityVaultSpecs.Traces.vault_trace_conserves_solvencyVaultSpecs.Traces.vault_trace_lock_is_permanentVaultSpecs.Traces.vault_trace_total_withdrawn_le_deposited
VaultSpecs.lean 0 theorems
github.com/Solizardking/lean-directory/tree/main/packages/vault-specs ↗
solana-foundation/leanprover-solanalib
main
ecosystem · indexedSVM modelApache-2.0★ 10
Lean 4 toolbox from the solana-foundation GitHub org, modeling Solana runtime concepts, accounts, and SDK primitives.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain leanprover/lean4:v4.34.0
github.com/solana-foundation/leanprover-solanalib ↗
AeneasVerif/aeneas
main
ecosystem · indexedRust → Lean bridgeApache-2.0★ 1330
Rust-to-Lean 4 verification toolchain translating safe Rust (via Charon LLBC) into pure functional Lean 4 models.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain lean4-backend
github.com/AeneasVerif/aeneas ↗
AeneasVerif/charon
main
ecosystem · indexedRust → Lean bridgeApache-2.0★ 503
Extracts Rust crates into Low-Level Borrow Calculus (LLBC) ASTs for downstream Lean 4 translation with Aeneas.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain aeneas-frontend
github.com/AeneasVerif/charon ↗
Certora/lusterna
main
ecosystem · indexedRust → Lean bridgeMIT★ 11
Certora's Rust-to-Lean formal verification harness orchestrating Charon, Aeneas, and Lean 4 proof generation.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain charon+aeneas+lean4
github.com/Certora/lusterna ↗
QEDGen/qedsvm
main
ecosystem · indexedSVM modelMIT★ 21
Lean 4 reference model of the Solana Virtual Machine for executing and verifying compiled sBPF programs.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain leanprover/lean4:v4.30.0
github.com/QEDGen/qedsvm ↗
QEDGen/solana-skills
main
ecosystem · indexedAgentsMIT★ 71
Specification, property testing, Kani, and Lean 4 verification workflows for Anchor, Quasar, and Pinocchio programs.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain lean4+kani
github.com/QEDGen/solana-skills ↗
MidTermDev/lean-Solana-client
main
ecosystem · indexedSVM modelMIT★ 20
Open-source Solana validator client and gossip node written in Lean 4 with kernel-checked bounds safety.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain leanprover/lean4:v4.36.0
github.com/MidTermDev/lean-Solana-client ↗
MidTermDev/lean-solana-kit
main
ecosystem · indexedSVM modelApache-2.0★ 0
Write Solana programs in Lean and prove them: proven building blocks, the lsk CLI (new, build, test, prove, deploy, verify) and automatic proofs that the compiled sBPF refines the Lean source for programs within the prover's reach.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain leanprover/lean4:v4.36.0
github.com/MidTermDev/lean-solana-kit ↗
dennj/solana-lean
master
ecosystem · indexedSVM modelApache-2.0★ 4
Modified Lean 4 compiler targeting Solana SBF and WebAssembly directly from verified Lean code.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain custom-stage1
github.com/dennj/solana-lean ↗
Beneficial-AI-Foundation/curve25519-dalek-lean-verify
master
ecosystem · indexedCryptographyApache-2.0★ 14
Formal verification of Rust's curve25519-dalek (Solana's Ed25519 signature curve) using Aeneas and Lean 4.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain leanprover/lean4:v4.31.0· uses Mathlib
github.com/Beneficial-AI-Foundation/curve25519-dalek-lean-verify ↗
Verified-zkEVM/VCVio
main
ecosystem · indexedCryptographyApache-2.0★ 184
Lean 4.36.0 library for machine-checked cryptographic protocol proofs via oracle game-hopping.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain leanprover/lean4:v4.36.0· uses Mathlib
github.com/Verified-zkEVM/VCVio ↗
reilabs/proven-zk
main
ecosystem · indexedCryptographyApache-2.0★ 52
Lean 4 verification library for zero-knowledge circuits, finite field arithmetic, and Merkle tree constraints.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain leanprover/lean4:v4.29.1· uses Mathlib
github.com/reilabs/proven-zk ↗
aeyakovenko/lean-svm
main
ecosystem · indexedSVM modelApache-2.0★ 70
Compiler from Lean 4 to Solana sBPF v3: write a program in Lean, prove its invariants, and compile it to a .so with no LLVM or C runtime. Research use, not audited.
external project — indexed from its GitHub metadata; no theorem count claimed by the directory
toolchain leanprover/lean4:v4.36.0
github.com/aeyakovenko/lean-svm ↗
No projects match that filter.