Library HoTT_Tests.Spaces.Int

From HoTT Require Import Basics Spaces.Int Spaces.SInt.

Test the conversion functions between Int and SInt.
Test the reduction function for Int.
Arithmetic does not generally produce a term in normal form, so 3 - 2 is not definitionally 1. Reducing first makes the two sides agree.
Definition test14 : int_reduce (3 - 2) = 1%int := idpath.

Since Int has decidable equality, such facts can also be proved automatically.
Definition test15 : (3 - 2)%int = 1%int := ltac:(decide).