def conv_lea21
bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/curve25519/mulw.bend:81
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/mulw.bend as Mulw
import Base
import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/field.bend as F
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/logic.bend as L
import bend-collections-laws-crypto@1.0.0.0/proofs/lib/word.bend as WD
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/limbs.bend as LM
import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/poly.bend as PL
81def conv_lea21(+one: Nat, +h1: {one == 1n : Nat}, +a: List<&2, U32>, +b: List<&2, U32>, +ha: {LM.okb(32n, a, 255n) == True{} : Bool}, +hb: {LM.okb(32n, b, 255n) == True{} : Bool}) -> {LM.lea(F.conv(a, b), WD.sc(21n, one)) == True{} : Bool}:
82 +s8 = WD.sc(8n, one)
83 +e = PL.conv_lea(one, h1, a, b, s8, s8, lea8(one, h1, a, ha), lea8(one, h1, b, hb), conv_hc(one, h1, a, ha))
84 L.subst(Nat, z => {LM.lea(F.conv(a, b), z) == True{} : Bool}, PL.cb(a, Nat.mul(s8, s8)), WD.sc(21n, one), cb32(one, h1, a, 255n, ha), e)