feat(kernel/extension_context): add auxiliary method is_def_eq
This commit is contained in:
parent
928fc3ab81
commit
1dbe4b8fb7
2 changed files with 4 additions and 0 deletions
|
@ -14,4 +14,7 @@ expr extension_context::whnf(expr const & e, constraint_seq & cs) {
|
||||||
expr extension_context::infer_type(expr const & e, constraint_seq & cs) {
|
expr extension_context::infer_type(expr const & e, constraint_seq & cs) {
|
||||||
auto p = infer_type(e); cs += p.second; return p.first;
|
auto p = infer_type(e); cs += p.second; return p.first;
|
||||||
}
|
}
|
||||||
|
bool extension_context::is_def_eq(expr const & e1, expr const & e2, delayed_justification & j, constraint_seq & cs) {
|
||||||
|
auto p = is_def_eq(e1, e2, j); cs += p.second; return p.first;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,5 +31,6 @@ public:
|
||||||
virtual name mk_fresh_name() = 0;
|
virtual name mk_fresh_name() = 0;
|
||||||
expr whnf(expr const & e, constraint_seq & cs);
|
expr whnf(expr const & e, constraint_seq & cs);
|
||||||
expr infer_type(expr const & e, constraint_seq & cs);
|
expr infer_type(expr const & e, constraint_seq & cs);
|
||||||
|
bool is_def_eq(expr const & e1, expr const & e2, delayed_justification & j, constraint_seq & cs);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue