Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Q-basis and fundamental basis of WQSym #25151

Closed
amypang mannequin opened this issue Apr 12, 2018 · 55 comments
Closed

Implement Q-basis and fundamental basis of WQSym #25151

amypang mannequin opened this issue Apr 12, 2018 · 55 comments

Comments

@amypang
Copy link
Mannequin

amypang mannequin commented Apr 12, 2018

Please implement

-the Q basis, as in Bergeron-Zabrocki ​https://arxiv.org/abs/math/0509265 start of section 6

-the Phi basis, as in Novelli-Thibon ​https://arxiv.org/abs/math/0605061 lines 55-56

Define an order on ordered-set-partitions: u<v if v can be obtained by merging adjacent parts of u, where all numbers in the left part are smaller than all numbers in the right part.

Q_u is the sum of M_w over all w>u;
Phi_v is the sum of M_w over all w<v.

Depends on #25133
Depends on #25136
Depends on #25141

CC: @darijgr @tscrim @zabrocki @saliola @alauve

Component: combinatorics

Keywords: IMA coding sprint, CHAs

Author: Darij Grinberg

Branch/Commit: e13a0ce

Reviewer: Mike Zabrocki

Issue created by migration from https://trac.sagemath.org/ticket/25151

@amypang amypang mannequin added this to the sage-8.2 milestone Apr 12, 2018
@amypang amypang mannequin added c: combinatorics labels Apr 12, 2018
@amypang

This comment has been minimized.

@amypang

This comment has been minimized.

@amypang amypang mannequin changed the title Implement Q-basis of WQSym Implement Q-basis and fundamental basis of WQSym Apr 12, 2018
@amypang

This comment has been minimized.

@amypang

This comment has been minimized.

@amypang
Copy link
Mannequin Author

amypang mannequin commented Apr 12, 2018

comment:4

I'll keep trying to code something but I think realistically this is beyond me.

@darijgr
Copy link
Contributor

darijgr commented Apr 12, 2018

Last 10 new commits:

70ccf5fchanges necessitated by renaming in #25133
e79d2d3Merge branch 'public/combinat/fqsym' of trac.sagemath.org:sage into fq2
58d17adMerge branch 'public/combinat/wqsym_morphisms-25141' of trac.sagemath.org:sage into fq2
7dd85ffimplement the M basis of FQSym
2acec00Merge branch 'WQS' into fq2
78a4253overload coproduct on M-basis for speed
ef1f3b7link FQSym doc
98fca9cMerge branch 'public/combinat/fqsym2' of trac.sagemath.org:sage into homs
416a8c0more corrections due to recent merge
3211549refinement order on ordered set partitions

@darijgr
Copy link
Contributor

darijgr commented Apr 12, 2018

Branch: public/ticket/25151

@darijgr
Copy link
Contributor

darijgr commented Apr 12, 2018

Author: Darij Grinberg

@darijgr
Copy link
Contributor

darijgr commented Apr 12, 2018

Commit: 3211549

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Changed commit from 3211549 to 20abbfe

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

20abbfestrong refinement order on ordered set partitions

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Changed commit from 20abbfe to 567ee7c

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

567ee7cQ basis: rudimentary implementation

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Changed commit from 567ee7c to e089f94

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

668aa69Q basis of WQSym: optimize
e089f94Phi basis: rudimentary implementation

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

7450608Phi basis: rudimentary implementation

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Changed commit from e089f94 to 7450608

@darijgr
Copy link
Contributor

darijgr commented Apr 12, 2018

comment:10

Done: both bases implemented, and product on Q-basis overloaded.

Worth doing: overload product and coproduct on Phi-basis (Novelli and Thibon give formulas for them, but they take some time to unravel), and search for a coproduct formula on Q-basis.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Changed commit from 7450608 to 29c9278

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

29c9278corrections

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

20331d3Q basis: overload coproduct on Q basis for speed

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Apr 12, 2018

Changed commit from 29c9278 to 20331d3

@amypang
Copy link
Mannequin Author

amypang mannequin commented Apr 13, 2018

comment:13

Ok, shall I try to understand the product and coproduct of Phi, and give that to you mathematically / pseudocode-ly?

@darijgr
Copy link
Contributor

darijgr commented Apr 13, 2018

comment:14

That would be great!

@amypang
Copy link
Mannequin Author

amypang mannequin commented Apr 13, 2018

comment:15

