~/talk

The many faces of isOrderedTree

slides:none on file

Starts from a direct specification and derives three concrete, working implementations: a top‑down checker that threads interval bounds (Maybe lower/upper) down the tree, a bottom‑up reducer that returns min/max endpoints (Maybe first/last) from subtrees, and an in‑order traversal that produces a list via difference lists and checks sortedness. Transformations use equational reasoning, defunctionalization and type refinement, each step preserving semantics while tightening types and improving complexity.

AI-written summary · about

  1. 0:00Introduction and speaker intro
  2. 1:29Problem statement and three solutions
  3. 3:11Starting with high-level implementation
  4. 5:58Inlining and simplifying the code
  5. 7:23Fusing all and elements functions
  6. 9:10Grouping traversals with go function
  7. 12:29Refining type to intervals
  8. 16:19First solution: top-down with bounds
  9. 16:41Second solution: bottom-up with bounds
  10. 21:23Refining to min/max checks
  11. 23:09Refining to first/last elements
  12. 25:55Second solution complete
  13. 26:37Third solution: left-to-right traversal
  14. 28:46Optimizing with difference lists
  15. 30:31Final solution and summary
  16. 31:12Conclusion and Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.