frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Category Theory Illustrated – Orders

https://abuseofnotation.github.io/category-theory-illustrated/04_order/
52•boris_m•2h ago

Comments

arketyp•1h ago
There is a way to frame category theory such that it's all just arrows -- by associating the identity arrow (which all objects have by definition) with the object itself. In a sense, the object is syntactic sugar.
dgan•1h ago
I think it is pretty obvious that at the challenge with all abstract mathematics in general and the category theory in particular isnt the fact that people dont understand what a "linear order" is, but the fact it is so distant from daily routine that it seems completely pointless. It's like pouring water over pefectly smooth glass
raincole•1h ago
Is there a "mind-blowing fact" about category theory? Like the first time I've heard that one can prove there is no analytical solution for a polynomial equation with a degree > 5 with group theory, it was mind-blowing. What's the counterpart of category theory?
tux3•48m ago
Sure, category theory can't prove the unsolvability of the quintic. But did you know that a monad is really just a monoid object in the monoidal category of endofunctors on the category of types of your favorite language?
U4E4•44m ago
A thing is its relationships. (Yoneda lemma.) Keep track of how an object connects to everything else, and you’ve recovered the object itself, up to isomorphism. It’s why mathematicians study things by probing them: a group by its actions, a space by the maps into it, a scheme in algebraic geometry defined as the rule for what maps into it look like. (You do need the full pattern of connections, not just a list — two different rings can have the same modules, for instance.) [0]

Writing a program and proving a theorem are the same act. (Curry–Howard–Lambek.) For well-behaved programs, every program is a proof of something and every proof is a program. The match is exact for simple typed languages and leaks a bit once you add general recursion (an infinite loop “proves” anything in Haskell), but the underlying identity is real. Lambek added the third leg: these are also morphisms in a category. [1]

Algebra and geometry are one thing wearing different costumes. (Stone duality and cousins.) A system of equations and the shape it cuts out aren’t related, they’re the same object seen from opposite sides. Grothendieck rebuilt algebraic geometry on this idea, with schemes (so you can do geometry on the integers themselves) and étale cohomology (topological invariants for shapes with no actual topology). His student Deligne used that machinery to settle the Weil conjectures in 1974. Wiles’s Fermat proof lives in the same world, though it leans on much more than the categorical foundations. [2]

[0] https://en.wikipedia.org/wiki/Yoneda_lemma

[1] https://en.wikipedia.org/wiki/Curry%E2%80%93Howard_correspon...

[2] https://en.wikipedia.org/wiki/Stone_duality

throw567643u8•8m ago
Just Yoneda Lemma. In fact it feels like the theory just restates Yoneda Lemma over and over in different ways.
gobdovan•45m ago
Unless there's some idiosyncratic meaning for the `=>`, the Antisymmetry one basically says `Orange -> Yellow => Yellow -/> Orange`. The diagram is not acurate. The prose is very imprecise. "It also means that no ties are permitted - either I am better than my grandmother at soccer or she is better at it than me." NO. Antisymmetry doesn't exclude `x = y`. Ties are permitted in the equality case. Antisymmetry for a non-strict order says that if both directions hold, the two elements must in fact be the same element. The author is describing strict comparison or total comparability intuition, not antisymmetry.
bubblyworld•39m ago
I don't think they are completely wrong - "=>" is just implication. A hidden assumption in their diagrams is that circles of different colours are assumed to be different elements.

A morphism from orange to yellow means "O <= Y". From this, antisymmetry (and the hidden assumption) implies that "Y not <= O".

Totality is just the other way around (all two distinct elements are comparable in one direction).

gobdovan•31m ago
If this is meant to be an explainer, that can't be simply implicit. The text actually seems full of imprecise claims, such as:

"All diagrams that look something different than the said chain diagram represent partial orders"

"The different linear orders that make up the partial order are called chains"

The Birkhoff theorem statement, which is materially wrong. A finite distributive lattice is not isomorphic to "the inclusion order of its join-irreducible elements".

somewhereoutth•30m ago
The first 90% of this is standard set theory.

I'm unclear what the last 10% of 'category theory' gives us.

LXforever•4m ago
I think the last 10% is exactly where the useful part is, at least for programmers.

In a preorder seen as a category, there is at most one arrow between any two objects. So every diagram commutes and uniqueness is basically free. Then products and coproducts stop looking like magic diagrams and become something very familiar: greatest lower bounds and least upper bounds.

Small nit: preorders are thin categories, but posets are the skeletal thin categories. In a preorder you can have distinct a and b with both a <= b and b <= a, which means they are isomorphic, not literally the same. Quotienting by that equivalence gives you the poset.

The software angle is the part I find most useful. This kind of bugs shows up when we force a total order onto something that is only partially ordered, or only preordered. Dependency graphs, versions, permissions, type hierarchies, CRDT states, rule specificity, build steps. A lot of these don’t really want a comparator and a sort. Sometimes they want a quotient, a topological sort, a join, or just the honest answer that two things are not comparable.

