Yeah but why wouldn't "x" be a type that could only represent positive integers?
There is no builtin integer type that guarantees x > 0. I agree that adding such a type (and more general, range guarantees at the type system level) would be very useful.
Have you seen the wave of recent Whatever2Shell CVEs? Several of them happened precisely because "a type that could only represent positive integers" was used for the sizes.
They really should just copy Ada rather than this whizbangery.
I would like Ada-style integer types too, but I don't strictly know how those are implemented. Are you suggesting invariants should also be given at the type level?