MCPcopy Create free account
hub / github.com/argumentcomputer/ix / norm_add_node

Function norm_add_node

crates/kernel/src/level.rs:341–343  ·  view source on GitHub ↗

Insert `(idx, k)` into the var list at `path`, taking the max of offsets when `idx` is already present. Mirrors Lean4Lean's `NormLevel.addNode v k path'` (`refs/lean4lean/Lean4Lean/Level.lean:92`); `k` must be the current succ-accumulator from `normalize_aux`. An earlier port of this function dropped `k` and always inserted `(idx, 0)`, which silently mis-normalized `Succ^n(imax(u, Param v))` shap

(s: &mut NormLevel, idx: u64, k: u64, path: &[u64])

Source from the content-addressed store, hash-verified

339}
340
341/// Insert `(idx, k)` into the var list at `path`, taking the max of offsets
342/// when `idx` is already present. Mirrors Lean4Lean's
343/// `NormLevel.addNode v k path'` (`refs/lean4lean/Lean4Lean/Level.lean:92`);
344/// `k` must be the current succ-accumulator from `normalize_aux`.
345///
346/// An earlier port of this function dropped `k` and always inserted

Callers 2

normalize_auxFunction · 0.85
normalize_imax_dispatchFunction · 0.85

Calls 2

add_varMethod · 0.80
entryMethod · 0.80

Tested by

no test coverage detected