LAWSBits.and_comm: law of bend-osdev-word64@0.1.1.0 Import: import bend-osdev-word64@0.1.1.0/LAWS_bits.bend as LAWSBits Lines 7-13 of bend-osdev-word64@0.1.1.0/LAWS_bits.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-word64@0.1.1.0/LAWS_bits.bend&start_line=7&end_line=13 import Base import bend-osdev-word64@0.1.1.0/word64.bend as W # The bits: and, or and xor commute; and + or is the sum of the values, and # so is xor + 2 and; with no bit in common (and is 0), or is the sum; not is # the subtraction from 2^64 - 1. law and_comm: for +a: W.W64 for +b: W.W64 {W.W64.and(a, b) == W.W64.and(b, a) : W.W64} Uses (4): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=U32.and https://jend.leeeet.dev/definition.txt?path=bend-osdev-u32@0.1.0.0/LAWS.bend&name=u32_and_comm https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64 https://jend.leeeet.dev/definition.txt?path=bend-osdev-word64@0.1.1.0/word64.bend&name=W64.and