def top
import bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/poly.bend as Polyimport Base
34# The coefficient of x^(n-1) of a residue.
35def top(n: Nat, w: Word(n)) -> Bool:
36 match n w:
37 case 0n WNil{}:
38 False{}
39 case 1n WCon{b, t}:
40 b
41 case 2n+p WCon{b, t}:
42 top(1n+p, t)
Uses (5)
Used by (7)
- bend-collections-laws-crypto@1.0.0.0/spec/crypto/aes/poly:times_x
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:tx_zero
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:tx_xor
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:red_short
- bend-collections-laws-crypto@1.0.0.0/proofs/crypto/aes/gf:top_short
- …