Rounds.cancel: def of bend-collections-laws-math@1.0.0.0 Import: import bend-collections-laws-math@1.0.0.0/proofs/math/random/chacha8/rounds.bend as Rounds Lines 30-33 of bend-collections-laws-math@1.0.0.0/proofs/math/random/chacha8/rounds.bend: https://jend.leeeet.dev/read.txt?path=bend-collections-laws-math@1.0.0.0/proofs/math/random/chacha8/rounds.bend&start_line=30&end_line=33 import Base import bend-collections-laws-math@1.0.0.0/proofs/lib/u32alg.bend as A # x + c - c = x def cancel(+x: U32, +c: U32) -> {U32.sub(U32.add(x,c),c) == x : U32}: %A.comm(c,x) : {U32.sub(_,c) == x : U32} A.add_sub(c,x) Uses (5): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32 https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.add https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.sub https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/proofs/lib/u32alg.bend&name=add_sub https://jend.leeeet.dev/definition.txt?path=bend-collections-laws-math@1.0.0.0/proofs/lib/u32alg.bend&name=comm