Sign in

julesh

@julesh.mathstodon.xyz.ap.brid.gy
301 followers 0 following 1.8K posts

Applied Compositional Thinking 🌉 bridged from ⁂ mathstodon.xyz/@julesh, follow @ap.brid.gy to interact

PostsRepliesMedia
julesh @julesh.mathstodon.xyz.ap.brid.gy · 9h
Here is an extremely neat definition of dependent lenses I've never seen before, as kleisli morphisms of the extension (ie. the equivalence of categories from containers to polynomial functors) considered as some exotic kind of generalised monad
  record Cont where
    constructor MkCont
    base : Type
    fib : base -> Type
  
  record Ext (c : Cont) (y : Type) where
    constructor MkExt
    value : c.base
    continuation : c.fib value -> y

  unit : (x : c.base) -> Ext c (c.fib x)
  unit x = MkExt {
    value = x,
    continuation = id
  }

  extend : ((x : c.base) -> Ext d (c.fib x)) -> Ext c y -> Ext d y
  extend f x = MkExt {
    value = (f x.value).value,
    continuation = x.continuation . (f x.value).continuation
  }

  Lens : Cont -> Cont -> Type
  Lens c d = (x : c.base) -> Ext d (c.fib x)

  compose : Lens c1 c2 -> Lens c2 c3 -> Lens c1 c3
  compose l m x = extend m (l x)
