Algebra.op_four: law of bend-mathlib@0.8.1.0 Import: import bend-mathlib@0.8.1.0/algebra.bend as Algebra Lines 55-65 of bend-mathlib@0.8.1.0/algebra.bend: https://jend.leeeet.dev/read.txt?path=bend-mathlib@0.8.1.0/algebra.bend&start_line=55&end_line=65 import Base # Middle-four interchange from associativity and commutativity. law op_four: for ~A: Data for ~op: A -> A -> A for ~assoc: @x: A -> @y: A -> @z: A -> {op(op(x, y), z) == op(x, op(y, z)) : A} for ~comm: @x: A -> @y: A -> {op(x, y) == op(y, x) : A} for +a: A for +b: A for +c: A for +d: A {op(op(a, b), op(c, d)) == op(op(a, c), op(b, d)) : A} Uses (2): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Equal.sym https://jend.leeeet.dev/definition.txt?path=bend-mathlib@0.8.1.0/algebra.bend&name=op_left_comm