mathlib documentation

data.​sym

data.​sym

Symmetric powers

This file defines symmetric powers of a type. The nth symmetric power consists of homogeneous n-tuples modulo permutations by the symmetric group.

The special case of 2-tuples is called the symmetric square, which is addressed in more detail in data.sym2.

TODO: This was created as supporting material for data.sym2; it needs a fleshed-out interface.

Tags

symmetric powers

def sym  :
Type u_1Type u_1

The nth symmetric power is n-tuples up to permutation. We define it as a subtype of multiset since these are well developed in the library. We also give a definition sym.sym' in terms of vectors, and we show these are equivalent in sym.sym_equiv_sym'.

Equations
def vector.​perm.​is_setoid (α : Type u_1) (n : ) :
setoid (vector α n)

This is the list.perm setoid lifted to vector.

Equations
def sym.​sym'  :
Type u_1Type u_1

Another definition of the nth symmetric power, using vectors modulo permutations. (See sym.)

Equations
def sym.​sym_equiv_sym' (α : Type u_1) (n : ) :
sym α n sym.sym' α n

Multisets of cardinality n are equivalent to length-n vectors up to permutations.

Equations
@[instance]
def sym.​inhabited_sym (α : Type u_1) [inhabited α] (n : ) :
inhabited (sym α n)

Equations
@[instance]
def sym.​inhabited_sym' (α : Type u_1) [inhabited α] (n : ) :

Equations