Skip to content

Commit

Permalink
HolSmt: convert test cases to use reals instead of nums
Browse files Browse the repository at this point in the history
These test cases were almost surely intended to test the reals, since
they are in the `reals` section and identical test cases covering the
nums already exist in the `nums` section.

Since cvc5 and Z3 can reason about the reals (unlike the nums,
currently) we can enable them for these tests. This includes Z3 with
proof reconstruction.
  • Loading branch information
someplaceguy authored and mn200 committed Jan 28, 2024
1 parent b3f5dd3 commit a423628
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/HolSmt/selftest.sml
Expand Up @@ -548,10 +548,10 @@ in
(``(x:real) < x``, [sat_CVC, sat_YO, sat_Z3, sat_Z3p]),
(``(x:real) < y ==> 42 * x < 42 * y``, [thm_AUTO, thm_CVC, thm_YO, thm_Z3, thm_Z3p]),

(``0n <= 1n``, [thm_AUTO, thm_YO]),
(``1n <= 0n``, [sat_CVC, sat_YO, sat_Z3, sat_Z3p]),
(``(x:num) <= x``, [thm_AUTO, thm_YO]),
(``(x:num) <= y ==> 2 * x <= 2 * y``, [thm_AUTO, thm_YO]),
(``0r <= 1r``, [thm_AUTO, thm_CVC, thm_YO, thm_Z3, thm_Z3p]),
(``1r <= 0r``, [sat_CVC, sat_YO, sat_Z3, sat_Z3p]),
(``(x:real) <= x``, [thm_AUTO, thm_CVC, thm_YO, thm_Z3, thm_Z3p]),
(``(x:real) <= y ==> 42 * x <= 42 * y``, [thm_AUTO, thm_CVC, thm_YO, thm_Z3, thm_Z3p]),

(``1r > 0r``, [thm_AUTO, thm_CVC, thm_YO, thm_Z3, thm_Z3p]),
(``0r > 1r``, [sat_CVC, sat_YO, sat_Z3, sat_Z3p]),
Expand Down

0 comments on commit a423628

Please sign in to comment.