LAWS.bc_sym: law of bendtorch@1.3.0.0 Import: import bendtorch@1.3.0.0/LAWS.bend as LAWS Lines 262-268 of bendtorch@1.3.0.0/LAWS.bend: https://jend.leeeet.dev/read.txt?path=bendtorch@1.3.0.0/LAWS.bend&start_line=262&end_line=268 import Base import bendtorch@1.3.0.0/tensor.bend as TT # LAW (bc_sym): broadcasting does not depend on the order of the operands: a and b broadcast to o exactly when b and a # do, so x + y and y + x (and x * y, y * x) accept the same shapes. law bc_sym: for +a: List<&2, Nat> for +b: List<&2, Nat> for +o: List<&2, Nat> {TT.bc_ok(a, b, o) == TT.bc_ok(b, a, o) : Bool} Uses (11): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/PROOF.bend&name=and_cong https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/PROOF.bend&name=bc_eq_sym https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/PROOF.bend&name=bc_rank_sym https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/tensor.bend&name=bc_eq https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/tensor.bend&name=bc_ok https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/tensor.bend&name=bc_rank https://jend.leeeet.dev/definition.txt?path=bendtorch@1.3.0.0/tensor.bend&name=pad