lean-0017: `lean_nat_mod` returned a wrong value at the small/big-nat boundary

On 64-bit systems, `lean_nat_mod` truncated when the divisor was between 2^32 and 2^64: `2^65 % (2^33+1)` returned 1 instead of 2^32+1. Root cause was the scalar/mpz line drawn at 32-bit width in `get_unsigned_int`. A route to a proof of False via kernel reduction. Pre-stable; reported and fixed the same day in nightly-2022-08-04. Would be caught by lean4lean and nanoda.

Statusfixed
Fixed in—
Subsystemkernel
Guarantee broken
kernel-soundness
Mechanism
kernel-internal
Symptomproves-False
Severityunsoundness
Fools
kernel
Discovery
user-report
Features
arithmeticgmp
References