# Braid representations A braid can be written down many ways. braidpy reads and writes each of these, and moves between them. ## A braid word A braid on `n` strands is written as its crossings in order, each an Artin generator: `σᵢ` crosses the strand in place `i` over the one in place `i + 1`, `σᵢ⁻¹` under ({doc}`usage`). braidpy keeps a braid as the list of signed indices, `Braid([1, -2], n_strands=3)` for `σ₁σ₂⁻¹`, and writes it in the usual notations: | Notation | `σ₁σ₂⁻¹` | Written by | Read by | |---|---|---|---| | Signed indices | `1 -2` | `generators` | `Braid([...])`, `parse_word` | | Greek | `σ₁σ₂⁻¹` | `format()` | `parse_word` (also `s1 s2^-1`) | | Letters | `aB` | `format_to_notation("alpha")` | `parse_word` | | LaTeX | `s_{1}^{1.0} s_{2}^{-1.0}` | `format_to_notation("artin")` | | | math-braid, braidlab | `<1 : -2>` | `format_to_notation()` | | In letters, `a` is `σ₁`, `b` is `σ₂` and so on; a capital is the inverse. ## A ring word, round a core A tube's strands go round its axis, and a braid word, its strands in a row, cannot say so: a tube and a flat braid curled up have the same word. A **ring word** ({mod}`braidpy.annulus_braid`, written as Braid Studio takes it, [ring word](braid_studio.md)) can: its strands are in a ring round the axis, crossing `n` crosses the two either side of a seam and `n + 1` turns the ring a slot. Kept as a strand, the core tells the two apart: `cored_word` is the braid word with the core as strand 1, `solid_word` the one with the middle filled. {func}`~braidpy.horn_gear.word.ring_word` reads a machine's braid as a ring word round an axis: an axial, or any spot one could be fed at ({func}`~braidpy.horn_gear.layout.axial_spots`), the core a machine braids round if not said ({func}`~braidpy.horn_gear.word.default_axis`). Round another axis the same machine makes another braid round its core. `shortened()` makes the word shorter, as {func}`~braidpy.shortening.shortened` does a braid word, the relations read round the ring: ```python from braidpy.horn_gear import examples from braidpy.horn_gear.word import ring_word word = ring_word(examples.tubular_braid_8()) # round the tube's hole len(word.moves), len(word.shortened().moves) # 40, 32: the turns cancel ``` ## In band generators Round a circle — a kumihimo disk, a marudai — any two strands can cross directly, in front of those between: the **band generator** `a_ts` (Birman, Ko and Lee), `σ_{t-1} ⋯ σ_{s+1} σ_s σ_{s+1}⁻¹ ⋯ σ_{t-1}⁻¹` in Artin's letters, `a_{s+1,s}` being `σ_s` ({mod}`braidpy.band_canonical_form`). A ring word's crossing across the seam is `a_{n,1}`, and its turn is `δ = a_{n,n-1} ⋯ a_{2,1}`. `braid.band_word()` writes a braid so, as its band normal form spells it, `(t, s)` for `a_ts` and `(s, t)` for its inverse; `artin_from_band` reads one back. | Braid | Strands | Crossings | Band letters | |---|---|---|---| | Kongo gumi, a disk braid | 8 | 81 | 43 | | The 16-strand disk braid | 16 | 351 | 117 | | Tubular braider, 16 carriers | 16 | 44 | 30 | | A machine's flat braid, neighbours crossing | 28 | 68 | 378 | The crossings are each braid's repeat, shortened. A braid of strands carried across the disk is shorter so; one of neighbours crossing, as most machines make, is longer. ## Where the strands go A braid takes the strand starting in each place to a place at the other end: its **permutation**. `perm()` gives where each strand ends, and `permutations()` the order of the strands after each crossing: ```python Braid([1, -2], n_strands=3).perm() # [2, 3, 1] ``` A braid whose permutation is the identity is **pure** ({mod}`braidpy.pure_braid`). Many words share a permutation; the permutation forgets which strand passed over. ## A matrix The **Burau representation** sends each generator to a matrix in a variable `t`, and a braid to the product of its generators' matrices (`to_matrix()`, `to_reduced_matrix()`). Equal braids have equal matrices; the reduced matrix gives the closure's **Alexander polynomial** ({func}`braidpy.properties.alexander_polynomial`), an invariant of the knot or link the braid closes into. ## A normal form Of all the words making a braid, the **Garside normal form** picks one: a power of the half twist `Δ`, then a sequence of permutation braids, each as long as it can be ({mod}`braidpy.garside_canonical_form`, `get_canonical_factors()`). Two words make the same braid exactly when their normal forms are equal. ## A shape in space A braid word says nothing of a braid's shape; braidpy lays one for it. `to_parametric_strands()` gives each strand as a curve, crossing over or under where the word says, for a 3D view ({doc}`visualization`). How a braid's yarns settle into their real shape is the subject of {doc}`rope_physics` and {doc}`why_no_closed_form`. ## A way of making it A braid is also what a kumihimo disk's moves, a braiding machine's carriers, a lace machine's punchcard or a sinnet on Ashley's stand make. braidpy reads the braid word off each, and goes back from a braid to each ({doc}`making`).