HOL-Theorem-Prover / HOL

Canonical sources for HOL4 theorem-proving system. Branch develop is where “mainline development” occurs; when develop passes our regression tests, master is merged forward to catch up.

Home Page:https://hol-theorem-prover.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

intLib.ARITH_PROVE raises exception `NotFound`

someplaceguy opened this issue · comments

The following expression unexpectedly raises a NotFound exception:

> intLib.ARITH_PROVE ``x (0i) + 0 % 5 = 0i``;
Exception- NotFound raised

I wouldn't expect it to prove the provided term, but usually when such procedures fail they raise a HOL_ERR exception (so I assume this is a bug?).

BTW, I forgot to mention: interestingly, if I change the 5 to a 4, then it raises a HOL_ERR exception as expected:

> intLib.ARITH_PROVE ``x (0i) + 0 % 4 = 0i``;
Exception-
   HOL_ERR
     {message =
      "Tried to prove generalised goal (generalising x 0...) but it was false",
      origin_function = "OMEGA_CONV", origin_structure = "IntDP_Munge"}
   raised