def or_comm

bendtorch@1.3.0.0 · PROOF.bend:881

import bendtorch@1.3.0.0/PROOF.bend as PROOF
import Base

881# a || b == b || a, and a && b == b && a: every case computes
882def or_comm(+a: Bool, +b: Bool) -> {Bool.or(a, b) == Bool.or(b, a) : Bool}:
883  match a b:
884    case True{} True{}:
885      {==}
886    case True{} False{}:
887      {==}
888    case False{} True{}:
889      {==}
890    case False{} False{}:
891      {==}

Uses (2)

Used by (2)