Slot labellings and the Koszul sign of a permutation #
The combinatorial half of the transport. A word Fin n → Bool
records which slots of a tensor power carry the odd line, a
permutation reindexes it, and the induced permutation of the odd
slots alone has a sign — the sign a symmetric category produces
when the letters of the word are permuted, one factor of −1 per
crossing of two odd letters. Nothing here mentions a category; the
categorical side consumes it in Letters.lean.
permIndex: the reindexing of a slot labelling by a permutation, with its two functoriality laws.trueSet,popCount_eq_card: the odd slots of a word.oddPerm,parSign: the induced permutation of the odd slots and its sign, withoddPerm_mulandparSign_mul, and the valueparSign_swapon an adjacent transposition.
Reindexing slot labellings #
A permutation routes the factor in slot i to slot σ i
(permMor); the labelling of the slots follows along.
Reindexing a slot labelling along a permutation: the label of
slot i moves to slot σ i.
Equations
- RS.permIndex σ c = c ∘ ⇑σ⁻¹
Instances For
The label of the image slot is the original label.
The odd slots of a word and the Koszul sign #
For a parity word w : Fin n → Bool the true slots are the odd
ones. A permutation induces a bijection from the odd slots of w
to those of the shuffled word; conjugating by the monotone
enumerations gives a permutation of Fin (popCount w) whose sign
is the Koszul sign of the shuffle.
Reindexing maps the true slots along the permutation.
The monotone enumeration of the true slots.
Equations
- RS.trueEnum w = (RS.trueSet w).orderIsoOfFin ⋯
Instances For
A permutation carries the true slots of a word bijectively
onto the true slots of the shuffled word.
Equations
- RS.trueShift σ w = Equiv.subtypeEquiv σ ⋯
Instances For
The shift, applied.
The induced permutation on the odd slots: conjugate the shift by the monotone enumerations.
Equations
- RS.oddPerm σ w = (RS.trueEnum w).trans ((RS.trueShift σ w).trans ((RS.trueEnum (RS.permIndex σ w)).symm.trans (finCongr ⋯)))
Instances For
The Koszul sign of a shuffle: the sign of the induced permutation of the odd slots.
Equations
- RS.parSign σ w = ↑↑(Equiv.Perm.sign (RS.oddPerm σ w))
Instances For
The Koszul sign of an adjacent transposition #
An adjacent swap crosses exactly one pair of letters: its Koszul
sign is −1 when both are odd and 1 otherwise.