Words, positions and valuations #
Words are List S; length, concatenation, occurrences and change of alphabet use
List.length, List.append, List.count and List.map. A family indexed by a word always
has one entry for each Fin w.length. Variables are positions, retaining their sorts.
Families and positional variables #
Positions of $w$ sorted by the images of their letters under $\varphi$.
This is a cast-free presentation of the variables of w.map φ.
Instances For
The sorted set $\downarrow w$ of positions of each sort in $w$.
Instances For
The variable at a specified position of $w$, after changing sorts.
Equations
- CategorialAlgebras.Word.mappedVariable φ w j = ⟨j, ⋯⟩
Instances For
The variable at a specified position of $w$.
Equations
Instances For
The cast-free translated positions are equivalent to the positions of the mapped word.
Equations
- One or more equations did not get rendered due to their size.
Instances For
Valuations #
A family determines the valuation sending each position to its entry.
Equations
- CategorialAlgebras.Word.valuation a x✝ ⟨j, h⟩ = h ▸ a j
Instances For
Valuations of the positions are equivalent to families indexed by the word.
Formally weaker than the informal statement. Informally, the positional variables of a word are also identified with standard variables; the library uses positional variables throughout and does not need that identification.
Equations
- One or more equations did not get rendered due to their size.
Instances For
The valuation-family equivalence is natural in its target sorted set.