transfer commit

This commit is contained in:
2023-02-21 18:10:39 +00:00
parent 8387df352b
commit d75add5ea3
10 changed files with 135 additions and 46 deletions

View File

@@ -1,8 +1,5 @@
mod foreign;
// mod normalize;
mod normalize;
mod partial_hash;
mod reduction_tree;
mod apply_lambda;
mod syntax_eq;
pub use foreign::ExternFn;
pub use foreign::Atom;
mod syntax_eq;

View File

@@ -95,3 +95,8 @@ fn direct_reductions(ex: Mrc<Expr>) -> impl Iterator<Item = Mrc<Expr>> {
})
}
/*
*/

View File

@@ -64,6 +64,12 @@ impl Context {
})
}
fn unify_clauses(&mut self,
left: &Mrc<[Clause]>, right: &Mrc<[Clause]>, lambdas: LambdaMap
) -> Result<Product2<Clause>, UnifError> {
if left.len() != right.len() {return Err(UnifError::Conflict)}
}
fn unify_clause(&mut self,
left: &Clause, right: &Clause, lambdas: LambdaMap
) -> Result<Product2<Clause>, UnifError> {