Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Coq: Boolean Comparison of Integers

Tags:

coq

The natural numbers (nat) in coq have a function beq_nat, is there a similar function for integers Z (in ZArith)?

And for the future, how can I find the answer to such questions without asking on Stackoverflow?

like image 627
Konstantin Weitz Avatar asked Oct 24 '13 18:10

Konstantin Weitz


1 Answers

There's the Z.eqb function in the standard library. Make sure to import module ZArith tp use it.

Unfortunately, I don't know of any resources for finding this besides browsing the standard library documentation...

like image 73
Arthur Azevedo De Amorim Avatar answered Oct 14 '22 22:10

Arthur Azevedo De Amorim