Native decrease-key source assembly #
The original parent comparison selects either the already-certified cut/cascade source or no structural update, followed by the existing key/minimum block. Runtime parent subtraction is charged. The original forest proof supplies every reached-state domain on the valid indexed-heap input.
Main definitions #
decreaseValid: the existing allocated heap and valid present-key decrease conditions.
Main results #
realizes_decreaseKey: the original linked decrease-key source through the native rules.
def Cslib.DataStructure.PriorityQueue.FibonacciHeap.Native.decreaseValid (w : ℕ) (d : Fin 4 → ℕ) (mem : Memory.State) :
The conventional valid indexed decrease-key domain over the existing allocated record heap. The key and layout are runtime data; the existing source validity keeps its old bounds.
theorem Cslib.DataStructure.PriorityQueue.FibonacciHeap.Native.realizes_decreaseKey :
WordRAM.Realization.Realizes WordRAM.Basis.exact
(fun (d : Fin 4 → ℕ) => DataStructure.link ((layout (d 0) (d 1)).methods 0) (decreaseKey (d 0) (d 2) (d 3)))
(Function.Embedding.refl (Fin 4 → ℕ)) WordRAM.Realization.WordEncoding.encode decreaseValid
fun (x : Fin 4 → ℕ) (x_1 : Memory.State) => 0
A uniform native decrease-key emitter on the original valid indexed-heap domain. The existing heap/present-key/key-bound assumptions supply all reached-state compiler domains.