Ancestors

Toot

Written by julesh on 2025-01-25 at 18:36

I'm trying to implement the composition product of monomial endofunctors for the van Laarhoven encoding. It is very hard.

=> More informations about this toot | More toots from julesh@mathstodon.xyz

Descendants

Written by Zanzi @ Monoidal Cafe on 2025-01-25 at 19:11

@julesh :D are you making progress?

=> More informations about this toot | More toots from zanzi@mathstodon.xyz

Written by julesh on 2025-01-25 at 19:13

@zanzi I made what might be a bunch of progress but then got stuck. I expected it to be very hard and it did not disappoint

=> More informations about this toot | More toots from julesh@mathstodon.xyz

Written by julesh on 2025-01-25 at 19:14

@zanzi I expect it to be a more complicated version of the tensor product, which in Kmett's source code looks like this:

=> View attached media

=> More informations about this toot | More toots from julesh@mathstodon.xyz

Written by Zanzi @ Monoidal Cafe on 2025-01-25 at 23:42

@julesh oof, that is very difficult to parse :o

=> More informations about this toot | More toots from zanzi@mathstodon.xyz

Written by Sjoerd Visscher on 2025-01-27 at 14:57

@julesh @zanzi So are you looking for something of type LensLike f (s, t -> s') (t, t') (a, b -> a') (b, b')?

What makes you interested in the van Laarhoven encoding?

=> More informations about this toot | More toots from sjoerd_visscher@types.pl

Written by Sjoerd Visscher on 2025-01-28 at 17:24

@julesh @zanzi Ah, your new blogpost clarifies things. I’m wondering what it means that the Interaction data type is the free monad on a monomial.

=> More informations about this toot | More toots from sjoerd_visscher@types.pl

Written by Zanzi @ Monoidal Cafe on 2025-01-28 at 17:31

@sjoerd_visscher @julesh Yeah, the Interaction data type is a bit mysterious, I'd be curious if you have some ideas about it!

=> More informations about this toot | More toots from zanzi@mathstodon.xyz

Written by julesh on 2025-01-29 at 11:25

@zanzi @sjoerd_visscher Wow, this is a very interesting observation. So these "monadic traversals" are kleisli arrows for the free monad on a monomial

By the way, the reason I used vL lenses in this post was mostly for fun. But the actual reason I care about them is because of my "less pointless lenses" trick (I have a blog post on that from a couple of years ago, and a paper on it that I'll finish Any Month Now)

https://julesh.com/2023/01/14/making-haskell-lenses-less-pointless/

=> More informations about this toot | More toots from julesh@mathstodon.xyz

Written by Naïm Camille Favier on 2025-01-29 at 20:39

@julesh @zanzi @sjoerd_visscher I've used these monadic traversals before (called them journeys because "monadic traversal" seemed to imply something else) for a toy jq implementation: https://github.com/ncfavier/jq-optics

=> More informations about this toot | More toots from ncf@types.pl

Written by Naïm Camille Favier on 2025-01-29 at 20:41

@julesh @zanzi @sjoerd_visscher Your (and my) conjecture can probably be proved using https://arxiv.org/abs/1402.1699

=> More informations about this toot | More toots from ncf@types.pl

Written by julesh on 2025-01-29 at 21:07

@ncf @zanzi @sjoerd_visscher Wow!! Very nice!

I'll probably edit my post to include a link to this

=> More informations about this toot | More toots from julesh@mathstodon.xyz

Written by Zanzi @ Monoidal Cafe on 2025-01-30 at 00:03

@ncf @julesh @sjoerd_visscher Ah, well, done!

I was wondering if it would end up being isomorphic to s -> Free (IxStore a b) t, so glad to see that it's true.

@Andrev you mentioned that you can get this using kleene star over containers, is that with the composition product?

=> More informations about this toot | More toots from zanzi@mathstodon.xyz

Written by Andre Videla on 2025-01-30 at 08:07

@zanzi @ncf @julesh @sjoerd_visscher yes

=> More informations about this toot | More toots from Andrev@types.pl

Written by Zanzi @ Monoidal Cafe on 2025-01-30 at 13:37

@Andrev @ncf @julesh @sjoerd_visscher cool! I wonder if that's related to the fact that it's a free monad, then

=> More informations about this toot | More toots from zanzi@mathstodon.xyz

Written by Sjoerd Visscher on 2025-01-30 at 09:22

@julesh @ncf @zanzi @Andrev what’s IxStore?

=> More informations about this toot | More toots from sjoerd_visscher@types.pl

Written by Naïm Camille Favier on 2025-01-30 at 09:28

@sjoerd_visscher @julesh @zanzi @Andrev What the paper calls PStore:

data IxStore a b t = IxStore a (b → t)

=> More informations about this toot | More toots from ncf@types.pl

Written by Sjoerd Visscher on 2025-01-30 at 14:23

@ncf @julesh @zanzi @Andrev Ah, the monomial.

=> More informations about this toot | More toots from sjoerd_visscher@types.pl

Written by Zanzi @ Monoidal Cafe on 2025-01-30 at 14:36

@sjoerd_visscher @ncf @julesh @Andrev how do you define monomials in haskell?

=> More informations about this toot | More toots from zanzi@mathstodon.xyz

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113890438678856260
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
469.49204 milliseconds
Gemini-to-HTML Time
3.501221 milliseconds

This content has been proxied by September (3851b).