Elektrine
Log in Register
Paige Chat Timeline Gallery Friends Email Drive DNS Private DNS Domains VPN Kairo Nerve
Remote

Bartosz Milewski

@BartoszMilewski@mathstodon.xyz
mastodon 4.7.2
  • Open on mathstodon.xyz

Physicist, programmer (Haskell, C++), mathematician, category theorist. Author of Category Theory for Programmers and The Dao of Functional Programming

5287 Followers
12 Following
49 Posts
Joined April 27, 2022
blog:
https://bartoszmilewski.com/
github:
https://github.com/BartoszMilewski
book:
https://github.com/BartoszMilewski/DaoFP/blob/master/DaoFP.pdf
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago

Ultrafinitists wanted to organize a conference but the only place that still had rooms available was the Hilbert Hotel

32
6
8
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@johncarlosbaez@mathstodon.xyz Our worm-like ancestors were cyclops. When they decided to start swimming, the central eye squeezed out two side eyes and was itself reduced to the pineal gland that to this day regulates our circadian cycle. https://theconversation.com/our-modern-vision-evolved-from-an-ancient-one-eyed-worm-creature-278120
Our modern vision evolved from an ancient one-eyed worm creature
The Conversation

Our modern vision evolved from an ancient one-eyed worm creature

The now extinct worm-like animal first lost paired eyes, then re-evolved them.

23
3
3
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago

I just realized that Chekhov's Gun is an example of linear logic. It's a premise that has to be consumed at some point in the plot.

19
4
6
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 7mo ago

Democracy is like health: You don't appreciate it until you lose it.

28
4
13
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago

In the future, body shaming will be the AI making fun of people who have bodies

8
9
4
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago

Filling my whiteboard with string diagrams. Comma objects and Kan extensions in a double category

11
0
3
1
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago

Programmers might be able to compete with the AI after all. As long as human intellectual labor is cheaper.

https://www.aol.com/finance/microsoft-ceo-sends-shocking-message-163700210.html

aol.com
7
1
6
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago

Finishing a blog post on profunctor equipments.

Unit and counit of the adjunction between companions and conjoints in a double category.

10
0
5
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago

Homeopathy in computer science: Take a random sequence and sort it ten times. How much of the original sequence can you recover?

9
4
6
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago

A new post in the series on double categories and profunctor equipment.
https://bartoszmilewski.com/2026/05/18/bending-yanking-and-cartesian-squares-in-double-categories/

bartoszmilewski.com
6
0
4
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@dpiponi@mathstodon.xyz With an obvious sequel: They movie you're pitching wins and Oscar, which is then used to highjack a metro train in Berlin.
7
1
2
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago

Another installment in the series on Double Categories and Profunctor Equipments.
https://bartoszmilewski.com/2026/05/23/tabulation-tribulations/

bartoszmilewski.com
5
0
3
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago

I decided to popularize double categories using profunctor equipment as a model.
https://bartoszmilewski.com/2026/04/24/profunctor-equipment/

Profunctor Equipment
Bartosz Milewski's Programming Cafe

Profunctor Equipment

The fundamental premise of category theory is that it’s possible to fully capture the nature of objects by describing their interactions with other objects of the same type. Those interaction…

7
10
3
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago

Haskell implementation of 2-cells in profunctor equipment

5
17
4
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@dpiponi@mathstodon.xyz The goal, though, is noble: Using Banach-Tarski, produce two Earths, one red, one blue.
5
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago

Another blog post in the series on profunctor equipment
https://bartoszmilewski.com/2026/05/16/profunctor-equipment-in-haskell/

bartoszmilewski.com
4
0
3
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 7mo ago
Replying to
@johncarlosbaez@mathstodon.xyz That reminds me of the lemur aye-aye that also has very long fingers.
8
4
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago

@sjoerd_visscher@types.pl
I decided to write a post about my toy implementation of profunctor equipments. Here's the preview.
https://bartoszmilewski.com/?p=14290&preview=1&_ppp=770ff31cfc

bartoszmilewski.com
4
3
3
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago

TIL that Haskell module names cannot start with a number. I have a bunch of Haskell files for my book, whose names start with chapter numbers. I can compile them, but when I tried to add them to a cabal file, I was thwarted. What could be the reason for such a restriction, one wonders.

4
2
1
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago

