fix(frontends/lean/pp): missing parenthesis around nested forall/exists

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
This commit is contained in:
Leonardo de Moura 2013-12-27 12:13:36 -08:00
parent f18360a294
commit a02c6e70fa

View file

@ -436,7 +436,7 @@ class pp_fn {
return g_eq_precedence;
} else if (is_arrow(e)) {
return g_arrow_precedence;
} else if (is_lambda(e) || is_pi(e) || is_let(e)) {
} else if (is_lambda(e) || is_pi(e) || is_let(e) || is_forall(e) || is_exists(e)) {
return 0;
} else {
return g_app_precedence;