Documentation

CslibFrontier.Algorithms.Lean.Dijkstra.Native.Fibonacci.Cost

Amortized memory cost of the Fibonacci Dijkstra source #

The existing framed potential pays for the actual memory histories, and the existing Dijkstra operation counts retain the reachable-vertex bound. Dirty initialization is constant because the original input convention already makes the reserved cells zero. These are memory costs; the native flat-program proof must additionally charge its real prefix, arithmetic and control.

Main results #

The actual Fibonacci memory program preserves the original admissibility and output contract. Its sharper bound includes the five header/allocation queries, and pays the heap's actual nonzero potential through the existing framed amortized telescope.