~/bend-docscommunity

PROOF_gfm.bend checks

raw source on the hub · import bend-osdev-gf@0.1.2.0/PROOF_gfm.bend as PROOF_gfm

Proofs of LAWS_gfm.bend: Gfm.elt masks with the field's mask, and masking twice is masking once (bit by bit)

3 imports
import Base
import ./gfm.bend as M
import ./LAWS_gfm.bend as Laws

Definitions

def gfm_bool_and_idem source · line 7 · raw

@a:Bool -> @b:Bool -> {Bool.and(a, b) == Bool.and(a, Bool.and(a, b)) : Bool}

def gfm_word_and_idem source · line 14 · raw

@n:Nat -> @k:Word(n) -> @a:Word(n) -> {Word.and(n, k, a) == Word.and(n, k, Word.and(n, k, a)) : Word(n)}

def gfm_u32_and_idem source · line 27 · raw

@k:U32 -> @a:U32 -> {U32.and(k, a) == U32.and(k, U32.and(k, a)) : U32}