law take_replicate_sym
import bend-mathlib@0.8.1.0/list.bend as Listimport Base
2647# Taking m from n copies of x gives min(m, n) copies of x, reversed to rewrite toward the simple side.
2648law take_replicate_sym:
2649 for -A: Data
2650 for n: Nat
2651 for m: Nat
2652 for -x: A
2653 {List.replicate(A, Nat.min(m, n), x) == List.take(&2, A, List.replicate(A, n, x), m) : List<&2, A>}
Uses (7)
Used by (0)
No other definition uses this definition.