1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Standard Lean service layer for Rust applications embedding Lean 4.
//!
//! This crate is the standard service layer built on top of the typed FFI
//! crate shipped by [`lean-rs`](https://docs.rs/lean-rs). It owns:
//!
//! - The high-level [`LeanHost`] / [`LeanCapabilities`] / [`LeanSession`]
//! trio, plus the [`SessionPool`] / [`PooledSession`] reuse helper and
//! [`LeanProgressSink`] for live progress from long-running calls.
//! - The host-defined evidence / kernel-outcome / elaboration / meta
//! value types: [`LeanEvidence`], [`LeanKernelOutcome`],
//! [`ProofSummary`], [`LeanElabOptions`], [`LeanElabFailure`], the
//! `meta::*` service surface.
//! - The capability contract: 28 mandatory + 9 optional `lean_rs_host_*`
//! `@[export]` Lean shims bundled with this crate and loaded alongside the
//! consumer capability dylib.
//!
//! Downstream applications that only need to call `@[export]` Lean functions
//! with typed arguments and no shim contract
//! should depend on `lean-rs` directly and skip this crate.
/// Bounded `MetaM` service surface. Reachable only at this sub-module
/// path so callers opt in explicitly via
/// `use lean_rs_host::meta::{...};`.
pub use cratemeta;
pub use crate;
pub use crate;
pub use crate;
pub use crate;