fact: Definition scalq '(n, d) := sgr d * (gcdn `|n| `|d|)%:Z.
imports: HB(structures) mathcomp(ssreflect ssrfun ssrbool eqtype ssrnat seq choice) mathcomp(fintype bigop order ssralg countalg div ssrnum) mathcomp(ssrint prime archimedean)