Imports
Chapter 10 - Elementary Data Structures
Chapter 10 introduces stacks, queues, linked lists, and rooted-tree representations. The current CLRS-Lean pass uses functional lists as the mathematical model for the first three structures. This intentionally avoids pointer mutation while preserving the algebraic claims that the textbook uses when reasoning about the operations.
Sections
-
10.1 Stacks and queues:
provedfor the functional-list model. Main results:CLRS.Chapter10.pop_push,CLRS.Chapter10.dequeue_enqueue_empty,CLRS.Chapter10.dequeue_enqueue_nonempty. -
10.2 Linked lists:
provedfor the functional-list model. Main results:CLRS.Chapter10.listSearch_sound,CLRS.Chapter10.mem_listDeleteAll_iff.
Current Gaps
The chapter does not yet formalize pointer-level linked lists, free-list allocation, or rooted-tree left-child/right-sibling representations. Those belong to a future imperative-memory layer.
namespace CLRSnamespace Chapter10end Chapter10end CLRS