@sjoerd_visscher@types.pl
I worked out the right adjoints to profunctor composition. Do you already have it in your library?
https://v15.next.forgejo.org/BartoszMilewski/Categories/src/branch/main/src/ProfClosed.hs

v15.next.forgejo.org
3
1
3
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@h0gh@mastodon.social @drmakimber@mathstodon.xyz I bet they blame it on Dedekind cuts
4
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 9mo ago
Replying to
@johncarlosbaez@mathstodon.xyz The US has a huge infrastructure debt. All those overhead power lines that snap every time the wind starts blowing. Not to mention the esthetic nightmare of tangles of sky-obscuring wires in every residential area. Most Americans don't even notice it.
12
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@vnikolov@ieji.de Joking aside, ultrafinitists actually had a conference. Not at any math department, but at a philosophy department, where they are tolerated. I even recognize some names. https://philosophy.columbia.edu/events/ultrafinitism-physics-mathematics-and-philosophy
philosophy.columbia.edu
2
1
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@sjoerd_visscher@types.pl Have you seen this paper? It shows that Tambara modules form a proarrow equipment. https://arxiv.org/abs/2210.13443
Module categories, internal bimodules and Tambara modules
arXiv.org

Module categories, internal bimodules and Tambara modules

We use the theory of Tambara modules to extend and generalize the reconstruction theorem for module categories over a rigid monoidal category to the non-rigid case. We show a biequivalence between the $2$-category of cyclic module categories over a monoidal category $\mathscr{C}$ and the bicategory of algebra and bimodule objects in the category of Tambara modules on $\mathscr{C}$. Using it, we prove that a cyclic module category can be reconstructed as the category of certain free module object

2
2
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 14mo ago
Replying to
@johncarlosbaez@mathstodon.xyz @gregeganSF@mathstodon.xyz In the modern world you need a PhD to realize how insignificant the chances of you advancing science really are.
9
0
3
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 7mo ago
Replying to
@GoodAaron@mastodon.social And of course "Dune" -- the strugles against colonialism and theocracy
2
0
1
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago
Replying to
@sjoerd_visscher@types.pl Half of category theory is struggling with conventions. I decided to use the convention where the direction of the profunctor arrow agrees with the direction of morphisms in the hom-functor.
1
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@6d03@mathstodon.xyz For me they're horizontal lines, although they connect two areas that are on top of each other, so I see your point. I've been following the conventions of David Jaz Myers. https://arxiv.org/abs/1612.02762
String Diagrams For Double Categories and Equipments
arXiv.org

String Diagrams For Double Categories and Equipments

A popular graphical calculus for monoidal categories makes computations tactile and intuitive. Complicated diagram chases can be expressed in a few pictures and discovered by playing with a shoelace. Joyal and Street's proof of the soundness of this calculus says that any deformation of a diagram, any bending of the strings, describes the same morphism. In this paper, we extend the graphical calculus to double categories and proarrow equipments in order to bring the string diagrammatic method to

1
13
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@Andrev @bjacobs What's the alternative? European citizens are running Windows and IOS, using Google for searches and Chrome and Firefox for browsing, Chat GPT and Claude for AI. It reminds me of the Aesop's story of the wolf and the house dog. "What's that on your neck? asked the wolf..."
1
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@julesh@mathstodon.xyz The main problem is that the exponentials diverge, so the rich are getting richer, while the poor are getting relatively poorer. A quarter of American household have zero or negative net worth, so they are getting poorer with time.
1
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 9mo ago
Replying to
@johncarlosbaez@mathstodon.xyz @alisonkiddle@mathstodon.xyz I whould divide the two numbers and see if the result is less than one. The advantage is that you can cancel the factor of 2⁴
3
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@sjoerd_visscher@types.pl My experience was that any optics I could put my hands on has a Tambara representation and that this is related to Tannakian reconstruction. So I'm looking for a grand unified theory of optics, and double categories look promising in this respect. At the very least they unify regular optics with enriched optics.
1
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@sjoerd_visscher@types.pl This is some very impressive library. Are you planning on writing more detailed documentation for it? Translating from category theory to Haskell involves a lot of implementation decisions, so some kind of roadmap would be very useful.
1
1
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to

@julesh I guess it satisfies the first definition. But notice that it's subjective. A "hallucination" doesn't meet our expectations. But whose fault is it?

  1. an unattractive or unsatisfactory feature, especially in a piece of work or in a person's character.
  2. responsibility for an accident or misfortune.
