pub struct Lean4;Expand description
Marker for the Lean 4 backend.
Implementations§
Source§impl Lean4
impl Lean4
Sourcepub fn export_module(module_name: &str, obligations: &[Obligation]) -> String
pub fn export_module(module_name: &str, obligations: &[Obligation]) -> String
Export a list of obligations as a Lean 4 module skeleton.
Sourcepub fn export_module_with_prelude(
module_name: &str,
obligations: &[Obligation],
prelude: LeanPrelude,
) -> String
pub fn export_module_with_prelude( module_name: &str, obligations: &[Obligation], prelude: LeanPrelude, ) -> String
Export a list of obligations as a Lean 4 module skeleton with explicit prelude metadata.
Sourcepub fn export(module_name: &str, obligations: &[Obligation]) -> LeanExport
pub fn export(module_name: &str, obligations: &[Obligation]) -> LeanExport
Export a list of obligations as structured Lean metadata plus source.
Sourcepub fn export_with_prelude(
module_name: &str,
obligations: &[Obligation],
prelude: LeanPrelude,
) -> LeanExport
pub fn export_with_prelude( module_name: &str, obligations: &[Obligation], prelude: LeanPrelude, ) -> LeanExport
Export a list of obligations as structured Lean metadata plus source with explicit prelude metadata.
Sourcepub fn export_bundle(module_name: &str, bundle: &ObligationBundle) -> String
pub fn export_bundle(module_name: &str, bundle: &ObligationBundle) -> String
Export a bundle of obligations as a Lean 4 module skeleton.
Sourcepub fn export_bundle_structured(
module_name: &str,
bundle: &ObligationBundle,
) -> LeanExport
pub fn export_bundle_structured( module_name: &str, bundle: &ObligationBundle, ) -> LeanExport
Export a bundle of obligations as structured Lean metadata plus source.
Sourcepub fn project(export: &LeanExport) -> LeanProject
pub fn project(export: &LeanExport) -> LeanProject
Derive Lean package metadata from a structured export.
Auto Trait Implementations§
impl Freeze for Lean4
impl RefUnwindSafe for Lean4
impl Send for Lean4
impl Sync for Lean4
impl Unpin for Lean4
impl UnsafeUnpin for Lean4
impl UnwindSafe for Lean4
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more