Bartosz Milewski's Avatar

Bartosz Milewski

@bartoszmilewski.bsky.social

Physicist, mathematician, programmer. "The Dao of Functional Programming" Regularly updated work in progress. PDF on GitHub: https://github.com/BartoszMilewski/DaoFP/blob/master/DaoFP.pdf

1,189 Followers  |  9 Following  |  53 Posts  |  Joined: 15.11.2024  |  1.9226

Latest posts by bartoszmilewski.bsky.social on Bluesky

Another way of looking at this picture is that it's a perspective view of a square rotating around a circle. The area of the projection depens only on the angle of viewing.

06.11.2025 14:14 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Modeling Identity Types Previously: Identity Types. Let me first explain why the naive categorical model of dependent types doesnโ€™t work very well for identity types. The problem is that, in such a model, any arrow โ€ฆ

New post on homotopy type theory.
bartoszmilewski.com/2025/10/18/m...

18.10.2025 08:30 โ€” ๐Ÿ‘ 8    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Identity Types Previously: Models of (Dependent) Type Theory. There is a deep connection between mathematics and programming. Computer programs deal with such mathematical objects as numbers, vectors, monoids, fuโ€ฆ

A new post in the Homotopy Type Theory series.
bartoszmilewski.com/2025/09/22/i...

22.09.2025 13:13 โ€” ๐Ÿ‘ 14    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Models of (Dependent) Type Theory Previously: (Weak) Factorization Systems. Itโ€™s been known since Lambek that typed lambda calculus can be modeled in a cartesian closed category, CCC. Cartesian means that you can form productโ€ฆ

New blog post in the series on HoTT.

bartoszmilewski.com/2025/09/05/m...

05.09.2025 11:46 โ€” ๐Ÿ‘ 5    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

It looks better when it's rotated 180 degrees, so it's lighted from above.

28.08.2025 11:32 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I bet they are marketing it to dyslexic parents

22.08.2025 14:13 โ€” ๐Ÿ‘ 6    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Did the fish survive?

18.08.2025 13:51 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
(Weak) Factorization Systems Previously (Weak) Homotopy Equivalences. An average function between sets, $latex f \colon A \to B$ is neither surjective nor injective. We can however isolate the two โ€œfailure modesโ€ iโ€ฆ

Another homotopy blog post.
bartoszmilewski.com/2025/07/26/w...

26.07.2025 12:54 โ€” ๐Ÿ‘ 5    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
(Weak) Homotopy Equivalences Previously: Fibrations and Cofibrations. In topology, we say that two shapes are the same if there is a homeomorphismโ€“ an invertible continuous mapโ€“ between them. Continuity means that โ€ฆ

New blog post on homotopy equivalences. Working my way towards HoTT.
bartoszmilewski.com/2025/06/20/w...

20.06.2025 09:47 โ€” ๐Ÿ‘ 9    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Fibrations and Cofibrations We are used to thinking of a mapping as either being invertible or not. Itโ€™s a yes or no question. A mapping between sets is invertible if itโ€™s both injective and surjective. It means tโ€ฆ

New blog post about homotopies, fibers and cofibers.
bartoszmilewski.com/2025/05/30/f...

30.05.2025 09:04 โ€” ๐Ÿ‘ 11    ๐Ÿ” 3    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

In a very Putinesque turn of events, Trump's press secretary Leavitt waved a kompromat file proving that Jeff Bezos partnered with a "Chinese propaganda arm." Soon afterwards Bezos kissed Trump's ass (TM), and the file has been put back in storage. The oligarchs have been tamed.

29.04.2025 20:37 โ€” ๐Ÿ‘ 6    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

If I were to teach softwared design, I would use WordPress as the example of the most unusable and buggy UI design.

23.04.2025 09:28 โ€” ๐Ÿ‘ 5    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Subfunctor Classifier Previously: Subobject Classifier. In category theory, objects are devoid of internal structure. Weโ€™ve seen however that in certain categories we can define relationships between objects that โ€ฆ

