The vector underlying a BinaryHeap is well-formed iff every node is ≥ any children it has
Equations
- Batteries.BinaryHeap.WF.TopDown v = ∀ (i : Fin sz), Batteries.BinaryHeap.WF.Children v i
Instances For
The well-formedness property of a binary heap
Equations
- heap.WF = Batteries.BinaryHeap.WF.TopDown heap.vector