PROOF.bf_op_unop: def of bend-osdev-blowfish@0.1.0.0 Import: import bend-osdev-blowfish@0.1.0.0/PROOF.bend as PROOF Lines 26-39 of bend-osdev-blowfish@0.1.0.0/PROOF.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-blowfish@0.1.0.0/PROOF.bend&start_line=26&end_line=39 import Base import bend-osdev-cipher-core@0.1.0.0/cipher_core.bend as L import bend-osdev-cipher-core@0.1.0.0/LAWS.bend as CoreL import bend-osdev-blowfish@0.1.0.0/blowfish.bend as BF def bf_op_unop(o: BF.LcBfOp, b: L.LcBlock64) -> {b == BF.bf.op(o, BF.bf.unop(o, b)) : L.LcBlock64}: match o: case BF.LcBfRound{+p, +t}: match b: case L.LcBlock64{+x, +y}: %CoreL.u32_xor_cancel(y, p) : {L.LcBlock64{x, y} == L.LcBlock64{U32.xor(U32.xor(x, BF.bf.f(t, y)), BF.bf.f(t, _)), _} : L.LcBlock64} %CoreL.u32_xor_cancel(x, BF.bf.f(t, y)) : {L.LcBlock64{x, y} == L.LcBlock64{_, y} : L.LcBlock64} {==} case BF.LcBfFinal{+p17, +p18}: match b: case L.LcBlock64{+x, +y}: %CoreL.u32_xor_cancel(x, p18) : {L.LcBlock64{x, y} == L.LcBlock64{_, U32.xor(U32.xor(y, p17), p17)} : L.LcBlock64} %CoreL.u32_xor_cancel(y, p17) : {L.LcBlock64{x, y} == L.LcBlock64{x, _} : L.LcBlock64} {==} Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.xor https://jend.leeeet.dev/definition.txt?path=bend-osdev-blowfish@0.1.0.0/blowfish.bend&name=LcBfOp https://jend.leeeet.dev/definition.txt?path=bend-osdev-blowfish@0.1.0.0/blowfish.bend&name=bf.f https://jend.leeeet.dev/definition.txt?path=bend-osdev-blowfish@0.1.0.0/blowfish.bend&name=bf.op https://jend.leeeet.dev/definition.txt?path=bend-osdev-blowfish@0.1.0.0/blowfish.bend&name=bf.unop https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/LAWS.bend&name=u32_xor_cancel https://jend.leeeet.dev/definition.txt?path=bend-osdev-cipher-core@0.1.0.0/cipher_core.bend&name=LcBlock64