Another post on categorical topology: the construction of the subobject classifier for presheafs.
bartoszmilewski.com/2025/04/21/s...

21.04.2025 11:35 โ€” ๐Ÿ‘ 11    ๐Ÿ” 2    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Post image

Working on a new blog post about subobject classifier for presheaves. Decoding just one page out of 600 in Mac Lane Moerdijk.

17.04.2025 15:35 โ€” ๐Ÿ‘ 8    ๐Ÿ” 1    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Mathstodon A Mastodon instance for maths people. We have LaTeX rendering in the web interface!

I'm unable to connect to mathstodon.xyz . PR_CONNECT_RESET_ERROR
Is this a known problem? I'm in hotel in Reims, France, and all other connections work just fine.

29.03.2025 09:24 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Not really. There are some grisly scenes of torture and death.

28.03.2025 19:29 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I thought he was just repeating the lines with no emotional inflection. It makes sense in a comedy, when you're saying something funny with dead seriousness. But in a drama?

28.03.2025 18:12 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I got tricked into watching it after watching the Tom Cruise movie, which wasn't half bad. I think an AI would do a much better job with both the script and the performance.

28.03.2025 17:32 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Embalming fluid?

27.03.2025 20:19 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Pete Hegseth: I'll drink to that ๐Ÿธ๐Ÿธ๐Ÿธ๐Ÿธ๐Ÿธ

26.03.2025 16:21 โ€” ๐Ÿ‘ 0    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
The Bayesian Trap
YouTube video by Veritasium The Bayesian Trap

If your prior belief is already 100% (absolute certainty), then according to Bayes' theorem, no amount of new evidence can change your belief.
www.youtube.com/watch?v=R13B...

23.03.2025 08:50 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Preview
Subobject Classifier Proviously Sieves and Sheaves. We have seen how topology can be defined by working with sets of continuous functions over coverages. Categorically speaking, a coverage is a special case of a sieve,โ€ฆ

New post
bartoszmilewski.com/2025/03/20/s...

20.03.2025 14:40 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
School shootings 2009-2018. First US 288, next Mexico 8.

School shootings 2009-2018. First US 288, next Mexico 8.

To prove that you're wrong, I would need just one counterexample: a guy who died playing Russian roulette. To counter statistical argument you need overwhelming staticstics, like this:

20.03.2025 12:44 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

I assume that you're not trolling, and you genuinely believe that you're making a valid argument. Many people miss the difference between a counterexample and anectodal evidence.

If you say that Russian roulette is perfectly safe because you know a guy who survived one round, that's anecdotal.

20.03.2025 12:44 โ€” ๐Ÿ‘ 2    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0
Post image 18.03.2025 20:03 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

Seriously? You're bringing kindergarten-level arguments to a discussion about children being killed?

18.03.2025 08:20 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

The sea is sometimes very slippery when wet

10.03.2025 21:22 โ€” ๐Ÿ‘ 4    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0

Fixed!

08.03.2025 21:04 โ€” ๐Ÿ‘ 1    ๐Ÿ” 0    ๐Ÿ’ฌ 0    ๐Ÿ“Œ 0
Preview
Understanding Attention in LLMs There are many excellent AI papers and tutorials that explain the attention pattern in Large Language Models. But this essentially simple pattern is often obscured by implementation details and optโ€ฆ

New blog post.
bartoszmilewski.com/2025/03/06/u...

06.03.2025 19:03 โ€” ๐Ÿ‘ 30    ๐Ÿ” 6    ๐Ÿ’ฌ 2    ๐Ÿ“Œ 0

You might be right. Maybe we should try something more effective.

03.03.2025 22:49 โ€” ๐Ÿ‘ 3    ๐Ÿ” 0    ๐Ÿ’ฌ 1    ๐Ÿ“Œ 0

@bartoszmilewski is following 9 prominent accounts