finish proof_of_mpn_add_1_return_wit_1

This commit is contained in:
2025-06-20 16:57:26 +00:00
parent c206e4165f
commit 49848bd048
6 changed files with 103 additions and 47 deletions

View File

@ -238,8 +238,8 @@ mpn_add_1 (unsigned int *rp, unsigned int *ap, int n, unsigned int b)
Ensure
exists val',
mpd_store_Z_compact(ap@pre, val, n@pre, cap1) *
mpd_store_Z_compact(rp@pre, val', n@pre, cap2) &&
(val' + __return * (UINT_MOD ^ n@pre) == val + b@pre)
mpd_store_Z(rp@pre, val', n@pre, cap2) &&
(val' + __return * Z::pow(UINT_MOD, n@pre) == val + b@pre)
*/
{
/*@
@ -285,7 +285,8 @@ mpn_add_1 (unsigned int *rp, unsigned int *ap, int n, unsigned int b)
list_store_Z(l', val2) &&
store_uint_array(rp@pre, i, l') *
store_uint_array_rec(rp@pre, i, cap2, l'') &&
(val2 + b@pre * (UINT_MOD ^ i) == val1 + b@pre)
(val2 + b * Z::pow(UINT_MOD, i) == val1 + b@pre) &&
Zlength(l') == i
*/
while (i<n) {
/*@