lolli-core 0.2.0

Core data structures for the Lolli linear logic workbench
Documentation
  • Coverage
  • 100%
    97 out of 97 items documented0 out of 36 items with examples
  • Size
  • Source code size: 36.9 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 812.57 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 12s Average build duration of successful builds.
  • all releases: 14s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • ibrahimcesar/lolli
    3 0 20
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • ibrahimcesar

lolli-core

Core data structures for the Lolli linear logic workbench.

This crate provides the fundamental types for working with linear logic:

  • Formula - Linear logic formula representation (⊗, ⅋, ⊸, &, ⊕, !, ?, etc.)
  • Sequent - Sequent representation for proof search
  • Proof - Proof tree data structures
  • Term - Lambda terms extracted from proofs

Usage

use lolli_core::{Formula, Sequent};

// Create a linear implication: A ⊸ B
let formula = Formula::Lolli(
    Box::new(Formula::Atom("A".into())),
    Box::new(Formula::Atom("B".into())),
);

println!("{}", formula.pretty()); // (A ⊸ B)

Part of Lolli

This is part of the Lolli linear logic workbench - a toolkit for parsing, proving, extracting, and compiling linear logic formulas to Rust.

License

MIT