Fieldpow.sq_cb: def of bend-collections-laws-crypto@1.0.0.0 Import: import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldpow.bend as Fieldpow Lines 277-282 of bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldpow.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldpow.bend&start_line=277&end_line=282 import Base import bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend as C import bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/field.bend as FS import bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/limbs.bend as L import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/bitsv.bend as BV # hv(bits of p + 1) + d + one = 2^256 with d = (c_p - 2) def sq_cb(+one: Nat, +h1: {one == 1n : Nat}) -> {Nat.add(Nat.add(BV.hv(L.cbits(L.bits(L.norm16([975n, 0n, 1n]))), one, 0n), FS.digits(one, L.norm16([975n, 0n, 1n]))), one) == C.shift(256n, one) : Nat}: +bs = L.bits(L.norm16([975n, 0n, 1n])) +hcb = BV.cb(one, bs, 0n, 0n, BV.bits01(L.norm16([975n, 0n, 1n]))) %Equal.sym(Nat, FS.digits(one, L.norm16([975n, 0n, 1n])), BV.hv(L.bits(L.norm16([975n, 0n, 1n])), one, 0n), Equal.sym(Nat, BV.hv(L.bits(L.norm16([975n, 0n, 1n])), one, 0n), FS.digits(one, L.norm16([975n, 0n, 1n])), yp_hv(one, h1))) : {Nat.add(Nat.add(BV.hv(L.cbits(L.bits(L.norm16([975n, 0n, 1n]))), one, 0n), _), one) == C.shift(256n, one) : Nat} hcb Uses (13): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/bitsv.bend&name=bits01 https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/bitsv.bend&name=cb https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/bitsv.bend&name=hv https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/proofs/crypto/secp256k1/fieldpow.bend&name=yp_hv https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/crypto/secp256k1/field.bend&name=digits https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/spec/lib/common.bend&name=shift https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/limbs.bend&name=bits https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/limbs.bend&name=cbits https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-crypto@1.0.0.0/src/crypto/secp256k1/limbs.bend&name=norm16