Compare commits

...

1 Commits

Author SHA1 Message Date
Leonardo de Moura
bdc8c77132 perf: bad filter
`has_fvar(e)` is a bad filter. For example, the free variable may be a
let-variable. The kernel was timining out when checking some proof
terms produced by cutsat. Many thanks to @nomeata for finding the
issue.
2025-03-07 10:14:22 -08:00

View File

@@ -618,7 +618,6 @@ template<typename F> optional<expr> type_checker::reduce_bin_nat_pred(F const &
}
optional<expr> type_checker::reduce_nat(expr const & e) {
if (has_fvar(e)) return none_expr();
unsigned nargs = get_app_num_args(e);
if (nargs == 1) {
expr const & f = app_fn(e);