Skip to main content

olean_export/
lib.rs

1//! Read Lean 4 `.olean` files directly and emit the lean4export stream, as NDJSON or in a
2//! compact binary form (blean), without starting Lean.
3#![allow(
4    clippy::missing_errors_doc,
5    clippy::redundant_pub_crate,
6    clippy::too_many_lines,
7    clippy::missing_panics_doc,
8    clippy::module_name_repetitions,
9    clippy::similar_names,
10    clippy::many_single_char_names
11)]
12
13pub mod accepted;
14pub mod blean;
15pub mod compare;
16mod env;
17mod error;
18mod export;
19pub mod info;
20mod inspect;
21pub mod join;
22pub mod key;
23pub mod ndjson;
24mod olean;
25pub mod record;
26pub mod statement;
27
28pub use compare::{compare, Diff};
29pub use env::{
30    resolve, search_path, Binder, Body, Const, Ctor, Defn, Env, Expr, ExprId, Exprs, Hints, Id,
31    Inductive, Kind, LetNode, Level, LevelId, Name, NameId, QuotKind, Rec, Reload, Rule, Table,
32    Theorem, Univs, UnivsId, ANON, ZERO,
33};
34pub use error::{Error, Result};
35pub use export::{Exporter, Mark};
36pub use info::Info;
37pub use inspect::{Decl, Import, Section, Summary};
38pub use olean::{Header, SUPPORTED};
39pub use record::{Counts, Record, Sink};