That feels like the practical lesson here: category theory is not always adding abstraction. Sometimes it is just a good way to stop pretending two different structures are the same thing.

Category Theory Illustrated – Orders

https://abuseofnotation.github.io/category-theory-illustrated/04_order/
53•boris_m•2h ago•11 comments

Amiga Graphics

https://amiga.lychesis.net/
44•sph•2h ago•1 comments

Claude Design

https://www.anthropic.com/news/claude-design-anthropic-labs
1034•meetpateltech•18h ago•672 comments

Show HN: I made a calculator that works over disjoint sets of intervals

https://victorpoughon.github.io/interval-calculator/
141•fouronnes3•7h ago•22 comments

Measuring Claude 4.7's tokenizer costs

https://www.claudecodecamp.com/p/i-measured-claude-4-7-s-new-tokenizer-here-s-what-it-costs-you
604•aray07•17h ago•430 comments

Towards trust in Emacs

https://eshelyaron.com/posts/2026-04-15-towards-trust-in-emacs.html
102•eshelyaron•2d ago•12 comments

The simple geometry behind any road

https://sandboxspirit.com/blog/simple-geometry-of-roads/
19•azhenley•2d ago•4 comments

All 12 moonwalkers had "lunar hay fever" from dust smelling like gunpowder (2018)

https://www.esa.int/Science_Exploration/Human_and_Robotic_Exploration/The_toxic_side_of_the_Moon
329•cybermango•14h ago•191 comments

Spending 3 months coding by hand

https://miguelconner.substack.com/p/im-coding-by-hand
205•evakhoury•16h ago•203 comments

It is incorrect to "normalize" // in HTTP URL paths

https://runxiyu.org/comp/doubleslash/
25•pabs3•3h ago•15 comments

Rewriting Every Syscall in a Linux Binary at Load Time

https://amitlimaye1.substack.com/p/rewriting-every-syscall-in-a-linux
40•riteshnoronha16•4d ago•14 comments

A simplified model of Fil-C

https://www.corsix.org/content/simplified-model-of-fil-c
173•aw1621107•11h ago•93 comments

Are the costs of AI agents also rising exponentially? (2025)

https://www.tobyord.com/writing/hourly-costs-for-ai-agents
198•louiereederson•2d ago•51 comments

Brunost: The Nynorsk Programming Language

https://lindbakk.com/blog/introducing-brunost
61•atomfinger•4d ago•23 comments

Show HN: Smol machines – subsecond coldstart, portable virtual machines

https://github.com/smol-machines/smolvm
326•binsquare•15h ago•100 comments

Slop Cop

https://awnist.com/slop-cop
173•ericHosick•17h ago•104 comments

Show HN: PanicLock – Close your MacBook lid disable TouchID –> password unlock

https://github.com/paniclock/paniclock/
188•seanieb•16h ago•81 comments

"cat readme.txt" is not safe if you use iTerm2

https://blog.calif.io/p/mad-bugs-even-cat-readmetxt-is-not
179•arkadiyt•14h ago•99 comments

Hyperscalers have already outspent most famous US megaprojects

https://twitter.com/finmoorhouse/status/2044933442236776794
188•nowflux•16h ago•154 comments

Middle schooler finds coin from Troy in Berlin

https://www.thehistoryblog.com/archives/75848
229•speckx•18h ago•107 comments

NASA Force

https://nasaforce.gov/
271•LorenDB•17h ago•266 comments

Landmark ancient-genome study shows surprise acceleration of human evolution

https://www.nature.com/articles/d41586-026-01204-5
77•unsuspecting•10h ago•62 comments

Michael Rabin Has Died

https://en.wikipedia.org/wiki/Michael_O._Rabin
14•tkhattra•2d ago•0 comments

NIST gives up enriching most CVEs

https://risky.biz/risky-bulletin-nist-gives-up-enriching-most-cves/
200•mooreds•18h ago•51 comments

Casus Belli Engineering

https://marcosmagueta.com/blog/casus-belli-engineering/
37•b-man•7h ago•9 comments

Making Wax Sealed Letters at Scale

https://waxletter.com/
17•hjconstas•2d ago•12 comments

Introducing: ShaderPad

https://rileyjshaw.com/blog/introducing-shaderpad/
92•evakhoury•2d ago•18 comments

The Unix executable as a Smalltalk method (2025) [video]

https://www.youtube.com/watch?v=sZjPQ7vtLNA
53•surprisetalk•1d ago•4 comments

Arc Prize Foundation (YC W26) Is Hiring a Platform Engineer for ARC-AGI-4

https://www.ycombinator.com/companies/arc-prize-foundation/jobs/AKZRZDN-platform-engineer-benchma...
1•gkamradt_•12h ago

The GNU libc atanh is correctly rounded

https://inria.hal.science/hal-05591661
90•matt_d•3d ago•20 comments