law all_reverse

bend-mathlib@0.8.1.0 · list.bend:1548

import bend-mathlib@0.8.1.0/list.bend as List
import Base

1548# Reversing does not change whether all elements satisfy a predicate.
1549law all_reverse:
1550  for ~a: Quant
1551  for ~A: Kind(a)
1552  for ~f: A -> Bool
1553  for xs: List<a, A>
1554  {List.all(~a, ~A, ~f, List.reverse(a, A, xs)) == List.all(~a, ~A, ~f, xs) : Bool}

Uses (5)

Used by (1)