def clamp_top_eq

bend-collections-laws-crypto@1.0.0.0 · proofs/crypto/curve25519/xbits.bend:82

import bend-collections-laws-crypto@1.0.0.0/proofs/crypto/curve25519/xbits.bend as Xbits
import Base
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/curve25519/x25519.bend as S
import bend-collections-laws-crypto@1.0.0.0/src/crypto/curve25519/x25519.bend as X

82def clamp_top_eq(+xs: List<&2, U32>) -> {X.clamp_top(xs) == S.clamp_last(xs) : List<&2, U32>}:
83  match xs:
84    case Nil{}:
85      {==}
86    case Con{+x, +xt}:
87      match xt:
88        case Nil{}:
89          {==}
90        case Con{+y, +yt}:
91          Equal.cong(List<&2, U32>, List<&2, U32>, z => Con{x, z}, X.clamp_top(Con{y, yt}), S.clamp_last(Con{y, yt}), clamp_top_eq(Con{y, yt}))

Uses (5)

Used by (1)