1
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@julesh But how is this a fault? The LLM provides the most plausible sounding answer to your question. It's painting a picture or writing a novel for you. You might not like it because you have a particular esthetic in mind. A novel is not wrong because it cites a non-existing paper to move forward the plot.
1
4
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 6mo ago
Replying to
@regehr@mastodon.social There's also the option of installing an electrical outlet in the shower... Though, on second thought...☠️
1
2
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 6mo ago
Replying to
@regehr@mastodon.social Has anyone tried using an iPhone in the shower? They are supposed to be water resistant and there is a ToDo applet on them.
1
8
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 14mo ago
Replying to
@colincornaby Ever since people realized that you can sear a steak on a GPU running LLM, the Nvidia stock is skyrocketing
1
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@sjoerd_visscher@types.pl @6d03@mathstodon.xyz It seems to me like you're defining a subcategory of Hask by imposing a Constraint on objects. So a Tabulator would be a class that takes two categories and a profunctor between them. It would have two projections giving objects in these two categories, and a projection that gives the element of the type given by the profunctor on these two objects. Does it make sense?
0
7
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@sjoerd_visscher@types.pl @6d03@mathstodon.xyz A morphism is built from two pairs of objects (a, b) and (a', b') and a pair of arrows (u: a -> a', v: b -> b'). They have to satisfy a commuting square that uses lmap and rmap.
0
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@6d03@mathstodon.xyz No, they are horizontal, but I use string diagrams. For instance, this is vertical composition of 2-cells:
0
15
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@sjoerd_visscher@types.pl @6d03@mathstodon.xyz Well, I'm afraid my code is really a toy example based on endofunctors. What I really need is categories and functors between them. What definition of a category did you use?
0
8
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@sjoerd_visscher@types.pl @6d03@mathstodon.xyz Next I want to test the definition of tabulation in Prof
0
10
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago
Replying to
@sjoerd_visscher@types.pl @6d03@mathstodon.xyz This is also known as a Bool-enriched profunctor
0
1
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 27mo ago
Replying to
@EUCommission@ec.social-network.europa.eu I'm using uBlock origin to block ads. But I'm paying a ransom to Facebook.
0
0
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 4mo ago
Replying to

@sjoerd_visscher@types.pl @6d03@mathstodon.xyz Yes, trying to do dependent types in Haskell is a challenge. How would you encode the simplest category of elements of a functor. An object is a type a and a value x :: f a. A morphism from (a, x) to (b, y) is a function u: a->b such that fmap u x = y. If you can encode this, then tabulation should be relatively easy.

0
4
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@bjacobs Why is Europe so far behind the US and China? There must be some deep systemic issues that work against European innovation. Why isn't there a European Microsoft or Apple and, more recently, an AI company on a par with the Americans? It's definitely not for want of intellectual power in Europe.
0
3
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@sjoerd_visscher@types.pl @6d03@mathstodon.xyz Yes, I also used (Co-)Star as my Conjoint/Companion.
0
11
0
0
Open post
Bartosz Milewski @BartoszMilewski@mathstodon.xyz
· 5mo ago
Replying to
@varkor@mathstodon.xyz Thanks, I'll correct this. It was the result of my perusing Grandis & Pare, where they say "the (strict) double category Dbl consisting of weak double categories, lax double functors (as horizontal arrows) and colax double functors (as vertical arrows), with suitable cells." So this works for pseudo or weak double categories.
0
1
0
0
Back
313k7r1n3
Elektrine

Tor hidden service

elekhj7afj4qnrr4yd3bkzslsyo5jgfxw3orgjkhlcxifueodybyiiad.onion

I2P eepsite

j6b6cyk6gjmepjih7jjadxgxvvf3lzzujljuu2v4biemzpg3naya.b32.i2p

Platform

  • Email
  • Chat
  • Timeline
  • VPN
  • DNS

Company

  • About
  • Contact
  • FAQ
  • Lite (no JS)

Legal

  • Terms of Service
  • Privacy Policy
  • Transparency Report
  • Report Abuse
  • Warrant Canary
  • VPN Policy

Support

  • support@elektrine.com
  • Report Security Issue
Mail client setup IMAP mail.elektrine.com:993 POP3 mail.elektrine.com:995 SMTP mail.elektrine.com:465
© 2026 Elektrine. All rights reserved. Server: 13:33:03 UTC