pub struct LeanEncoder<'genv, 'tcx, 'a> {
    genv: GlobalEnv<'genv, 'tcx>,
    lean_path: &'a Path,
    project_name: String,
    defs_file_name: String,
}Fields§
§genv: GlobalEnv<'genv, 'tcx>§lean_path: &'a Path§project_name: String§defs_file_name: StringImplementations§
Source§impl<'genv, 'tcx, 'a> LeanEncoder<'genv, 'tcx, 'a>
 
impl<'genv, 'tcx, 'a> LeanEncoder<'genv, 'tcx, 'a>
pub fn new( genv: GlobalEnv<'genv, 'tcx>, lean_path: &'a Path, project_name: String, defs_file_name: String, ) -> Self
fn generate_lake_project_if_not_present(&self) -> Result<(), Error>
fn generate_instance_file_if_not_present( &self, sorts: &[SortDecl], funs: &[ConstDecl], ) -> Result<(), Error>
fn generate_inferred_instance_file( &self, sorts: &[SortDecl], funs: &[ConstDecl], ) -> Result<(), Error>
fn generate_typeclass_file( &self, sorts: &[SortDecl], funs: &[ConstDecl], data_decls: &[DataDecl], ) -> Result<(), Error>
fn generate_defs_file( &self, func_defs: &[FunDef], has_opaques: bool, ) -> Result<(), Error>
fn generate_lib_file(&self) -> Result<(), Error>
pub fn encode_defs( &self, opaque_sorts: &[SortDecl], opaque_funs: &[ConstDecl], data_decls: &[DataDecl], func_defs: &[FunDef], ) -> Result<(), Error>
fn generate_theorem_file( &self, theorem_name: &str, kvars: &[KVarDecl], cstr: &Constraint, ) -> Result<(), Error>
fn generate_proof_file_if_not_present( &self, theorem_name: &str, ) -> Result<(), Error>
pub fn encode_constraint( &self, def_id: MaybeExternId, kvars: &[KVarDecl], cstr: &Constraint, ) -> Result<(), Error>
fn check_proof_help(&self, theorem_name: &str) -> Result<()>
pub fn check_proof(&self, def_id: MaybeExternId) -> QueryResult<()>
fn snake_case_to_pascal_case(snake: &str) -> String
Auto Trait Implementations§
impl<'genv, 'tcx, 'a> Freeze for LeanEncoder<'genv, 'tcx, 'a>
impl<'genv, 'tcx, 'a> !RefUnwindSafe for LeanEncoder<'genv, 'tcx, 'a>
impl<'genv, 'tcx, 'a> !Send for LeanEncoder<'genv, 'tcx, 'a>
impl<'genv, 'tcx, 'a> !Sync for LeanEncoder<'genv, 'tcx, 'a>
impl<'genv, 'tcx, 'a> Unpin for LeanEncoder<'genv, 'tcx, 'a>
impl<'genv, 'tcx, 'a> !UnwindSafe for LeanEncoder<'genv, 'tcx, 'a>
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
§impl<T> Instrument for T
 
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more