by necunpri · 1y ago · 0 comments
If I can specify the type of my input I can ensure the verification.
+: (int<N>, int<N>) -> int<N+1> // or (int<N>, bit) as the return type
*: (int<N>, int<N>) -> int<2*N>
etc. Those are the actual types of those arithmetic operations.