Expand description
Running proofs.
A signature is a proposition and an implementation is a proof of it. This crate is where proofs actually run: it holds the registry of what proves what, the environments those proofs run in, and the dispatcher that decides which proof answers a given call.
Everything here checks both sides of the boundary. Arguments are checked against the signature before an implementation sees them, and the result is checked against the signature before the caller does. An implementation that returns the wrong shape has failed to prove what it claimed, and that fails loudly rather than propagating.
Re-exports§
pub use conform::Answer;pub use conform::ConformError;pub use conform::Report;pub use conform::Suite;pub use conform::Vector;pub use dispatch::Considered;pub use dispatch::Dispatcher;pub use dispatch::Invocation;pub use dispatch::Options;pub use dispatch::Outcome;pub use dispatch::Policy;pub use environment::Environment;pub use environment::Reach;pub use error::DispatchError;pub use error::ExecError;pub use implementation::ImplId;pub use implementation::Implementation;pub use implementation::Manifest;pub use interpret::BoxFuture;pub use interpret::Calls;pub use interpret::NoCalls;pub use interpret::Scope;pub use interpret::eval;pub use interpret::eval_signature;pub use parametric::Law;pub use parametric::ParametricError;pub use parametric::Theorems;pub use parametric::Trial;pub use parametric::Verdict;pub use registry::Registry;pub use registry::RegistryError;pub use registry::RegistryWarning;pub use subprocess::PROTOCOL_VERSION;pub use worker::Workers;
Modules§
- conform
- Checking that the proofs of one proposition agree.
- dispatch
- Choosing which proof answers a call.
- environment
- Where code runs.
- error
- What can go wrong while running a proof.
- implementation
- A proof: something that answers a proposition.
- interpret
- Running a constructive proof.
- parametric
- Free theorems: what a generic proposition promises before any proof runs.
- registry
- What proves what, and where it runs.
- subprocess
- Reaching an environment by starting a program.
- worker
- Keeping a process alive between calls.