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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
//! Locally nameless representation for capture-avoiding substitution
//! and alpha equivalence in Rust.
//!
//! - **Name types** for representing variables with globally unique identifiers
//! - **Bind types** for representing binding constructs (like lambda
//! abstractions)
//! - **Automatic alpha equivalence** via the `Alpha` trait (derivable)
//! - **Capture-avoiding substitution** via the `Subst` trait (derivable)
//! - **Fresh name generation** via the `FreshM` monad
//!
//! # Quick Start
//!
//! ```
//! use unbound::prelude::*;
//!
//! #[derive(Clone, Debug, Alpha, Subst)]
//! enum Expr {
//! Var(Name<Expr>),
//! Lam(Bind<Name<Expr>, Box<Expr>>),
//! App(Box<Expr>, Box<Expr>),
//! }
//! ```
// Module declarations
pub use ;
pub use Bind;
pub use ;
pub use ;
pub use Name;
pub use ;
pub use ;
/// A prelude module that re-exports commonly used items