Unordered tuples of elements of a list #
Defines List.sym and the specialized List.sym2 for computing lists of all unordered n-tuples
from a given list. These are list versions of Nat.multichoose.
Main declarations #
- List.sym:- xs.sym nis a list of all unordered n-tuples of elements from- xs, with multiplicity. The list's values are in- Sym α n.
- List.sym2:- xs.sym2is a list of all unordered pairs of elements from- xs, with multiplicity. The list's values are in- Sym2 α.
TODO #
@[irreducible]
xs.sym n is all unordered n-tuples from the list xs in some order.
Equations
Instances For
@[irreducible]