Pipe Dreams in a Rectangle     permutations

Leonid Petrov


Simulation Info

Pipe Dreams in a Rectangle     permutations

Leonid Petrov

Displays a canvas with colored pipes crossing through an N-by-M rectangular grid, where crosses and bumps form a pipe dream. Shows the resulting permutation as a matrix plot below. Adjust rows, columns, crossing probability, and Demazure reduction, then zoom and pan to explore the pipe configuration.

This simulation generates pipe dreams (also known as RC-graphs) on an $N \times M$ grid.

Pipe dream construction:

Demazure reduction: When enabled, if two pipes that have already crossed try to cross again (i.e., the left pipe has a larger label than the bottom pipe), the cross is forced to become a bump. This ensures each pair of pipes crosses at most once, producing a reduced pipe dream.

The output permutation is read from the top edge (left to right) followed by the right edge (top to bottom).

100% Scroll to zoom, drag to pan

Statistics

Click "Generate" to create a pipe dream.

Output Permutation

-

Permutation Matrix


code

(note: parameters in the code might differ from the ones in simulation results below)

references

  1. Colin Defant. Permutons from Demazure Products • https://arxiv.org/abs/2505.15630 (opens in new tab)

Dear colleagues:

Feel free to use code (unless otherwise specified next to the corresponding link), data, and visualizations to illustrate your research in talks and papers, with attribution (CC BY-SA 4.0 (opens in new tab)). Some images are available in very high resolution upon request. I can also produce other simulations upon request - email me at lenia.petrov@gmail.com
This material is based upon work supported by the National Science Foundation under Grant DMS-2153869