diff --git a/src/frontends/lean/parser.cpp b/src/frontends/lean/parser.cpp index e6723a1e1..697b66d08 100644 --- a/src/frontends/lean/parser.cpp +++ b/src/frontends/lean/parser.cpp @@ -1576,7 +1576,7 @@ expr parser::parse_decimal_expr() { return num; } else { expr den = save_pos(mk_prenum(val.get_denominator()), p); - expr div = save_pos(mk_constant(get_division_name()), p); + expr div = save_pos(mk_constant(get_div_name()), p); return save_pos(lean::mk_app(div, num, den), p); } } diff --git a/src/library/constants.cpp b/src/library/constants.cpp index edc158e03..572efa273 100644 --- a/src/library/constants.cpp +++ b/src/library/constants.cpp @@ -18,7 +18,6 @@ name const * g_char_mk = nullptr; name const * g_congr = nullptr; name const * g_dite = nullptr; name const * g_div = nullptr; -name const * g_division = nullptr; name const * g_empty = nullptr; name const * g_empty_rec = nullptr; name const * g_eq = nullptr; @@ -173,7 +172,6 @@ void initialize_constants() { g_congr = new name{"congr"}; g_dite = new name{"dite"}; g_div = new name{"div"}; - g_division = new name{"division"}; g_empty = new name{"empty"}; g_empty_rec = new name{"empty", "rec"}; g_eq = new name{"eq"}; @@ -329,7 +327,6 @@ void finalize_constants() { delete g_congr; delete g_dite; delete g_div; - delete g_division; delete g_empty; delete g_empty_rec; delete g_eq; @@ -484,7 +481,6 @@ name const & get_char_mk_name() { return *g_char_mk; } name const & get_congr_name() { return *g_congr; } name const & get_dite_name() { return *g_dite; } name const & get_div_name() { return *g_div; } -name const & get_division_name() { return *g_division; } name const & get_empty_name() { return *g_empty; } name const & get_empty_rec_name() { return *g_empty_rec; } name const & get_eq_name() { return *g_eq; } diff --git a/src/library/constants.h b/src/library/constants.h index 60d0a80fe..85a89eeec 100644 --- a/src/library/constants.h +++ b/src/library/constants.h @@ -20,7 +20,6 @@ name const & get_char_mk_name(); name const & get_congr_name(); name const & get_dite_name(); name const & get_div_name(); -name const & get_division_name(); name const & get_empty_name(); name const & get_empty_rec_name(); name const & get_eq_name(); diff --git a/src/library/constants.txt b/src/library/constants.txt index c045298bc..153873db9 100644 --- a/src/library/constants.txt +++ b/src/library/constants.txt @@ -13,7 +13,6 @@ char.mk congr dite div -division empty empty.rec eq diff --git a/tests/lean/extra/print_tests.lean b/tests/lean/extra/print_tests.lean index 354e1cf51..26dc28587 100644 --- a/tests/lean/extra/print_tests.lean +++ b/tests/lean/extra/print_tests.lean @@ -4,4 +4,4 @@ print notation ∧ ∨ print notation if -print notation mod +print notation %