lthms / FreeSpec

A framework for implementing and certifying impure computations in Coq

Home Page:https://lthms.github.io/FreeSpec

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Do we treat Coq int correctly?

lthms opened this issue · comments

The Coq int type is unsigned, while on the contrary in OCaml, int is signed and there is no such thing as uint in OCaml.

Therefore, when we cast a int term to a int OCaml value, we may actually witness integer overflow somewhere.

Reported by @mbty-ssi, the following may be relevant: https://github.com/andrenth/ocaml-stdint

We were not, but this will be fixed elsewhere.