Macaulay2 » Documentation
Packages » Permutations :: isCartwrightSturmfels
next | previous | forward | backward | up | index | toc

isCartwrightSturmfels -- whether a permutation is Cartwright-Sturmfels

Description

A permutation $p$ is Cartwright-Sturmfels if it avoids all of the following patterns: $12543$, $13254$, $13524$, $13542$, $21543$, $125364$, $125634$, $215364$, $215634$, $315264$, $315624$, and $315642$.

i1 : p = permutation {3,1,2,5,4}

o1 = Permutation{3, 1, 2, 5, 4}

o1 : Permutation
i2 : isCartwrightSturmfels p

o2 = true

Acknowledgement

This method was ported over from the MatrixSchubert (missing documentation) package.

See also

Ways to use isCartwrightSturmfels:

  • isCartwrightSturmfels(Permutation)

For the programmer

The object isCartwrightSturmfels is a method function.


The source of this document is in /build/reproducible-path/macaulay2-1.25.05+ds/M2/Macaulay2/packages/Permutations/Documentation/patternAvoidanceDocs.m2:93:0.