Zulip Chat Archive

Stream: lean4

Topic: Is there formalization of data structures and algorithms?


Guchan Li (Feb 08 2026 at 02:05):

Hello! Since Lean 4 can describe almost all mathematical structures, I am wondering is there existing works that formalizes data structures and algorithms in computer science? I see there are lists and binary trees, but are there more rigorous ones? For example, is it possible to describe Dijkstra's shortest path algorithm, and argue about its computational complexity? I would be excited to discuss these with you! :smile:

Chris Henson (Feb 08 2026 at 02:10):

The #CSLib library is still setting up foundations for this sort of work, with two different approaches: a deep embedding of an imperative language and a monadic representation.

Guchan Li (Feb 08 2026 at 02:40):

Cool! I'll switch to that channel.


Last updated: Feb 28 2026 at 14:05 UTC