010
julesh @julesh.mathstodon.xyz.ap.brid.gy · 11h
> apt install texlive-full *goes away to do some other stuff for a while*
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 05/10/2026
New profile picture who dis (not sure I'll keep it yet)
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 05/10/2026
It occurs to me that if actually working AI was developed 70 years earlier, as many of the earliest pioneers of the field apparently expected, it would definitely have been immediately taken over by hyper-capitalism back then too
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 05/10/2026
When your brain is smooth so all the thoughts just run off it, that's called a thoughterfall
020
julesh @julesh.mathstodon.xyz.ap.brid.gy · 04/10/2026
Reason number whatever that I already hate linux + kde coming from a mac: keyboard shortcuts for diacritics are just shit. After a ridiculous amount of trial an error I have managed to type ëẽéêèẹȩ, but as far as I can tell it is straight up impossible to type ė (a diacritic used in Lithuanian) […]
mathstodon.xyz
Original post on mathstodon.xyz
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 03/10/2026
🚄 : Durham → London
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 02/10/2026
🚄 : Glasgow → Edinburgh → Durham
100
julesh @julesh.mathstodon.xyz.ap.brid.gy · 02/10/2026
Very proud that I successfully did my nails on a moving train without any major mishaps
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 01/10/2026
Haii
010
julesh @julesh.mathstodon.xyz.ap.brid.gy · 01/10/2026
Going to the AI shop, anyone need anything?
020
julesh @julesh.mathstodon.xyz.ap.brid.gy · 01/10/2026
Doing machine learning (parametric anamorphisms)
010
julesh @julesh.mathstodon.xyz.ap.brid.gy · 01/10/2026
RE: wandering.shop/@xgranade/1173609604… Several of these are historical and/or scams, but it's a constant source of confusion that the term AI now refers to at least 3 very different technologies that Actually Work: - LLMs and similar generative models - deep reinforcement […]
mathstodon.xyz
Original post on mathstodon.xyz
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 30/09/2026
I noticed a small sign on a platform in Glasgow central station saying cctv footage is used to train AI models I guess you can opt out of it by walking to London
024
julesh @julesh.mathstodon.xyz.ap.brid.gy · 28/09/2026
Rug discovery (visiting small carpet shops in cities like Tehran looking for undocumented designs)
010
julesh @julesh.mathstodon.xyz.ap.brid.gy · 24/09/2026
In the very early days of applied category theory around 2018, I twote something to the effect that the next layer up from applied category theory will be design patterns In the last several weeks at Glaive I feel like we have finally reached the design patterns layer
010
julesh @julesh.mathstodon.xyz.ap.brid.gy · 24/09/2026
Open games are evolving! Preview of a blog post I'm about to write
pd : (PDMove * PDMove) -> Bool
pd = extract $ CalcWith $
  |~  ((PDMove * PDMove) :- Bool)
  <~  (PDMove :- Bool) // (PDMove :- Bool)
  ... and
  <~  Game (PDMove :- Nat) // Game (PDMove :- Nat)
  ... select {c = PDMove :- Nat} (argmax [C, D]) ~//~ select {c = PDMove :- Nat} (argmax [C, D])
  <~  Game ((PDMove :- Nat) // (PDMove :- Nat))
  ... nash {c = PDMove :- Nat, d = PDMove :- Nat}
  <~  Game End
  ... mapGame {c = (PDMove :- Nat) // (PDMove :- Nat)} (costate pdPayoffs)
  <~  End
  ... runGame
110
julesh @julesh.mathstodon.xyz.ap.brid.gy · 24/09/2026
Train internet creating a very 21st century Cthulhu cult chant
Jules Hedges: Oh gods emailJules Hedges: Oh gods emailJules Hedges: Oh gods emailJules Hedges: Oh gods email
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 24/09/2026
🚄 : London → Glasgow
020
julesh @julesh.mathstodon.xyz.ap.brid.gy · 23/09/2026
Flashback to the one blog post I wrote so far about dependent optics: julesh.com/posts/2025-10-16-depende… I really need to continue this series. Unlike most blog posts I write this is not something I can do easily, this stuff is really complicated and I am a bit out of […]
mathstodon.xyz
Original post on mathstodon.xyz
020
julesh @julesh.mathstodon.xyz.ap.brid.gy · 20/09/2026
We had a very close encounter with a very inquisitive fops
120
Reposted by julesh
theHigherGeometer @highergeometer.mathstodon.xyz.ap.brid.gy · 20/09/2026
@julesh Gödel was reviewer 2 on Hilbert's program, supplying a counterexample to the main claim
011
julesh @julesh.mathstodon.xyz.ap.brid.gy · 20/09/2026
Last week I went to 2 different events. Most of the time I was surrounded by mostly pure mathematicians at an event about AI, and on the whole everybody seemed to be extremely depressed and/or shellshocked about recent events. Then one evening I went to the new London Haskell meetup and it was […]
mathstodon.xyz
Original post on mathstodon.xyz
050
julesh @julesh.mathstodon.xyz.ap.brid.gy · 20/09/2026
Hilbert was reviewer 2 to Euclid, finding all the mistakes 2500 years later
111
julesh @julesh.mathstodon.xyz.ap.brid.gy · 19/09/2026
> "The agent escaped its sandbox" > looks inside > It's just evaling untrusted code again
020
Reposted by julesh
theHigherGeometer @highergeometer.mathstodon.xyz.ap.brid.gy · 19/09/2026
Here's a question that occurred to me: suppose I have a symmetric monoidal category with diagonals and *one* projection (say \\(\mathrm{pr}_1 \colon A \otimes B \to A\\) (so diagonals and this projection is natural. is the monoidal structure necessarily cartesian?
132
julesh @julesh.mathstodon.xyz.ap.brid.gy · 19/09/2026
RE: mathstodon.xyz/@mc/1172975366592084… It's lenses again
mathstodon.xyz
020
julesh @julesh.mathstodon.xyz.ap.brid.gy · 18/09/2026
It's not a magic box, it's a sufficiently advanced technology box
020
julesh @julesh.mathstodon.xyz.ap.brid.gy · 18/09/2026
Bro, just ask Claude whether the Turing machine halts or not
021
julesh @julesh.mathstodon.xyz.ap.brid.gy · 18/09/2026
One of the spots in London that can pass for Amsterdam
020
Reposted by julesh
raganwald.com @raganwald.functional.cafe.ap.brid.gy · 16/09/2026
“Selection functions and lenses,” from @julesh julesh.com/posts/2021-03-30-selecti…
julesh.com
Jules Hedges - Selection functions and lenses
001
julesh @julesh.mathstodon.xyz.ap.brid.gy · 16/09/2026
Flashback to this very short blog post I wrote 5 years ago: Selection functions and lenses julesh.com/posts/2021-03-30-selecti…
julesh.com
Jules Hedges - Selection functions and lenses
010
julesh @julesh.mathstodon.xyz.ap.brid.gy · 16/09/2026
Part 5 in the increasingly inaccurately named European Trilogy
010
julesh @julesh.mathstodon.xyz.ap.brid.gy · 15/09/2026
I guess we formalised "make no mistakes"
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 14/09/2026
Only you can prevent entropy
021
julesh @julesh.mathstodon.xyz.ap.brid.gy · 14/09/2026
One simple practical way to fight against corporations and some of the other bad people is to randomly interleave sexual content with serious work. For slightly complicated historical reasons most of them are puritan (the same ones we expelled from Europe back in the day) so I suspect it sort of […]
mathstodon.xyz
Original post on mathstodon.xyz
110
julesh @julesh.mathstodon.xyz.ap.brid.gy · 14/09/2026
A mathematician is a device for turning coffee into eepiness
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 14/09/2026
bro just one more coffee bro one more coffee will fix it bro I swear
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 12/09/2026
Wir müssen wissen *audio distortion kicks in* Wir werden wissen *bass drops*
102
julesh @julesh.mathstodon.xyz.ap.brid.gy · 10/09/2026
Functors Lens → Set are the same thing as strong profunctors Setᵒᵖ x Set → Set (the Tambara representation theorem), so "dependent strong profunctors" on Set can probably be usefully *defined* to be functors Poly → Set
101
julesh @julesh.mathstodon.xyz.ap.brid.gy · 10/09/2026
Sequence of increasingly mind-blowing realisations: - Every polynomial functor of the form ayᵃ is canonically a comonoid for the composition product - aka polynomial comonad - aka category - these are precisely the indiscrete categories (the ones where there is exactly 1 morphism between each […]
mathstodon.xyz
Original post on mathstodon.xyz
200
julesh @julesh.mathstodon.xyz.ap.brid.gy · 10/09/2026
*Taps the sign* There is no royal road to mathematics
001
julesh @julesh.mathstodon.xyz.ap.brid.gy · 10/09/2026
We have foundations crisis at home
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 09/09/2026
Is that a large cardinal in your pocket or are you just pleased to see me
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 09/09/2026
Self-OH: "I'm starting to think that categories might be really important... maybe even as important as additive containers"
100
julesh @julesh.mathstodon.xyz.ap.brid.gy · 08/09/2026
An LLM is a device for turning water into theorems
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 08/09/2026
Which is to say, proving hard Theorems is pretty neat, but it is entirely unrelated to the subject that I do professionally. I have never proved a single Theorem in my entire life.
100
julesh @julesh.mathstodon.xyz.ap.brid.gy · 08/09/2026
I sure am glad to be a bird and not a frog
200
julesh @julesh.mathstodon.xyz.ap.brid.gy · 08/09/2026
Throwback to this gnarly trilogy of blog posts I wrote 3 years ago: "Monadic lenses are the optic for right monad modules" Part 1: julesh.com/posts/2023-06-07-monadic… Part 2 […]
mathstodon.xyz
Original post on mathstodon.xyz
000
julesh @julesh.mathstodon.xyz.ap.brid.gy · 08/09/2026
Building my website locally is a *serious* installation, it has both Haskell and OCaml as prerequisites, and a whole lot of haskell libraries
100