Actually the product and coproduct on the Phi basis are quite easy to understand. But they are in terms of segmented permutations - i.e. think of the ordered set partition as a word/permutation with some bars. Because we need ideas like shuffle and deconcatenate.

  • Product = sum of shifted shuffles - i.e. compute the shifted shuffle as words, then there is a bar between letters a and b if either a,b came from the same word and there was a bar in between, or if b comes from the first word and a from the second.
  • Coproduct = deconcatenate and standardise. The deconcatenation can be within a block or between blocks.

My best idea for how to do this:

  • we already have ordered-set-partition -> composition.
  • make a function: ordered-set-partition -> permutation, that writes each block in increasing order and concatenates the blocks in the original order.
  • make an "inverse" for these combined: i.e. given a permutation and a composition, make an ordered-set-partition whose blocks have sizes given by the composition, and the first block is the first few letters of the permutation, the second block is the next few letters, and so on.

Then we can compute shuffle and deconcatenation in the permutation/composition format.

If you think it is useful, I can try to code the functions osp->permutation and (permutation,composition)->osp . But it will be of the level at #25152. Not sure if that's too rudimentary to be useful.

Sorry not to be of much help. Thanks Darij for all the coding so far.

@zabrocki zabrocki mannequin added the s: positive review label Apr 17, 2018
@zabrocki
Copy link
Mannequin

zabrocki mannequin commented Apr 17, 2018

Reviewer: Mike Zabrocki

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 6, 2018

Changed commit from ffb2268 to f82bb95

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 6, 2018

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. Last 10 new commits:

1dfb703trivial changes
c8c6906Merge branch 'public/combinat/wqsym_morphisms-25141' of git://trac.sagemath.org/sage into public/combinat/wqsym_morphisms-25141
9d90234Initial additional of global options to WQSym
fd61441Added two global options for display of elements of WordQuasiSymmetricFunctions.
c828b0eSome reviewer changes.
ba70317A few more reviewer changes.
6e50492updated doc string for intended usage vis.a.vis packed words
27b9a98doctest and Travis' check
0efedd0Merge branch 'public/combinat/wqsym_options-25155' of git://trac.sagemath.org/sage into public/combinat/wqsym_morphisms-25141
f82bb95Merge branch 'public/combinat/wqsym_morphisms-25141' of git://trac.sagemath.org/sage into public/ticket/25151

@tscrim
Copy link
Collaborator

tscrim commented May 6, 2018

comment:33

Essentially a trivial rebase over #25141.

@tscrim
Copy link
Collaborator

tscrim commented May 6, 2018

Changed dependencies from #25133, #25136 to #25133, #25136, #25141

@loefflerd loefflerd mannequin modified the milestones: sage-8.2, sage-8.3 May 17, 2018
@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 17, 2018

Branch pushed to git repo; I updated commit sha1 and set ticket back to needs_review. New commits:

728ff81Merge branch 'public/combinat/wqsym_morphisms-25141' of git://trac.sagemath.org/sage into public/combinat/wqsym_morphisms-25141
186d782Merge branch 'public/combinat/wqsym_morphisms-25141' of git://trac.sagemath.org/sage into 25141
6735ebbfix doc of from_finite_word
4f2ddfeMerge branch 'public/combinat/fqsym2' of git://trac.sagemath.org/sage into public/combinat/fqsym2
beeea6aAbstracting methods to DRY.
6e40666Calling the M basis the monomial basis.
8dc0c5cMerge branch 'public/combinat/fqsym2' of git://trac.sagemath.org/sage into 25136
536f287Merge branch '25136' into 25141
fcda701manual merge commit (references index)

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 17, 2018

Changed commit from f82bb95 to fcda701

@darijgr
Copy link
Contributor

darijgr commented May 17, 2018

comment:37

There was a conflict in reference/references/index.rst. Also I pulled in the most recent versions of the dependencies.

@kiwifb
Copy link
Member

kiwifb commented May 21, 2018

comment:38

Documentation is not building with this branch. You introduced a duplicate of the ber1991 reference in doc/en/reference/references/index.rst.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 21, 2018

Changed commit from fcda701 to e13a0ce

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented May 21, 2018

Branch pushed to git repo; I updated commit sha1. New commits:

b383c8dMerge branch 'public/ticket/25151' of git://trac.sagemath.org/sage into public/ticket/25151
e13a0ceRemoving duplicate reference.

@tscrim
Copy link
Collaborator

tscrim commented May 21, 2018

comment:40

Likely the result of a bad merge. Fixed (including verified the doc builds).

@vbraun
Copy link
Member

vbraun commented May 24, 2018

Changed branch from public/ticket/25151 to e13a0ce

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants