Zulip Chat Archive

Stream: Is there code for X?

Topic: Proof of logarithmic depth for AVL trees?


Dessertion (Feb 11 2025 at 19:24):

Is there code currently available that formalizes the balancing properties for AVL trees (or other well-known balanced BSTs)? I see that Batteries has an RBMap module with accompanying lemmas for Red-Black trees; are there similar libraries out there?

Markus Himmel (Feb 11 2025 at 19:29):

Lean core merged an implementation of weight-balanced trees today which contains (pretty hairy) proofs about balancing, see here.

Dessertion (Feb 11 2025 at 19:43):

Wow, that's some incredible timing on my part then! Thanks!


Last updated: May 02 2025 at 03:31 UTC