Under the hood
Aristotle compiles the provided Rust code deterministically into our proprietary Lean formal model of Rust execution (onward: the embedding). This embedding is at the level of the Rust mid-level IR (MIR), and tracks pointer provenance, applies the Tree Borrows aliasing rules to references, records which bytes are uninitialized, and covers every choice that the Rust semantics leaves implementation-specific, such as allocation addresses, NaN payloads, and allocation failures. The proofs Aristotle writes use compositional reasoning based on separation logic. Sources are verified exactly as submitted. Aristotle never edits your Rust to make it easier to analyze: it does not rewrite a function, replace it with a simpler one, or stub out a dependency. The only extra code it may add is a small separate crate that calls your library’s public API, to verify a property of one particular instantiation of generic code.Supported language and platform features
Aristotle supports safe andunsafe Rust, including references and raw pointers; Box, Vec, String
and other standard-library code; traits, dyn dispatch and closures; and raising panics and unwinding.
Input and output. Console and file reads and writes are recorded as a sequence of I/O events. An I/O
specification states which outputs are allowed after each sequence of earlier events, and a proof can show
that every output of the program is allowed.
Inline assembly is supported for 64-bit unsigned division (div), square root (sqrtss, sqrtsd),
fused multiply-add and prefetch on x86-64; prefetch performs no memory access. Other inline assembly is
rejected by default.
Solana programs are supported when built with target_os = "solana". The Solana syscalls for sysvars,
SHA-256 hashing, program-derived addresses, curve-point validation and cross-program invocation are modeled
by assumed contracts of the Solana runtime. Log output is discarded.
Undefined behavior that Aristotle detects
A successful Aristotle proof rules out:- accessing memory through a pointer without provenance, outside the allocation identified by its provenance, or after the lifetime of that allocation has ended, such as after it is freed;
- pointer arithmetic that must stay in bounds, such as
addandoffset, leaving its allocation; - misaligned loads and stores;
- accesses that violate the aliasing rules for references;
- loading a value that is invalid for its type, such as uninitialized memory read as an integer, a
boolother than 0 or 1, or an invalid enum discriminant; - invalid frees: freeing twice, through a pointer that is not the start of an allocation, or with the wrong size, alignment or kind of allocation;
- invalid unchecked arithmetic: division or remainder by zero, signed division or remainder overflow, arithmetic overflow, and out-of-range shift counts;
- reaching unreachable code.
Installation
Upload your Rust project in the web app, or have your AI assistant send it through the MCP server. To submit from the command line, see MCP & CLI. You do not need a Rust toolchain installed to submit. Aristotle verifies Cargo packages and workspaces, and Rust source files uploaded without a Cargo project. For a Cargo project, upload the workspace and package manifests, Rust sources, any existingCargo.lock, and local path dependencies. Aristotle fetches supported registry and public Git
dependencies; see Dependencies for the sources it supports. Rust files uploaded
without a Cargo.toml, one or several, can use only the standard library.
Example workflow
This example uses a fixed-capacity ring buffer in a library crate namedringbuf, with the usual Cargo
layout: Cargo.toml, Cargo.lock and src/lib.rs.
ringbuf_spec.md next to Cargo.toml:
--wait
the command returns as soon as the project exists; use aristotle list, aristotle show <project-id>
and aristotle download <project-id> to follow up later.
Before it begins proving, Aristotle turns each property into a precise formal statement. When a
property can reasonably be read more than one way, or needs a precondition you did not state,
Aristotle asks on the project page, in terms of your own functions, types and fields. It can wait up
to 15 minutes for answers, whether or not you pass --wait. With --wait at an interactive terminal,
the CLI also displays questions and accepts your answers. Otherwise, answer on the project page or
with aristotle questions <project-id>. If a necessary answer does not arrive, the affected properties
remain unverified, and the summary explains why.
When every property is proved, the summary looks like this:
push computed the write index as let tail = self.head + self.len;. The
summary then reports the failing case:
Specifying what to verify
Properties may be given in the prompt directly or in any text or Markdown file in the project directory that the prompt refers to. Write them in terms of your own functions, types, fields and variants. Useful things to state explicitly:- Which functions the properties are about. By default, Aristotle verifies the functions your properties name and the helpers they reach in the supplied code. See External crates for dependency scope and contracts. Functions your properties never reach are not verified, and the summary says so.
- Preconditions your code does not check itself: input ranges, non-empty slices, sorted inputs, invariants a caller must maintain. A property is proved for exactly the inputs its preconditions allow. If a property needs a precondition you did not state, Aristotle asks you about it or adds the precondition to the property and reports the addition.
- Panics. A proof covers what holds when a call returns. If you need a function never to panic on valid inputs, say so, as the example does.
- What “correct” means for functional properties. Freedom from undefined behavior needs no specification beyond the preconditions; functional correctness does.
Dependencies
Aristotle fetches dependencies from the following sources before building your project offline:- crates.io packages.
- Public HTTPS Git repositories on GitHub, Codeberg, and GitLab, including GitLab subgroups. Repositories that require credentials and SSH URLs are unsupported.
Cargo.lock, and all local path dependencies.
An existing lockfile must be up to date and pin Git dependencies to full commit hashes. You can use
Cargo’s branch, tag, or rev fields in manifests; the lockfile records the resolved commit. If a
lockfile is missing, Aristotle generates it during dependency preparation.
The CLI leaves files listed in .gitignore out of the upload; make sure the upload includes your
lockfile and path dependencies. Add --include-ignored to upload the ignored files too, such as a path
dependency in an ignored folder. It also uploads an ignored target/ folder, so run cargo clean first. To list
what would go up and send nothing, run the command with --dry-run in place of --wait and
--destination. Preparation reports unsupported sources or dependencies it cannot fetch
before proving starts.
External crates
By default, Aristotle verifies the supplied code needed for your properties, including supplied dependency implementations. It may offer to verify additional dependencies and continues with the default scope while awaiting your answer. Aristotle automatically reuses applicable implementation proofs for individual dependency functions. For external functions outside that scope, Aristotle reuses applicable contracts or derives them from source code. When source is unavailable, it uses documentation and how your code calls them. These contracts need no approval. The summary states the assumed behavior and every result that depends on it; these function implementations remain unverified. Obligations imposed on your code must still be proved or stated as caller preconditions. For Solana programs, Aristotle does not verify programs called through cross-program invocation, even when their source is available. Their required guarantees follow the same contract policy; caller-side setup, cleanup and callbacks remain in scope.Public Lean specifications
When a result includes public Lean specifications, the archive stores them underSpec/ and their
support modules under SepLogic/, alongside your submitted sources, the summary, and any
counterexample reproducers. The project’s Properties table lists each property’s status. To download
a reproducer, open the refuted property’s row, click the reproducer under Counterexample in its Related files, and use the download button beside the file in the code pane.
To build the public specifications locally, install Lean’s elan toolchain manager and follow the
instructions in the downloaded Spec/BUILD.md. Keep the Spec/ and SepLogic/ directories together
at their original paths. The instructions specify the Lean toolchain, pinned public dependencies,
Lake configuration, and commands for a fresh project. This build checks that the published
specifications compile; it does not rerun the proofs about your Rust implementation. Proof source
is not included in the download.
Current assumptions and limitations
Assumptions
Aristotle assumes that:- the Rust compiler front end and the translation into the embedding are faithful;
- the compiler has no bugs that affect the program, and does not optimize it based on undefined behavior that the embedding does not detect;
- glibc 2.39, the Linux kernel, and the Solana runtime behave as their assumed contracts state;
- the Lean proof checker is correct, and so is native evaluation where a proof uses it.
Functions Aristotle cannot handle yet
If a function your properties reach cannot be verified yet, the summary lists it by name under “Functions we cannot handle yet”, and the properties that depend on it are not verified. Verification continues for the other properties. Functions your properties never reach do not affect the run.Concurrency
Aristotle has limited support for reasoning about concurrent code through thread interleavings. All atomic orderings are modeled as sequentially consistent, so a proof does not establish correctness under weaker memory orderings. Thread creation throughstd::thread cannot yet be verified.
Support for synchronization between threads remains incomplete, including contended Mutex::lock
and RwLock::read/RwLock::write, condition-variable waiting (Condvar::wait), and thread parking
(thread::park).
Termination and memory leaks
Aristotle does not currently support reasoning about termination: functional postconditions describe what holds if a function returns. Aristotle also does not support reasoning about memory leaks.Liveness and complexity analysis
Aristotle does not support reasoning about liveness, deadlock freedom, or program complexity.Compiler versioning and build configuration
Aristotle currently supports a single compiler version (rustc 1.97.0-nightly from 2026-05-01), and
verifies programs as built for Linux on x86-64 with the recorded profile (release by default), features,
and flags, including overflow-checks. Note that this flag is off in the default release profile:
integer addition, subtraction, multiplication, negation and shifts that overflow wrap, and a proof covers
the wrapping behavior. Division and remainder panic in every profile when the divisor is zero or the
result overflows, as in i32::MIN / -1. To have the other operations panic on overflow too, enable
overflow-checks in the profile.
We are working on providing support for multiple compiler versions, including the Anza Solana fork and the
accompanying sBPF layout in follow-up work.
Program start and unsupported operations
main is called without the normal Rust start-up routine. The embedding uses its own allocator instead of a
custom #[global_allocator], and runs no panic hooks.
Unsupported operations include catching a panic, panic payloads that need to be dropped, resume_unwind,
defining C-variadic functions, longjmp, a main that returns Result, signal handlers, fork, and some
forms of mmap and ioctl.